/* ===== تنسيق اسم المنتج في بطاقة المنتج ===== */
/* نفس نمط الصورة: خلفية زرقاء + حدود ذهبية + ظل */

.product-card__title a, 
.s-product-card__title a {
    /* الخلفية الزرقاء الكحلية */
    background-color: #2b3e73 !important;
    
    /* النص الأبيض */
    color: #ffffff !important;
    
    /* المسافات الداخلية */
    padding: 6px 8px !important;
    
    /* الزوايا المدورة */
    border-radius: 8px !important;
    
    /* الحدود الذهبية السميكة (2px) */
    border: 2px solid #f4d03f !important;
    
    /* الظل الذهبي تحت الحد */
    box-shadow: 0 4px 0 #f4d03f !important;
    
    /* المحاذاة والعرض */
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    
    /* الخط الغامق */
    font-weight: bold !important;
    
    /* السماح بالكسر إلى أسطر متعددة */
    white-space: normal !important;
    overflow: visible !important;
    word-break: break-word !important;
    
    /* الحد الأدنى للارتفاع */
    min-height: 38px !important;
}

/* ===== تنسيق السعر في بطاقة المنتج ===== */
.product-card__price, 
.s-product-card__price,
.product-card__price span, 
.s-product-card__price span {
    /* الخلفية الذهبية */
    background-color: #f4d03f !important;
    
    /* النص الأزرق الكحلي */
    color: #1a2647 !important;
    
    /* المسافات والشكل */
    padding: 4px 12px !important;
    border-radius: 8px !important;
    
    /* الخط الغامق */
    font-weight: 800 !important;
    
    /* المحاذاة */
    text-align: center !important;
    display: inline-block !important;
    width: auto !important;
    margin: 0 auto 4px auto !important;
}

.product-card__price *, 
.s-product-card__price * {
    font-size: 100% !important;
}

/* ===== شريط التنقل (Breadcrumb) - أحمر اللون ===== */
.breadcrumbs, .s-breadcrumbs,
.breadcrumb, .s-breadcrumb,
.breadcrumbs-wrapper, .s-breadcrumbs-wrapper,
nav[aria-label="breadcrumb"],
[class*="breadcrumb"] {
    font-size: 17px !important;
}

.breadcrumbs a, .s-breadcrumbs a,
.breadcrumb a, .s-breadcrumb a,
nav[aria-label="breadcrumb"] a,
[class*="breadcrumb"] a,
.breadcrumbs span, .s-breadcrumbs span,
.breadcrumb span, .s-breadcrumb span,
nav[aria-label="breadcrumb"] span,
[class*="breadcrumb"] span,
.breadcrumbs li, .s-breadcrumbs li,
[class*="breadcrumb"] li {
    color: #e02020 !important;
    font-size: 17px !important;
}

.breadcrumbs svg, .s-breadcrumbs svg,
.breadcrumb svg, .s-breadcrumb svg,
nav[aria-label="breadcrumb"] svg,
[class*="breadcrumb"] svg {
    fill: #e02020 !important;
    color: #e02020 !important;
}

/* المقطع الأخير من شريط التنقل */
nav[aria-label="breadcrumb"] li:last-child,
nav[aria-label="breadcrumb"] li:last-child a,
nav[aria-label="breadcrumb"] li:last-child span,
[class*="breadcrumb"] ol > li:last-child,
[class*="breadcrumb"] ol > li:last-child a,
[class*="breadcrumb"] ol > li:last-child span,
[class*="breadcrumb"] ul > li:last-child,
[class*="breadcrumb"] ul > li:last-child a,
[class*="breadcrumb"] ul > li:last-child span {
    color: #1a2647 !important;
}

/* ===== تنسيق عنوان المنتج بصفحة المنتج المفرد ===== */
h1.product-single-title,
[data-selia="product-single-title"] {
    background-color: #2b3e73 !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    border: 2px solid #f4d03f !important;
    box-shadow: 0 4px 0 #f4d03f !important;
    display: inline-block !important;
    width: fit-content !important;
}

/* ===== تنسيق السعر بصفحة المنتج المفرد ===== */
.product-price {
    background-color: #f4d03f !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    width: fit-content !important;
}

.product-price .total-price {
    color: #1a2647 !important;
    font-weight: 800 !important;
}

