/*

 Theme Name:   generatepress Child
 Description:  generatepress Child Theme
 Author:       Shaansee
 Author URI:   https://Shaansee.ir
 Template:     generatepress
 Version:      1.0.0
 License: GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Tags:         rtl
 Text Domain:  generatepress-child
*/

@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/Vazirmatn[wght].woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    font-feature-settings: "ss01";
}

.woocommerce-tabs {
    visibility: hidden;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

*:not(i):not(span) {
    font-family: Vazirmatn,tahoma,arial !important;
}

body {
    font-family: Vazirmatn,tahoma,arial;
    font-size: 14px;
    font-weight: 400;
}

.menu-item.cart-menu-item > a {
    display: flex;
    align-items: center;
}

.cart-icon {
    position: relative;
    display: inline-flex;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 17px;
    height: 17px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 17px;
    text-align: center;
    background-color: red;
    color: #fff;
    font-weight: bold;
}

body.woocommerce-shop ul.products li.product a.woocommerce-LoopProduct-link h2, body.woocommerce-shop ul.products li.product a.woocommerce-LoopProduct-link span, body.woocommerce-shop ul.products li.product a.add_to_cart_button,body.woocommerce-shop ul.products li.product a.button {
    display: none;
}

body.woocommerce-shop .products.columns-4::before {
    display: none;
}

body.woocommerce-shop .woocommerce-result-count, body.woocommerce-shop .woocommerce-ordering {
    display: none;
}

.post-type-archive-product .inside-article {
    background-color: transparent;
    padding: 0;
    box-shadow: none;
}

li.product a img, .woocommerce-page ul.products li.product a img {
    margin-bottom: 0;
    box-sizing: border-box;
}

.husky-filter-top {
	margin-bottom: 32px;
}

.chosen-container-single .chosen-single {
	border-radius: 16px;
}

.site-footer a {
	color: #000;
	text-decoration: none;
}

.mobile-menu-control-wrapper .menu-toggle, .mobile-menu-control-wrapper .menu-toggle:hover, .mobile-menu-control-wrapper .menu-toggle:focus, .has-inline-mobile-toggle #site-navigation.toggled {
    background-color: #fff;
}

.menu-toggle {
    padding: 0;
    font-size: 24px;
}

.site-logo img {
    max-width: 120px;
}

.woof_redraw_zone > div {
    flex: 1;
    min-width: 140px;
}

.chosen-container-single {
    width: 100% !important;
    min-width: 140px;
}

.menu-item.profile-icon a {
    line-height: 0 !important;
}

/* mobile menu */

.mobile-bottom-nav {
    display: none; /* پیش‌فرض: دسکتاپ مخفیه */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    padding: 8px 4px;
    /*padding-bottom: calc(8px + env(safe-area-inset-bottom));*/
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .profile-icon, .cart-menu-item {
        display: none;
    }

    /* جلوگیری از پنهان شدن انتهای صفحه زیر نوار پایین */
    body {
        padding-bottom: 60px;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    flex: 1;
}

.bottom-nav-icon-wrap {
    position: relative;
    display: inline-flex;
}

.bottom-nav-label {
    line-height: 1;
}

/* بج تعداد سبد خرید */
.mobile-bottom-nav .cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    line-height: 1;
    min-width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}
/* mobile menu */
/* moved */

/*remove price, add to cart button, rating from archive page*/
ul.products .item-content {
    display: none;
}

/* remove sort and display mode from archive page*/
.dokani__filter-wrap{
    display: none !important;
  }

body.archive.post-type-archive.post-type-archive-product.woocommerce .site-content {
    display: flex;
    flex-direction: column-reverse;
}

body.archive.post-type-archive.post-type-archive-product.woocommerce #primary {
    width: 100%;
    left: 0;
    float: none;
}

body.archive.post-type-archive.post-type-archive-product.woocommerce #left-sidebar {
    left: 0;
    width: 100%;
    float: none;
}

body.archive.post-type-archive.post-type-archive-product.woocommerce .inside-left-sidebar {
    margin-bottom: 0px;
}

body.archive.post-type-archive.post-type-archive-product.woocommerce aside{
    margin-bottom: 0px;
}

body.archive.post-type-archive.post-type-archive-product.woocommerce header.woocommerce-products-header.woocommerce-shop-page {
    display: none;
}

