/* FONT CONFIGURATION
---------------------------------------------------------------------------------------------------- */
/* ----- Webfont: YekanBakh ----- */
@font-face {
  font-family: 'YekanBakh';
  font-style: normal;
  font-weight: 400;
  src: url('/wp-content/themes/abzarmart/assets/fonts/YekanBakh/YekanBakhFaNum-Regular.woff2');
}

@font-face {
  font-family: 'YekanBakh';
  font-style: normal;
  font-weight: 600;
  src: url('/wp-content/themes/abzarmart/assets/fonts/YekanBakh/YekanBakhFaNum-SemiBold.woff2');
}

@font-face {
  font-family: 'YekanBakh';
  font-style: normal;
  font-weight: 700;
  src: url('/wp-content/themes/abzarmart/assets/fonts/YekanBakh/YekanBakhFaNum-Bold.woff2');
}

@font-face {
  font-family: 'YekanBakh';
  font-style: normal;
  font-weight: 800;
  src: url('/wp-content/themes/abzarmart/assets/fonts/YekanBakh/YekanBakhFaNum-ExtraBold.woff2');
}


/* BASIC STYLES
---------------------------------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}


html, body {
  font-family: 'YekanBakh', !important;
  font-weight: 400;
}

legend, h1, h2, h3, h4, h5, h6, .title,
.widgettitle, .widget-title,
p, a {
  font-family: 'YekanBakh' !important;
}

.navbar, .navbar * {
  font-family: 'YekanBakh' !important;
}

.dropdown-menu, .dropdown-menu * {
  font-family: 'YekanBakh' !important;
}

.modal, .modal * {
  font-family: 'YekanBakh' !important;
}


.wd-content-layout {
   padding-top: unset !important;
}

div:where(.elementor-location-header) {
    margin-bottom: unset !important;
}

.wd-prefooter {
    padding-bottom: unset !important;
}    

.star-rating {
    color: #0053B3 !important;
}

.star-rating::after {
    content: var(--star-content, "\f149"); 
    font-family: "woodmart-font";
    color: #0053B3;
    font-size: 16px;
    vertical-align: middle;
}

.star-rating span:before,
.star-rating:before {
    content: unset !important;
}    

.star-rating span {
    position: relative !important; 
    text-indent: 0; 
    overflow: visible; 
    display: inline; 
    font-family: 'YekanBakh';
    font-weight: 700;
    font-size: 12px;
    color: #173E77;
}

.star-rating span::before {
    content: unset;
}

.wd-product-cats {
        display: none;
}
    
.product-wrapper {
    border: 1px solid #E1E1E1;
    border-radius: 9.6px !important;
}

.wd-hover-tiled .product-wrapper {
    background-color: unset !important;
    box-shadow: unset !important;
}

.product-grid-item :is(.product-image-link,.hover-img) img {
    border-radius: 9.6px !important;
    padding: 25px;
    object-fit: cover;
    aspect-ratio: 1;
}

.product-element-top.wd-quick-shop {
    background-color: #fff;
    border-radius: 9.6px 9.6px 0px 0px !important;
    border-bottom: 1px solid #0000001A;
    
}

.wd-buttons.wd-pos-r-t {
    left: unset !important;
    right: 0px !important;
    top: 0px !important;
    background: unset;
    box-shadow: unset;
}

.wd-add-btn.wd-action-btn.wd-style-icon.wd-add-cart-icon {
    display: none;
}

.product-wrapper {
    height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}


.product-element-bottom {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-element-bottom h3 {
    min-height: 48px; 
    overflow: hidden;
}


.product-rating-price {
    margin-top: auto; 
}


.product-wrapper {
    position: relative;
}

.star-rating {
    position: absolute !important;
    top: 5px; 
    left: 0px; 
    z-index: 10;
    padding: 2px 6px;
    border-radius: 4px;
}

.star-rating:before {
    color: #0053B3 !important;
}

h3.wd-entities-title {
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.8em !important;
    text-align: center !important;
    color: #221F1F !important;
}

span.price {
    display: flex !important;;
    flex-direction: column !important;
    align-items: end;
}

.amount {
    color: #0053B3 !important;
    font-weight: 7600 !important;
    font-size: 16px !important;
}

del .amount {
    color: #A7A5A5 !important;
    font-weight: 700 !important;
    font-size: 12px !important;
}

.price del {
    text-decoration: line-through;
}

.product-labels.labels-rectangular {
    position: absolute;
    bottom: 10px !important;
    right: 10px !important;
    z-index: 10 !important;
    top: unset !important;
}

span.onsale.product-label {
    font-size: 10px !important;
    font-weight: 700 !important;
    border-radius: 9px;
    padding: 5px ! IMPORTANT;
    background: #D30000; 
}

nav[class*="-pagination"] li .current {
    background-color: #0053B3 !important;
    
}

nav[class*="-pagination"] li .page-numbers {
    border-radius: 5px !important;
}

form.woocommerce-ordering.wd-style-underline.wd-ordering-mb-icon {
    display: none;
}

nav[class*="-pagination"] li .page-numbers {
    color: #6A8EC4 !important;
    background: #FAFAFA;
}

nav[class*="-pagination"] ul {
    display: flex !important;
    justify-content: center;
    gap: 10px; 
}

.owl-carousel.owl-loaded {
    display: flex !important;
}

.owl-carousel :is(.owl-nav.disabled,.owl-dots.disabled) {
    display: block;
}

.wd-btn-arrow {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    /*transform: none !important; */
}

