@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300..900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Zain:wght@200;300;400;700;800;900&display=swap');


* {
    font-family: "Rubik", sans-serif;
    box-sizing: border-box;
    background-repeat: no-repeat;
    background-size: cover;
}
body {
    /* overflow-x: hidden; */
    /* display: flex; */
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    /* background-image: #121212; */
    background-color: transparent;
    background-image: radial-gradient(#ffffff 1px, #e4e4e494 1px);
    /* background-image: radial-gradient(#000000 1px, #e5e5f7 1px); */
}


/* تخصيص الشريط */
::-webkit-scrollbar {
    width: 8px; /* عرض الشريط العمودي */
    height: 8px; /* عرض الشريط الأفقي */
}

  /* تخصيص المسار (الخلفية) */
::-webkit-scrollbar-track {
    background: #e0e0e071; /* لون الخلفية */
    border-radius: 10px; /* زوايا دائرية */
    box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.1); /* ظل داخلي خفيف */
}

  /* تخصيص المقبض (المتحرك) */
::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff6b6b, #f06595); /* لون متدرج للمقبض */
    border-radius: 10px; /* زوايا دائرية للمقبض */
    box-shadow: inset 0px 0px 5px rgba(0, 0, 0, 0.2); /* ظل داخلي لتمييز المقبض */
}

  /* تخصيص المقبض عند التحويم */
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff6b6b, #d6336c); /* لون متدرج داكن عند التحويم */
}



@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px); /* يمكن تعديل القيمة لجعل الحركة تظهر من الأسفل */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
#scrollToTopBtn {
    width: 3.5rem;
    display: none; /* الإخفاء الافتراضي */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    border: none;
    outline: none;
    background-color: #5372f088;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.5rem;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.23);
    opacity: 0; /* يبدأ مخفيًا */
    transition: background-color 1s, opacity 1s; /* تأثير الانتقال */
}
#scrollToTopBtn.show {
    display: block;
    animation: fadeIn 1s forwards; /* تطبيق التأثير */
}



/* photo-prev */
.prev-photo img{
    width: 100%;
}








/* slaider photo */
.wrapper .carousel {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1%;
    margin: auto;
    justify-content: center;
    align-items: center;
}
/* .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 350px;
    border-radius: 0.5rem;
    background-color: #fff;
    border: 1px solid transparent;
    padding: 0.4rem;
    gap: 0.5rem;
}
.image-store {
    width: 90%;
    text-align: center;
}
.image-store img{
    width: 100%;
    text-align: center;
    border-radius: 0.4rem;
}
.link-to-store p{
    display: flex;
    align-items: center;
    gap: 10%;
    justify-content: center;
}
.link-to-store {
    gap: 15%;
}
.store-link {
    text-decoration: none;
}
.store-link button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    gap: 8px; 
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background: linear-gradient(45deg, #ff6c00, #ff4500);
    border: none;
    border-radius: 30px; 
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08); 
    transition: all 0.3s ease; 
    margin: 0 auto;
    margin-bottom: 5%;
    margin-top: 5%;
}
.store-link button:hover {
    transform: translateY(-3px); 
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(0, 0, 0, 0.15); 
}
.store-link button i {
    font-size: 18px;
}
.job-store{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.job-store p{
    background: #3decac65;
    padding: 0.4rem 1rem;
    border-radius: 1rem;
} */








.card {
    width: 100%;
    max-width: 350px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}
