/* ====== متغيرات الألوان والشعار ====== */
:root {
  --color-primary: #c8b072;          /* ذهبي خافت بدل الأزرق */
  --color-primary-dark: #a38f5a;     /* ذهبي داكن للتدرجات */
  --color-primary-light: #e0d3a5;    /* ذهبي فاتح للتدرجات */
  --color-primary-reverse: #bfa860;  /* نسخة أخرى للسكورول أو التأثير */
  --logo: url(https://ibb.co/Xk3NgmSn);
}

/* ====== القوائم ====== */
.main-menu {
  margin-right: 10rem !important;
}
.main-menu li.root-level > a {
  font-weight: 700;
  font-size: 18px;
  color: var(--color-primary);
}
.main-menu span {
  font-size: 17px;
}
ul.hidden.lg:flex.items-center.rtl:pl-4.ltr:pr-4.whitespace-nowrap,
.hidden.lg:flex.items-center {
  display: flex !important;
}

/* ====== الخلفيات ====== */
.bg-gray-50,
.s-product-card-image {
  background-color: #fff !important;
}
body {
  max-width: 2000px;
  margin: auto;
  background: #fdfbfbfff1f1;
  background-size: cover;
  background-repeat: repeat;
  background-image: url('');
}

div#mainnav.bg-white {
  background: transparent;
}

/* ====== وصف المنتج ====== */
.product__description.p-2.sm:p-1.leading-7.mb-3 {
  color: #000000 !important;
  margin-bottom: 1.25rem;
  background-color: #f0f0f0;
  border-radius: 25px;
  padding: 40px;
}
.product__description ul,
.product__description li,
.product__description p {
  color: #000000;
}

/* ====== الأزرار ====== */
.s-button-wide {
  width: 100%;
  border-radius: 15px;
}
.s-button-primary-outline {
  fill: var(--color-primary);
  color: #fff;
  background: linear-gradient(to right, var(--color-primary-dark), var(--color-primary)) !important;
}
button.undefined.s-button-element.s-button-btn.s-button-outline.s-button-wide.s-button-primary-outline.s-button-loader-center {
  background: var(--color-primary);
  color: var(--infinte-color);
  box-shadow: 0 0 12px 0 var(--main-text-color);
}

