
      /* شاشة تحميل تغطي الصفحة */
#preloader1 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

  /* From Uiverse.io by bociKond */ 
.loader1 {
  width: 44.8px;
  height: 44.8px;
  color: #ff0044;
  position: relative;
  background: radial-gradient(11.2px,currentColor 94%,#0000);
}

.loader1:before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(10.08px at bottom right,#0000 94%,currentColor) top    left,
          radial-gradient(10.08px at bottom left ,#0000 94%,currentColor) top    right,
          radial-gradient(10.08px at top    right,#0000 94%,currentColor) bottom left,
          radial-gradient(10.08px at top    left ,#0000 94%,currentColor) bottom right;
  background-size: 22.4px 22.4px;
  background-repeat: no-repeat;
  animation: loader 1.5s infinite cubic-bezier(0.3,1,0,1);
}

@keyframes loader {
  33% {
    inset: -11.2px;
    transform: rotate(0deg);
  }

  66% {
    inset: -11.2px;
    transform: rotate(90deg);
  }

  100% {
    inset: 0;
    transform: rotate(90deg);
  }
}
    /* الشكل العام */
.product-page-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* في الحاسوب: جنبًا إلى جنب */
@media (min-width: 768px) {
  .product-page-container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .pro-side, .form-side {
    flex: 1;
    max-width: 48%;
  }
}

    .thumbnail {
        transition: all 0.3s;
        border: 1px solid #ddd;
        border-radius: 4px;
        flex: 0 0 auto; /* كل صورة بعرضها الطبيعي */
        width: 70px; /* حجم مناسب للهاتف والحاسوب */
        height: 60px;
        margin: 0 5px;
        object-fit: cover;
        opacity: 0.6;
        cursor: pointer;
        box-sizing: border-box;
    }
    
    .thumbnail:hover {
        opacity: 0.8 !important;
        border-color: #999;
    }
    
    .thumbnail.active {
        opacity: 1 !important;
        border-color: #000;
    }
    
    .thumb-prev, .thumb-next {
        background: rgba(255,255,255,0.7);
        padding: 5px 10px;
        border-radius: 4px;
    }
    
    .thumb-prev:hover, .thumb-next:hover {
        background: rgba(255,255,255,0.9);
    }

.product-price {
  font-weight: bold;
color: #031363;
  display: inline-block;
 }

    .gradient-button {
  background: linear-gradient(45deg, #220af3, #031363);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 13px 16px;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  width: 100%;
}

.gradient-button:hover {
  opacity: 0.85;
}

.quantity-btn {
  background: linear-gradient(45deg, #220af3, #031363);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.quantity-btn:hover {
  opacity: 0.85;
}
 /* المقاس و اللون  */
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-choice {
    display: flex;
    align-items: center;
    border: 1px solid #12bb3f79;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.color-choice:hover {
    background-color: #0b6d567a;
}

.color-choice input[type="radio"] {
    display: none;
}

.color-choice input[type="radio"]:checked + .color-circle {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.color-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #aaa;
    margin-left: 6px;
}

.color-name {
    font-size: 14px;
}

.form-group.full-width {
    width: 100%;
}
.form-group.half-width {
    width: 49%;
    display: inline-block;
    
}
  .cover-side-order {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
  }

  .cover-side-order img {
    width: 400px;

    height: auto;
    display: block;
  }

  @media (min-width: 1024px) {
    .cover-side-order img {
      width: 600px;
    }
  }
  .note {
    font-weight: 500;
    font-size: 14px;
    background: linear-gradient(45deg, #220af3, #031363);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.order-button {
  display: inline-block;
  background: linear-gradient(45deg, #220af3, #031363);
  color: white;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.order-button:hover {
  opacity: 0.85;
}

    /* إظهار الزر فقط في الهاتف */
.order-button {
  display: block;
  text-align: center;
  background-color: #031363;
  color: black;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
}

/* إخفاء في شاشات الحاسوب */
@media (min-width: 768px) {
  .order-button {
    display: none !important;
  }
}
form {
    border: 1px solid #031363;
}
  /* التصميم العام */
  footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 40px 0 20px;
    font-family: 'Tajawal', Arial, sans-serif;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
  }
  
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
  }
  
  /* روابط التواصل الاجتماعي */
  .social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
  }
  
  .social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
  }
  
  .social-links a:hover {
    background: #3498db;
    transform: translateY(-3px);
  }
  
  /* روابط الموقع */
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 0 15px;
  }
  
  .footer-link {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
  }
  
  .footer-link:hover {
    color: #220af3;
  }
  
  .footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #f1c40f;
    transition: width 0.3s ease;
  }
  
  .footer-link:hover::after {
    width: 100%;
  }
  
  /* قسم حقوق النشر */
  .copyright-section {
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
  }
  
  .copyright-text {
    margin: 0;
    color: #bdc3c7;
    font-size: 14px;
  }
  
  #storeName {
    color: #f1c40f;
    font-weight: bold;
  }
  
  .payment-methods {
    margin-top: 10px;
    color: #95a5a6;
    font-size: 13px;
  }
  
  /* التجاوب مع الأجهزة المختلفة */
  @media (max-width: 768px) {
    .footer-links {
      flex-direction: column;
      gap: 15px;
    }
    
    .social-links {
      gap: 15px;
    }
    
    .social-links a {
      width: 40px;
      height: 40px;
      font-size: 16px;
    }
  }

    /* ستايل النافذة المنبثقة */
    .ban-popup {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }

    .ban-popup.show {
        opacity: 1;
        visibility: visible;
    }

    .ban-message {
        background: #fff;
        padding: 25px;
        text-align: center;
        border-radius: 8px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
        max-width: 90%;
        width: 420px;
        border-top: 5px solid #d9534f;
        animation: fadeIn 0.3s ease-in-out;
    }

    .ban-message h2 {
        color: #d9534f;
        font-size: 22px;
        margin-bottom: 15px;
    }

    .ban-message p {
        color: #333;
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .ban-message button {
        background: #d9534f;
        color: white;
        border: none;
        padding: 10px 20px;
        font-size: 16px;
        border-radius: 5px;
        cursor: pointer;
        transition: background 0.3s ease-in-out;
    }

    .ban-message button:hover {
        background: #c9302c;
    }

    @keyframes fadeIn {
        from {
            transform: scale(0.9);
            opacity: 0;
        }
        to {
            transform: scale(1);
            opacity: 1;
        }
    }


        .custom-alert {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 10000;
            min-width: 300px;
            max-width: 90%;
            animation: slideIn 0.3s ease-out;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            border-radius: 8px;
            overflow: hidden;

        }
        
        .custom-alert.error {
            background: #fff5f5;
            border-left: 4px solid #ff4d4f;
        }
        
        .custom-alert.success {
            background: #f6ffed;
            border-left: 4px solid #52c41a;
        }
        
        .alert-content {
            padding: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
            color: black;
            text-align: center;
        }
        
        .custom-alert i {
            font-size: 20px;
        }
        
        .custom-alert.error i {
            color: #ff4d4f;
        }
        
        .custom-alert.success i {
            color: #52c41a;
        }
        
        .close-alert {
            margin-left: auto;
            background: none;
            border: none;
            font-size: 18px;
            cursor: pointer;
            color: #000000;
        }
        
        .input-error {
            border-color: #ff4d4f !important;
            box-shadow: 0 0 0 2px rgba(255,77,79,0.2);
        }
        
        .fade-out {
            animation: fadeOut 0.3s ease-out forwards;
        }
        
        @keyframes slideIn {
            from { transform: translateX(100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        
        @keyframes fadeOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }
    /* نافذة التكبير */
    .image-modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        text-align: center;
    }
    
    .modal-content {
        max-width: 90%;
        max-height: 90%;
        margin: auto;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .close-btn {
        position: absolute;
        top: 20px;
        right: 30px;
        color: white;
        font-size: 35px;
        font-weight: bold;
        cursor: pointer;
    }
    
    .image-nav {
        position: absolute;
        top: 50%;
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding: 0 20px;
        box-sizing: border-box;
    }
    
    .nav-btn {
        color: white;
        font-size: 30px;
        cursor: pointer;
        background: rgba(0, 0, 0, 0.5);
        padding: 10px 15px;
        border-radius: 50%;
    }


    #priceId {
        display: flex;
        align-items: center;
        color: #031363;
        padding: 4px 6px;
        border-radius: 8px;
        font-weight: bold;
        font-size: 16px;
        margin-top: 10px;
        gap: 8px;
    }

    #priceId::after {
        content: "";
        font-size: 18px;
    }
    .summary-item {
        align-items: center;
        border-bottom: 1px dashed #7e7e7e;
    }

    .summary-value {
color: #031363;
    }

      
.loader {
  background: #ffffff;
}
.note i {
  color: #220af3;
}
.note {
      border-right: 4px solid #220af3;
}

.order-button {
  box-shadow: none;
}




:root {
  --cyan: #220af3;
  --dark: #031363;
  --size: 140px;
  --speed: 1.25s;
}

.loader {
  width: var(--size);
  height: var(--size);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

svg {width:70%;height:70%;display:block;overflow:visible}
.rotor {transform-origin:50% 50%;animation:rot var(--speed) linear infinite}
@keyframes rot {from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
.arc {fill:none;stroke-linecap:round;stroke-linejoin:round}
.arc-cyan {stroke:var(--cyan);stroke-width:23}
.arc-dark {stroke:var(--dark);stroke-width:23}
.arc-highlight {
  fill:none;
  stroke-linecap:round;
  stroke-width:12;
  stroke-linejoin:round;
  stroke: url(#gradHighlight);
  stroke-dasharray:40 220;
  stroke-dashoffset:0;
  animation:dash 1.35s linear infinite;
}
@keyframes dash {to {stroke-dashoffset:-260px}}
.hole {fill:#fff;stroke:#fff;stroke-width:4}


/* ✅ الصور الكبيرة */
.mainSwiper {
  width: 100%;
  height: 350px;
  margin-bottom: 8px;
}
.mainSwiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

/* ✅ الصور المصغّرة */
.thumbSwiper {
  height: 75px;
  box-sizing: border-box;
  padding: 6px 0;
}

.thumbSwiper .swiper-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 👈 تبدأ من أول صورة */
  gap: 6px; /* 🔹 تقارب خفيف بين الصور */
}

.thumbSwiper .swiper-slide {
  width: 70px;  /* ✅ مربعة الشكل في كل الأجهزة */
  height: 70px;
  flex: 0 0 auto;
  opacity: 0.6;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.25s ease;
}

.thumbSwiper .swiper-slide-thumb-active {
  opacity: 1;
  border-color: #007aff;
  box-shadow: 0 0 4px rgba(0,122,255,0.4);
  transform: scale(1.03);
}

.thumbSwiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* ✅ نفس الأبعاد في الكمبيوتر والهاتف */
@media (min-width: 768px) {
  .thumbSwiper .swiper-slide {
    width: 70px;
    height: 70px;
  }
}

/* الأسهم */
.swiper-button-next,
.swiper-button-prev {
  color: #555;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.7);
}


/* 🔹 موضع الأزرار */
.swiper-button-next {
  right: 12px;
}
.swiper-button-prev {
  left: 12px;
}

/* 🔹 تصغير الأزرار في الهاتف */
@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    width: 36px;
    height: 36px;
  }
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 16px;
  }
}
/* ✅ منع تحديد النص وتأثير الضغط */
.swiper-button-next,
.swiper-button-prev {
  user-select: none;        /* لا يمكن تحديدها */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  outline: none;            /* 🔹 إزالة الإطار الأزرق */
  border: none;
}

.swiper-button-next:focus,
.swiper-button-prev:focus,
.swiper-button-next:active,
.swiper-button-prev:active {
  outline: none;            /* 🔹 لا يظهر أي إطار عند الضغط */
  box-shadow: none;
  transform: scale(1.1);    /* 🔹 فقط تأثير خفيف عند الضغط */
  transition: transform 0.1s ease;
}


  /* فقرة shimmer (عدة أسطر متحركة) */
  .shimmer-paragraph {
    display: flex;
    flex-direction: column;
    gap: 0px; /* المسافة بين الأسطر */
    margin-top: 0px;
  }

  .shimmer-line {
    position: relative;
    overflow: hidden;
    background: #e0e0e0;
    background-image: linear-gradient(
      90deg,
      #e9e9e9 0%,
      #f8f8f8 20%,
      #e9e9e9 40%,
      #e9e9e9 100%
    );
    background-size: 200% 100%;
    animation: shimmerMove 1.6s infinite linear;
    border-radius: 4px;
    height: 22px;
  }

  @keyframes shimmerMove {
    0% {
      background-position: -200% 0;
    }
    100% {
      background-position: 200% 0;
    }
  }

  /* أطوال متفاوتة للأسطر لمحاكاة فقرة حقيقية */
  .shimmer-line:nth-child(1) { width: 100%; }
  .shimmer-line:nth-child(2) { width: 95%; }
  .shimmer-line:nth-child(3) { width: 85%; }
  .shimmer-line:nth-child(4) { width: 70%; }

/* تنسيق خاص لعرض الوصف المنسق */
#product-description {
    line-height: 1.6;
    text-align: right;
    direction: rtl;
}

#product-description strong {
    font-weight: bold;
    color: #333;
}

#product-description em {
    font-style: italic;
}

