/* Add custom CSS styles below */ 
.vertical-nav{
background-color:black;
}

 .root-lg-inline-block{
 background-color:black;
  color:red;
 }
 
 /* CSS */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  height: 64px; /* 16 * 4px */
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb; /* gray-200 */
}

.bottom-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 640px; /* max-w-lg */
  margin: 0 auto;
  height: 100%;
  font-weight: 500;
}

.bottom-nav-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.bottom-nav-item:hover {
  background-color: #f9fafb; /* gray-50 */
}

.bottom-nav-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 8px;
  color: #6b7280; /* gray-500 */
  transition: color 0.2s;
}

.bottom-nav-label {
  font-size: 14px;
  color: #6b7280; /* gray-500 */
  transition: color 0.2s;
}

.bottom-nav-item:hover .bottom-nav-icon,
.bottom-nav-item:hover .bottom-nav-label {
  color: #2563eb; /* blue-600 */
}

/* Optional dark mode styles */
@media (prefers-color-scheme: dark) {
  .bottom-nav {
    background-color: #374151; /* gray-700 */
    border-top: 1px solid #4b5563; /* gray-600 */
  }

  .bottom-nav-item:hover {
    background-color: #1f2937; /* gray-800 */
  }

  .bottom-nav-icon,
  .bottom-nav-label {
    color: #9ca3af; /* gray-400 */
  }

  .bottom-nav-item:hover .bottom-nav-icon,
  .bottom-nav-item:hover .bottom-nav-label {
    color: #3b82f6; /* blue-500 */
  }
}










/* اتجاه من اليمين إلى اليسار */
.store-footer {
  direction: rtl;
  color: #fff;
}

.store-footer__inner {
  width: 100%;
}

.footer_alignment.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  text-align: center;
}

/* أعمدة الفوتر */
.footer-col {
  width: 30%;
  padding: 15px;
  box-sizing: border-box;
}

.middle-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* معلومات الضريبة */
.tax-num {
  margin-top: 15px;
  padding: 8px;
  border-radius: 5px;
  color: #fff;
}

/* قسم "موثّق في مركز الأعمال السعودي" */
.sbc-certification {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-weight: bold;
  color: #fff;
}

/* الفوتر السفلي */
.store-footer > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  border-top: 1px solid #fff;
  padding-top: 20px;
}

.store-footer > div:last-child salla-payments {
  width: 100%;
  text-align: center;
}

.copyright-text {
  width: 100%;
  text-align: center;
  margin-top: 10px;
}

/* الأجهزة اللوحية */
@media (max-width: 992px) {
  .footer-col {
    width: 50%;
  }
  .left-col {
    width: 100%;
  }
}

/* الهواتف المحمولة */
@media (max-width: 576px) {
  .footer_alignment.container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer_alignment.container > div {
    width: 100%;
    margin-bottom: 10px;
  }

  .sbc-certification {
    justify-content: center;
    font-size: 14px;
  }
}

.store-footer a {
  text-align: center;
  color: inherit;
  text-decoration: none;
}






















/* chat section */

.fab {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e4aea9, #d99792); /* وردي متدرج ناعم */
    border-radius: 50%;
    border: none;
    color: #ffffff; /* أبيض للنص */
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(228, 174, 169, 0.4); /* ظل وردي ناعم */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.fab:hover {
    transform: scale(1.1) rotate(360deg);
    box-shadow: 0 12px 32px rgba(228, 174, 169, 0.6);
    animation: none;
}

.chat-icon {
    width: 30px;
    height: 30px;
    fill: white;
    transition: transform 0.3s ease;
}

.fab:hover .chat-icon {
    transform: scale(1.1);
}

/* Dialog Overlay - أبيض شفاف مع blur */
.chat-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 250, 250, 0.95); /* أبيض شفاف */
    backdrop-filter: blur(12px); /* تأثير زجاج مجروش */
    z-index: 1001;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    direction: rtl; /* دعم RTL للعربية */
}

.chat-dialog.show {
    display: flex;
    opacity: 1;
}

