/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       Novano
 Author URI:   #
 Template:     woodmart
 Version:      1.0.25
 Text Domain:  woodmart
*/

/* Buy Now only: hide Add to Cart, show Buy Now in sticky/quick shop */
.single-product form.cart .single_add_to_cart_button:not(.wd-buy-now-btn),
.product-quick-view form.cart .single_add_to_cart_button:not(.wd-buy-now-btn),
.quick-shop-form .single_add_to_cart_button:not(.wd-buy-now-btn),
.wd-sticky-btn .single_add_to_cart_button:not(.wd-buy-now-btn),
.wd-sticky-btn .wd-sticky-add-to-cart {
	display: none !important;
}

.variations_form .wd-buy-now-btn,
.single-product form.cart .wd-buy-now-btn,
.product-quick-view form.cart .wd-buy-now-btn,
.wd-sticky-btn .wd-buy-now-btn {
	display: inline-flex !important;
	visibility: visible !important;
}

/* Hide quantity inputs everywhere */
.single-product form.cart .quantity,
.product-quick-view form.cart .quantity,
.wd-product .quantity,
.wd-sticky-btn .quantity {
	display: none !important;
}

/* Full-width buy button on product page */
.single-product form.cart .wd-buy-now-btn,
.product-quick-view form.cart .wd-buy-now-btn,
.variations_form .woodmart-child-variation-buy-now .wd-buy-now-btn {
	width: 100%;
	flex: 1 1 100%;
}

.variations_form .woodmart-child-variation-buy-now {
	width: 100%;
	margin-top: 10px;
}

.single-product form.cart,
.product-quick-view form.cart {
	justify-content: stretch;
}

.single-product .woocommerce-variation-add-to-cart,
.product-quick-view .woocommerce-variation-add-to-cart {
	width: 100%;
}

.wd-buy-now-btn.woodmart-child-buy-now--locked,
.single-product .wd-buy-now-btn.disabled,
.product-quick-view .wd-buy-now-btn.disabled {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
}

/* [read_more] marker */
.wd-child-read-more {
	margin: 0.75em 0;
}

.wd-child-read-more__hidden {
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transition: max-height 0.45s ease, opacity 0.35s ease;
}

.wd-child-read-more.is-expanded .wd-child-read-more__hidden {
	opacity: 1;
}

.wd-child-read-more__control {
	display: flex;
	flex-direction: row;
	align-items: center;
	width: 100%;
	margin-top: 0.5em;
	gap: 0.75em;
}

.wd-child-read-more__toggle {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0 0.35em;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
}

.wd-child-read-more__toggle:hover,
.wd-child-read-more__toggle:focus {
	opacity: 0.7;
}

.wd-child-read-more__line {
	flex: 1;
	height: 1px;
	margin: 0;
	background: currentColor;
	opacity: 0.28;
}

@media (prefers-reduced-motion: reduce) {
	.wd-child-read-more__hidden {
		transition: none;
	}
}