#product-description u {
    text-decoration: underline;
}

#product-description br {
    margin-bottom: 8px;
    display: block;
    content: "";
}

/* إذا كان الوصف يحتوي على تنسيق من المحرر */
#product-description p {
    margin-bottom: 10px;
}

#product-description div {
    margin-bottom: 10px;
}



/* شكل الدائرة التي تدور */
.spinner {
  border: 3px solid #f3f3f386; /* اللون الخارجي */
  border-top: 3px solid #fff; /* اللون العلوي */
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-input {
    border: 1px solid #e63946 !important;
    box-shadow: 0 0 6px rgba(230, 57, 70, 0.55) !important;
    border-radius: 6px;
    transition: 0.2s ease-in-out;
}


.error-message {
    color: #e63946;
    font-size: 11px;
    margin-top: 3px;
    display: block;
}


.size-error-message {
    color: #e63946;
    font-size: 13px;
    display: block;
    margin-top: -6px !important;   /* الرفع */
    margin-bottom: 8px !important; /* مسافة بعده */
}

/* ✅ تحسين شكل أزرار السلايدر */
.swiper-button-next,
.swiper-button-prev {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}

/* 🔹 عند تمرير الماوس */
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(0, 122, 255, 0.8); /* أزرق أنيق */
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.4);
}


