/*
Theme Name:   Beman
Template:     hello-elementor
Text Domain:  beman
*/



/* ***************************************************************** */
/* **************************** GENERAL ******************************* */
/* ***************************************************************** */


/* MENU */
.sub-menu{
    margin-top: -5px !important;
}
.elementor-nav-menu .sub-arrow{
    padding: 2px !important;
}


/* FOOTER */

.tcm{
    color: #4D4D4D;
}

.contact-onHover {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: all ease-in-out .4s;
}

/* .more-text-wrapper {
  max-height: 200px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.5s ease;
}
.more-text-wrapper.expanded {
  max-height: 1000vh;
}
.more-toggle-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
} */



.more-text-wrapper {
  max-height: 200px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.5s ease;
}
.more-text-wrapper.expanded {
  max-height: 1000vh;
}
.more-toggle-btn {
  display: inline-block;
  background-color: #F8F8F8 !important;
  color: #4D4D4D !important;
  position: relative;
  z-index: 10;
  border: none;
  outline: none;
}
.more-toggle-span{
  border: 1px solid #4D4D4D;
  border-radius: 8px !important;
  padding: 10px 20px;
    cursor: pointer;
}
.more-toggle-btn:hover{
    background-color: #F8F8F8 !important;
}
.more-toggle-btn::after{
    background-image: linear-gradient(180deg, transparent, #F8F8F8 50%);
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    bottom: 0;
    height: 150px;
    position: absolute;
    right: 0;
    width: 100%;
    content: "";
    z-index: -1;
}


/* ***************************************************************** */
/* **************************** HOME ******************************* */
/* ***************************************************************** */

/* hero */

#main-hero-wrapper .main-hero-video video{
    filter: grayscale(1);
}


/* testimonial */
.testimonial-section .elementor-testimonial {
    background-color: #fff !important;
    border-radius: 16px;
    padding: 0 1rem 2rem;
    display: flex;
    flex-direction: column-reverse;
}


/* ***************************************************************** */
/* **************************** BLOG ******************************* */
/* ***************************************************************** */


.blog-list .page-numbers,
.product-category-list .page-numbers,
.project-list_wrapper .page-numbers{
    background: #F0F0F0;
    padding: 0 10px;
    border-radius: 8px;
}

.blog-list .page-numbers.current,
.product-category-list .page-numbers.current,
.project-list_wrapper .page-numbers.current{
    background: #C8252E;
}

.blogDetail a {
    color: #C8252E;
}

.blogDetail h2 {
    font-size: 22px;
    font-weight: bold;
}

.blogDetail h3,
.blogDetail h4,
.blogDetail h5,
.blogDetail h6 {
    font-size: 20px;
    font-weight: bold;
}

.blogDetail img {
    border-radius: 8px !important;
    display: block;
    margin: 0 auto;
}

#blog-list_container:hover h3,
#blog-list_container:hover .elementor-button-text {
    color: #C8252E;
}



/* ***************************************************************** */
/* **************************** PROJECT **************************** */
/* ***************************************************************** */

.project-category_tabs{
    display: flex;
    gap: 10px;
    list-style: none;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}
.project-category_tabs li a{
    background: #F0F0F0;
    padding: 5px 15px;
    border-radius: 8px;
    color: #4D4D4D;
    font-size: 14px;
    transition: .3s all ease-in-out;
}
.project-category_tabs li:hover a{
    background-color: #FDE3E4;
    color: #C8252E;
}



/* ***************************************************************** */
/* **************************** POST ******************************* */
/* ***************************************************************** */

#publish-btn a {
    background-color: #C8252E;
    color: #fff;
    border-radius: 8px;
    padding: 5px 50px;
    position: relative;
}

#publish-btn a::before {
    position: absolute;
    content: " ";
    background: url(/wp-content/uploads/2025/08/download.svg);
    height: 20px;
    width: 20px;
    right: 20%;
    background-repeat: no-repeat;
    background-size: contain;
}


/* ***************************************************************** */
/* ************************** PRODUCT ***************************** */
/* ***************************************************************** */

