body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;

}

.small.text-muted {
    display: none;
}

.pagination-container {
    width: 100%;
}

ul.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.pagination .page-link {
    color: #d79130;
    /* Default color for links */
    background-color: #f8f9fa;
    /* Background color */
    border-color: #dee2e6;
    /* Border color */
}

.pagination .page-item.active .page-link {
    background-color: #d79130;
    /* Active link background */
    border-color: #d79130;
    /* Active link border */
    color: white;
    /* Active link text color */
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    /* Disabled link color */
    background-color: #fff;
    /* Disabled link background */
    border-color: #dee2e6;
    /* Disabled link border */
}

.for-sale-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    /* لون خلفية */
    color: #d79130;
    /* لون النص */
    font-weight: bold;
    padding: 5px 10px;
    border: 1px solid #d79130;
    /* إطار */
    border-radius: 5px;
    z-index: 10;
    font-size: 14px;
}

.status-badge.not {
    background-color: red;
    /* لون النص */
}


.card img {
    height: 100%;
}


#time-range {
    width: 90%;
    /* عرض مناسب للشاشات الصغيرة */
    max-width: 600px;
    /* الحد الأقصى للعرض */
    margin: 0 auto;
    color: #d79130;
    font-weight: 300;
    text-align: center;
    /* توسيط النصوص */
}

.slider-time,
.slider-time2 {
    font-weight: 400;
    font-size: 1rem;
    /* حجم النص المناسب */
}

.flat-slider.ui-corner-all,
.flat-slider .ui-corner-all {
    border-radius: 0;
}

.flat-slider.ui-slider {
    border: 0;
    background: black;
    border-radius: 6px;
}

.flat-slider.ui-slider-horizontal {
    height: 4px;
}

.flat-slider.ui-slider-vertical {
    height: 15em;
    width: 6px;
}