body.archive.post-type-archive.post-type-archive-product.woocommerce #main{
    margin: 0;
}

.breadcrumb {
    display: none;
}

.woof.woof_sid.woof_sid_widget {
    padding: 10px;
}

.woof_redraw_zone {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 8px;
}

.widget-area .widget a {
    display: block;
}

.woof_container_inner {
    display: flex;
    align-items: center;
}

.woof_container_inner h4 {
    margin-left: 15px;
    margin-bottom: 0px;
}

.widget.widget-woof {
    padding: 0px !important;
}

.woof_container {
    padding-bottom: 0px;
    margin-bottom: 0px;
}

.chosen-container {
    margin-bottom: 0px;
}

.widget.widget-woof {
    margin-bottom: 0px !important;
}

.woocommerce ul.products li.product .woocommerce-placeholder {
    border: 0px;
}

.woof_products_top_panel_ul li ul {
    direction: rtl;
    display: flex;
}

.woof_submit_search_form_container {
    margin: 0px;
}

.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
    background-color: #f4594d;
    box-shadow: none;
}

.woof_products_top_panel ul {
    display: flex;
}

ul.woof_products_top_panel_ul > li:first-child {
    order: 1;
}

.woof_products_top_panel_ul li ul li {
    color: #fff;
}

.woof_products_top_panel_ul li ul li a {
    color: #fff;
}

.woof_products_top_panel_ul li ul li a:hover {
    color: #fff;
}

body.post-type-archive-product header.woocommerce-products-header .page-description {
    background-color: #fdf8d2;
    padding: 20px;
    border-radius: 40px;
    position: relative; 
    padding-right: 100px;
    color: #000;
}

body.post-type-archive-product header.woocommerce-products-header {
    display: none;
}

#help-icon {
    width: 40px;
    top: 30px;
    right: 30px;
    position: absolute;
}

#close-btn {
    top: 30px;
    left: 30px;
    position: absolute;
    cursor: pointer;
}

#shaansee-comments {
    display: none;
}

body.post-type-archive-product .widget {
    background: none;
    box-shadow: none;
    padding-bottom: 20px;
}

body.post-type-archive-product .widget .chosen-single {
    border-radius: 50px !important;
  }

body.post-type-archive-product ul.products li.product {
    margin: 0 !important;
}

body.post-type-archive-product ul.products li.product img{
    border-radius: 0px;
    border: 1px dashed #fff !important;
}

.woocommerce ul.products, .woocommerce-page ul.products {
    grid-gap: 15px;
}

#pattern{
    position: relative;
    display: inline-block;
    vertical-align: middle;
    font-size: 14px;
    border-radius: 50px;
    padding: 7px 40px;
    cursor: pointer;
    appearance: none;
    background-color: #fff;
    background-image: url(img/dd.png);
    background-repeat: no-repeat;
    background-position: 90% 60%;
    padding-right: 20px;
    min-width: 140px;
}

/* product page */

.woocommerce div.product section.related.products {

    margin-bottom: 30px;

}
.woocommerce div.product .related.products {

    margin-bottom: -30px;

}
.woocommerce .products[class] {

    margin-right: 0;
    grid-template-columns: repeat(4, 1fr);

}
.related.products {
    display: none;
}

.product_meta {
    display: none;
}

.vendor-name {
    display: none;
}

.product_title.entry-title {
    display: none;
}

.quantity {
    display: none !important;
}

body.single-product .product .inside-article .product .summary .woocommerce-product-details__short-description {
    display: none;
}

body.product-template-default.single-product .summary.entry-summary {
    width: 100% !important;
}

body.single-product .product .inside-article .product .summary {
    display: grid;
    grid-template-areas:
    'p-image p-image p-image p-price p-price p-price'
    'p-image p-image p-image p-cart p-cart p-cart'
    'p-fields p-fields p-fields p-fields p-fields p-fields';
}

body.single-product .woocommerce-product-gallery__wrapper, body.single-product .woocommerce-product-gallery__wrapper img {
  max-width: 250px;
}

body.single-product .product .inside-article .product .summary .woocommerce-product-gallery {
    grid-area: p-image;
}

body.single-product .product .inside-article .product .summary .custom-fields {
    grid-area: p-fields;
    max-width: 30%;
}

