body {
    direction: rtl; /* دعم اللغة العربية */
    text-align: right;
    margin: 0;
    padding: 0;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "El Messiri", serif;
    font-optical-sizing: auto;
    font-style: normal;
}
.features {
    display: flex;
    justify-content: space-between; /* توزيع العناصر بالتساوي */
    align-items: center; /* محاذاة العناصر عموديًا في الوسط */
}
.features span {
    display: flex;
    align-items: center; /* محاذاة الأيقونة والنص عموديًا في الوسط */
    margin-left: 15px; /* مسافة بين العناصر */
}
.features p {
    margin:0 5px 5px 0; /* مسافة بين الأيقونة والنص */
}
.top-bar {
    background: #f8f9fa;
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}
.top-bar .features span {
    margin-left: 15px;
    display: flexbox;
}
.top-bar .dropdown {
    display: inline-block;
}
.dropdown img {
    width: 20px;
    height: 15px;
    margin-left: 5px;
}
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
}
/* تصميم متجاوب */
@media (max-width: 768px) {
    .top-bar .features span p{
        display: none;
    }
}



/* Navbar */
.container-navbar {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar {
    background-color: rgb(255, 238, 0);
    color: rgb(0, 0, 0);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
/* الأيقونات في أقصى اليسار */
.icons {
    display: flex;
    gap: 20px;
}
.icons a {
    color: rgb(0, 0, 0);
    font-size: 20px;
    text-decoration: none;
}
/* شريط البحث في الوسط */
.search-box {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 5px;
    padding: 5px;
    width: 40%;
}
.search-box input {
    border: none;
    outline: none;
    background: none;
    padding: 5px;
    width: 100%;
}
.search-box button {
    border: none;
    background: none;
    cursor: pointer;
    padding: 5px;
}
.search-box button i {
    color: rgb(0, 0, 0);
}
/* زر القائمة في أقصى اليمين */
.menu-icon {
    display: none; /* يتم إظهاره فقط على الأجهزة الصغيرة */
    font-size: 24px;
    cursor: pointer;
}
/* قائمة الأقسام */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease; /* إضافة تأثير انتقال */
}
.nav-links li a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 16px;
}
/* تصميم متجاوب */
@media (max-width: 768px) {
    .menu-icon {
        display: block; /* إظهار الأيقونة على الأجهزة الصغيرة */
    }
    .nav-links {
        display: none; /* إخفاء القائمة على الأجهزة الصغيرة */
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: #333;
        width: 100%;
        padding: 10px 0;
    }
    .nav-links.active {
        display: flex; /* إظهار القائمة عند النقر على الأيقونة */
    }
    .search-box {
        width: 50%; /* تعديل عرض شريط البحث على الأجهزة الصغيرة */
    }
    .nav-links {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 60px;
        right: -100%;
        background-color: #fff;
        width: 70%;
        height: calc(100vh - 60px);
        padding: 20px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        border-top-left-radius: 100px;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links li {
        padding: 15px;
        border-bottom: 1px solid #eee;
    }
    .nav-links li a {
        color: #333 !important;
        font-size: 18px;
    }
    .menu-icon.active i {
        transform: rotate(90deg);
        color: #000;
    }
}


/*store-name*/
.store-name{
    text-align: center;
    background-color: #f8f9fa;
    font-size: 15px;
    font-weight: 500;
    color: rgb(48, 0, 136);
    font-family: "Orbitron", serif;
    font-optical-sizing: auto;
    font-style: normal;
    margin: 10px;
}
.store-name img{
width: 20px;
}



/*سلايد شو*/
.slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 10px;
}
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: opacity 1s ease-in-out;
    opacity: 0;
}
.slide.active {
    opacity: 1;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/*الكروت المستطيلة*/
.cards-container {
    display: flex;
    gap: 15px;
    padding: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* إخفاء شريط التمرير */
    -ms-overflow-style: none;
}
.cards-container::-webkit-scrollbar {
    display: none;
}
.card {
    flex: 0 0 30%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    scroll-snap-align: start;
    transition: transform 0.3s ease-in-out;
}
.card:hover {
    transform: scale(1.05);
}
.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
/* تصميم متجاوب على الهواتف */
@media (max-width: 768px) {
    .card {
        flex: 0 0 80%;
    }
}



/*قسم المنتجات المميزة*/
.featured-products {
    padding: 50px 20px;
    background-color: #f9f9f9;
}
.section-title {
    font-size: 2em;
    margin-bottom: 50px;
    color: rgb(0, 0, 0);
    border-bottom: 1px solid #000000; /* سمك ولون الخط */
    padding-bottom: 10px; /* تباعد بين النص والخط */
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}
.product-card:hover {
    transform: translateY(-5px);
}
.product-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    border-bottom: 2px solid #eee;
}
.product-info {
    padding: 20px;
    position: relative;
}
.product-category {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 8px;
}
.product-title {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: rgb(0, 3, 196);
    display: -webkit-box;
    -webkit-line-clamp: 2; /* تحديد عدد الأسطر */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3em; /* ارتفاع يحدد عدد السطور */
}
.product-price {
    color: #e91e63;
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
}
.add-to-cart {
    background-color: rgb(255, 238, 0);
    color: black;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s ease;
    margin-left: auto;
}
.add-to-cart:hover {
    background-color: rgb(179, 167, 0);
}
.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff5722;
    color: white;
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 0.8em;
}
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 2em;
    }
}