/* ====== الفوتر ====== */
footer.store-footer {
  position: relative;
  overflow: hidden;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0;
  background: linear-gradient(to right, #a38f5a, #c8b072, #e0d3a5);
  width: 100vw !important;
  left: 0;
  bottom: 0;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  z-index: 10;
}

footer.store-footer::before {
  content: "";
  display: block;
  width: 100%;
  height: 90px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%23ffffff" fill-opacity="1" d="M0,192L80,176C160,160,320,128,480,128C640,128,800,160,960,160C1120,160,1280,128,1360,112L1440,96L1440,0L1360,0C1280,0,1120,0,960,0C800,0,640,0,480,0C320,0,160,0,80,0L0,0Z"/></svg>') no-repeat top center;
  background-size: cover;
  position: absolute;
  top: -1px;
  left: 0;
  z-index: 1;
}

footer.store-footer svg.footer-wave {
  display: none;
}

.footer-is-light .store-footer .store-footer__inner {
  background-color: transparent !important;
}
.footer-is-light .store-footer .social-link {
  width: 48px;
  height: 48px;
  margin: 8px;
  border-radius: 50%;
  background-color: white;
  color: #bfa860;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.footer-is-light .store-footer .social-link:hover {
  background-color: var(--color-primary);
  color: white;
  transform: scale(1.1);
}
.footer-is-light .store-footer .contact-social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

footer.store-footer * {
  color: white !important;
}
footer.store-footer .footer-list,
footer.store-footer .footer-logo,
footer.store-footer h3,
footer.store-footer p {
  display: none;
}

/* ====== عناوين الأقسام ====== */
.s-slider-block__title h2,
.s-block__title h2,
h2.mb-4.text-lg.font-bold.leading- {
  background: linear-gradient(to right, var(--color-primary-dark), var(--color-primary)) !important;
  border-radius: 2rem 0rem 0rem 1rem;
  font-size: 20px !important;
  font-weight: 700;
  color: #fff;
  padding: 10px 10px 10px 20px;
  margin-right: 15px;
  text-align: center;
}

/* ====== شريط التمرير ====== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track-piece {
  background-color: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb:vertical {
  height: 200px;
  background-color: var(--color-primary-reverse);
}
::-webkit-scrollbar-thumb:vertical:hover {
  background-color: #e0d3a5;
}
::-webkit-scrollbar-thumb:horizontal {
  width: 200px;
  background-color: rgba(125, 125, 125, 0.7);
}

/* ====== المنتجات ====== */
.s-products-list {
  display: flex;
  flex-wrap: wrap;
  gap: -15px;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.s-product-card-vertical {
  flex: 1 1 160px;
  max-width: 300px;
  min-width: 140px;
  height: 400px;
  overflow: hidden;
  border: 2px solid var(--color-primary) !important;
  border-radius: 20px;
  box-shadow: 2px 2px 8px #c8b0726e;
  padding: 0;
  display: flex;
  flex-direction: column;
  margin: 0px !important;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.s-product-card-vertical:hover {
  box-shadow: 0 0 12px 2px rgba(200, 176, 114, 0.6);
  transform: translateY(-4px);
}

/* ====== زر واتساب (خدمة العملاء) ====== */
#whatsapp-button {
  position: fixed;
  bottom: 120px;
  right: 20px;
  background-color: #25d366;
  border-radius: 50px;
  padding: 0 10px;
  height: 44px;
  width: 130px;          /* منع الامتداد بعرض الشاشة */
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  color: white;
  font-size: 15px;
  font-family: Arial, sans-serif;
  text-decoration: none;
}
#whatsapp-button img {
  width: 26px;
  height: 26px;
}

/* ====== فقاعة الترحيب ====== */
.whatsapp-bubble {
  position: fixed;
  bottom: 165px;
  right: 20px;
  background: white;
  color: black;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 9998;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}
.whatsapp-bubble.hide {
  opacity: 0;
}

/* ====== أقسام المتجر مع تأثير الضوء ====== */
.quick-links-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 10px;
  margin-top: 3cm !important;
  margin-bottom: 15px;
  margin-left: auto;
  margin-right: auto;
  background-color: #e0e0e0;
  border-radius: 25px;
  max-width: 95%;
  box-sizing: border-box;
  position: relative;
}
.quick-links-container::before {
  content: "اقسام المتجر";
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom right, #a38f5a, #c8b072);
  color: white;
  font-size: 1.3rem;
  font-weight: bold;
  padding: 15px 20px;
  border-radius: 15px;
  width: 95%;
  max-width: 600px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  overflow: hidden;
}
.quick-links-container::before::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.1) 100%);
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  0% { left: -75%; }
  100% { left: 125%; }
}
.quick-link {
  background: linear-gradient(to bottom right, #a38f5a, #c8b072);
  color: white;
  border-radius: 10px;
  font-weight: bold;
  height: 90px;
  aspect-ratio: 2.5 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  padding: 0;
  box-sizing: border-box;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}
.quick-link:hover {
  transform: translateY(-2px);
}
.quick-link a {
  color: white;
  text-decoration: none;
  width: 95%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: inherit;
  text-align: center;
  padding: 6px;
}

/* ====== خانة البحث نفسها ====== */
input[type="search"], 
.search-bar, 
.search-container {
  background-color: #f9f6f1 !important;
  border: 1px solid #ddd !important;
  color: #000 !important;
  border-radius: 8px !important;
  padding: 10px !important;
}

/* ====== زر أضف للسلة ====== */
.s-button-wide {
  display: block !important;
  width: 100% !important;
  padding: 10px 0 !important;
  line-height: 1.4 !important;
  text-align: center !important;
  box-sizing: border-box !important;
  margin-top: auto !important;
}



/* إخفاء اسم المنتج إذا تجاوز سطرين */
.s-product-card-vertical h3 {
  display: -webkit-box;            /* تفعيل صناديق WebKit */
  -webkit-box-orient: vertical;    /* اتجاه عمودي */
  -webkit-line-clamp: 2;           /* سطرين فقط */
  overflow: hidden;                /* اخفاء النص الزائد */
  text-overflow: ellipsis;         /* وضع ... عند القطع */
  white-space: normal;             /* السماح بالتفاف النص */
  line-height: 1.2em;              /* ارتفاع السطر */
  max-height: 2.4em;               /* ارتفاع أقصى لسطرين */
}