.product-category_container .woocommerce ul.products li.product a img {
    height: 200px !important;
    object-fit: cover;
  display: block;
  position: relative;
  filter: grayscale(1);

}
.product-category_container .woocommerce ul.products li.product a {
    filter: none;
}

.product-category_container .woocommerce ul.products li.product{
  position: relative;
   height: 200px !important;
    object-fit: cover;
}

.product-category_container .woocommerce ul.products li.product::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient( to top,#c8252db0 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  border-radius: 8px;
}
.product-category_container .woocommerce ul.products li.product::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient( to top,#000000c7 0%, transparent 100%);
  transition: opacity 0.3s ease;
  z-index: 1;
  border-radius: 8px;

}

.product-category_container .woocommerce ul.products li.product:hover::after {
  opacity: 1;
}

.product-category_container .woocommerce-loop-category__title {
    position: relative;
    margin-top: -100px !important;
    z-index: 9 !important;
}

/* #e092756 .product-category img{
    filter: grayscale();
} */

#product-card_brand .sku_wrapper, #product-det_img .sku_wrapper,
#product-card_brand .posted_in, #product-det_img .posted_in,
#product-card_brand-resp .sku_wrapper,
#product-card_brand-resp .posted_in {
    display: none !important;
}

#product-det_img .product_title a{
    font-size: 16px !important;
    font-weight: lighter !important;
}

#sort_products{
    width: 20%;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    color: #4d4d4d;
    outline: none;
}

.woocommerce-product-attributes,
.woocommerce-product-attributes th,
.woocommerce-product-attributes td,
.wc-blocks-components-select .wc-blocks-components-select__container {
    background: transparent !important;
}

.product-detail_info table th,
.product-detail_info table td {
    border-right-style: none !important;
    border-left-style: none !important;
}
.product-detail_info p {
    text-align: justify;
}

.woocommerce table.shop_attributes th {
    width: 300px;
    text-align: right;
}

.woocommerce .elementor-719 .elementor-element.elementor-element-8055efd .woocommerce-tabs ul.wc-tabs li.active {
    border: none;
    border-bottom: 2px solid #C8252E !important;
}

.product-detail_add-to-basket {
    height: 350px !important;
}
.product-card-list h3,.woocommerce .elementor-570 .elementor-element.elementor-element-d7d8bfe .price {
    font-size: 14px !important;
}

.product-card-list h3 a,
#product-det_img .product_title a{
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical ;
    overflow: hidden;
}

/* Detail */

#product-card_brand .product_meta .tagged_as:empty .elementor-570 .elementor-element.elementor-element-1234b8c,
#product-card_brand-resp .product_meta .tagged_as:empty .elementor-570 .elementor-element.elementor-element-4c4db9a
 {
    display: none !important;
    opacity: 0 !important;
    background-color: transparent !important;
}

.woocommerce-product-gallery__trigger{
    display: none !important;
}


.product-detail_add-to-basket .label,
.product-detail_add-to-basket .value .reset_variations{
    display: none !important;
}

#add-to-basket .variations .value select,
#add-to-basket .quantity {
    background-color: transparent !important;
    height: 50px;
    border: 1px solid #E3E3E3;
    outline: none;
    border-radius: 8px !important;
    font-size: 14px;
    color: #4d4d4d;
}
#add-to-basket  .value{
    background-color: transparent !important;
    padding: 0 !important;
}
#add-to-basket .woocommerce-variation-add-to-cart{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#add-to-basket .cart {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

#add-to-basket .price{
    color: #4d4d4d;
    font-weight: 400;
    font-size: 16px;
}
/* .woocommerce-variation-price .price::before {
    content: "مبلغ ";
    color: #4d4d4d;
    
}
.woocommerce-variation-price {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    direction: rtl; 
}

.woocommerce-variation-price .price {
    margin: 0;
} */


.quantity {
    width: 100%;
    background: #F0F0F0;
    border-radius: 8px;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px !important;
}