/* شريط الماركات  */
.brands-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.brands-title {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}
.brands-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0 20px;
}
.brands-scroll::-webkit-scrollbar {
    display: none; /* إخفاء شريط التمرير */
}
.brand-item {
    flex: 0 0 auto;
    margin-right: 20px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}
.brand-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}
.brand-item p {
    font-size: 14px;
    color: #555;
    margin: 0;
}
.scroll-buttons {
    text-align: center;
    margin-top: 10px;
}
.scroll-buttons button {
    background-color: rgb(255, 238, 0);
    color: rgb(0, 0, 0);
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
.scroll-buttons button:hover {
    background-color: rgb(211, 197, 1);
}




/*قسم المنتجات*/
.section-title-p2{
padding: 40px 20px 0px 0;
}
.section-title-p2all {
    display: flex;
    align-items: center; /* محاذاة العناصر عموديًا */
    gap: 10px; /* مسافة بين العنوان والأيقونة */
    font-size: 20px; /* حجم النص */
    font-weight: bold;
}
.section-title-p2all i img{
    padding: 30px 0px 0px 0;
    width: 30px;
}
.products-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
    max-width: 1200px;
    margin: 0px auto;
}
.product-cardss {
    border-radius: 8px;
    padding: 15px;
    transition: 0.3s;
}
.product-header {
    margin-bottom: 10px;
}
.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin: 10px 0;
}
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0px;
}
.product-footer .add-to-cart{
    margin: 0 0px 0 0;
}
/* شاشات متوسطة وكبيرة (768px فما فوق) */
@media (min-width: 768px) {
    .products-container {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* شاشات صغيرة (من 461px إلى 767px) */
@media (min-width: 461px) and (max-width: 767px) {
    .products-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* شاشات صغيرة جدًا (حتى 460px) */
@media (max-width: 460px) {
    .products-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-cardss .product-price{
        font-size: 13px;
    }
    .product-cardss .product-title{
        font-size: 15px;
    }
    .product-cardss .product-category{
        font-size: 10px;
    }
    .product-cardss .add-to-cart{
        font-size: 10px;
        padding:10px;
    }
}



/*الصورة الاعلانية*/
.promo-banner {
    width: 100%;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
}
.banner-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}
@media (max-width: 768px) {
    .banner-image {
        height: 200px;
    }
}



/*اقسام المنتجات*/
.store-section {
    max-width: 1300px;
    margin: 2rem auto;
    padding: 30px 1rem;
}
.section-heading {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}
.section-heading h2 {
    font-size: 1.8rem;
    color: #2a2a2a;
    margin-bottom: 1rem;
}
.category-links {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}
.category-link {
    color: #666;
    text-decoration: none;
    position: relative;
    padding: 0 0.5rem;
}
.category-link:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -0.8rem;
    color: #e0e0e0;
}
.heading-line {
    height: 3px;
    background: #3498db;
    width: 100px;
    margin-top: 1rem;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.product-box {
    display: flex;
    flex-direction: row-reverse;
    gap: 1.5rem;
    align-items: flex-start;
    width: 100%;
}
.product-box:hover {
    transform: translateY(-5px);
}
.item-image {
    width: 210px;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
}
.item-title {
    font-size: 1.0rem;
    color: #333;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* تحديد عدد الأسطر */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3em; /* ارتفاع يحدد عدد السطور */
}
.item-category {
    display: block;
    color: #7f8c8d;
    margin-bottom: 1.2rem;
    font-size:12px;
}
.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.item-price {
    font-size: .9rem;
    color: #e74c3c;
    font-weight: 600;
}
.item-info {
    flex: 1;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.cart-btn {
    background: rgb(255, 238, 0);
    color: rgb(0, 0, 0);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 50px;
}
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .item-image {
        width: 190px;
        height: 220px;
        object-fit: cover;
        border-radius: 6px;
    }
    .item-title {
        font-size: .9rem;
    }
    .item-category {
        font-size:10px;
    }
    .item-price {
        font-size: .7rem;
    }
    .product-box {
        margin-bottom: 1.5rem;
    }
    .category-links {
        flex-wrap: wrap;
    }
    .category-link::after {
        display: none;
    }
}



/* النشرة الاخبارية */
.newsletter-section {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    padding: 40px 20px;
    text-align: center;
    margin: 30px auto;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.newsletter-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}
.newsletter-text h2 {
    color: #fff;
    font-size: 28px;
    margin: 0 0 10px 0;
    font-family: 'Tajawal', sans-serif;
}
.newsletter-text p {
    color: #ecf0f1;
    font-size: 16px;
    margin: 0;
}
.newsletter-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}
.email-input {
    padding: 12px 25px;
    border: 2px solid #fff;
    border-radius: 30px;
    font-size: 16px;
    width: 300px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    transition: all 0.3s ease;
}
.email-input::placeholder {
    color: #bdc3c7;
}
.email-input:focus {
    outline: none;
    background: rgba(255,255,255,0.2);
    border-color: rgb(255, 238, 0);
}
.subscribe-btn {
    background: rgb(255, 238, 0);
    color: rgb(0, 0, 0);
    padding: 12px 35px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}
.subscribe-btn:hover {
    background: rgb(209, 195, 0);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
@media (max-width: 768px) {
    .newsletter-content {
        flex-direction: column;
    }
    .email-input {
        width: 100%;
    }
}



.footer {
    background: #f1f1f1;
    color: rgb(0, 0, 0);
    padding: 40px 20px;
    margin-top: 50px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}
.footer-right {
    flex: 1;
    min-width: 250px;
    text-align: right;
}
.footer-right img {
    max-width: 150px;
    margin-bottom: 20px;
}
.footer-right h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #000000;
}
.footer-right p {
    color: #575656;
    margin: 5px 0;
}
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.social-icons a {
    color: rgb(255, 0, 0);
    font-size: 20px;
    transition: color 0.3s ease;
}
.social-icons a:hover {
    color: rgb(202, 189, 0);
}
.footer-left {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.footer-section {
    flex: 1;
    min-width: 150px;
}
.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #000000;
    border-bottom: 2px solid #575656;
    padding-bottom: 10px;
}
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-section ul li {
    margin-bottom: 10px;
}
.footer-section ul li a {
    color: #575656;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-section ul li a:hover {
    color: rgb(255, 238, 0);
}
        /* حقوق النشر وطرق الدفع */
        .footer-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 40px;
            padding-top: 20px;
            border-top: 1px solid #575656;
        }
        .copyright {
            color: #575656;
            font-size: 14px;
        }
        .payment-icons {
            display: flex;
            gap: 15px;
            align-items: center;
        }
        .payment-icons img {
            width: 30px;
            filter: grayscale(1);
            transition: all 0.3s ease;
        }
        .payment-icons img:hover {
            filter: grayscale(0);
            transform: translateY(-2px);
        }
@media (max-width: 768px) {
    .footer-right img {
        max-width: 190px;
        margin: 0px 0 20px 0;
    }
    .footer-right {
        text-align: center;
    }
    .footer-left {
        flex-direction: column;
        align-items: center;
    }
    .footer-section {
        width: 100%;
        text-align: center;
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
    .payment-icons {
        order: -1;
        margin-bottom: 15px;
    }
}






