/* حاوية عنوان القسم */
.s-block__title {
  margin: 32px 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* العنوان نفسه */
.s-block__title .right-side h2 {
  position: relative;
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--astroof-green-dark, #1a3a2a);
  padding: 4px 10px 10px;
  text-align: right;
}

/* خلفية إبراز (مثل هايلايتر) خلف العنوان */
.s-block__title .right-side h2::before {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  inset-block-end: 2px;
  width: 100%;
  height: 55%;
  background: linear-gradient(
    120deg,
    var(--astroof-gold-pale, #fef9e7),
    var(--astroof-gold-light, #f0c842)
  );
  border-radius: 999px;
  z-index: -1;
  opacity: 0.85;
}

/* خط سفلي متدرّج تحت العنوان */
.s-block__title .right-side h2::after {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  inset-block-end: 0;
  width: 70px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--astroof-green, #1e4d35),
    var(--astroof-gold, #c8960c)
  );
}

/* تباعد بسيط على الشاشات الصغيرة */
@media (max-width: 768px) {
  .s-block__title {
    margin: 24px 0 14px;
  }
  .s-block__title .right-side h2 {
    font-size: 19px;
  }
}

/* ألوان وهوية استروف */
:root {
  --astroof-green-dark: #1a3a2a;
  --astroof-green:      #1e4d35;
  --astroof-green-mid:  #2a6048;
  --astroof-gold:       #c8960c;
  --astroof-gold-light: #f0c842;
  --astroof-cream:      #faf8f4;
}

/* =================== الهيدر =================== */

.inner.bg-inherit {
  background: var(--astroof-green-dark);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  position: sticky;
  top: 0;
  z-index: 40;
}

/* حاوية الهيدر */
.inner .container {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* الصف الرئيسي داخل الهيدر */
.inner .container > .flex {
  align-items: center;
}

/* الشعار */
.inner .navbar-brand {
  display: flex;
  align-items: center;
}

.inner .navbar-brand img {
  max-height: 46px;
  width: auto;
  display: block;
}

/* زر القائمة للجوال (الهامبرغر) */
.inner .mburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.25s ease, transform 0.25s ease;
}

.inner .mburger i {
  color: #fff;
}

.inner .mburger:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

/* قائمة الروابط في الديسكتوب */
.inner custom-main-menu nav ul.main-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* العناصر من نوع root-level (الديسكتوب) */
.inner custom-main-menu nav li.root-level > a span {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.25s ease;
}

/* خط سفلي متدرج عند الهوفر */
.inner custom-main-menu nav li.root-level > a span::after {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--astroof-gold), var(--astroof-green-mid));
  transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.inner custom-main-menu nav li.root-level > a:hover span {
  color: var(--astroof-gold-light);
}

.inner custom-main-menu nav li.root-level > a:hover span::after {
  width: 100%;
}

/* عنصر (المزيد) مع سهم */
#more-menu-dropdown > a span::after {
  content: "▾";
  font-size: 10px;
  margin-inline-start: 4px;
}

/* القائمة المنسدلة للمزيد */
#more-menu-dropdown .sub-menu {
  background: #ffffff;
  color: var(--astroof-green-dark);
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
  padding: 8px 0;
}

#more-menu-dropdown .sub-menu a span {
  color: var(--astroof-green-dark);
  font-size: 14px;
  padding: 8px 14px;
  display: block;
}

#more-menu-dropdown .sub-menu a:hover span {
  background: rgba(30, 77, 53, 0.06);
  color: var(--astroof-green);
}

/* مساحة اليمين: المستخدم + السلة */
.inner .flex.items-center.justify-end {
  gap: 10px;
}

/* زر تسجيل الدخول (دائرة المستخدم) */
.s-user-menu-login-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}

.s-user-menu-login-btn svg path {
  fill: #ffffff;
}

.s-user-menu-login-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* ملخص السلة */
.s-cart-summary-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.s-cart-summary-wrapper:hover {
  background: rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.s-cart-summary-icon svg path,
#s-cart-icon i {
  fill: #ffffff;
  color: #ffffff;
}

.s-cart-summary-count {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--astroof-gold);
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.s-cart-summary-total {
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
}

