

.ll {
    max-width: 1280px; /* حداکثر عرض */
    width: 100%; /* عرض پویا به اندازه ۹۰ درصد صفحه */
    margin: 0 auto; /* وسط‌چین کردن افقی */
    position: relative;
}

img {
    /* max-width: 100%; */
    height: auto;
    display: block;
}

body {
    overflow-x: hidden;
    overflow-y: hidden;
    background-color: #fffcf9;
    margin: 0;
    font-family: Dana, sans-serif;
    direction: rtl;
}

/********************************************************main**************************************************************************/

.breadcrumb1 {
    font-family: DanaFaNum, sans-serif;
    font-size: 14px;
    text-align: center;

}

.hairlisting {
    font-family: DanaFaNum, sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #424242;
    text-align: center;
}

.rectangle10 {
    display: grid;
    grid-template-columns: repeat(3, 0.12fr);
    gap: 20px;
    margin-top: -630px;
    margin-right: 299px;
}

.card1 {
    position: relative;
    width: 315px;
    height: 417px;
    border-radius: 20px;
    background-color: #ffffff;
    margin-right: 5%;
    overflow: visible;
    border: 1px solid #e6e1e1;
}

.card__image {
    width: 299px;
    height: 155px;
    border-radius: 8px;
    margin-top: 9px;
    margin-right: 7px;
    position: relative;
    z-index: 2;
}

.smallcardman_image {
    width: 58px;
    height: 26px;
    gap: 2px;
    border-radius: 8px;
    background-color: #366771b2;
    position: absolute;
    z-index: 3;
    margin-top: 15px;
    margin-right: 17px;
}

.smallcardman_image img {
    width: 10.53px;
    height: 16px;
    float: right;
    margin-right: 5px;
    margin-top: 3px;
}

.smallcardman_image p {
    font-family: DanaFaNum, sans-serif;
    font-size: 14px;
    color: #f9f9f9;
    padding-right: 19px;
    padding-top: 1px;
}

.smallcardwoman_image {
    width: 58px;
    height: 26px;
    gap: 2px;
    border-radius: 8px;
    background-color: #c6922b99;
    position: absolute;
    z-index: 3;
    margin-top: 15px;
    margin-right: 17px;
}

.smallcardwoman_image img {
    width: 10.53px;
    height: 16px;
    float: right;
    margin-right: 5px;
    margin-top: 3px;
}

.smallcardwoman_image p {
    font-family: DanaFaNum, sans-serif;
    font-size: 14px;
    color: #f9f9f9;
    padding-right: 24px;
    padding-top: 2px;
}

.card h3 {
    font-family: DanaFaNum, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #37474f;
    margin-top: 12px;
    margin-right: 10px;
}
.namehiardress {
    font-family: DanaFaNum, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #37474f;
    margin-top: 12px;
    margin-right: 10px;
}

.smallcard1_image {
    position: absolute;
    z-index: 3;
    width: 70px;
    height: 24px;
    background-color: #d8a94c;
    border-radius: 4.67px;
    padding: 4px 8px;
    margin-right: 10px;
    margin-top: 5px;
}

.smallcard1_image p {
    font-family: DanaFaNum, sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #ffffff;
}

.card__meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 10%;
    margin-right: 9px;
}

.smallcard2_image,
.smallcard3_image,
.smallcard4_image {
    display: flex; /* قرارگیری آیتم‌ها در یک خط */
    align-items: center; /* وسط‌چین عمودی */
    gap: 8px; /* فاصله بین آیکون و متن */
    padding-top: 13px;
}

.card__meta img {
    width: 16px;
    height: 16px;
}

.card__meta p {
    font-family: DanaFaNum, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #546e7a;
}

.card__services {
    display: grid;
    grid-template-columns: repeat(3, 0.1fr);
    margin-top: 7%;
    margin-right: 10px;
    gap: 8px;
}

.card__service-tag {
    height: 32px;
    border-radius: 8px;
    background-color: #deedec;
    padding: 7px;
}

.card__service-tag p {
    font-family: DanaFaNum, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #1d404c;
    text-align: center;
    white-space: nowrap;
}

.rectangle20 {
    margin-top: 3%;
    margin-right: -431px;
}

.search-box {
    width: 326px;
    height: 64px;
    border-radius: 10px;
    border-style: solid;
    border-color: #f3f3f3;
    background-color: #ffffff;
    margin-right: 410px;
    display: flex;
    align-items: center; /* عمودی وسط‌چین */
    justify-content: center; /* افقی وسط‌چین */
    position: relative; /* برای موقعیت‌دهی مطلق متن */
}

.search-box img {
    width: 30px;
    height: 30px;
}
.search-box form {
    display: flex;
    align-items: center; /* برای تراز عمودی */
    flex-direction: row; /* عناصر در یک ردیف */
}
.search-button1 {
    outline: none;
    border: none;
    background: none;
    background-color: transparent;
    padding: 0;
    cursor: pointer;
    box-shadow: none;
}
.search-box input {
    font-family: DanaFaNum, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #999999;
    margin: 0 30px 0 15px;
    text-align: center;
    white-space: nowrap;
        /* حذف حاشیه */
    outline: none;
    border: none;
}