@media (min-width: 1025px) {
    .wd-nav-arrows.wd-hover-1.wd-pos-sep .wd-next {
        transform: translateX(50px) !important;
    }
}

@media (min-width: 1025px) {
    .wd-nav-arrows.wd-hover-1.wd-pos-sep .wd-prev {
        transform: translateX(-50px) !important;
    }
}

.owl-nav.disabled {
    display: flex !important;
    position: absolute;
    width: 100%;
    justify-content: space-between;
    align-self: center;
}

.wd-next .wd-arrow-inner:after {
    content: "" !important;
    background-image: url(https://abzarmart.irannovin.co/wp-content/uploads/2025/05/Frame-70.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    width: 100%;
    height: 80%;
    pointer-events: none !important;
}

.wd-prev .wd-arrow-inner:after {
    content: "" !important;
    transform: rotate(180deg);
    width: 100%;
    height: 80%;
    background-image: url('https://abzarmart.irannovin.co/wp-content/uploads/2025/05/Frame-70.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none !important;
}

[class*="wd-carousel-spacing-"] .owl-nav>div[class*="prev"] {
    right: calc(-20px + var(--wd-car-sp) / 2) !important;
}

[class*="wd-carousel-spacing-"] .owl-nav>div[class*="next"] {
    left: calc(-20px + var(--wd-car-sp) / 2) !important;
}

.wd-buttons[class*="wd-pos-r"] {
    opacity: 1 !important;
    transform: unset !important;
    visibility: visible !important;
}

a.open-quick-view.quick-view-button,
.wd-compare-btn.product-compare-button.wd-action-btn.wd-style-icon.wd-compare-icon {
    display: none !important;
}

.product-label {
    min-width: 22px !important;
}

.elementor-menu-cart__toggle .elementor-button {
    border-width: unset !important;
    border-style: unset !important;
    border-radius: unset !important;
    border-color: unset !important;  
}

.elementor-menu-cart__toggle .elementor-button:hover {
    border-width: unset !important;
    border-style: unset !important;
    border-radius: unset !important;
    border-color: unset !important;
}

.elementor-menu-cart--items-indicator-bubble .elementor-menu-cart__toggle .elementor-button-icon .elementor-button-icon-qty[data-counter] {
    background-color: #2057A7;
    font-size: 8px !important;
    top: -1px !important;
    left: 14px;
}

.elementor-menu-cart__toggle .elementor-button svg {
    fill: #12305C !important;
}

.wc-block-stock-filter .wc-block-checkbox-list__checkbox label[for="wc-block-checkbox-list-option-1"] {
    display: none !important;
}



@media (max-width: 767px) {
    .wd-product-cats.woodmart-product-cats {
        display: none;
    }

    .product-wrapper {
        border: 1px solid #E1E1E1;
        border-radius: 9.6px !important;
        height: 270px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-sizing: border-box;
        position: relative;
    }

    .wd-hover-tiled .product-wrapper {
        background-color: unset !important;
        box-shadow: unset !important;
    }

    .product-grid-item :is(.product-image-link,.hover-img) img {
        border-radius: 9.6px !important;
        padding: 25px;
        object-fit: cover;
        aspect-ratio: 1;
    }

    .product-element-top.wd-quick-shop {
        background-color: #fff;
        border-radius: 9.6px 9.6px 0px 0px !important;
        border-bottom: 1px solid #0000001A;
    }
    .wd-buttons.wd-pos-r-t {
        left: unset !important;
        right: 0px !important;
        top: 0px !important;
        background: unset;
        box-shadow: unset;
    }

    .wd-add-btn.wd-action-btn.wd-style-icon.wd-add-cart-icon {
        display: none;
    }

    .product-element-bottom {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .product-element-bottom h3 {
        min-height: 48px; 
        overflow: hidden;
    }

    .product-rating-price {
        margin-top: auto; 
    }

    .owl-carousel .owl-stage-outer {
        overflow: unset !important;
    }

    .star-rating {
        position: absolute !important;
        top: 5px; 
        left: 0px; 
        z-index: 10;
        padding: 2px 6px;
        border-radius: 4px;
    }

    .star-rating:before {
        color: #0053B3 !important;
    }

    h3.wd-entities-title {
        font-size: 12px !important;
        font-weight: 400 !important;
        line-height: 1.8em !important;
        text-align: center !important;
        color: #221F1F !important;
    }

    span.price {
        display: flex !important;
        flex-direction: column-reverse !important;
        align-items: end;
    }

    .amount {
        color: #0053B3 !important;
        font-weight: 7600 !important;
        font-size: 16px !important;
    }

    del .amount {
        color: #A7A5A5 !important;
        font-weight: 700 !important;
        font-size: 12px !important;
    }

    .product-labels.labels-rectangular {
        position: absolute;
        bottom: 10px !important;
        right: 10px !important;
        z-index: 10 !important;
        top: unset !important;
    }

    span.onsale.product-label {
        font-size: 10px !important;
        font-weight: 700 !important;
        border-radius: 9px;
        padding: 5px !important;
        background: #D30000; 
    }

    nav[class*="-pagination"] li .current {
        background-color: #0053B3 !important;
    }

    nav[class*="-pagination"] li .page-numbers {
        border-radius: 5px !important;
        color: #6A8EC4 !important;
        background: #FAFAFA;
    }

    nav[class*="-pagination"] ul {
        display: flex !important;
        justify-content: center;
        gap: 10px; 
    }

    form.woocommerce-ordering.wd-style-underline.wd-ordering-mb-icon {
        display: none;
    }
    
    .wd-btn-arrow {
        display: none !important;
    }
    
    .product-label {
    min-width: 22px !important;
    }
    
    .overflow-carousel .wd-carousel {
        overflow: unset !important;
    }
    .bf-brand-filter-form .bf-brand-list {
    display: flex !important;
    flex-direction: column !important;
    gap: .5rem .75rem;
}
}

.product-clp .category-grid-item .category-image {
    width: 50px;   
    height: 50px;  
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-clp .category-grid-item .category-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; 
}

em.woocommerce-review__verified.verified {
    width: 40%;
}

time.woocommerce-review__published-date {
	width: 30%;
    font-size: 13px;
}

strong.woocommerce-review__author {
	width: 30%
}

.shoppingcard_item {
    flex-direction: column;
}

.shoppingcard_item .shoppingcard_item__desc {
    width: 100% !important;
}

.bf-brand-filter-form .bf-brand-list {
  max-height: 630px;
  overflow-y: auto;
  padding-right: 5px; 
}
.bf-brand-list::-webkit-scrollbar {
  width: 6px;
}

.bf-brand-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.bf-brand-list::-webkit-scrollbar-thumb {
  background: #2057A7;
}


.wc-block-product-filter-price-slider__content {
    display: flex !important;
    flex-direction: column;
}
.wc-block-product-filter-price-slider__content--inline>.wc-block-product-filter-price-slider__left { order: 1;margin-bottom: 10px; }
.wc-block-product-filter-price-slider__content--inline>.wc-block-product-filter-price-slider__right { order: 2; }
.wc-block-product-filter-price-slider__range { order: 3; }

.wc-block-product-filter-price-slider .text input[type=text],.wc-block-product-filter-price-slider .text input[type=text]{
	max-width: 100% !important;
    width: 100% !important;
}
/* برای مرورگرهای Webkit: Chrome, Safari, Edge */
.wc-block-product-filter-price-slider__range input[type="range"]::-webkit-slider-thumb {
    background-color: #0456b4 !important;
    border: 1px solid #0456b4 !important;
}

/* برای Firefox */
.wc-block-product-filter-price-slider__range input[type="range"]::-moz-range-thumb {
    background-color: #0456b4 !important;
    border: 1px solid #0456b4 !important;
}

/* برای IE */
.wc-block-product-filter-price-slider__range input[type="range"]::-ms-thumb {
    background-color: #0456b4 !important;
    border: 1px solid #0456b4 !important;
}

/* Optional: تغییر رنگ track */
.wc-block-product-filter-price-slider__range .range-bar {
    background: #0456b552 !important;

}
.wc-block-product-filter-price-slider__range input[type="range"]::-webkit-slider-runnable-track {
    background-color: red
    height: 4px;
    border-radius: 2px;
}
.wc-block-product-filter-price-slider__range input[type="range"]::-moz-range-track {
    background-color: red
    height: 4px;
    border-radius: 2px;
}
.wc-block-product-filter-price-slider__range input[type="range"]::-ms-track {
    background-color: red
    height: 4px;
    border-radius: 2px;
    border-color: transparent;
    color: transparent;
}
.form-submit input#submit{
    top: 275px;
}
strong.woocommerce-review__author {
    width: 50%;
}
time.woocommerce-review__published-date{
	width:50%;
}