.image-store img {
    width: 100%;
    border-bottom: 5px solid #ced4da;
}
.link-to-store {
    padding: 20px;
    text-align: center;
    font-family: 'Arial', sans-serif;
}
.store-link button {
    background: linear-gradient(45deg, #007bff, #6610f2);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.store-link button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}
.store-link button {
    width: 65%;
    background: linear-gradient(45deg, #007bff, #6610f2);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.job-store p i{
    background: linear-gradient(45deg, #007bff90, #6710f290);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.job-store{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    gap: 10%;
}
.job-store p{
    width: calc((100% / 3) - 2rem);
    min-width: 45px;
    display: flex;
    align-items: center;
    flex-direction: column;
    margin: 1%;
    gap: 0.8rem;
    color: #0058b6;
    font-weight: 800;
}






@media (max-width: 768px) {
    .job-store {
        justify-content: center; /* توسيط العناصر */
        gap: 1rem; /* تقليل المسافات بين البطاقات */
    }

    .card {
        width: 100%; /* عرض البطاقتين لكل صف */
    }

    .store-link button {
        padding: 8px 16px; /* تصغير حجم الزر */
        font-size: 12px; /* تصغير النص داخل الزر */
    }

    .store-link button i {
        font-size: 14px; /* تصغير حجم الأيقونة */
    }
}
@media (max-width: 747px) {
    .card {
        width: 100%; /* بطاقة واحدة لكل صف */
    }
    .wrapper .carousel {
        gap: 1rem;
    }
}
@media (max-width: 730px) {
    .wrapper .carousel {
        gap: 0.5rem;
    }
}
@media (max-width: 723px) {
    .card {
        width: 31vw;
        padding: 0.2rem;
        gap: 2rem;
    }
    .job-store {
        justify-content: center;
        gap: 5%;
    }
}
@media (max-width: 624px) {
    .card {
        width: 40vw;
        padding: 0.2rem;
        gap: 1rem;
    }
    .job-store {
        justify-content: center;
        gap: 2%;
    }
    .job-store p{

        padding: 3%;
        margin: 2%;
        font-size: 0.9rem;
    }
    .job-store p i{
        padding: 5px 10px;
    }
}
@media (max-width: 524px) {
    .store-link button {
        width: 90%;
    }
}



/* General Styling */
.container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    margin: 20px;
}
.filter-section {
    width: 100%;
    background-color: #f9f9f9;
    padding: 20px;
    border: 2px solid #ddd; /* حدود خفيفة */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* ظل خفيف */
    margin: 0 auto;
}

/* Sidebar Filter Styles */
.filter-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #333;
}
.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
}
.filter-btn {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: #555;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}
.filter-btn:hover {
    background-color: #f0f0f0;
    border-color: #007bff;
    color: #007bff;
}
.filter-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}








.filter-btn {
    border: none;
    background: transparent;
    padding: 5px;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s;
  }
  
  .filter-btn img {
    width: 5rem;
    height: 5rem;
  }
  
  .filter-btn.active {
    border: 2px solid #007bff; /* إطار لتحديد الزر النشط */
    border-radius: 10px;
    transform: scale(1.1); /* تكبير الزر النشط قليلاً */
  }
  
  .filter-btn.active {
    animation: bounce 0.3s;
  }
  
  @keyframes bounce {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.2);
    }
    100% {
      transform: scale(1.1);
    }
  }
  
























/* Popup Overlay */
/* Popup Modal */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: #fff;
    padding: 20px;
    width: 100%;
    max-width: 70vw;
    display: flex;
    gap: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.popup-body {
    display: flex;
    width: 100%;
    gap: 20px;
    align-items: center;
}

.product-image img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.product-details {
    flex: 1;
}

.product-details h4 {
    font-size: 24px;
    margin-bottom: 10px;
}

.product-details p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: #ff4500;
    margin-bottom: 20px;
}

.buy-now {
    padding: 12px 24px;
    background-color: #ff4500;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.buy-now:hover {
    background-color: #e63900;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
}