.search-box span {
    margin-right: -62px;
    display: flex;
    gap: 9px;
}

.filters-panel {
    width: 326px;
    height: 554px;
    border-radius: 16px;
    border-color: #f3f3f3;
    background-color: rgb(255, 255, 255);
    border-style: solid;
    margin-right: 410px;
    margin-top: 10px;
}

.filters-container {
    display: none;
}

.filters-toggle-button {
    display: none;
    font-family: DanaFaNum, sans-serif;
    font-size: 16px;
    background-color: #ffffff;
    color: #c6922b;
    border: 1px solid #c6922b;
    border-radius: 10px;
    padding: 10px 32px;
    cursor: pointer;
    margin: 24px auto 0 auto; /* بالا auto پایین auto */
    text-align: center;
}

.filters-toggle-button img {
    width: 20px;
    height: 20px;
    display: inline;
}

.filter-toggle-button img {
    display: inline;
}

.filter-toggle-button {
    width: 79px;
    height: 40px;
    border-radius: 8px;
    gap: 4px;
    background-color: #468189;
    border: 1px solid #468189;
    color: #ffffff;
    display: none;
    font-family: DanaFaNum, sans-serif;
    font-size: 16px;
    padding: 10px 32px;
    cursor: pointer;
    margin: 24px auto 0 auto; /* بالا auto پایین auto */
    text-align: center;
}

.close-btn {
    display: none;
    margin-top: 10px;
    margin-right: 230px;
}

.filters-panel__header {
    display: grid;
    grid-template-columns: repeat(2, 0.46fr);
    margin-right: 7%;
    margin-top: 6%;
}

.filters-panel__title {
    font-family: DanaFaNum, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #263238;
    text-align: right;
    white-space: nowrap;
}

.filters-panel__clear {
    font-family: DanaFaNum, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #ff5454;
    text-align: left;
    white-space: nowrap;
}

.filters-panel__category {
    margin-bottom: 8px;
}

.filters-panel__group {
    margin-top: 5%;
}

.filters-panel__option {
    padding: 14px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    user-select: none;
    color: inherit;
}

.filters-panel__option span {
    font-family: DanaFaNum, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #263238;
}

.filters-panel__arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.filters-panel__sub-options {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-right: 16px;
}

.filters-panel__category.active .filters-panel__sub-options {
    max-height: 500px;
}

.filters-panel__category.active .filters-panel__arrow {
    transform: rotate(180deg);
}

.filters-panel__sub-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.filters-panel__checkbox {
    accent-color: #d8a94c;
    width: 20px;
    height: 20px;
}

.filters-panel__sub-option label {
    cursor: pointer;
    font-size: 14px;
    font-family: DanaFaNum, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #37474f;
}

.filters-panel__sub-option--selected {
    position: relative;
    padding-right: 25px;
}

.filters-panel__remove-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #f44336;
    cursor: pointer;
    font-size: 14px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filters-panel__sub-option--selected .filters-panel__checkbox {
    opacity: 0;
    position: absolute;
}

/***/
.custom-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    direction: rtl;
    font-family: DanaFaNum, sans-serif;
    margin-top: 4%;
}

.pagination-arrow {
    width: 43px;
    height: 40px;
    border-radius: 6.67px;
    border: 1px solid #cfcfcf;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
}

.page-box {
    width: 43px;
    height: 40px;
    border-radius: 6.67px;
    border: 1px solid #cfcfcf;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 22px;
}

.page-box.active,
.page-box:hover {
    background-color: #c6922b26; /* #C6922B26 */
    border-color: #c6922b;
    color: #c6922b;
}