.chat-container {
    background: linear-gradient(145deg, #ffffff, #fafafa); /* أبيض متدرج ناعم */
    border: 1px solid rgba(228, 174, 169, 0.3); /* حد وردي خفيف */
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(228, 174, 169, 0.2); /* ظلال ناعمة */
    animation: bounceIn 0.4s ease-out;
    overflow: hidden;
    direction: rtl; /* RTL للكل */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Tahoma",
    sans-serif; /* دعم خطوط عربية */
}

@keyframes bounceIn {
    0% {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }
    60% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.chat-header {
    background: linear-gradient(135deg, #e4aea9, #d99792); /* وردي متدرج */
    color: #ffffff;
    padding: 20px;
    border-radius: 24px 24px 0 0;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    position: relative;
    box-shadow: 0 4px 16px rgba(228, 174, 169, 0.4);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #fafafa;
    scrollbar-width: thin;
    scrollbar-color: #e4aea9 #e0e0e0; /* لون شريط التمرير */
    direction: rtl;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #e0e0e0;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #e4aea9; /* لون شريط التمرير */
    border-radius: 3px;
}

.message {
    margin-bottom: 16px;
    padding: 12px 18px;
    border-radius: 28px;
    max-width: 80%;
    word-wrap: break-word;
    animation: slideIn 0.3s ease-out;
    font-family: inherit;
    line-height: 1.4;
    direction: rtl;
    position: relative;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.user-message {
    background: linear-gradient(
        135deg,
        #e4aea9,
        #d99792
    ); /* وردي لرسائل المستخدم */
    color: #ffffff;
    margin-left: auto;
    text-align: right;
    box-shadow: 0 4px 16px rgba(228, 174, 169, 0.4);
}

.bot-message {
    background: #ffffff; /* أبيض للبوت */
    color: #333333; /* نص رمادي داكن */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(228, 174, 169, 0.2); /* حد وردي خفيف */
}

.welcome-message {
    background: linear-gradient(135deg, #e4aea9, #d99792);
    color: white;
    max-width: 90%;
    text-align: center;
    margin: 0 auto 20px auto;
}

.faq-section {
    background: #ffffff;
    border-radius: 15px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(228, 174, 169, 0.1); /* حد وردي خفيف */
}

.faq-title {
    color: #e4aea9; /* لون وردي للعنوان */
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    font-size: 16px;
}

.faq-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    color: #333;
    transition: all 0.2s ease;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item:hover {
    color: #e4aea9; /* لون وردي عند المرور */
    padding-right: 5px;
}

.chat-input-container {
    display: flex;
    padding: 20px;
    gap: 12px;
    background: #ffffff;
    border-top: 1px solid rgba(228, 174, 169, 0.3); /* حد وردي خفيف */
    direction: rtl;
}

.chat-input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid rgba(228, 174, 169, 0.3); /* حد وردي خفيف */
    border-radius: 28px;
    outline: none;
    background: #fafafa;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
    direction: rtl;
    text-align: right;
}

.chat-input:focus {
    border-color: #e4aea9; /* لون وردي عند التركيز */
    box-shadow: 0 0 0 3px rgba(228, 174, 169, 0.2);
    background: #ffffff;
}

.send-btn {
    background: linear-gradient(135deg, #e4aea9, #d99792);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 28px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(228, 174, 169, 0.4);
    direction: ltr; /* للزر الإنجليزي إذا لزم */
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(228, 174, 169, 0.5);
}

.close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    left: 15px;
    transition: transform 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    transform: rotate(180deg) scale(1.2);
}

/* Typing indicator styles */
.typing-indicator {
    display: inline-block;
    padding: 10px 15px;
}

.typing-dots {
    display: flex;
    align-items: center;
}

.typing-dots span {
    height: 8px;
    width: 8px;
    background: #e4aea9; /* لون وردي */
    border-radius: 50%;
    margin: 0 2px;
    display: inline-block;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-5px);
    }
}

/* Responsive للموبايل */
@media (max-width: 600px) {
    .chat-container {
        width: 95%;
        height: 90vh;
        border-radius: 18px;
    }

    .fab {
        width: 60px;
        height: 60px;
        bottom: 80px;
        right: 15px;
    }

    .chat-icon {
        width: 25px;
        height: 25px;
    }

    .chat-header {
        padding: 15px;
        font-size: 16px;
    }

    .chat-messages {
        padding: 15px;
    }

    .chat-input-container {
        padding: 15px;
    }

    .message {
        padding: 10px 15px;
        font-size: 14px;
    }
}


/* Custom WA Widget Styles for hiding/showing */
#wa-widget-send-button {
    /* تطبيق لون عبايات كوين */

    /* تحديد موضعه ليكون قابلًا للعرض والإخفاء */
    position: fixed; 
    bottom: 20px; /* تم تعديله ليكون أسفل زر الشات بوت */
    right: 20px;
    height: 50px;
    border-radius: 30px;
    color: #ffffff; 
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(228, 174, 169, 0.5);
    transition: all 0.3s ease-in-out;
    z-index: 999; /* أقل من الشات بوت (1000) */
    display: flex;
    align-items: center;
    justify-content: center;
}
/* تنسيق أيقونة الواتساب */
#wa-widget-send-button .wh-svg-icon {
    width: 24px;
    height: 24px;
    fill: white;
}










/* =========================================
   1. إعدادات عامة ومتغيرات
   ========================================= */
:root {
  --st-primary: #ff0050; /* اللون الأساسي */
  --st-text-light: #ffffff;
  --st-text-dim: #e0e0e0;
  --st-bg-overlay: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  --st-icon-bg: rgba(255, 255, 255, 0.15);
  --st-font-family: "DIN Next LT Arabic", sans-serif; /* خط سلة الافتراضي أو المشابه */
  --st-z-max: 2147483647; /* أعلى طبقة ممكنة */
}

/* =========================================
   2. الزر العائم (FAB) - تحسين المظهر
   ========================================= */
#st-fab-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: calc(var(--st-z-max) - 10);
  font-family: var(--st-font-family);
}

