* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}

body {
    
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #1a237e;
}

/* أنماط الهيدر المحدثة */
.header-area {
    background-color: #152058;
    width: 100%;
    position: relative;
    z-index: 1000;
}

.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    flex-direction: row-reverse;
}

.logo-container {
    flex: 1;
    text-align: right;
}

.logo img {
    height: 35px;
    width: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

    transition: background 0.3s;

}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #fff;
}

.lang-btn i {
    font-size: 12px;
    transition: transform 0.3s;
}

.lang-dropdown:hover .lang-btn i {
    transform: rotate(180deg);
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: #fff;
    min-width: 150px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 1;
}

.lang-dropdown:hover .lang-dropdown-content {
    display: block;
}

.lang-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s;
}

.lang-dropdown-content a:hover {
    background: #f5f5f5;
}

.lang-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
}

.user-icon {
    cursor: pointer;
    font-size: 18px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background 0.3s;
}

.user-icon:hover {
    background: #98Afc7;
}

main {
    flex: 1;
    flex-direction: column;
}

/* أضف هذه الأنماط في قسم أنماط الهيدر */
.search-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 20px;
    padding: 5px 15px;
    height: 36px;
    width: 250px;
    transition: all 0.3s;
}

.search-container:focus-within {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}


@media (max-width: 768px) {
    .search-container {
        width: 180px;
    }
}

@media (max-width: 576px) {
    .search-container {
        width: 150px;
        padding: 5px 10px;
    }
}


