/* Add custom CSS styles below */ 
/* فاصل بين مجموعات الخيارات */
.s-product-options-option-container + .s-product-options-option-container {
  margin-top: 4px !important;
  padding-top: 18px !important;
  background-image: linear-gradient(to left, transparent 5%, #23dce1 50%, transparent 95%) !important;
  background-repeat: no-repeat !important;
  background-size: 100% 1.5px !important;
  background-position: top center !important;
}




/* ═══════════════════════════════════════
   Cart Toasts
   ═══════════════════════════════════════ */

/* ── Container ── */
.swal2-container.swal2-top-start {
  width: 360px !important;
  max-width: 100% !important;
  padding: 12px !important;
  pointer-events: all !important;
  inset: 0 auto auto 0 !important;
}

@media (max-width: 480px) {
  .swal2-container.swal2-top-start {
    width: 100% !important;
    padding: 8px !important;
  }
}

/* ── Toast الإضافة ── */
.swal2-popup.swal2-toast {
  background: #ffffff !important;
  border-radius: 14px !important;
  border: none !important;
  box-shadow: 0 4px 6px rgba(0,91,99,0.06), 0 12px 28px rgba(0,91,99,0.14) !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  gap: 0 !important;
  position: relative !important;
}

.swal2-popup.swal2-toast::before {
  content: '';
  display: block;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #007b82, #34d399, #007b82);
  background-size: 200% 100%;
  animation: toast-shimmer 2.5s linear infinite;
}

@keyframes toast-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.cart-toast-header {
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 13px 14px 10px !important;
  direction: rtl !important;
}

.cart-toast-icon--add {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #007b82, #00b4bd) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 3px 8px rgba(0,123,130,0.35) !important;
  animation: toast-pop 0.4s cubic-bezier(0.34,1.56,0.64,1) !important;
}

@keyframes toast-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.cart-toast-icon--add svg {
  width: 17px !important;
  height: 17px !important;
  stroke: #ffffff !important;
  fill: none !important;
  stroke-width: 2.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.cart-toast-header-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  min-width: 0 !important;
}

.cart-toast-header-text strong {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1a2340 !important;
  line-height: 1.3 !important;
  display: block !important;
}

.cart-toast-product-name {
  font-size: 11.5px !important;
  color: #007b82 !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 200px !important;
  display: block !important;
}

.cart-toast-close {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  border: none !important;
  background: #f0f5ff !important;
  color: #8a93a8 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: all 0.2s !important;
  padding: 0 !important;
  font-size: 16px !important;
}

.cart-toast-close:hover {
  background: #ffe0e0 !important;
  color: #e53e3e !important;
}

.cart-toast-divider {
  height: 1px !important;
  margin: 0 14px !important;
  background: linear-gradient(90deg, transparent, rgba(0,123,130,0.12), transparent) !important;
}

.cart-toast-actions {
  padding: 10px 14px 13px !important;
  direction: rtl !important;
}

.cart-toast-btn {
  width: 100% !important;
  padding: 11px 14px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.22s ease !important;
  border: none !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  font-family: inherit !important;
}

.cart-toast-btn svg {
  width: 15px !important;
  height: 15px !important;
  flex-shrink: 0 !important;
  stroke: #ffffff !important;
  fill: none !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.cart-toast-btn-primary {
  background: linear-gradient(135deg, #007b82 0%, #005a60 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(0,123,130,0.32) !important;
}

.cart-toast-btn-primary:hover {
  background: linear-gradient(135deg, #009aa3 0%, #007b82 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(0,123,130,0.42) !important;
  color: #ffffff !important;
}

.swal2-popup.swal2-toast .swal2-timer-progress-bar-container {
  padding: 0 !important;
  margin: 0 !important;
}

.swal2-popup.swal2-toast .swal2-timer-progress-bar {
  background: linear-gradient(90deg, #007b82, #34d399) !important;
  height: 2.5px !important;
  border-radius: 0 !important;
  opacity: 0.6 !important;
}

.swal2-popup.swal2-toast .swal2-title,
.swal2-popup.swal2-toast .swal2-icon,
.swal2-popup.swal2-toast .swal2-close,
.swal2-popup.swal2-toast .swal2-actions,
.swal2-popup.swal2-toast .swal2-html-container {
  display: none !important;
}

/* ═══════════════════════════════════════
   Toast تنبيه إزالة المنتج
   ═══════════════════════════════════════ */
#crt-wrap {
  position: fixed;
  top: 12px;
  left: 12px;
  width: 340px;
  max-width: calc(100vw - 24px);
  z-index: 999999;
  direction: rtl;
  animation: crt-slideIn 0.45s cubic-bezier(0.34,1.3,0.64,1);
}

@keyframes crt-slideIn {
  from { transform: translateX(-120%); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

@keyframes crt-slideOut {
  from { transform: translateX(0);     opacity: 1; }
  to   { transform: translateX(-120%); opacity: 0; }
}

#crt-box {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(220,60,60,0.08), 0 14px 32px rgba(220,60,60,0.16);
}

#crt-box::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #f97316, #ef4444, #f97316);
  background-size: 200% 100%;
  animation: toast-shimmer 2s linear infinite;
}

.crt-body {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 13px 14px 12px;
}

.crt-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ef4444);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(239,68,68,0.35);
  animation: toast-pop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.crt-icon svg {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.crt-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.crt-text strong {
  font-size: 13px;
  font-weight: 700;
  color: #1a2340;
  line-height: 1.3;
}

.crt-name {
  font-size: 11.5px;
  color: #ef4444;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 185px;
  display: block;
}

.crt-urgency {
  font-size: 11px;
  color: #f97316;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.crt-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #fff0f0;
  color: #f97316;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
  transition: all 0.2s;
  padding: 0;
  align-self: flex-start;
  margin-top: 2px;
}

.crt-close:hover { background: #ffe0e0; color: #ef4444; }

/* شريط التقدم الزمني */
.crt-progress {
  height: 3px;
  background: rgba(239,68,68,0.1);
}

.crt-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #f97316, #ef4444);
}




/* ═══════════════════════════════════════
   Comments Section — Logged In + Guest
   ═══════════════════════════════════════ */

.s-comments-product {
  direction: rtl;
}

.s-comments-container {
  max-width: 720px;
  margin: 0 auto;
}

/* تقليل المسافة الرأسية */
#main-content > salla-comments > div,
.s-comments.s-comments-product {
  padding-top: 1.75rem !important;
  padding-bottom: 1.75rem !important;
  margin-bottom: 2rem !important;
}

/* ═══════════════════════════════════════
   فورم المستخدم المسجَّل
   ═══════════════════════════════════════ */

/* رأس الفورم — مُضاف بـ JS */
.sc-form-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  direction: rtl;
}

.sc-form-header-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, #007b82, #00b4bd);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 123, 130, 0.3);
}

.sc-form-header-icon svg {
  width: 19px;
  height: 19px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sc-form-header-text strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--color-store, #1a2340);
  line-height: 1.3;
}

.sc-form-header-text span {
  font-size: 12.5px;
  color: #7c8a9e;
  line-height: 1.5;
}

/* الكارد الرئيسي */
.s-comment-form-wrapper {
  background: #ffffff !important;
  border-radius: 16px !important;
  border: 1.5px solid rgba(0, 123, 130, 0.14) !important;
  overflow: visible !important;
  box-shadow: 0 2px 8px rgba(0, 91, 99, 0.05),
              0 10px 28px rgba(0, 91, 99, 0.08) !important;
  transition: border-color 0.25s, box-shadow 0.25s !important;
  position: relative !important;
}

/* خط علوي ملوَّن */
.s-comment-form-wrapper::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  height: 3px !important;
  border-radius: 16px 16px 0 0 !important;
  background: linear-gradient(90deg, #007b82, #34d399, #007b82) !important;
  background-size: 200% 100% !important;
  animation: cf-shimmer 3s linear infinite !important;
}

@keyframes cf-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.s-comment-form-wrapper:focus-within {
  border-color: rgba(0, 123, 130, 0.4) !important;
  box-shadow: 0 2px 10px rgba(0, 91, 99, 0.07),
              0 14px 36px rgba(0, 123, 130, 0.13) !important;
}

/* محتوى الفورم */
.s-comment-form-content {
  padding: 18px 18px 0 !important;
}

/* label مُضاف بـ JS */
.sc-textarea-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #007b82;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.sc-textarea-label svg {
  width: 13px;
  height: 13px;
  stroke: #007b82;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* صندوق الكتابة */
.s-comment-form-input {
  width: 100% !important;
  min-height: 108px !important;
  max-height: 200px !important;
  border-radius: 11px !important;
  border: 1.5px solid rgba(0, 123, 130, 0.16) !important;
  background: #f6fafa !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  font-family: var(--font-main), sans-serif !important;
  line-height: 1.75 !important;
  color: var(--color-store, #1a2340) !important;
  outline: none !important;
  resize: vertical !important;
  box-shadow: inset 0 2px 4px rgba(0, 80, 90, 0.04) !important;
  transition: border-color 0.22s, background 0.22s, box-shadow 0.22s !important;
  display: block !important;
}

.s-comment-form-input::placeholder {
  color: #aab8c8 !important;
  font-size: 13.5px !important;
}

.s-comment-form-input:focus {
  border-color: rgba(0, 123, 130, 0.55) !important;
  background: #ffffff !important;
  box-shadow: inset 0 1px 3px rgba(0, 80, 90, 0.04),
              0 0 0 3px rgba(0, 123, 130, 0.08) !important;
}

/* عداد الأحرف */
.sc-char-count {
  text-align: left;
  font-size: 11px;
  color: #b0bcc8;
  margin-top: 5px;
  font-weight: 500;
  transition: color 0.2s;
  padding-left: 2px;
}

.sc-char-count.sc-char-warn { color: #f59e0b; }
.sc-char-count.sc-char-limit { color: #ef4444; }

/* footer الفورم */
.s-comment-form-action {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 18px 16px !important;
  border-top: 1px solid rgba(0, 123, 130, 0.07) !important;
  background: linear-gradient(to bottom, rgba(0,123,130,0.02), rgba(0,123,130,0.04)) !important;
  margin-top: 14px !important;
  border-radius: 0 0 16px 16px !important;
}

/* نص تحفيزي */
.sc-action-hint {
  font-size: 11.5px;
  color: #9aabb8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sc-action-hint svg {
  width: 13px;
  height: 13px;
  stroke: #34d399;
  fill: none;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* زر الإرسال */
.s-comment-form-action .s-button-element {
  padding: 10px 26px !important;
  border-radius: 10px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #007b82 0%, #005a60 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 123, 130, 0.32) !important;
  cursor: pointer !important;
  transition: all 0.22s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  position: relative !important;
  overflow: hidden !important;
}

.s-comment-form-action .s-button-element::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent) !important;
  opacity: 0 !important;
  transition: opacity 0.2s !important;
}

.s-comment-form-action .s-button-element:hover::before {
  opacity: 1 !important;
}

.s-comment-form-action .s-button-element:hover {
  background: linear-gradient(135deg, #009aa3 0%, #007b82 100%) !important;
  transform: translateY(-1.5px) !important;
  box-shadow: 0 6px 18px rgba(0, 123, 130, 0.42) !important;
}

.s-comment-form-action .s-button-element:active {
  transform: translateY(0) !important;
}

/* موبايل */
@media (max-width: 580px) {
  .s-comment-form-action {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 12px 14px 14px !important;
  }

  .sc-action-hint {
    justify-content: center;
  }

  .s-comment-form-action .s-button-element {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ═══════════════════════════════════════
   بطاقة الزائر
   ═══════════════════════════════════════ */

.sc-guest-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1.5px dashed rgba(0, 123, 130, 0.22);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  direction: rtl;
  box-shadow: 0 2px 8px rgba(0, 91, 99, 0.05);
  position: relative;
  overflow: hidden;
}

.sc-guest-card::before {
  content: '💬';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 70px;
  opacity: 0.04;
  pointer-events: none;
}

.sc-guest-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,123,130,0.1), rgba(0,180,189,0.13));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(0, 123, 130, 0.16);
}

.sc-guest-icon svg {
  width: 21px;
  height: 21px;
  stroke: #007b82;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sc-guest-text {
  flex: 1;
  min-width: 0;
}

.sc-guest-text strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--color-store, #1a2340);
  margin-bottom: 4px;
}

.sc-guest-text span {
  font-size: 12.5px;
  color: #7c8a9e;
  line-height: 1.6;
}

.sc-guest-stars {
  display: flex;
  gap: 3px;
  margin-top: 6px;
}

.sc-guest-stars svg {
  width: 12px;
  height: 12px;
  fill: #f59e0b;
}

.sc-guest-btn {
  padding: 9px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #007b82, #005a60);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-main), sans-serif;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 123, 130, 0.3);
  transition: all 0.22s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sc-guest-btn svg {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sc-guest-btn:hover {
  background: linear-gradient(135deg, #009aa3, #007b82);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0, 123, 130, 0.4);
  color: #ffffff;
}

@media (max-width: 520px) {
  .sc-guest-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 16px;
  }
  .sc-guest-btn {
    width: 100%;
    justify-content: center;
  }
}







/* ═══════════════════════════════════════
   Section Titles — Shimmer Effect
   يُطبَّق على جميع عناوين s-slider-block
   ═══════════════════════════════════════ */

/* تقليل الفراغ العلوي لجميع الـ sections */
.s-block {
  margin-top: 1.75rem !important;
}

/* منطقة العنوان */
.s-slider-block__title {
  padding-bottom: 14px !important;
  align-items: center !important;
}

/* العنوان الرئيسي h2 */
.s-slider-block__title h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.25 !important;
  position: relative !important;
  display: inline-block !important;

  /* اللمعان عبر gradient على النص */
  background: linear-gradient(
    90deg,
    var(--color-store, #1a2340) 0%,
    var(--color-store, #1a2340) 30%,
    #007b82 45%,
    #34d399 50%,
    #007b82 55%,
    var(--color-store, #1a2340) 70%,
    var(--color-store, #1a2340) 100%
  ) !important;
  background-size: 250% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: title-shimmer 4s linear infinite !important;
}

@keyframes title-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* خط تحت العنوان */
.s-slider-block__title h2::after {
  content: '' !important;
  position: absolute !important;
  bottom: -6px !important;
  right: 0 !important;
  width: 48px !important;
  height: 3px !important;
  border-radius: 10px !important;
  background: linear-gradient(90deg, #007b82, #34d399) !important;
  animation: underline-grow 0.6s ease forwards !important;
}

@keyframes underline-grow {
  from { width: 0; opacity: 0; }
  to   { width: 48px; opacity: 1; }
}

/* أزرار التنقل — محاذاة مع العنوان الأكبر */
.s-slider-block__title-nav {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.s-slider-block__title-nav button {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: rgba(0, 123, 130, 0.08) !important;
  color: #007b82 !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(0, 123, 130, 0.15) !important;
}

.s-slider-block__title-nav button:not(:disabled):hover {
  background: #007b82 !important;
  color: #ffffff !important;
  border-color: #007b82 !important;
  transform: scale(1.05) !important;
}

.s-slider-block__title-nav button svg {
  width: 18px !important;
  height: 18px !important;
  fill: currentColor !important;
}

.s-slider-block__title-nav button:disabled {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
}

/* جوال */
@media (max-width: 640px) {
  .s-block {
    margin-top: 1.25rem !important;
  }

  .s-slider-block__title h2 {
    font-size: 1.2rem !important;
  }

  .s-slider-block__title h2::after {
    bottom: -4px !important;
    height: 2.5px !important;
  }
}