html,
body {
    min-height: 100vh !important;
}

body:not(.wp-admin) {
    display: flex;
    flex-direction: column;
}

body:not(.wp-admin) #vce-main {
    display: flex !important;
    min-height: 100vh !important;
    flex: 1 0 auto;
    flex-direction: column !important;
}

body:not(.wp-admin) #main-wrapper {
    display: flex !important;
    flex: 1 0 auto;
    flex-direction: column !important;
}

body:not(.wp-admin) #main-wrapper > #content {
    flex: 1 0 auto;
    width: 100%;
}

body:not(.wp-admin) #footer {
    margin-top: auto;
    flex-shrink: 0;
}

body:not(.wp-admin) .main-header {
    border-bottom: 1px solid rgba(53, 110, 70, 0.16);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

body:not(.wp-admin),
body:not(.wp-admin) #vce-main,
body:not(.wp-admin) #main-wrapper,
body:not(.wp-admin) #content,
body:not(.wp-admin) .vce-main-content,
body:not(.wp-admin) .entry-content,
body:not(.wp-admin) h1,
body:not(.wp-admin) h2,
body:not(.wp-admin) h3,
body:not(.wp-admin) h4,
body:not(.wp-admin) h5,
body:not(.wp-admin) h6,
body:not(.wp-admin) p,
body:not(.wp-admin) li,
body:not(.wp-admin) a,
body:not(.wp-admin) button,
body:not(.wp-admin) input,
body:not(.wp-admin) select,
body:not(.wp-admin) textarea,
body:not(.wp-admin) .nav-menu a,
body:not(.wp-admin) .site-title,
body:not(.wp-admin) .main-box,
body:not(.wp-admin) .main-box-title,
body:not(.wp-admin) .entry-title,
body:not(.wp-admin) .page-title,
body:not(.wp-admin) .wp-block-cover,
body:not(.wp-admin) .wp-block-cover__inner-container,
body:not(.wp-admin) .woocommerce-loop-product__title,
body:not(.wp-admin) .woocommerce div.product .product_title,
body:not(.wp-admin) .woocommerce div.product .summary,
body:not(.wp-admin) .woocommerce-tabs,
body:not(.wp-admin) .widget,
body:not(.wp-admin) .ketabona-search,
body:not(.wp-admin) .ketabona-featured-books {
    font-family: "Open Sans", Arial, Helvetica, sans-serif !important;
}

body:not(.wp-admin) [lang="ps"],
body:not(.wp-admin) [lang="fa"],
body:not(.wp-admin) [lang="ar"],
body:not(.wp-admin) [dir="rtl"],
body:not(.wp-admin) [dir="rtl"] *,
body:not(.wp-admin) .ketabona-text-rtl,
body:not(.wp-admin) .ketabona-text-rtl * {
    font-family: "Noto Naskh Arabic", "Open Sans", Arial, Helvetica, sans-serif !important;
    font-weight: 400;
}

body:not(.wp-admin) [dir="rtl"],
body:not(.wp-admin) .ketabona-text-rtl {
    direction: rtl;
}

body:not(.wp-admin) .ketabona-text-ltr {
    direction: ltr;
}

body:not(.wp-admin) .widget_product_categories ul,
body:not(.wp-admin) .widget_product_categories .product-categories {
    display: grid;
    gap: 0;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

body:not(.wp-admin) .widget_product_categories .cat-item {
    margin: 0 !important;
    border: 0 !important;
    line-height: 1.35;
}

body:not(.wp-admin) .widget_product_categories .children,
body:not(.wp-admin) .widget_product_categories ul ul {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

body:not(.wp-admin) .widget_product_categories .cat-item a {
    display: block;
    padding: 8px 0;
    border: 0 !important;
    border-bottom: 1px solid #ecefe8 !important;
    color: #5e6a58;
    line-height: 1.35;
    text-decoration: none;
}

body:not(.wp-admin) .widget_product_categories .cat-item:last-child,
body:not(.wp-admin) .widget_product_categories .cat-item:last-child a {
    border-bottom: 0 !important;
}

body:not(.wp-admin) .widget_product_categories .cat-item::before,
body:not(.wp-admin) .widget_product_categories .cat-item::after,
body:not(.wp-admin) .widget_product_categories .children::before,
body:not(.wp-admin) .widget_product_categories .children::after {
    display: none !important;
}

body:not(.wp-admin) .widget_categories .cat-item a {
    text-decoration: none;
}

body:not(.wp-admin) .widget_product_categories .cat-item a:hover,
body:not(.wp-admin) .widget_product_categories .cat-item a:focus {
    color: #6eaa3d;
}

body:not(.wp-admin) .vce-post .entry-title,
body:not(.wp-admin) .vce-post .entry-title a,
body:not(.wp-admin) .vce-post .entry-content,
body:not(.wp-admin) .vce-post .entry-summary,
body:not(.wp-admin) .vce-post .entry-content p,
body:not(.wp-admin) .vce-post .entry-summary p,
body:not(.wp-admin) .vce-related-box .entry-title,
body:not(.wp-admin) .vce-related-box .entry-title a,
body:not(.wp-admin) .vce-related-box .entry-content,
body:not(.wp-admin) .vce-related-box .entry-summary {
    unicode-bidi: isolate;
    text-align: center;
}

body:not(.wp-admin) .comment-content,
body:not(.wp-admin) .comment-content p,
body:not(.wp-admin) .comment-body p,
body:not(.wp-admin) .comment-text .description,
body:not(.wp-admin) .comment-text .description p,
body:not(.wp-admin) .woocommerce-Reviews .description,
body:not(.wp-admin) .woocommerce-Reviews .description p {
    unicode-bidi: isolate;
    text-align: center;
}

body:not(.wp-admin) .comment-list .comment-body,
body:not(.wp-admin) .comments-holder .comment-body {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

body:not(.wp-admin) .comment-list li.comment,
body:not(.wp-admin) .comments-holder li.comment {
    text-align: center;
}

body:not(.wp-admin) .comment-list .avatar,
body:not(.wp-admin) .comments-holder .avatar {
    position: static !important;
    float: none !important;
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 12px !important;
}

body:not(.wp-admin) .comment-list .comment-author,
body:not(.wp-admin) .comment-list .comment-metadata,
body:not(.wp-admin) .comment-list .comment-meta,
body:not(.wp-admin) .comment-list .comment-content,
body:not(.wp-admin) .comment-list .reply,
body:not(.wp-admin) .comments-holder .comment-author,
body:not(.wp-admin) .comments-holder .comment-metadata,
body:not(.wp-admin) .comments-holder .comment-meta,
body:not(.wp-admin) .comments-holder .comment-content,
body:not(.wp-admin) .comments-holder .reply {
    display: block;
    float: none !important;
    clear: both;
    min-width: 0;
    width: 100%;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    text-align: center;
}

body:not(.wp-admin) .comment-list .comment-author,
body:not(.wp-admin) .comments-holder .comment-author {
    margin-bottom: 3px;
    font-weight: 700;
    line-height: 1.25;
}

body:not(.wp-admin) .comment-list .comment-author cite,
body:not(.wp-admin) .comment-list .comment-author b,
body:not(.wp-admin) .comment-list .comment-author a,
body:not(.wp-admin) .comments-holder .comment-author cite,
body:not(.wp-admin) .comments-holder .comment-author b,
body:not(.wp-admin) .comments-holder .comment-author a {
    display: inline-block;
    float: none !important;
    text-align: center;
}

body:not(.wp-admin) .comment-list .comment-metadata,
body:not(.wp-admin) .comment-list .comment-meta,
body:not(.wp-admin) .comments-holder .comment-metadata,
body:not(.wp-admin) .comments-holder .comment-meta {
    margin-bottom: 8px;
    color: #6d776a;
    font-size: 0.95em;
}

body:not(.wp-admin) .comment-list .comment-content,
body:not(.wp-admin) .comments-holder .comment-content {
    margin: 12px auto 14px !important;
}

body:not(.wp-admin) .comment-list .comment-content > *,
body:not(.wp-admin) .comments-holder .comment-content > * {
    margin-right: auto;
    margin-left: auto;
}

body:not(.wp-admin) .comment-list .reply a,
body:not(.wp-admin) .comments-holder .reply a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: none !important;
    min-height: 30px;
    padding: 4px 13px;
    border: 1px solid #81b84a;
    border-radius: 4px;
    color: #5e9832;
    line-height: 1;
    margin: 0 auto !important;
    text-decoration: none;
}

@media (max-width: 600px) {
    body:not(.wp-admin) .comment-list .comment-body,
    body:not(.wp-admin) .comments-holder .comment-body {
        align-items: center;
    }
}

.ketabona-search {
    position: relative;
    z-index: 10050;
    width: min(100%, 575px);
    margin: 0;
}

.ketabona-search__box {
    position: relative;
    display: flex;
    overflow: hidden;
    min-height: 48px;
    border: 5px solid #fff;
    border-radius: 8px;
    background: #ebf0e6;
    box-shadow: 0 1px 2px 0 #999;
}

.ketabona-search__box::before {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    box-shadow: 0 1px 2px -1px rgb(141, 141, 141) inset;
    content: "";
    pointer-events: none;
}

.ketabona-search__icon {
    display: none;
}

.ketabona-search__input {
    width: 100%;
    min-height: 42px;
    height: 42px;
    border: 0 !important;
    padding: 0 16px !important;
    background: #ebf0e6 !important;
    color: #242b24;
    font-size: 14px;
    line-height: 42px !important;
    outline: none;
}

.ketabona-search__input[dir="rtl"] {
    text-align: right;
}

.ketabona-search__button {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    width: 55px;
    min-width: 55px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-left: 2px solid #fff;
    background-color: #7fba45;
    background-image: linear-gradient(135deg, rgba(149, 184, 118, 1), rgba(89, 129, 54, 1));
    color: #fff;
    cursor: pointer;
    outline: 0 !important;
    box-shadow: none !important;
}

.ketabona-search__button:focus,
.ketabona-search__button:focus-visible,
.ketabona-search__button:active,
.ketabona-search__button::-moz-focus-inner {
    outline: 0 !important;
    box-shadow: none !important;
}

.ketabona-search__button span {
    position: relative;
    width: 18px;
    height: 18px;
    border: 3px solid #fff;
    border-radius: 50%;
    outline: 0 !important;
    box-shadow: none !important;
}

.ketabona-search__button span::after {
    position: absolute;
    right: -8px;
    bottom: -6px;
    width: 10px;
    height: 3px;
    border-radius: 2px;
    background: #fff;
    content: "";
    transform: rotate(45deg);
}

.ketabona-search__button:hover {
    background: #5f9d35;
    color: #fff;
}

.ketabona-search__suggestions {
    margin: 7px 0 0;
    color: #8bb36d;
    font-size: 14px;
    line-height: 1.4;
}

.ketabona-search__suggestions span {
    margin-right: 8px;
    color: #888;
}

.ketabona-search__results {
    position: absolute;
    z-index: 10060;
    right: 0;
    left: 0;
    top: calc(60% + 12px);
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 420px;
    border: 1px solid #d8ded3;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 5px 5px rgba(31, 41, 30, 0.18);
    text-align: left;
}

.ketabona-search__summary {
    padding: 10px 14px;
    border-bottom: 1px solid #edf1e9;
    color: #646d60;
    font-size: 13px;
    text-align: center;
}

.ketabona-search__result {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 14px;
    color: #263023;
    text-decoration: none !important;
}

.ketabona-search__result[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

.ketabona-search__result:hover,
.ketabona-search__result:focus {
    background: #f5faef;
    color: #263023;
}

.ketabona-search__thumb {
    display: inline-flex;
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #e1e7dd;
    border-radius: 4px;
    background: #f4f6f2;
}

.ketabona-search__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ketabona-search__thumb-placeholder {
    color: #7aa851;
    font-weight: 800;
}

body:not(.wp-admin) .vce-post.ketabona-cover-missing .meta-image,
body:not(.wp-admin) .vce-post.ketabona-cover-missing .entry-image,
body:not(.wp-admin) .vce-related-box.ketabona-cover-missing .meta-image,
body:not(.wp-admin) .vce-related-box.ketabona-cover-missing .entry-image,
body:not(.wp-admin) article.ketabona-cover-missing .meta-image,
body:not(.wp-admin) article.ketabona-cover-missing .entry-image {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfe7d8;
    border-radius: 8px;
    background:
        linear-gradient(100deg, #f7f9f5 0%, #eef3ea 45%, #f7f9f5 90%),
        #f4f7f1;
    background-size: 220% 100%;
    color: #7ca35f;
}

body:not(.wp-admin) .vce-post.ketabona-cover-missing .meta-image::before,
body:not(.wp-admin) .vce-post.ketabona-cover-missing .entry-image::before,
body:not(.wp-admin) .vce-related-box.ketabona-cover-missing .meta-image::before,
body:not(.wp-admin) .vce-related-box.ketabona-cover-missing .entry-image::before,
body:not(.wp-admin) article.ketabona-cover-missing .meta-image::before,
body:not(.wp-admin) article.ketabona-cover-missing .entry-image::before {
    content: "Article cover";
    font-size: 13px;
    font-weight: 600;
}

body:not(.wp-admin) .vce-post.ketabona-cover-missing img,
body:not(.wp-admin) .vce-related-box.ketabona-cover-missing img,
body:not(.wp-admin) article.ketabona-cover-missing img {
    display: none !important;
}

.ketabona-search__result-text {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.ketabona-search__result-text [dir="rtl"] {
    text-align: right;
}

.ketabona-search__result-text strong {
    color: #0066b3;
    font-size: 14px;
    line-height: 1.35;
}

.ketabona-search__result-text em {
    color: #70806a;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
}

.ketabona-search__result-text span {
    overflow: hidden;
    color: #333;
    font-size: 13px;
    line-height: 1.45;
}

.ketabona-search__all,
.ketabona-search__empty,
.ketabona-search__loading {
    display: block;
    padding: 14px;
    border-top: 1px solid #edf1e9;
    color: #5e8f37;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
}

.ketabona-search__empty,
.ketabona-search__loading {
    color: #65715f;
    font-weight: 500;
}

.ketabona-search__loading {
    font-size: 18px;
    line-height: 2.2;
}

.header-image1,
.header-image1.wp-block-cover,
.header-image1 .wp-block-cover__inner-container,
.header-image1 .wp-block-columns,
.header-image1 .wp-block-column {
    overflow: visible !important;
}

body.home #main-wrapper > .container:has(.header-image1) {
    width: 100%;
    max-width: none;
    padding: 0;
    border-bottom: 1px solid rgba(53, 110, 70, 0.18);
    background:
        radial-gradient(ellipse at 50% 45%, rgba(255, 255, 255, 0.98) 0%, rgba(250, 249, 242, 0.94) 38%, transparent 70%),
        radial-gradient(ellipse at 0% 50%, rgba(42, 79, 58, 0.18) 0%, transparent 45%),
        radial-gradient(ellipse at 100% 50%, rgba(79, 105, 62, 0.16) 0%, transparent 45%),
        linear-gradient(115deg, #e7eadc 0%, #f5f4ea 28%, #fffef9 50%, #f4f3e8 72%, #e3e8d8 100%) !important;
    background-size: cover !important;
    background-position: center;
    background-repeat: no-repeat !important;
}

body.home .vce-custom-content.vce-post:has(.header-image1) {
    width: 100vw;
    max-width: 100vw;
    margin: 0 calc(50% - 50vw) !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.home .vce-custom-content.vce-post:has(.header-image1) .header-image1.wp-block-cover {
    width: 100%;
    max-width: 100%;
    min-height: clamp(360px, 34vw, 520px);
    margin: 0 !important;
    border-radius: 0 !important;
    background:
        radial-gradient(ellipse at 50% 45%, rgba(255, 255, 255, 0.98) 0%, rgba(250, 249, 242, 0.94) 38%, transparent 70%),
        radial-gradient(ellipse at 0% 50%, rgba(42, 79, 58, 0.18) 0%, transparent 45%),
        radial-gradient(ellipse at 100% 50%, rgba(79, 105, 62, 0.16) 0%, transparent 45%),
        linear-gradient(115deg, #e7eadc 0%, #f5f4ea 28%, #fffef9 50%, #f4f3e8 72%, #e3e8d8 100%) !important;
    background-size: cover !important;
    background-position: center;
    background-repeat: no-repeat !important;
}

.header-image1.wp-block-cover .wp-block-cover__inner-container {
    width: min(100%, 1180px);
    padding-right: 20px;
    padding-left: 20px;
    margin-right: auto;
    margin-left: auto;
}

.header-image1 h1,
.header-image1 h2,
.header-image1 h3,
.header-image1 p {
    text-align: center;
}

.header-image1 .ketabona-search,
.wp-block-cover .ketabona-search {
    position: relative;
    z-index: 10050;
}

.header-image1 .ketabona-search {
    margin-right: auto;
    margin-bottom: 15px;
    margin-left: auto;
}

.header-image1 .ketabona-search__suggestions {
    margin-bottom: 0;
    text-align: center;
}

.header-image1 .ketabona-search__suggestions span {
    display: inline-block;
    margin-right: 6px;
}

@media (max-width: 767px) {
    body.home .vce-custom-content.vce-post:has(.header-image1) .header-image1.wp-block-cover {
        background: #fff !important;
    }
}

.ketabona-featured-books.main-box {
    margin: 24px auto;
    border-radius: 7px;
    background: #fff;
}

.ketabona-featured-books .ketabona-featured-books__title {
    margin: 0;
    border-radius: 7px 7px 0 0;
    text-align: center;
}

.ketabona-featured-books .main-box-inside {
    padding: 40px 20px 54px;
}

.woocommerce ul.products.ketabona-featured-books__grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 46px 38px;
    margin: 0 !important;
}

.woocommerce ul.products.ketabona-featured-books__grid::before,
.woocommerce ul.products.ketabona-featured-books__grid::after {
    display: none !important;
}

.woocommerce ul.products.ketabona-featured-books__grid li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    text-align: center;
}

.woocommerce ul.products.ketabona-featured-books__grid li.product a img {
    width: 150px;
    max-width: 100%;
    height: 200px;
    margin: 0 auto 12px;
    object-fit: cover;
}

.woocommerce ul.products.ketabona-featured-books__grid li.product .woocommerce-loop-product__title {
    min-height: 44px;
    margin: 0 0 5px;
    color: #3f4a3b;
    font-size: 17px;
    line-height: 1.35;
}

@media (max-width: 980px) {
    .woocommerce ul.products.ketabona-featured-books__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ketabona-search {
        width: 100%;
    }

    .woocommerce ul.products.ketabona-featured-books__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 18px;
    }

    .woocommerce ul.products.ketabona-featured-books__grid li.product a img {
        height: 185px;
    }
}