.wd-child-read-more:not(.is-expanded) .wd-child-read-more__visible {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.wd-child-read-more.is-expanded .wd-child-read-more__visible {
    max-height: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

.wd-child-read-more.is-expanded .wd-child-read-more__visible[style*="mask-image"] {
    -webkit-mask-image: none !important;
    mask-image: none !important;
}






/* ---- custom css Start ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/
 .single_variation_wrap * {
     visibility: hidden;
}
 .single_variation_wrap button#wd-add-to-cart {
     visibility: visible !important;
     position: relative;
     width: 100%;
     top: 0;
     right: 0;
}
 .container.main-footer .wp-block-wd-title.title {
     font-size: 1em;
}
 .shop_attributes tr:nth-child(even) {
     background-color: #f5f5f5;
}
 .shop_attributes tr {
     padding: 10px;
     margin: 0;
}
 .shop_attributes tbody {
     margin-bottom: 50px;
}
 .product-image-summary-wrap .summary h1.product_title {
     font-size: 16px !important;
}
 .woocommerce-product-attributes-item--attribute_pa_\%d9\%85\%d9\%86\%d8\%a7\%d8\%b3\%d8\%a8-\%d8\%ae\%d9\%88\%d8\%af\%d8\%b1\%d9\%88\%d9\%87\%d8\%a7\%db\%8c span.wd-term-name {
     padding: 6px 10px;
     background: #f5f5f5;
     display: inline-block;
     margin: 5px;
     border-radius: 10px;
}
 .woocommerce-product-attributes-item--attribute_pa_\%d9\%85\%d9\%86\%d8\%a7\%d8\%b3\%d8\%a8-\%d8\%ae\%d9\%88\%d8\%af\%d8\%b1\%d9\%88\%d9\%87\%d8\%a7\%db\%8c span.wd-term-sep {
     display: none;
}
 .wd-carousel-wrap {
     mask-image: none !important;
     -webkit-mask-image: none !important;
}
 .wd-buttons.wd-pos-r-t {
     display: none;
}
 h3.wd-entities-title {
     display: -webkit-box;
     -webkit-box-orient: vertical;
     -webkit-line-clamp: 2;
     overflow: hidden;
     text-overflow: ellipsis;
}
 .product-element-bottom {
     text-align: center;
}
 footer.wd-footer {
     background: #042E6F;
     color: white;
}
 footer.wd-footer .wd-menu.widget_nav_mega_menu.wd-nav-wrapper * {
     color: white;
}
 .siteFooterLogo img {
     background: white;
     padding: 10px;
     border-radius: 10px;
}
 .btn-rinof {
     display: flex;
     align-items: center;
     gap: 10% !important;
     padding: 20px;
     border-radius: 8px;
     color: #000000;
     font-weight: 600;
     line-height: 1;
     background: #ffffff;
     margin: auto;
     font-size: 20px;
     box-shadow: black 0 0 20px -10px !important;
     flex-direction: row;
     align-content: stretch;
     justify-content: center;
}
 .btn-rinof svg , .btn-rinof img {
     max-width: 70%;
}
 .btn-rinof.mw {
     max-width: 60%;
}
  .wd-products[class*="wd-stretch-cont"] .wd-carousel-item .wd-product .wd-product-wrapper {
     font-size: 12px;
     padding-top: 37px;
     padding-bottom: 10px; 
}

 .wd-products[class*="wd-stretch-cont"] .wd-carousel-item .wd-product .wd-product-wrapper h3.wd-entities-title  {
    min-height: 2.7rem;
}
}
 .wd-products[class*="wd-stretch-cont"] .wd-carousel-item .wd-product .wd-product-wrapper span.price {
     line-height: 1.7;
}
 .wd-products[class*="wd-stretch-cont"] .wd-carousel-item .wd-product .wd-product-wrapper .wd-entities-title {
     font-size: 14px;
}
 .footer-link {
     display: flex;
     flex-direction: column;
     gap: 16px;
     padding: 0;
     margin: 0;
}
 .info-li {
     display: flex;
     flex-direction: column;
     gap: 8px;
}
 .info-title {
     display: flex;
     align-items: center;
     gap: 15px;
     flex-direction: row;
}
 .info-title span {
     font-weight: 600;
}
 .tel-box {
     display: flex;
     flex-direction: row;
     gap: 6px;
     justify-content: flex-start;
     color: white;
}
 .tel-box a {
     text-decoration: none;
}
 .tel-nums {
     gap: 35px;
     color: white;
}
 .support-buttons {
     display: flex;
     gap: 10px;
     align-items: center;
     justify-content: flex-start;
     flex-direction: row;
     align-content: flex-start;
}
 .support-btn {
     display: flex;
     align-items: center;
     gap: 6px;
     padding: 8px 12px;
     border-radius: 8px;
     color: #fff;
     text-decoration: none;
     font-size: 10px;
     line-height: 1;
     width: 50%;
}
 .whatsapp-rinof {
     background-color: #ff9a01;
}
 .bale-rinof {
     background-color: #0071fd;
}
 .bale-icon {
     width: 20px;
     height: 20px;
     border-radius: 50%;
     background-color: #fff;
     color: #00AEEF;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     font-size: 12px;
     font-weight: bold;
}
 .tel-address {
     line-height: 1.8;
     font-size: 0.8rem !important;
}
 .info-title svg {
     color: #fdc700 !important;
     width: 33px;
}
 .tel-box.tel-nums.support-buttons {
     max-width: 90%;
}
 footer.wd-footer h4 {
     color: white;
}
 span.phone1 {
     color: white;
}
 button.wd-child-read-more__toggle {
     background: none !important;
     color: inherit !important;
}
 .contact_icon {
     background-color: #ff9a01;
     color: #fff;
     width: 60px;
     height: 60px;
     font-size: 30px;
     border-radius: 50px;
     text-align: center;
     box-shadow: 0 0 0 0 #ff9a00;
     display: flex;
     align-items: center;
     justify-content: center;
     transform: translatey(0);
     animation: pulsing 1.25s infinite cubic-bezier(.66,0,0,1);
     -webkit-animation: pulsing 1.25s infinite cubic-bezier(.66,0,0,1);
     -moz-animation: pulsing 1.25s infinite cubic-bezier(.66,0,0,1);
     -ms-animation: pulsing 1.25s infinite cubic-bezier(.66,0,0,1);
     font-weight: 400;
     text-decoration: none!important;
     transition: all 300ms ease-in-out;
     position: fixed;
     cursor: pointer;
     bottom: 90px;
     right: 30px;
     z-index: 999999;
}
 .contact_icon svg.bi.bi-whatsapp {
     color: #042e6f;
     padding: 0;
     width: 100%;
     display: flex;
     align-content: center;
     align-items: center;
     justify-content: center;
     flex-direction: column;
}
 .summary-inner bdi::after {
     position: absolute;
     content: "(قیمت هر عدد)";
     right: 0px;
     color: rgb(133, 133, 133);
     font-size: 10px;
     top: calc(100% - 8px);
}
 .wd-sticky-btn span.price {
     padding-top: 20px;
}
 .wd-sticky-btn bdi:before {
     position: absolute;
     content: "(قیمت هر عدد)";
     color: #2f2f2f;
     font-size: 13px;
     bottom: calc(100% - 0px);
     right: calc(50% - 35px);
}
 .ersal p {
     font-size: clamp(12px, 2vw, 11px);
     color: #555;
     margin: 0 !important;
     line-height: 3em;
     text-overflow: ellipsis;
}
 .ersal {
     display: flex;
     box-shadow: 1px 1px 7px #d2cece;
     border-radius: 8px;
     padding: 7px;
     width: 100%;
     background-image: url(/wp-content/uploads/2026/07/truck-e1784060838551.png);
     background-repeat: no-repeat;
     background-size: 14%;
     background-position: left center;
}
 .rinopolse {
     height: 10px;
     width: 10px;
     background: red;
     border-radius: 100%;
     margin: 5px 0 0 10px;
     animation: pulse 1.5s infinite;
	 margin-top: 12px;
}
 @keyframes pulse{
     0% {
         transform: scale(1);
         box-shadow: 0 0 10px rgba(232,76,61,.8) 
    }
     50% {
         transform: scale(1.1);
         box-shadow: 0 0 20px rgba(232,76,61,1) 
    }
     100% {
         transform: scale(1);
         box-shadow: 0 0 10px rgba(232,76,61,.8) 
    }
}
 .last-update {
     font-size: 14px;
     font-weight: 700;
     color: var(--e-global-color-primary);
     animation: blink 2s infinite;
}
 @keyframes blink{
     0% {
         opacity: 1 
    }
     50% {
         opacity: 0 
    }
     100% {
         opacity: 1 
    }
}
 .wd-sticky-btn-shown.wd-sticky-btn {
     transform: translate3d(0, 0, 0);
}
 .wd-sticky-btn {
     transform: translate3d(0, 0, 0) !important;
}
 .scrollToTop {
     bottom: calc(12px + var(--wd-sticky-btn-height)) !important;
}


 .wd-sticky-btn-cart bdi {font-size: 18px !important;}


 .wd-sticky-btn-content {
     width: 100% !important;
}
 .summary-inner {
     display: flex;
     flex-direction: column;
}
 .summary-inner .product_title {
     order: 1;
}
 .summary-inner .wd-before-add-to-cart {
     order: 2;
}
 .summary-inner .wd-after-add-to-cart {
     order: 3;
}
 .summary-inner form.cart {
     order: 4;
     margin-top: 20px;
}
 .summary-inner .price {
     order: 5;
}
 .summary-inner .shop_attributes {
     order: 6;
}
 @media (max-width: 1024px) {
     span.wd-tools-icon::before {
         font-size: 40px !important;
         font-weight: bold;
    }
}
 .wd-nav-opener:after {
     transform: rotate(-90deg);
}
 @media (max-width: 768.98px) {
     .archive .wd-product-wrapper.product-wrapper {
         display: flex;
         align-items: center;
         flex-direction: row;
    }
     .archive .wd-product-thumb.product-element-top.wd-quick-shop {
         max-width: 40%;
    }
}
 @media (max-width: 768.98px) {
     .wd-sticky-btn-content {
         display: none !important;
    }
     .wd-sticky-btn-cart {
         flex-direction: row-reverse;
         align-content: stretch;
         justify-content: space-evenly;
         align-items: center;
         width: 100%;
         gap: 20%;
    }
     .wd-sticky-btn-cartbutton.wd-buy-now-btn {
         width: 90% !important;
         margin: 10%;
         border-radius: 5px;
         background: linear-gradient(310deg, var(--e-global-color-primary) 0%, var(--wd-primary-color) 100%);
    }
}
 @media (min-width: 768px) and (max-width: 1024px) {
     .summary-inner span.woocommerce-Price-amount.amount {
         display: none;
    }
}
 @media (max-width: 768px) {
     .wd-sticky-btn-cart {
         flex-direction: row-reverse;
         justify-content: space-around !important;
         gap: 25px; 
    }
     .summary-inner span.woocommerce-Price-amount.amount {
         display: none 
    }
}


.wd-sticky-btn button#wd-add-to-cart {
    background: linear-gradient(
353deg, var(--wd-primary-color) 0%, rgb(5 123 247) 100%);
    border-radius: 10px;
}



.summary-inner table.variations tr * {
    text-align: center !important;
}

 .summary-inner ul.variable-items-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}


.summary-inner span.variable-item-span.variable-item-span-button {
    padding: 8px;
}

.wd-sticky-btn-container button.wd-buy-now-btn  {
    background: linear-gradient(353deg, var(--wd-primary-color) 0%, rgb(5 123 247) 100%);
    border-radius: 10px !important;
    margin-right: 10px;
}



.wd-cats-element .wd-cat-inner.wrapp-category {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.wd-cats-element .wd-cat-thumb.category-image-wrapp {
    padding: 0 10px;
}


.wd-before-product-tabs {
    display:none;
}

.product-type-simple 
.summary-inner 
form.cart {
    display:none;
}

.summary .wd-term,

.wd-blog-element  
.wd-post-inner  
.wd-post-cat.wd-style-default 
 
{
pointer-events: none;
  cursor: default;
}

button.wd-buy-now-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

button.wd-buy-now-btn::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'%3E%3C/circle%3E%3Ccircle cx='20' cy='21' r='1'%3E%3C/circle%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.wd-sticky-btn form.cart {
    flex: 0 0 70% !important;
}

.whatsapp-rinof, .bale-rinof{
	font-size: 11px !important;
}

.woocommerce-additional-fields{
	display: none;
}

/* حذف ستاره اضافی از فیلد شهر (و سایر فیلدها در صورت وجود) */
.woocommerce-checkout .form-row label abbr.required {
    display: none !important;
}

.shop-loop-head{
	margin-bottom: 15px !important;
}

.cat-product-title{
	margin-bottom: 30px;
}

@media(max-width: 768px){
	.wd-sticky-btn form.cart{
		flex: 0 0 52% !important;
	}
	button.wd-buy-now-btn::before{
		width: 14px;
    	height: 14px;
	}
	.whatsapp-rinof, .bale-rinof{
		font-size: 12px !important;
	}
	.single-product form.cart .wd-buy-now-btn{
		font-size: 10px !important;
	}
	.wd-sticky-btn .wd-sticky-btn-cart{
		margin-inline: unset !important;
	}
	.wd-sticky-btn-cart.wd-product-type-variable {
    	gap: 10px;
	}
}

/* غیرفعال کردن کشسانی و تعیین عرض ثابت و یکسان برای هر دو حالت */
.wd-sticky-btn-cart.wd-product-type-variable button,
.wd-sticky-btn-cart.wd-product-type-simple form.cart {
    flex: 0 0 auto !important;
    width: 170px !important; 
}

/* دکمه محصول ساده تمام عرض ۱۷۰ پیکسل فرم والد خود را پر کند */
.wd-sticky-btn-cart.wd-product-type-simple form.cart button {
    width: 100% !important;
}

/* ---- custom css End -------------------------------------------------------------------------------------------------*/
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
 