/* الجوال: ترتيب وتباعد أفضل */
@media (max-width: 768px) {
  .inner .container {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .inner .container > .flex {
    align-items: center;
  }

  .inner .navbar-brand img {
    max-height: 40px;
  }

  .inner custom-main-menu nav ul.main-menu {
    gap: 12px;
  }

  .s-cart-summary-wrapper {
    padding: 4px 10px;
  }

  .s-cart-summary-total {
    font-size: 13px;
  }
}

/* =================== زر إضافة للسلة =================== */

.s-product-card-horizontal
  .s-button-element.s-button-btn.s-button-wide.s-button-primary-outline {
  position: relative;
  overflow: hidden;

  width: auto;
  min-width: 170px;
  padding: 10px 22px;

  border-radius: 999px;
  border: 1.5px solid var(--astroof-green, #1e4d35);
  background: #ffffff;
  color: var(--astroof-green, #1e4d35);

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

/* أيقونة السلة داخل الزر */
.s-product-card-horizontal
  .s-button-element.s-button-btn.s-button-wide.s-button-primary-outline i {
  font-size: 15px;
}

/* تأثير لمعة تمر على الزر عند الهوفر */
.s-product-card-horizontal
  .s-button-element.s-button-btn.s-button-wide.s-button-primary-outline::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: -30%;
  width: 35%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.7) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-20deg);
  opacity: 0;
  pointer-events: none;
}

/* حالة hover */
.s-product-card-horizontal
  .s-button-element.s-button-btn.s-button-wide.s-button-primary-outline:hover {
  background: var(--astroof-green, #1e4d35);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(30,77,53,0.3);
  transform: translateY(-1px);
}

/* تشغيل اللمعة مع الهوفر */
.s-product-card-horizontal
  .s-button-element.s-button-btn.s-button-wide.s-button-primary-outline:hover::before {
  opacity: 1;
  animation: astroof-btn-shine 0.65s ease-out forwards;
}

/* حالة الضغط */
.s-product-card-horizontal
  .s-button-element.s-button-btn.s-button-wide.s-button-primary-outline:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(30,77,53,0.2);
}

/* أنيميشن اللمعة */
@keyframes astroof-btn-shine {
  0% {
    inset-inline-start: -40%;
  }
  100% {
    inset-inline-start: 120%;
  }
}

/* =================== زر المفضلة =================== */

/* شكل الزر (الدائرة) */
.s-product-card-wishlist-btn .s-button-element.s-button-icon {
  position: relative;
  width: 40px;
  height: 40px;

  border-radius: 999px;
  border: 1.5px solid rgba(30, 77, 53, 0.35);
  background: #ffffff;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #1e4d35;
  cursor: pointer;
  overflow: hidden;

  box-shadow: none !important;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}

/* أيقونة القلب نفسها */
.s-product-card-wishlist-btn .s-button-element.s-button-icon i {
  font-size: 17px;
  animation: astroof-heart-breathe 1.4s ease-in-out infinite;
}

/* توهج أخضر خفيف حول القلب */
.s-product-card-wishlist-btn .s-button-element.s-button-icon::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(30,77,53,0.18) 0,
    rgba(30,77,53,0.02) 40%,
    transparent 70%
  );
  opacity: 0;
  animation: astroof-heart-glow 1.4s ease-in-out infinite;
}

/* هوفر بسيط بدون ظل */
.s-product-card-wishlist-btn .s-button-element.s-button-icon:hover {
  border-color: rgba(30, 77, 53, 0.7);
  transform: translateY(-1px);
}

/* حالة مضاف للمفضلة: نثبّت الشكل واللون */
.s-product-card-wishlist-btn.added .s-button-element.s-button-icon,
.s-product-card-wishlist-btn.favorited .s-button-element.s-button-icon {
  background: #f2f8f4;
  border-color: rgba(30,77,53,0.9);
  color: #1e4d35;
}

/* إيقاف الأنيميشن عند الإضافة */
.s-product-card-wishlist-btn.added .s-button-element.s-button-icon i,
.s-product-card-wishlist-btn.favorited .s-button-element.s-button-icon i,
.s-product-card-wishlist-btn.added .s-button-element.s-button-icon::before,
.s-product-card-wishlist-btn.favorited .s-button-element.s-button-icon::before {
  animation: none;
}