/* أنماط صفحة المحتوى */
.content-page {
    display: none;
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.content-page.active {
    display: block;
}

.content-page img {
    max-height: 100px;
    margin-bottom: 30px;
}

.content-page h2 {
    color: #152058;
    margin-bottom: 20px;
    font-size: 2rem;
}

.content-page p {
    color: #333;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: right;
}

        /* أنماط السلايدر المعدلة */
        .slideshow {
            overflow: hidden;
            position: relative;
            width: 100%;
            height: 25%;
            min-height: 250px;
            z-index: 1;
        }

        .slideshow-inner {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        .slides {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }

        .slide {
            display: none;
            overflow: hidden;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            opacity: 0;
            transition: opacity 0.5s ease;
        }

        .slide.is-active {
            display: block;
        }

        .slide.is-loaded {
            opacity: 1;
        }

        .slide .image-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 110%;
            background-position: center;
            background-size: cover;
            z-index: 1;
            cursor: pointer;
        }

        /* التعديلات الجديدة للهواتف */
        @media (max-width: 768px) {
            .slide .image-container {
                background-size: contain;
                background-repeat: no-repeat;
                background-position: center;
                background-color: #000;
                width: 100%;
                height: 60vh;
            }
        }
        
        @media (max-width: 480px) {
            .slide .image-container {
                background-size: contain;
                background-repeat: no-repeat;
                background-position: center;
                background-color: #000;
                width: 100%;
                height: 10vh;
            }
        } 
        
        /* .slideshow {
            height: auto;
            min-height: 150px;
            max-height: 250px;
        } */
        
        .slide .title {
            font-size: 1.5rem;
        }
        
        .slide .text {
            font-size: 1rem;
        }
        
        .slide .btn {
            padding: 5px 20px;
            font-size: 1rem;
            margin-top: 15px;
        }
        
        .pagination {
            bottom: 15px;
        }

        .slide .image-container::before {
            content: "";
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        .slide .title {
            margin: 0 auto 15px;
            max-width: 1000px;
            font-size: 2rem;
            font-weight: bold;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        .slide .text {
            margin: 0 auto;
            max-width: 800px;
            font-size: 1.5rem;
            line-height: 1.6;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
            padding: 0 20px;
        }

        .slide .btn {
            margin-top: 30px;
            padding: 6px 30px;
            background-color: #152058;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            font-size: 1.2rem;
            transition: all 0.3s ease;
        }

        .slide .btn:hover {
            background-color: white;
            color: #152058;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

       .pagination {
    position: absolute;
    bottom: 3vh; /* بدلاً من 35px ثابتة */
    left: 0;
    width: 100%;
    height: 1.2vh; /* بدلاً من 12px ثابتة */
    cursor: default;
    z-index: 2;
    text-align: center;
}

.pagination .item {
    display: inline-block;
    padding: 1.5vh 0.5vw; /* بدلاً من 15px 5px ثابتة */
    position: relative;
    width: 4.6vw; /* بدلاً من 46px ثابتة */
    max-width: 46px; /* لمنع التكبير الزائد على الشاشات الكبيرة */
    height: 3.2vh; /* بدلاً من 32px ثابتة */
    cursor: pointer;
    text-indent: -999em;
    z-index: 1;
}

.pagination .item::before {
    content: "";
    display: block;
    position: absolute;
    top: 1.5vh; /* بدلاً من 15px ثابتة */
    left: 0.5vw; /* بدلاً من 5px ثابتة */
    width: 3.6vw; /* بدلاً من 36px ثابتة */
    max-width: 36px; /* لمنع التكبير الزائد */
    height: 0.2vh; /* بدلاً من 2px ثابتة */
    background: rgba(255, 255, 255, 0.5);
    transition: background 0.2s ease;
}

.pagination .item:hover::before,
.pagination .item.is-active::before {
    background-color: #fff;
}

/* Media Queries للتكيف مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .pagination {
        bottom: 2.5vh;
    }
    
    .pagination .item {
        width: 5vw;
        padding: 1.2vh 0.4vw;
    }
    
    .pagination .item::before {
        width: 4vw;
        top: 1.2vh;
    }
}

@media (max-width: 480px) {
    .pagination {
        bottom: 2vh;
        height: 1vh;
    }
    
    .pagination .item {
        width: 6vw;
        padding: 1vh 0.3vw;
    }
    
    .pagination .item::before {
        width: 5vw;
        top: 1vh;
    }
}
.arrows .arrow {
        margin: -3vh 0 0;
    position: absolute;
    top: 50%;
    cursor: pointer;
    z-index: 3;
    background: transparent;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    display: flex;
    font-size: 24px;
    align-items: center;
    justify-content: center;
}

.arrows .arrow:hover {
    background: rgba(255, 255, 255, 0.1);
}

.arrows .arrow svg {
    width: 20px;
}

.arrows .prev {
    left: 2vw;
}

.arrows .next {
    right: 2vw;
}

.arrows .svg {
    position: relative;
    left: 0;
    /* width: 1.5vw;
    height: 3vh; */
    fill: #fff;
    transition: left 0.2s ease;
    width: 20px;
    height: 18px;
}
/* 
.arrows .prev:hover .svg {
    left: -0.7vw;
}

.arrows .next:hover .svg {
    left: 0.7vw;
} */

/* Media Queries for smaller screens */
@media (max-width: 768px) {
    .arrows .arrow {
        padding: 3vw;
    }
    
    .arrows .prev {
        left: 1vw;
    }
    
    .arrows .next {
        right: 1vw;
    }
    
    .arrows .svg {
        width: 3vw;
        height: 4vh;
    }
}

@media (max-width: 480px) {
    .arrows .arrow {
        margin: -4vh 0 0;
        padding: 4vw;
    }
    
    .arrows .svg {
        width: 4vw;
        height: 5vh;
    }
}
        

/* أنماط الأقسام المحدثة */
/* أنماط تبويبات الأقسام المحدثة */
.categories-container {
    text-align: center;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0;
    background: #142058;
        border-top: 1px solid #f2f3f5;
}

.categories-grid {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.category-card {
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    min-width: auto;
    height: auto;
    padding: 18px 20px;
    position: relative;
    transition: all 0.3s;
}

.category-card:hover {
    transform: none;
    box-shadow: none;
}

.category-info {
    padding: 0;
    background: transparent;
    width: auto;
    height: auto;
}

.category-info h3 {
    color: #fff;
    font-size: 1.1rem;
    text-shadow: none;
    font-weight: normal;
    margin: 0;
    transition: all 0.3s;
}

.category-card.active h3 {
    font-weight: bold;
    color: #fff;
}

.category-card.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: #fff;
}

.category-card:hover h3 {
    color: #fff;
}

/* أنماط الفلتر الجانبي */
.filter-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 350px;
    height: 100%;
    bottom: 0;
    background: #fff;
    border: 1px solid #f2f3f5;
    transition: right 0.3s ease;
    z-index: 900;
    padding: 20px 30px;
    overflow-y: auto;
}

.filter-sidebar.active {
    right: 0;
}

.filter-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #152058;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    cursor: pointer;
    z-index: 901;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.filter-toggle-btn i {
    transition: transform 0.3s;
}

.filter-toggle-btn.active i {
    transform: rotate(180deg);
}

.filter-title {
    padding-bottom: 20px;
    color: #152058;
    font-size: 1.2rem;
    text-align: center;
    margin: 0;
    border-bottom: 1px solid #eee;
}

.filter-group {
    margin-bottom: 0;
}

.filter-group-title {
    font-weight: bold;
    margin: 20px 0;
    color: #152058;
    font-size: 16px;
}

.filter-option {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.filter-option input[type="radio"] {
    margin-left: 8px;
}

.price-range-filter {
    margin-top: 15px;
}

.price-range-inputs {
    display: flex;
    gap: 10px;
    flex-direction: column;
    margin-top: 10px;
}

.price-range-inputs input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 10px;
    width: 100%;
    text-align: right;
}

.apply-filter-btn {
    width: 100%;
    padding: 10px;
    background: #152058;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
}

/* أنماط المنتجات المعدلة */
.products-container {
    /* padding: 0px 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%; */
    padding: 30px 0;
        background: #F5F7F9;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    
}

.product-card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: #FFFFFF;
    border: 1px solid #edf0f4;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
       margin: 0 0 10px;
    font-weight: 700;
    color: #152058;
    font-size: 1.2rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
    overflow: hidden;
}

.product-price {
    color: #152058;
    font-weight: bold;
    margin: 10px 0;
    font-size: 1.3rem;
}

.product-description {
    color: #000;
    font-size: 15px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.product-views {
      color: #FFF;
    position: absolute;
    top: 8px;
    right: 8px;
    background: #152058;
    padding: 5px 10px;
    font-size: 14px;
    margin: 0;
    border-radius: 50px;
    display: flex
;
    align-items: center;
    gap: 5px;
}

.product-button {
    background: #152058;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    cursor: pointer;
    border-radius: 10px;
    font-size: 16px;
    transition: background 0.3s;
    pointer-events: auto;
}

.product-button i {
    margin-left: 10px;
}

.product-button:hover {
    background: #152058;
}

/* أنماط السعر على الصورة */
.product-price-overlay {
  
    color: #152058;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

@keyframes flash {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    color: #152058;
    font-size: 1.5rem;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: #152058;
    margin: 15px auto 0;
}

/* أنماط متجاوبة */
@media (max-width: 992px) {
    .slideshow {
        height: 60vh;
    }

    .slide .title {
        font-size: 2.5rem;
    }

    .slide .text {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .slideshow {
        height: 50vh;
        min-height: 350px;
    }

    .slide .title {
        font-size: 2rem;
        padding: 0 20px;
    }

    .slide .text {
        font-size: 1.1rem;
    }

    .slide .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
    .categories-grid {
        justify-content: flex-start;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .filter-sidebar {
        width: 250px;
    }
}

@media (max-width: 576px) {
    .slideshow {
        height: 40vh;
        min-height: 300px;
    }

    .slide .title {
        font-size: 1.5rem;
    }

    .slide .text {
        font-size: 1rem;
        display: none;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        width: 100%;
        right: -100%;
    }

    .filter-sidebar.active {
        right: 0;
    }

    .price-range-inputs {
        flex-direction: column;
        gap: 8px;
    }

}

/* أنماط نافذة التسجيل */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.auth-modal-content {
    background-color: white;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    position: relative;
}

.close-auth-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #152058;
}

.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    border-bottom: 3px solid transparent;
}

.auth-tab.active {
    color: #152058;
    border-bottom-color: #152058;
    font-weight: bold;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background-color: #152058;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.auth-footer {
    text-align: center;
    margin-top: 15px;
}

.auth-link {
    color: #152058;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

/* أنماط شاشة التحميل الجديدة */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #152058;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    margin-top: 15px;
    font-size: 1.2rem;
    color: #152058;
    font-weight: bold;
}

/* أنماط البوب أب الإعلاني المعدل */
.ad-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #152058;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    width: 90%;
    max-width: 500px;
    display: none;
    overflow: hidden;
    animation: fadeIn 0.3s ease-out;
    color: white;
    text-align: center;
    padding: 0;
    border: 3px solid #f8f8f8;
}

.ad-popup.active {
    display: block;
}

.ad-popup-content {
    position: relative;
    padding: 10px;
}

.ad-popup img {
    width: 100%;
    height: auto;
    border-bottom: 3px solid #f8f8f8;
}

.close-ad-popup {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #152058;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    font-weight: bold;
    font-size: 18px;
    border: 2px solid #152058;
}

.ad-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99998;
    display: none;
}

.ad-popup-overlay.active {
    display: block;
}

.ad-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 10px 0;
    color: #fff;
}

.ad-subtitle {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 10px 0;
    color: #ffcc00;
}

.ad-discount {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff5555;
    margin: 10px 0;
}

.ad-date {
    font-size: 1.1rem;
    margin: 10px 0;
    color: #ddd;
}

.ad-period {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 10px 0 20px;
    color: #fff;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.ad-features {
    text-align: right;
    margin: 15px 0;
    padding: 0 15px;
}

.ad-features li {
    margin-bottom: 8px;
    list-style-type: none;
    position: relative;
    padding-right: 20px;
}

.ad-features li:before {
    content: "•";
    color: #ffcc00;
    font-size: 1.5rem;
    position: absolute;
    right: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.ad-button {
    display: inline-block;
    background-color: #ffcc00;
    color: #152058;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    margin: 15px 0;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.ad-button:hover {
    background-color: #ffdd33;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}