body.single-product .product .inside-article .product .summary .price {
    grid-area: p-price;
    color: #16a085;
    text-align: center;
    font-size: 36px;
    height: fit-content;
    margin-top: 90px;
    margin-bottom: 8px;
}

body.single-product .product .inside-article .product .summary .cart {
    grid-area: p-cart;
    text-align: center;
}

.woocommerce div.product form.cart .button {
    float: none;
    background-color: #49f27b;
    border-radius: 50px;
}

body.single-product .single_add_to_cart_button{
    padding: 12px 24px;
    line-height: 1.5;
}

.back-btn {
    background-color: #707070;
    padding: 12px 24px;
    line-height: 1.5;
    border-radius: 50px;
    color: #fff !important;
    vertical-align: middle;
    margin-right: 10px;
    text-decoration: none;
}

.custom-fields {
    display: flex;
    flex-wrap: wrap;
}

.custom-field {
    font-size: 14px;
    border: 1px solid #aaa;
    color: #000;
    width: fit-content;
    padding: 10px;
    border-radius: 20px;
    margin-left: 10px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {

    body.post-type-archive-product header.woocommerce-products-header .page-description {
        padding-top: 50px;
    }

    #help-icon {
        top: 75px;
    }

    .single-product .woocommerce-product-gallery {
        padding: 0px;
        display: flex;
        justify-content: center;
    }

    .single-product .custom-fields {
        display: flex;
        justify-content: center;
    }

    body.single-product .product .inside-article .product .summary {
        display: flex;
        flex-direction: column;
    }

    body.single-product .product .inside-article .product .summary .custom-fields {
        max-width: 100%;
    }

    .cart {
        display: flex;
        flex-direction: column;
    }

    .back-btn {
        margin-top: 10px;
        margin-right: 0px;
    }

	body.archive.post-type-archive.post-type-archive-product.woocommerce .site-content {
		flex-direction: column;
	}

	body.archive.post-type-archive.post-type-archive-product.woocommerce .site-content > .woocommerce-products-header {
		order: -3;
	}

	body.archive.post-type-archive.post-type-archive-product.woocommerce .site-content > #primary {
		order: -2;
	}

	body.archive.post-type-archive.post-type-archive-product.woocommerce .site-content > .shaansee-comments {
		order: -1;
	}

    .main-navigation .main-nav ul li a {
        line-height: 40px;
    }

    .woof_redraw_zone > div {
        min-width: 100%;
        width: 100%;
    }

    .woof_redraw_zone .woof_container_inner_meta_select, .woof_redraw_zone .woof_block_html_items {
        width: 100%;
    }

    .woof_redraw_zone {
        gap: 24px;
    }

    #pattern {
        background-position: 98% 60%;
        width: 100%;
        padding-right: 25px;
    }

    .button.woof_reset_search_form {
        width: 100%;
        border-radius: 16px !important;
        font-weight: 400 !important;
        font-size: 16px !important;
    }

    button.menu-toggle {
        height: 24px;
        line-height: 0;
    }

    /* /Mobile Filters */
    .shaansee-filter-toggle-btn {
        margin-bottom: 16px;
        width: 100%;
        border-radius: 16px;
        background-color: #cf2e2e;
        font-weight: bold;
    }

    .shaansee-filter-sheet-close {
        font-size: 28px;
        background: none;
        color: #000;
    }

    .shaansee-filter-sheet-body {
        padding: 24px;
    }

    .shaansee-filter-sheet {
        position: fixed;
        inset: 0;
        z-index: 9999;
        visibility: hidden;
        pointer-events: none;
    }
    .shaansee-filter-sheet.shaansee-open {
        visibility: visible;
        pointer-events: auto;
    }

    .shaansee-filter-sheet-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, .4);
        opacity: 0;
        transition: opacity .25s ease;
    }
    .shaansee-filter-sheet.shaansee-open .shaansee-filter-sheet-overlay {
        opacity: 1;
    }

    .shaansee-filter-sheet-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-radius: 16px 16px 0 0;
        max-height: 80vh;
        overflow-y: auto;
        transform: translateY(100%);
        transition: transform .3s ease;
    }
    .shaansee-filter-sheet.shaansee-open .shaansee-filter-sheet-content {
        transform: translateY(0);
    }

    .shaansee-filter-sheet-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        border-bottom: 1px solid #eee;
    }

    div.woof_info_popup {
        top: 50%;
        left: 25%;
    }

    .husky-filter-top .chosen-search-input {
        display: none;
    }

    /* /Mobile Filters */

    .cresta-whatsapp-chat-box.onBoth {
        bottom: 80px;
    }
}