.close-btn:hover {
    color: #ff4500;
}









        /* Style for the old price with line-through */
        .old-price {
            text-decoration: line-through;
            color: #999;
            margin-right: 10px;
            font-size: 16px;
        }
        
        /* Style for the new price */
        #popup-price {
            color: #28a745;
            font-size: 20px;
            font-weight: bold;
        }
        
        /* Popup style */
        .popup {
            display: none; /* Hidden by default */
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5); /* Black background with transparency */
            z-index: 1000;
        }
        
        .popup-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 20px;
            border-radius: 8px;
            width: 100%;
            max-width: 70vw;
            height: 98vh
        }
        
        .close-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 50px;
            cursor: pointer;
            color: #333; /* Color for the close button */
            background: none; /* Transparent background */
            border: none;
        }
        
        /* Optional: Style for the popup links (now as images) */
        .product-links {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
            justify-content: center;
        }
        
        .product-links .link-img {
            width: 150px;
            height: 80px;
            border-radius: 8px;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        
        .product-links .link-img:hover {
            transform: scale(1.1);
        }

        #popup-description ul {
            list-style-type: disc;
            margin: 3px 23px 34px 20px;
            padding: 0;
          }
          #popup-description ul li {
            margin-bottom: 5px;
          }
          
        



        @media (max-width: 958px) {
            .popup-body {
                display: flex;
                width: 100%;
                gap: 20px;
                align-items: center;
                flex-direction: column;
            }
            .product-image img {
                max-width: 200px;
                width: 100%;
                height: auto;
                border-radius: 10px;
            }
            .product-links .link-img {
                width: 100px;
                height: 50px;
            }
            .popup-content {
                width: 90%;
                padding: 15px;
            }
        
            .product-details {
                font-size: 14px;
                display: flex;
                flex-direction:column;
            }
        
            .product-links .link-img {
                width: 90px;
                height: 50px;
            }
        
            .close-btn {
                font-size: 20px;
            }
        
            .price {
                font-size: 16px;
            }
        }
        @media (max-width: 624px) {
            .popup-body {
                display: flex;
                width: 100%;
                gap: 10px;
                align-items: center;
                flex-direction: column;
            }
            .product-details p {
                margin-bottom: 5px;
                margin-top: 0;
            }
            .price {
                margin-bottom: 5px;
            }
            .product-details h4 {
                margin-bottom: 4px;
                margin-top: 0;
            }
            #popup-description ul{
                list-style-type: disc;
                margin: 0px 23px 0px 20px;
            }
            #popup-description ul li{
                margin: 0;
            }
        }
        @media (max-width: 480px) {
            .popup-content {
                width: 95%;
                padding: 10px;
            }
        
            .product-details {
                font-size: 12px;
            }
        
            .product-links .link-img {
                width: 90px;
                height: 50px;
            }
        
            .close-btn {
                font-size: 18px;
            }
        
            .price {
                font-size: 14px;
            }
        }
        @media (max-width: 443px) {
            .product-image img {
                max-width: 100px;
                width: 100%;
            }
        }












.product-section {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px;
    justify-content: flex-start;
}

.product-card {
    width: calc(33.33% - 20px);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0px 0px 17px 10px rgba(0, 0, 0, 0.027);
    /* border: 1px solid #00000023; */
}

.product-card h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.product-card p {
    font-size: 14px;
    margin-bottom: 10px;
    color: #666;
}

.product-card .price {
    font-size: 18px;
    font-weight: bold;
    color: #ff4500;
    margin-bottom: 15px;
}

.product-card .add-to-cart {
    background-color: #ff4500;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.product-card .add-to-cart:hover {
    background-color: #e63900;
}
.filter-section>div{
    position: sticky;
    top: 1rem; 
    z-index: 1000;
}

.price {
    font-size: 18px;
    color: #007bff;
    font-weight: bold;
  }
  
  .old-price {
    text-decoration: line-through;
    color: #888;
    margin-right: 10px;
  }
  
  .new-price {
    color: #f44336; /* اللون الأحمر لتمييز السعر الجديد */
  }
  




@media (max-width: 768px) {
    .filter-section {
        width: 90vw;
        margin-bottom: 20px;
    }

    .product-section {
        width: 100%;
        justify-content: center;
    }

    .product-card {
        width: calc(50% - 20px);
    }


}

@media (max-width: 480px) {
    .product-card {
        width: 100%;
    }
} 


/* إخفاء الروابط داخل بطاقة المنتج */
.product-links {
    display: none;
  }
  
  /* إظهار الروابط داخل الـ popup */
  .product-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
  }
  
  .product-links a img {
    width: 80px;
    height: 80px;
    border: 1px solid #ccc;
    transition: transform 0.3s;
  }
  
  .product-links a img:hover {
    transform: scale(1.1);
  }
  













/* font */
#popup-description ul ,#popup-description ul li, #popup-description{
    font-family: "Zain", serif;
    font-weight: 600;
}
#popup-description ul {
    color: #0058b6;
}
#popup-description ul li{
    color: #000;
}