.flat-slider .ui-slider-handle {
    width: 22px;
    height: 22px;
    background: #d79130;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

.flat-slider.ui-slider-horizontal .ui-slider-handle {
    top: 50%;
    margin-top: -11px;
}

.flat-slider.ui-slider-vertical .ui-slider-handle {
    left: 50%;
    margin-left: -11px;
}

.flat-slider .ui-slider-handle:hover {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
}

.flat-slider .ui-slider-range {
    border: 0;
    border-radius: 6px;
    background: #d79130;
}

.flat-slider.ui-slider-horizontal .ui-slider-range {
    top: 0;
    height: 6px;
}

.flat-slider.ui-slider-vertical .ui-slider-range {
    left: 0;
    width: 6px;
}

.box {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border: 1px solid black;
    border-radius: 3px;
    color: #FFFFFF;
    margin: 12px 4px 8px 4px;
    /* تقليل الهوامش لتناسب الهواتف */
}

@media (max-width: 768px) {

    /* تحسين العرض للشاشات الصغيرة مثل التابلت والهواتف */
    .flat-slider .ui-slider-handle {
        width: 18px;
        height: 18px;
    }

    .flat-slider.ui-slider-horizontal .ui-slider-range {
        height: 4px;
    }

    .box {
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {

    /* تحسين إضافي للهواتف الصغيرة */
    .slider-time,
    .slider-time2 {
        font-size: 0.9rem;
        /* تصغير النصوص */
    }

    .box {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 0.75rem;
    }

    #time-range {
        width: 100%;
        /* ملء العرض */
    }

    .flat-slider.ui-slider-horizontal {
        height: 4px;
        /* تصغير الشريط */
    }
}

.masbaha {
    padding: 20px;
}

@media (max-width: 1024px) {
    .masbaha .row {
        flex-direction: column;
        /* يجعل الأعمدة تظهر تحت بعضها */
    }

    .masbaha .col-md-6 {
        width: 100%;
        /* يجعل العرض كاملاً */
        margin-bottom: 20px;
    }

    .masbaha .image-container {
        text-align: center;
        /* يجعل الصورة في المنتصف */
    }

    .masbaha .custom-text-section {
        text-align: center;
        /* يجعل النصوص في المنتصف */
        padding: 15px;
    }

    .masbaha .btn {
        display: block;
        width: 80%;
        margin: 10px auto;
    }
}

.text-show {
    display: flex;
    justify-content: space-around;
}

.custom-text-section .title {
    display: flex;
    justify-content: center;
}











.container-1 {
    direction: rtl;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.filters {
    padding: 20px;
    width: 300px;
    flex-shrink: 0;
}

.filters h5 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #d0b141;
}

.filters .form-label {
    font-size: 0.9rem;
    color: #d0b141;
    margin-bottom: 5px;
    display: block;
}

.filters .range {
    width: 100%;
    margin-bottom: 15px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 20px;
    width: calc(100% - 330px);
}

@media (max-width: 992px) {
    .cards-container {
        /* grid-template-columns: repeat(2, minmax(200px, 1fr)); */
        width: 100%;
        /* عمودان للشاشات المتوسطة */
    }

    .filters {
        text-align: center;
        width: 100%;
        /* عرض كامل للفلاتر */
    }

    .filters .range {
        width: 75%;
        max-width: 400px;
        margin: 0 auto;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: repeat(2, minmax(200px, 1fr));

    }


    .container-1 {
        flex-direction: column;
        /* ترتيب الفلاتر والكروت بشكل عمودي */
    }

    .filters {
        margin-bottom: 20px;
    }
}

@media (max-width: 450px) {
    .cards-container {
        grid-template-columns: repeat(1, minmax(200px, 1fr));
    }
}

.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #fff;
    position: relative;
    text-align: center;
}

.status-badge,
.product-code,
.btn-info {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.card:hover .status-badge,
.card:hover .product-code {
    opacity: 1;
    transform: translateY(0);
}

.card:hover .btn-info {
    opacity: 1;
    transform: translateY(0);
}

.status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #7bc043;
    color: #fff;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 5px;
    transform: translateY(-10px);
}

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

.product-code {
    background-color: #d0b141;
    color: #000;
    font-weight: bold;
    font-size: 0.9rem;
    margin: 0;
    transform: translateY(-10px);
}

.card-body {
    background-color: #222;
    color: #fff;
    padding: 20px;
}

.card-title {
    font-size: 1rem;
    margin-bottom: 10px;
    color: white;
}

.btn-info {
    background-color: #d0b141;
    color: #000;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
}

.btn-info:hover {
    background-color: #d0b141;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}




.details-section {
    position: relative;
    z-index: 1;
}

.details-table td {
    padding: 10px;
}

.btn-whatsapp {
    background-color: black;
    color: white;
}

.btn-whatsapp:hover {
    background-color: black;
    color: #d0b141;
}

.small-images img {
    width: 70px;
    height: 70px;
    margin-right: 10px;
    cursor: pointer;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    cursor: grab;
    background-color: #f0f0f0;
    border: 3px solid #ccc;
    border-radius: 8px;
    margin-bottom: 20px;
}

.main-image {
    transition: transform 0.3s ease-in-out;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.main-image.zoomed {
    background-size: 200%;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {

    .details-section h2 {
        font-size: 24px;
    }

    .details-table td {
        padding: 8px;
    }

    .main-image-container {
        height: 300px;
    }

    .small-images img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {

    .details-section h2 {
        font-size: 20px;
    }

    .details-table td {
        font-size: 14px;
    }

    .main-image-container {
        height: 250px;
    }

    .small-images img {
        width: 40px;
        height: 40px;
    }

    .col-lg-8,
    .col-lg-4 {
        width: 100%;
    }

    .text-section {
        padding: 10px;
    }
}

.no-products-message {
    padding: 20px;
    background-color: #f8d7da;
    /* Light red background */
    border: 1px solid #f5c6cb;
    /* Red border */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    color: #721c24;
    /* Red color for text */
}

/* Icon style */
.no-products-icon {
    font-size: 48px;
    color: #721c24;
    /* Same red as text */
    margin-bottom: 15px;
}

/* Text style */
.no-products-text {
    font-size: 18px;
    font-weight: bold;
    color: #721c24;
    /* Same red as icon and border */
    margin-top: 0;
    margin-bottom: 0;
}

/* Centering the message container */
.no-products-message {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background-color: #fff5e6;
    border: 1px solid #d79130;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    color: #d79130;
    text-align: center;
    max-width: 500px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* Icon styling */
.no-products-icon {
    font-size: 50px;
    color: #d79130;
    /* Matching the main color */
    margin-bottom: 20px;
}

/* Text styling */
.no-products-text {
    font-size: 18px;
    font-weight: bold;
    color: #d79130;
    /* Matching the main color */
    margin-top: 0;
    margin-bottom: 0;
}