.page-dots {
    width: 43px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-pagination img {
    width: 24px;
    height: 24px;
}

hr {
    width: 382px;
    height: 0px;
    border: 1px;
    color: #ebebeb;
}

.filters-panel__buttons {
    display: flex;
    justify-content: center; /* یا space-between یا gap برای فاصله */
    gap: 12px; /* فاصله بین دکمه‌ها */
    margin-top: 50%;
}

.filter-apply-button {
    display: none;
    width: 157px;
    height: 42px;
    border-radius: 9px;
    border-color: #d8a94c;
    background-color: #d8a94c;
    color: rgb(255, 255, 255);
    font-size: 18px;
    font-family: DanaFaNum, sans-serif;
    font-weight: 400;
}

.filter-clear-button {
    display: none;
    width: 157px;
    height: 42px;
    border-radius: 9px;
    border: 1px solid #ff5454;
    background-color: #ffffff;
    color: #ff5454;
    font-size: 18px;
    font-family: DanaFaNum, sans-serif;
    font-weight: 400;
}

.close-btn {
    display: none;
    width: 16px;
    height: 16px;
    margin-top: 4px;
}

@media (max-width: 480px) {
    .breadcrumb1 {
        text-align: center;
    }
    .rectangle10 {
        grid-template-columns: 1fr; /* کارت‌ها زیر هم */
        margin-top: 0;
        margin-right: 0;
        width: 100%; /* میتونی این رو تغییر بدی */
        max-width: 350px; /* محدود کردن عرض برای وسط چین شدن */
        margin-left: auto;
        margin-right: auto; /* وسط چین کردن افقی */
    }

    .card1 {
        width: 100%;
        max-width: 315px; /* عرض کارت */
        margin-right: 0;
    }
    .card__image {
        width: 95%;
    }
    /* وضعیت پیش‌فرض: مخفی شده سمت راست */
    .filters-panel {
        position: fixed;
        top: 0;
        right: -200%; /* بیرون از صفحه */
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background-color: #fff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
    }

    /* زمانی که اکتیو میشه: وارد از سمت راست */
    .filters-panel.active {
        right: 0;
    }

    .search-box {
        width: 90%;
    }

    /* استایل پایه برای دکمه‌ها */
    .filters-container {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        justify-content: flex-end;

    }

    .filters-toggle-button,
    .filter-toggle-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 4px;
    }

    .filters-toggle-button img {
        width: 16px;
        height: 16px;
        object-fit: contain;
    }

    .filter-toggle-button img {
        width: 9px;
        height: 9px;
        object-fit: contain;
    }

    .filters-toggle-button p,
    .filter-toggle-button p {
        margin: 0;
        font-size: 14px;
    }

    /****/
    .filters-toggle-button {
        width: auto;
        padding: 10px 24px;
        display: block;
    }

    .filters-toggle-button p {
        display: inline;
    }

    .filters-toggle-button {
        display: flex;
        flex-wrap: wrap;
        gap: 8px; /* فاصله بین دکمه‌ها */
        align-items: center; /* برای تراز عمودی دکمه‌ها */
        /* وضعیت پیش‌فرض: مخفی شده سمت راست */
    }

    .filters-toggle-button p {
        display: inline;
    }

    .filters-panel {
        width: 90%;
    }

    .filters-panel {
        margin-right: -2px;
        margin-top: -8px;
    }

    .custom-pagination {
        margin-bottom: 145px;
    }

    .filter-apply-button {
        display: block;
    }

    .filter-clear-button {
        display: block;
    }

    .filters-panel__clear {
        display: none;
    }

    .close-btn img {
        display: block;
        width: 16px;
        height: 16px;
        margin-top: 4px;
    }

    .close-btn {
        display: block;
    }
}

@media (max-width: 900px) {
    .breadcrumb1 {
        text-align: center;
    }
    .rectangle10 {
        grid-template-columns: 1fr; /* کارت‌ها زیر هم */
        margin-top: 0;
        margin-right: 0;
        width: 100%; /* میتونی این رو تغییر بدی */
        max-width: 350px; /* محدود کردن عرض برای وسط چین شدن */
        margin-left: auto;
        margin-right: auto; /* وسط چین کردن افقی */
    }

    .card1 {
        width: 100%;
        margin-right: 0;
    }

    .filters-toggle-button {
        display: block;
        margin-right: 28%;
        margin-top: 25px;
        margin-bottom: 16px;
    }

    .filters-toggle-button p {
        display: inline;
    }

    .filters-toggle-button {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px; /* فاصله بین دکمه‌ها */
        align-items: center; /* برای تراز عمودی دکمه‌ها */
        /* وضعیت پیش‌فرض: مخفی شده سمت راست */
    }

    .filters-toggle-button p {
        display: inline;
    }

    /* استایل پایه برای دکمه‌ها */
    .filters-container {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        justify-content: flex-end;
    }

    .filters-toggle-button,
    .filter-toggle-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 4px;
    }

    .filters-toggle-button img {
        width: 16px;
        height: 16px;
        object-fit: contain;
    }

    .filter-toggle-button img {
        width: 9px;
        height: 9px;
        object-fit: contain;
    }

    .filters-toggle-button p,
    .filter-toggle-button p {
        margin: 0;
        font-size: 14px;
    }

    /****/
    .filters-panel {
        position: fixed;
        top: 0;
        right: -200%; /* بیرون از صفحه */
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background-color: #fff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
    }

    /* زمانی که اکتیو میشه: وارد از سمت راست */
    .filters-panel.active {
        right: 0;
    }

    .rectangle20 {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center; /* تمام فرزندان وسط‌چین افقی */
        margin: 0 auto;
    }

    .search-box {
        margin: 0 auto;
        margin-top: 16px;
    }

    .filters-panel {
        width: 90%;
    }

    .filters-panel {
        margin-right: -2px;
        margin-top: -8px;
    }

    .custom-pagination {
        margin-bottom: 145px;
    }

    .filter-apply-button {
        display: block;
    }

    .filter-clear-button {
        display: block;
    }

    .filters-panel__clear {
        display: none;
    }

    .close-btn img {
        display: block;
        width: 16px;
        height: 16px;
        margin-top: 4px;
    }

    .close-btn {
        display: block;
    }
}

/********************************************************footer***********************************************************************/