#product-old-price {
    color: #555 !important;
}
#product-details {
    color: #222 !important;
}



.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 50;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #d90429);
    color: white;
    font-weight: 900;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;

    box-shadow: 
        0px 5px 18px rgba(0, 0, 0, 0.25),
        inset 0px 2px 8px rgba(255, 255, 255, 0.4);

    transform: rotate(-12deg);
    animation: pulse 1.4s infinite;
}

/* ✨ أنيميشن */
@keyframes pulse {
    0% { transform: scale(1)  }
    50% { transform: scale(1.12) }
    100% { transform: scale(1) }
}

/* =========================
   📏 Size Options
========================= */
.size-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.size-choice {
  position: relative;
  cursor: pointer;
}

.size-choice input {
  display: none;
}

.size-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 55px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  background: #f9fafb;
  font-weight: 600;
  color: #333;
  transition: all 0.2s ease;
}

/* عند التحويم */
.size-choice:hover .size-box {
  border-color: #4f46e5;
  background: #eef2ff;
}

/* عند التحديد */
.size-choice input:checked + .size-box {
  border-color: #4f46e5;
  background: #4f46e5;
  color: #fff;
  box-shadow: 0 4px 10px rgba(79,70,229,0.3);
}
@media (max-width: 480px) {

  .size-options {
    gap: 8px;
  }

  .size-box {
    min-width: 42px;
    padding: 7px 12px;
    font-size: 13px;
    border-radius: 10px;
  }

}
@media (max-width: 360px) {
  .size-box {
    min-width: 42px;
    padding: 7px 12px;
    font-size: 13px;
  }
}
/* ❌ منع إطار الخطأ من تغليف المقاسات */
.form-group.input-error,
.form-group.error-input {
    border: none !important;
    box-shadow: none !important;
}
.product-name-display {
  color: #444; 
}