/* نبض القلب: تكبير/تصغير بسيط + تبديل أخضر/أبيض */
@keyframes astroof-heart-breathe {
  0% {
    transform: scale(1);
    color: #1e4d35;
  }
  50% {
    transform: scale(1.18);
    color: #ffffff;
  }
  100% {
    transform: scale(1);
    color: #1e4d35;
  }
}

/* توهج الخلفية الأخضر */
@keyframes astroof-heart-glow {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 0;
    transform: scale(0.9);
  }
}

/* =================== اسم المنتج =================== */

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

  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--astroof-green-dark, #1a3a2a);
  text-decoration: underline 0.14em rgba(0, 0, 0, 0);
  text-underline-offset: 0.18em;

  transition:
    color 0.25s ease,
    text-decoration-color 0.25s ease,
    text-underline-offset 0.25s ease;
}

.s-product-card-content-title a:hover {
  color: var(--astroof-green, #1e4d35);
  text-decoration-color: var(--astroof-gold, #c8960c);
  text-underline-offset: 0.3em;
}
/* ===== فوتر استروف - ترتيب بسيط مثل الشكل القديم ===== */
/* لون الشعار (نفس الهيدر) */
:root {
  --astroof-green-dark: #1a3a2a; /* عدّل الكود لو عندك كود مختلف للهيدر */
}

/* الفوتر العلوي كامل */
.store-footer {
  background-color: var(--astroof-green-dark) !important;
  color: #ffffff;
}

/* مساحة المحتوى داخل الفوتر العلوي */
.store-footer__inner {
  background-color: transparent !important; /* يخليها تاخذ لون الأب */
}

/* كل نصوص الفوتر تكون بيضاء */
.store-footer h3,
.store-footer p,
.store-footer span,
.store-footer .unicode,
.store-footer a,
.store-footer b {
  color: #ffffff !important;
}

/* الروابط عند الهوفر تبقى بيضاء مع تحته خط فقط */
.store-footer a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

/* شريط الحقوق ووسائل الدفع في الأسفل */
.store-footer > .md\:flex.items-center.justify-between.py-4.container.text-center {
  background-color: var(--astroof-green-dark) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* نص الحقوق */
.store-footer .copyright-text p {
  color: #ffffff !important;
}

/* رابط "محمصة استروف" في الحقوق */
.store-footer .copyright-text a {
  color: #ffffff !important;
  font-weight: 600;
}

/* توسيط عنوان الأقسام مثل "محاصيل القهوة ١ كيلو" */
.s-block__title {
  display: flex;
  justify-content: center;  /* يوسّط داخلياً أفقياً */
  align-items: center;
  text-align: center;       /* لو العنوان على سطرين */
}

/* إزالة أي محاذاة يمين من الـ right-side لو موجودة */
.s-block__title .right-side {
  margin: 0;
}

/* العنوان نفسه */
.s-block__title .right-side h2 {
  margin: 0;
}

.s-product-card-image {
  overflow: hidden;
  border-radius: 14px;
}

.s-product-card-image .s-product-card-image-cover {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.s-product-card:hover .s-product-card-image-cover {
  transform: scale(1.12);
  filter: brightness(1.1) saturate(1.08);
}

.s-product-card-image {
  overflow: hidden;
  border-radius: 14px;
}

.s-product-card-image .s-product-card-image-cover {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.45s ease, filter 0.45s ease;
  transform: scale(1) rotate(0deg);
}

.s-product-card-image:hover .s-product-card-image-cover,
.s-product-card:hover .s-product-card-image-cover {
  transform: scale(1.07) rotate(-1.5deg);
  filter: brightness(1.05);
}


/* الكرت */
.s-product-card-horizontal {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* الصورة تكون أكبر */
.s-product-card-horizontal .s-product-card-image {
  flex: 0 0 180px;
  width: 300px;
  min-width: 180px;
  height: 180px;
  overflow: hidden;
  border-radius: 5px;
  background: #f8f8f8;
}

/* الصورة نفسها */
.s-product-card-horizontal .s-product-card-image-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

/* حركة خفيفة */
.s-product-card-horizontal:hover .s-product-card-image-cover {
  transform: scale(1.08) rotate(-1deg);
}

/* المحتوى */
.s-product-card-horizontal .s-product-card-content {
  flex: 1;
}