#st-fab {
  width: 64px;
  height: 64px;
  background: var(--st-primary);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(255, 0, 80, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#st-fab:hover {
  transform: scale(1.05);
}
#st-fab.pulse {
  animation: stPulse 2s infinite;
}

#st-fab svg {
  width: 32px;
  height: 32px;
  fill: white;
  margin-left: 4px; /* تصحيح بصري لمثلث التشغيل */
}

/* شارة نصية صغيرة فوق الزر (اختياري) */
#st-fab-badge {
  position: absolute;
  top: -8px;
  left: -5px;
  background: #333;
  color: white;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 10px;
  font-weight: bold;
  white-space: nowrap;
}

@keyframes stPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 0, 80, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 0, 80, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 80, 0);
  }
}

/* =========================================
   3. واجهة العرض الرئيسية (Viewer Viewer)
   ========================================= */
#st-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: var(--st-z-max);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  font-family: var(--st-font-family);
  overflow: hidden;
  color: var(--st-text-light);
}

#st-viewer.active {
  opacity: 1;
  pointer-events: auto;
}

/* حاوية الفيديوهات والقناع */
.st-videos-wrapper {
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.st-video-slide {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* الفيديو */
.st-video-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  z-index: 1;
}

/* طبقة التظليل لقراءة النصوص */
.st-overlay-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: var(--st-bg-overlay);
  z-index: 2;
  pointer-events: none;
}

/* =========================================
   4. عناصر واجهة المستخدم (UI Overlay)
   ========================================= */
.st-ui-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  box-sizing: border-box;
}

/* زر الإغلاق العلوي */
.st-close-btn {
  align-self: flex-start;
  background: rgba(0, 0, 0, 0.4);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(5px);
  margin-top: env(safe-area-inset-top, 20px); /* مراعاة النوتش في الآيفون */
}
.st-close-btn svg {
  width: 24px;
  height: 24px;
  fill: white;
}

/* المحتوى السفلي والجانبي */
.st-content-area {
  display: grid;
  grid-template-columns: 1fr auto; /* عمود للمعلومات وعمود للأزرار */
  gap: 15px;
  align-items: end;
  margin-bottom: env(safe-area-inset-bottom, 20px);
}

/* المعلومات (عنوان، وصف) في الأسفل يسار */
.st-info-section {
  text-align: right; /* حسب لغة المتجر */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  max-width: 85%;
}

.st-username {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 8px;
  display: block;
}
.st-description {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--st-text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden; /* قص النص الطويل */
}
.st-description .hashtags {
  color: var(--st-text-light);
  font-weight: bold;
}

/* شارة السعر */
.st-product-price-badge {
  display: inline-block;
  background: var(--st-primary);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.9rem;
  margin-top: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* الأزرار الجانبية (يمين) */
.st-actions-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
}

.st-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.st-icon-wrapper {
  width: 45px;
  height: 45px;
  background: var(--st-icon-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  transition: 0.2s;
  backdrop-filter: blur(2px);
}
.st-action-item:active .st-icon-wrapper {
  transform: scale(0.9);
}
.st-icon-wrapper svg {
  width: 26px;
  height: 26px;
  fill: white;
}

/* تلوين زر اللايك عند الضغط (كمثال) */
.st-action-item.liked .st-icon-wrapper svg {
  fill: var(--st-primary);
}

.st-action-label {
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* =========================================
   5. قسم التعليقات (Sliding Panel)
   ========================================= */
#st-comments-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70vh; /* ارتفاع القائمة */
  max-height: 600px;
  background: rgba(20, 20, 20, 0.95);
  border-radius: 20px 20px 0 0;
  z-index: 100;
  transform: translateY(100%); /* مخفية في الأسفل */
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  display: flex;
  flex-direction: column;
  /* تأثير الزجاج */
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#st-comments-panel.active {
  transform: translateY(0);
}

.st-comments-header {
  padding: 15px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: bold;
  font-size: 1rem;
  position: relative;
  color: white;
}
.st-comments-close {
  position: absolute;
  right: 20px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.st-comments-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* تصميم تعليق واحد */
.st-comment-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.st-comment-avatar {
  width: 36px;
  height: 36px;
  background: #555;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
  font-size: 14px;
}
.st-comment-content {
  flex: 1;
}
.st-comment-user {
  color: #aaa;
  font-size: 13px;
  margin-bottom: 4px;
  font-weight: 600;
}
.st-comment-text {
  color: white;
  font-size: 14px;
  line-height: 1.4;
}

/* رسالة عند عدم وجود تعليقات */
.st-no-comments {
  text-align: center;
  color: #aaa;
  margin-top: 50px;
}

/* تحسينات للشاشات الكبيرة */
@media (min-width: 768px) {
  .st-video-slide video {
    object-fit: contain;
    background: #111;
  } /* عدم قص الفيديو في الشاشات العريضة */
  .st-content-area {
    max-width: 500px;
    margin: 0 auto 40px auto;
  } /* توسيط المحتوى */
  #st-comments-panel {
    width: 400px;
    left: 50%;
    margin-left: -200px;
  } /* قائمة تعليقات أصغر في الوسط */
}