.quantity .plus,
.quantity .minus {
    border: none;
    font-size: 20px !important;
    cursor: pointer;
    user-select: none;
    color: #4D4D4D !important;
    background-color: transparent !important;
}

.quantity input.qty {
    text-align: center;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    color: #4D4D4D !important;
}

/* Hiding spinner - detail */
/* Chrome, Safari, Edge & Opera */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}
/* 
.zhiarco-product-unit {
    background: #F0F0F0;
    font-size: 14px;
    border-radius: 8px;
    padding: 8px;

    order: 1;
} */

#add-to-basket .single_add_to_cart_button {
    margin-right: 0 !important;
    height: 50px;
    margin-top: 25px !important;
}

#add-to-basket .woocommerce-Price-currencySymbol,
.woocommerce-Price-currencySymbol {
    padding-right: 5px !important;
    font-size: 12px !important;
}

.single_variation_wrap {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.woocommerce-variation-add-to-cart .quantity:not(.custom-qty-wrapper) {
    display: none !important;
}
.woocommerce-Price-amount{
    padding-right: 1rem;
}


.view-all-btn {
    position: relative;
    width: 100px; /* هم‌سایز تصاویر */
    height: 100px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.view-all-btn span {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}




/* ***************************************************************** */
/* **************************** Checkout **************************** */
/* ***************************************************************** */

body.woocommerce-checkout .wc-block-checkout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.woocommerce-message{
    margin: 1rem 3rem !important;
    outline: none !important;
}

.wc-block-cart__submit-container a{
    background-color: transparent !important;
}

#checkout .quantity{
    padding: 2px 10px;
    margin-top: 5px;
}

.wc-block-checkout{
    margin: 3rem auto !important;
}

.woocommerce-mini-cart__empty-message{
    position: relative;
    width: 100%;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.woocommerce-mini-cart__empty-message::before{
    content: "";
    position: absolute;
    visibility: visible;
    background-image: url(/wp-content/uploads/2025/09/icon-empty-cart.png);
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    width: 150px;
    height: 100px;
    top: 30px;
}
.wc-block-components-quantity-selector button:hover{
    color: #4D4D4D !important;
}

#content .entry-title{
    font-size: 24px;
    font-weight: bold;
    margin: 1rem auto;
}

.wc-block-cart-items__header, .wc-block-cart__totals-title{
    font-size: 14px !important;
}

#wc-block-components-totals-coupon__form input,
.wc-block-checkout__main form input,
#shipping-country,
#shipping-state{
    outline: none !important;
    border: 1px solid #B1B1B1 !important;
    background-color: transparent !important;
    font-size: 14px !important;
}

#wc-block-components-totals-coupon__form lable{
    font-size: 14px;
    color: #B1B1B1;
}

#wc-block-components-totals-coupon__form button,
.wc-block-components-button{
    background-color: #C8252E !important;
    border: none !important;
    color: #fff;
}
.wc-block-components-totals-item__label, 
.wc-block-components-totals-item__value span{
    font-size: 16px !important;
}
.wc-block-components-order-summary .wc-block-components-order-summary-item{
    font-size: 12px !important;
}

/* empty basket */

.wp-block-woocommerce-empty-cart-block h2.wp-block-heading.has-text-align-center:not(.with-empty-cart-icon) {
    display: none !important;
}
.wp-block-woocommerce-empty-cart-block .wc-block-product-new {
    display: none !important;
}


/* factor */

.woocommerce-order{
    margin: 2rem auto;
    width: 60%;
}
.woocommerce-order-details__title,
.woocommerce-column__title{
    font-size: 18px !important;
}

.woocommerce-order table.shop_table{
    border-radius: 16px !important;
    border-collapse: collapse !important;

}


/* ***************************************************************** */
/* **************************** Contact **************************** */
/* ***************************************************************** */

.gform_title,
.gform_required_legend,
.gfield_required {
    display: none !important;
}

.input__group input:focus,
.input__group select:focus,
.input__group textarea:focus {
    outline: none !important;
    box-shadow: none !important;
}

#gform_fields_1 {
    gap: 15px !important;
}