/* ===== إطار حول صورة المنتج بصفحة المنتج المفرد ===== */
.product-single__slider .swiper.s-slider-container {
    border: 2px solid #2b3e73 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}/* ============================================
   البحث الذكي - متجر جودة | متوافق مع سلة
   ============================================ */

.jwdh-search-wrapper {
  font-family: 'Tajawal', sans-serif;
  background: linear-gradient(135deg, #8B0000 0%, #B22222 30%, #DC143C 60%, #FF0000 100%);
  border-radius: 16px;
  padding: 32px 24px 28px;
  max-width: 1100px;
  margin: 0 auto 30px;
  direction: rtl;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}

.jwdh-search-wrapper::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 60%; height: 150%;
  background: radial-gradient(ellipse, rgba(255,200,200,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.jwdh-search-wrapper::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 50%; height: 100%;
  background: radial-gradient(ellipse, rgba(139,0,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.jwdh-header {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.jwdh-header h2 {
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 8px 0;
}

.jwdh-header p {
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  margin: 0 0 6px 0;
}

.jwdh-header p span {
  color: #DC143C;
  font-weight: 700;
}

.jwdh-header .shipping-note {
  color: #ffd700;
  font-size: 15px;
  font-weight: 700;
  margin-top: 8px;
}

.jwdh-steps-container {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.jwdh-step {
  background: #ffffff;
  backdrop-filter: blur(8px);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 12px 16px;
  min-width: 140px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 130px;
  max-width: 180px;
  position: relative;
}

.jwdh-step:hover {
  background: #fff5f5;
  border-color: #DC143C;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.jwdh-step.selected {
  background: rgba(220,20,60,0.08);
  border-color: #DC143C;
}

.jwdh-step-label {
  color: #DC143C;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.jwdh-step-num {
  background: #DC143C;
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.jwdh-step-value {
  color: #333333;
  font-size: 14px;
  font-weight: 600;
  min-height: 20px;
}

.jwdh-step-value.placeholder {
  color: #999999;
  font-weight: 400;
}

.jwdh-search-btn {
  background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Tajawal', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.jwdh-search-btn:hover {
  background: linear-gradient(135deg, #FF4444 0%, #DC143C 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(220,20,60,0.4);
}

.jwdh-search-btn:active {
  transform: translateY(0);
}

.jwdh-dropdown-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.55);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.jwdh-dropdown-overlay.show {
  display: flex;
}

.jwdh-dropdown-modal {
  background: #fff;
  border-radius: 14px;
  padding: 0;
  min-width: 320px;
  max-width: 400px;
  max-height: 420px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  direction: rtl;
  animation: jwdh-modalIn 0.25s ease;
}

@keyframes jwdh-modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.jwdh-dropdown-header {
  background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jwdh-dropdown-header h3 {
  color: #ffffff;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.jwdh-dropdown-header .close-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.jwdh-dropdown-header .close-btn:hover {
  background: rgba(220,20,60,0.5);
}

.jwdh-dropdown-body {
  max-height: 340px;
  overflow-y: auto;
  padding: 8px;
}

.jwdh-dropdown-body::-webkit-scrollbar {
  width: 6px;
}

.jwdh-dropdown-body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.jwdh-dropdown-body::-webkit-scrollbar-thumb {
  background: #DC143C;
  border-radius: 3px;
}

.jwdh-dropdown-option {
  padding: 12px 16px;
  color: #333;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jwdh-dropdown-option:hover {
  background: rgba(233,30,99,0.08);
  border-color: #DC143C;
  color: #c2185b;
}

.jwdh-dropdown-option .check {
  opacity: 0;
  color: #DC143C;
  font-weight: 700;
}

.jwdh-dropdown-option:hover .check {
  opacity: 1;
}

.jwdh-results-area {
  margin-top: 24px;
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  display: none;
  position: relative;
  z-index: 1;
}

.jwdh-results-area.show {
  display: block;
  animation: jwdh-fadeIn 0.4s ease;
}

@keyframes jwdh-fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.jwdh-results-area h3 {
  color: #8B0000;
  margin: 0 0 14px 0;
  font-size: 17px;
  font-weight: 700;
}

.jwdh-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  transition: all 0.2s ease;
}

.jwdh-result-item:hover {
  background: #fff5f5;
  border-color: #DC143C;
  transform: translateX(-4px);
}

.jwdh-result-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #8B0000, #DC143C);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  flex-shrink: 0;
  border: 1px solid #e0e0e0;
}

.jwdh-result-info { flex: 1; }
.jwdh-result-name { color: #fff; font-weight: 700; font-size: 14px; }
.jwdh-result-price { color: #4caf50; font-weight: 800; font-size: 15px; margin-top: 4px; }
.jwdh-result-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}
.badge-original { background: rgba(76,175,80,0.2); color: #4caf50; }
.badge-japanese { background: rgba(33,150,243,0.2); color: #64b5f6; }
.badge-commercial { background: rgba(255,152,0,0.2); color: #ffb74d; }

.jwdh-search-input {
  width: calc(100% - 32px);
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  background: #f9f9f9;
  transition: all 0.2s ease;
  margin: 12px 16px 0;
  direction: rtl;
}

.jwdh-search-input:focus {
  outline: none;
  border-color: #DC143C;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(220,20,60,0.15);
}

.jwdh-search-input::placeholder {
  color: #999999;
}

.jwdh-no-results {
  padding: 20px;
  text-align: center;
  color: #999999;
  font-size: 14px;
  font-weight: 500;
}

.jwdh-dropdown-body.with-search {
  padding-top: 8px;
}

@media (max-width: 768px) {
  .jwdh-steps-container { flex-direction: column; }
  .jwdh-step { max-width: 100%; width: 100%; }
  .jwdh-search-btn { width: 100%; justify-content: center; }
  .jwdh-header h2 { font-size: 20px; }
}

/* إضافة خط Tajawal */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');