/* header */
.site-header .inside-header .header-left img {
    max-height: fit-content;
}

.site-header .inside-header .header-right {
    justify-content: space-between;
}

.site-header .inside-header .header-right .main-navigation {
    width: 100%;
    margin-left: 0px;
}

.site-header .inside-header .header-right .main-navigation ul.sf-menu{
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.site-header .inside-header .header-right .header-cart-menu {
    width: 30%;
    margin-left: 0px;
    font-weight: bold;
}

.nav-aligned-right .main-navigation ul li {
    font-weight: bold;
}

#dokane-menu-cart-wrapper:hover .dropdown-menu {
    display: none;
}

#dokane-menu-cart-wrapper .dokani-menu-cart::before {
    left: 85px;
}

#dokane-menu-cart-wrapper .dokani-menu-cart {
    padding-left: 0px;
}

/* cart */
dt.variation- , dd.variation- {
    display: none !important;
}

button[name="update_cart"] {
    display: none !important;
}

.product-name {
    display: none;
}

.product-thumbnail {
    display: none;
}

.product-quantity {
    display: none;
}

caption, td, th {
    text-align: right;
}

tr.woocommerce-shipping-totals.shipping th {
    display: none;
}

/* checkout */
.woocommerce-checkout-review-order-table thead, .woocommerce-checkout-review-order-table tbody {
    display: none;
}

#img-selector {
    margin: 0px auto 20px;
    display: block;
}

#img-selector-div {
    position: fixed;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    text-align: center;
    background-color: #fff;
    box-sizing: border-box;
    padding: 10px;
    z-index: 200;
    display: none;
    overflow-y: scroll;
}

#img-selector-holder {
    position: fixed;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    text-align: center;
    background-color: rgba(0,0,0,.7);
    box-sizing: border-box;
    padding: 10px;
    z-index: 100;
    display: none;
}

#img-selector-div img {
    width: 100px;
    height: auto;
    margin-right: 20px;
    cursor: pointer;
}

.selected-img {
    border: 5px solid #f4594d;
}

#selected-btn {
    display: block;
    margin: 0 auto 20px;
    width: 50%;
}

#selected-imgs {
    text-align: center;
    margin-bottom: 20px;
}


#selected-imgs img {
    width: 100px;
    padding-left: 10px;
}

#billing_company_field {
    display: none;
}

#shipping_company_field {
    display: none;
}

.woocommerce-shipping-contents {
    display: none;
}

/* main menu */
.main-navigation li {
    float: right;
}

.main-navigation .main-nav ul li a {
    padding-left: 15px !important;
    padding-right: 0px !important;
}

/* dokan Dashboard */
.dokan-withdraw-content .dokan-withdraw-area .dokan-panel-body .dokan-panel-inner-container .dokan-w5 {
    left: 10px;
    right: auto;
}

.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.dokan-common-links a:first-child {
    display: none !important;
}

/*increase products per page in shop page*/
.woocommerce .products[class] {
    display: grid;
    grid-template-columns: repeat(9, 1fr) !important;
    margin-bottom: 0;
	padding: 20px;
    background-color: #f4594d;
}

.woocommerce ul.products[class*="columns-"] li.product, .woocommerce-page ul.products[class*="columns-"] li.product {
    width: auto;
}