.input__group input,
.input__group textarea {
    border: 1px solid #E3E3E3 !important;
    border-radius: 8px !important;
    color: #B1B1B1 !important;
    box-shadow: none !important;
    outline: none !important;
}

.input__group input:active,
.input__group input:focus,
.input__group textarea:active,
.input__group textarea:focus {
    border: 1px solid #C8252E !important;
    color: #C8252E !important;
}

.input__group {
    position: relative !important;
    box-sizing: border-box !important;
}

.input__group label {
    position: absolute !important;
    right: 12px !important;
    top: 12px !important;
    color: #C8252E !important;
    pointer-events: none !important;
    background: #fff !important;
    padding: 0 4px !important;
    opacity: 0 !important;
    transform: translateY(6px) !important;
    transition: opacity .18s ease, transform .18s ease, font-size .18s ease !important;
}

.input__group:focus-within label {
    opacity: 1 !important;
    transform: translateY(-20px) !important;
}

.input__group input:focus::placeholder,
.input__group textarea:focus::placeholder {
    color: transparent !important;
}

.gform-footer {
    justify-content: flex-end !important;
}

.gform-footer .gform_button {
    background-color: #C8252E !important;
    padding: 10px 50px !important;
    outline: none !important;
    border-radius: 8px !important;
}

/* ***************************************************************** */
/* *************************** SERVICES ************************** */
/* ***************************************************************** */

.services-slider .elementor-slides .swiper-slide-bg{
    overflow: hidden;
    border-radius: 16px;
}

.services-slider .elementor-swiper-button-next{
    left: -30px !important;
    background: #C8252E !important;
    padding: 5px !important;
    border-radius: 8px !important; 
}
.services-slider .elementor-swiper-button-prev{
    right: -30px !important;
    background: #C8252E !important;
    padding: 5px !important;
    border-radius: 8px !important; 
}

/* ***************************************************************** */
/* *************************** RESPONSIVE ************************** */
/* ***************************************************************** */
@media all and (max-width:767px) {

    .product-detail_info{
        margin-top: 70px;
    }

    .woocommerce table.shop_attributes th {
        width: 150px;
    }

    .elementor-719 .elementor-element.elementor-element-8c4708b:not(.elementor-motion-effects-element-type-background) {
        background-color: transparent !important;
        padding: 0 !important;
    }

    .woocommerce-message{
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* checkout */

    .page-content .wp-block-woocommerce-cart{
        padding: 0 100px !important;
        overflow: hidden !important;
    }

    .wc-block-cart-items thead {
        display: none !important; /* هدر جدول حذف میشه */
    }
    
    .wc-block-cart-items tr {
        display: block;
        margin-bottom: 20px;
        padding: 10px;
    }
    .wc-block-cart-items td {
        display: block;
        padding: 8px 0;
    }

    .wc-block-cart-item__image {
        text-align: center;
        margin-bottom: 10px;
    }

    #sort_products{
    width: 100%;
    }

    #publish-btn a {
    width: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#publish-btn a::before {
    right: 35%;
}

.gform-footer .gform_button{
    flex-grow: 1;
}

.elementor-719 .elementor-element.elementor-element-cce0034{
    top: 100px !important;
}
    
}

.project__list-items {
	width: 100%;
	height: fit-content;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

@media screen and ( max-width:1024px ) {
	.project__list-items {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media screen and ( max-width:768px ) {
	.product-template-default .woocommerce-tabs .panel {
		padding: 12px 0 !important;
	}

	.project__list-items {
		display: flex;
		overflow-x: auto;
		gap: 12px;
		padding-bottom: 12px;
	}

	.project-card {
		height: 212px !important;
		min-height: 212px !important;
	}

	.project__list-items::-webkit-scrollbar-track {
		background: #f1f1f1;
		border-radius: 16px;
	}

	.project__list-items::-webkit-scrollbar-thumb {
		background: #dddddd;
		border-radius: 16px;
	}

	.project__list-items .e-loop-item {
		width: 296px;
		flex-shrink: 0;
	}
}

.woocommerce div.product form.cart .quantity {
  display: none !important;
}
