@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300&family=Lalezar&display=swap');

.cat-container {
    direction: rtl;
    display: flex;
    flex-wrap: wrap;
    gap:0px ;
    max-width: 100%;
    overflow: hidden;
    padding: 8px;
    padding-top: 24px;
    margin-top: 115px;
    margin-bottom: 0;
    height: 400px;
    overflow-y: scroll;
    border-radius: 10px;
    border: 4px solid rgb(104, 7, 67);
    box-sizing: border-box;
    background: linear-gradient(135deg, #0f0c29, #302b63,rgb(104, 7, 67));

}
.cat-container::-webkit-scrollbar-thumb{
    background: linear-gradient(135deg, #0f0c29, #302b63,rgb(104, 7, 67));
}
.cat{
    max-width: 49%;
    position: relative;
    margin: 0;
    box-sizing: border-box;
}
.custom-border {
    padding: 20px;
    position: relative;
    width: 100%;
    margin: auto; /* إضافة مساحة حول الحاوية */
    border-radius: 10px;
    overflow: hidden; /* تمكين التمرير الأفقي */
    box-sizing: border-box;
    background-color: white;
    height: 100%;
    scroll-behavior: smooth; /* تمرير سلس */
    background: linear-gradient(135deg, #0f0c29, #302b63,rgb(104, 7, 67));
}

.category-title {
    position: absolute;
    top: -15px; /* رفع العنوان أعلى الحاوية */
    right: 50px; /* تعديل المسافة الأفقية */
    background: linear-gradient(135deg, #0f0c29, #302b63,rgb(104, 7, 67));
    padding: 4px 8px; /* حشوة داخلية حول النص */
    font-size: 18px;
    font-weight: bold;
    color: purple;
    z-index: 1;
    border-radius: 5px; /* زوايا دائرية للعنوان */
    box-shadow: 2px 4px 0px wheat; /* تأثير ظل خفيف */
}
.category-title a{
    color: wheat;
}
.product-scroll-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow: hidden; /* تمكين التمرير الأفقي */
    scroll-behavior: smooth;
    width: 100%;
    padding: 10px 0;
    box-sizing: border-box;
}
.product-item {
    display: flex;
    width: calc(20% - 10px);
    min-width: 150px;
    padding: 0px;
    background-color: transparent;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 2px 4px wheat;
    position: relative;
    max-height: 200px;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}
.product-item::-webkit-scrollbar{
    width: 2px;
    height: 5px;
    
 }
 
 .product-item::-webkit-scrollbar-track{
    background-color: transparent;
 }
 
 .product-item::-webkit-scrollbar-thumb{
    background-color: purple;
 }

.product-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 0px;
    background-color: transparent;
}

.product-name {
    margin: 0px;
    color: wheat;
    line-height: 1;
}

.product-price {
    font-size: 16px;
    color: white;
    margin-bottom: 0px;
    direction: ltr;
}
.del {
    font-size: 14px;
    color: red;
}

.product-promo {
    position: absolute;
    transform: rotateZ(-40deg);
    top : 0; left: 0;
    padding:10px 0px;
    border-radius: 50%;
    background-color: rgba(245, 231, 103, 0.5);
    color:rgb(255, 0, 0);
    font-size: 20px;
    direction: ltr;
}
.scroll-left,
.scroll-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 5px;
    opacity: 0.8;
}

.scroll-left {
    left: 5px;
    background-color: #0f0c29;
}

.scroll-right {
    right: 5px;
    background-color: rgb(104, 7, 67);
}

.header-content p{
    max-width: 80%;
    margin: 10px auto;
    line-height: 28px;
    font-size: 24px;
    text-align: center;
    font-family: 'Lalezar', sans-serif;
}
.header-content{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top:100px;
}
.socials{
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 1rem 0;
}


/* تحسين العرض على الشاشات الصغيرة */
@media (max-width: 700px) {
    .cat-container::-webkit-scrollbar-thumb{
        background: linear-gradient(135deg, #0f0c29, #302b63,rgb(104, 7, 67));

    }
    .cat {
        max-width: 100%; /* ملء العرض بالكامل */
        margin: 0;
        margin-top: 8px;
    }
    .custom-border{
        width: 100%;
    }

    .product-item {
        width: calc(50% - 10px); /* عرض أكبر للمنتجات */
    }

    .product-scroll-container {
        overflow: auto; /* تمكين التمرير الأفقي */
        
    }
    .product-scroll-container::-webkit-scrollbar-thumb{
        background-color: transparent;
     }
     .product-item::-webkit-scrollbar-track{
        background-color: transparent;
     }
     
     .product-item::-webkit-scrollbar-thumb{
        background-color: transparent;
     }
}