@media only screen and (max-width: 992px) {

    .woocommerce .products[class] {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .site-content {
        max-width: 90%;
        margin: 0 auto;
    }

}

/* disable pagination in shop page*/
body.post-type-archive-product .woocommerce-pagination {
    display: none;
}

/* dashboard */
body.dokan-dashboard #edit-slug-box,
body.dokan-dashboard .dokan-product-type-container,
body.dokan-dashboard .sale-price,
body.dokan-dashboard .dokan-product-description,
body.dokan-dashboard .dokan-other-options,
body.dokan-dashboard .dokan-product-meta .dokan-form-group:nth-child(3),
body.dokan-dashboard .dokan-product-meta .dokan-form-group:nth-child(5),
body.dokan-dashboard .dokan-product-meta .dokan-form-group:nth-child(6),
.dokan-product-inventory > .dokan-section-content > .content-half-part,
.dokan-product-inventory > .dokan-section-content .dokan-stock-management-wrapper > .content-half-part:nth-child(2),
.dokan-product-inventory > .dokan-section-content .dokan-stock-management-wrapper > .content-half-part:nth-child(3),
body.dokan-dashboard label[for="_sold_individually"],
body.dokan-dashboard .dokan-new-cat-ui-title,
body.dokan-dashboard .dokan-add-new-cat-box,
body.dokan-dashboard .dokan-form-container > .dokan-form-group:nth-child(2),
body.dokan-dashboard hr,
body.dokan-dashboard button[value="create_and_add_new"],
body.dokan-dashboard .dokan-product-gallery,
body.dokan-dashboard .dokan-product-short-description {
    display: none !important;
}

body.dokan-dashboard .regular-price {
    float: right;
    padding-right: 0px;
}

body.dokan-dashboard .dokan-stock-management-wrapper .content-half-part {
    float: right;
}

body.dokan-dashboard .dokan-right {
    float: right !important;
}

body.dokan-dashboard .featured-image {
    display:none;
}

body.dokan-dashboard .product-edit-new-container .dokan-form-top-area .dokan-product-meta {
    width: 100%;
}

body.dokan-dashboard .dokan-new-product-area .dokan-product-meta {
    width: 100%;
}

body.dokan-dashboard .content-half-part {
    float: right;
    padding-right: 0px !important;
}

/* faq */
.wp-block-themeisle-blocks-accordion-item__title {
    background-color: #49f27b;
    color: #fff;
    border: 1px solid #17cc4c !important;
}

.wp-block-themeisle-blocks-accordion-item__content {
    border: 1px solid #17cc4c !important;
}

.another-question a {
    color: #fff;
}

/* single page */
body.archive.category #primary {
    width: 100%;
    left: 0;
}

.comments-area .comment-form #author {
    float: right;
    margin-right: 0;
    margin-left: 1.5%;
}

.comments-area .comment-form #email {
    float: left;
    margin-left: 0;
    margin-right: 1.5%;
    direction: ltr;
}

/* shop page comments */

#shaansee-comments {
    margin-top: 64px;
    margin-bottom: 64px;
}

.entry-header .entry-meta {
    display: none;
}

#shaansee-comment {
    border: 1px solid #ababab;
    margin-bottom: 20px;
    border-radius: 10px;
    padding: 20px;
}

#comment-author {
    border-bottom: 1px solid #ababab;
    padding-bottom: 15px;
}

#comment-author img {
    margin-left: 10px;
    border-radius: 50px;
}

#comment-content {
    padding-top: 15px;
}

#comments-page-link {
    margin: 0 auto;
    display: block;
    width: fit-content;
    border-radius: 15px;
}

/* footer */
#footer-widgets {
    padding: 20px;
    background-color: #e2e2e2;
}
@media (min-width: 1025px) {
    #footer-widgets .grid-50 {
      float: right;
    }
}

#menu-footer-menu li {
    margin-bottom: 20px;
}

.site-info {
    background-color: #e2e2e2 !important;
    border-color: #a1a1a1 !important;
}

/* my-account */
.dokan-account-migration-lists {
    display: none;
}

/* contact form */
input[type="email"].otter-form-input {
    direction: ltr;
}

/* responsive menu */
#responsive-menu li:last-child {
    display: none !important;
}

.main-navigation.toggled .main-nav li {
    text-align: right !important;
}

ul.responsive-user-menu li.dropdown {
    display: none !important;
}

ul.responsive-user-menu .flaticon.flaticon-people:last-child {
    display: none;
}

ul.responsive-user-menu .flaticon.flaticon-people::before {
    font-size: 22px;
}

ul.responsive-user-menu .flaticon.flaticon-people {
    padding-top: 12px;
    display: inline-block;
    padding-right: 10px;
    cursor: pointer;
}

/* registration form */
#reg_email {
    direction: ltr;
}

.vendor-customer-registration {
    display: none;
}

/* product page  */
.woof_products_top_panel {
    display: none !important;
}
