/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

.wd-products[class*="wd-stretch-cont"] .wd-carousel-item{
    height: inherit!important;
}
.viewed .product-wrapper .product-element-top img{
    height: 64px;
    object-fit: contain;
    padding: 0;
    width: 40px;
}
.product-wrapper .product-element-top img{  
    height: 160px !important;
    object-fit: contain !important;
    padding: 4px !important;    
}

.whb-top-bar-inner .wd-header-html {
	width:100%;
}

.cst_homeslider .swiper-pagination-bullet{
	height:4px;
	width:100px;
	border-radius:0;
}

.searchform .searchsubmit:after{
    color:#CFCFCF!important;
    font-size: 18px!important;
}

/* главная слайдер бенды */
.cstslider_brand .wd-brand-item{
    padding: 0!important;
}

/* главная слайдер бенды */
.cstslider_brand .wd-brand-item a{
    padding: 20px 0;
}

/* главная слайдер бенды */
.cstslider_brand .wd-brand-item:hover{
    background-color: #f5f5f5;
}

.wd-gallery-thumb .wd-carousel-item img{
    height: 120px !important;
    object-fit: contain !important;
    width: 140px!important;
    padding: 8px;
    background-color: #f7f7f7!important;
}

.wd-gallery-thumb .wd-carousel-item img:hover{
    border: 1px solid #000;
    background: #f7f7f7;
    border-radius: 4px;
}

.single-product .wd-gallery-thumb .wd-grid .wd-carousel-wrap .wd-carousel-item{
    max-width: 140px!important;
    height: 140px!important;
}

.single-product .wd-gallery-thumb .wd-grid .wd-carousel-wrap .wd-carousel-item.wd-thumb-active img{
    border: 1px solid #000;
    border-radius: 4px;
}



.wd-carousel-wrap .wd-carousel-item .woocommerce-product-gallery__image {
    height: 650px!important;
	background-color: #f7f7f7;
	display: flex;
  	align-items: center; /* Выравнивание по вертикали */
  	justify-content: center; /* Выравнивание по горизонтали */
  	height: 100vh; /* Важно задать высоту! */
    
}

@media (max-width: 768px) { 
		.wd-carousel-wrap .wd-carousel-item .woocommerce-product-gallery__image {
    	height: 400px!important;
	}
}

.wd-carousel-wrap .wd-carousel-item .woocommerce-product-gallery__image img{
    height: 400px!important;
    object-fit: contain!important;
}

@media (max-width: 768px) { 
		.wd-carousel-wrap .wd-carousel-item .woocommerce-product-gallery__image img {
    	height: 370px!important;
	}

}

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

.cstwishlist .yith-wcwl-add-to-wishlist-button span{
    display: none;
}


.wd-product.wd-hover-icons .wd-buttons{
    padding: 0 16px 0 0!important;
    display: flex!important;
    justify-content: end;
    background: transparent!important;
    box-shadow: none!important;
}

.yith-add-to-wishlist-button-block{
    margin: 8px 0!important;
}

.wd-product.wd-hover-icons .wrapp-buttons {
    top: -12px;
    margin-left: auto;
    width: 40px;
}

.product-element-bottom .wd-product-cats{
    font-size: 12px!important;
}

.cstslider_brand .wd-carousel-item {
    border-right: none; /* default, borderni tozalash */
}


/* Wishlist icon: oddiy holat - bo'sh heart (kulrang) */
.product-grid-item .wd-action-btn.wd-wishlist-btn > a:before {
    content: "\f106";
    color: #999; /* Kulrang rang, o'zgartirishingiz mumkin */
}

/* Qo'shilganda - to'ldirilgan qizil heart */
.product-grid-item .wd-action-btn.wd-wishlist-btn > a.added:before {
    content: "\f106";
    color: #ff0000; /* Qizil rang, o'zgartirishingiz mumkin (masalan, #e74c3c) */
}

/* Hover effekti (ixtiyoriy) */
.wd-action-btn.wd-wishlist-btn > a:hover:before {
    color: #ff4444; /* Hoverda biroz ochiqroq qizil */
}

/* 


==========================================================
главная слайдер с категориями круглыми картинками стрелки 
==========================================================
*/

/* главная слайдер с категориями круглыми картинками */
.subcat-slide img {
    width: 80px;
    height: 80px!important;
    object-fit: cover;
    border-radius: 50%!important;
    display: block;
    margin: 0 auto 5px;
}
/* главная слайдер с категориями круглыми картинками */
.subcat-slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.subcat-slider-wrapper {
    position: relative;
    overflow: hidden;
}
/* главная слайдер с категориями круглыми картинками стрелки */
.subcat-slider-wrapper .subcat-prev,
.subcat-slider-wrapper .subcat-next {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    font-size: 24px;
    border-radius: 50%;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.subcat-slider-wrapper .subcat-prev:hover,
.subcat-slider-wrapper .subcat-next:hover {
    background: transparent!important;
}
.subcat-slider-wrapper .subcat-prev {
    left: -32px;
}

/* главная слайдер с категориями круглыми картинками стрелки */
.subcat-slider-wrapper .subcat-next {
    right: 6px;
}

/* главная слайдер с категориями круглыми картинками стрелки */
.subcat-slider {
    display: flex;
    transition: transform 0.3s ease;
    padding-right: 64px;
}

/* главная слайдер с категориями круглыми картинками стрелки */
.subcat-slide {
    flex: 0 0 18%; /* 5 ta ko'rinishi uchun */
    padding: 0 10px;
    box-sizing: border-box;
}

/* главная слайдер с категориями круглыми картинками стрелки */
.category-desc{
	font-family: 'Roboto', sans-serif;
	font-weight: 400 !important;
    text-align: center;
    font-size:14px; 
    margin-top:8px;
	color: #000;
}

.page .wd-page-content,
.single-product .wd-page-content{
    background: #fff!important;
}

.desktop{
    display: none;
}


 .mobile{ 
    display: block;			
}

.value.cell.woo-variation-items-wrapper{
    display: flex!important;
    align-items: center!important;
}

.woocommerce-Tabs-panel {
    color:#000 !important;
}



.woocommerce-variation.single_variation.wd-show{
    font-size: 20px;
}

.variations{
    margin-bottom: 10px!important;
}

.product_list_widget>li img,
.wd-checkout-prod-img img{
    height: 56px!important;
    object-fit: contain;
}

.wd-nav-arrows[class*="wd-hover"].wd-pos-sep .wd-btn-arrow {
    opacity: 1!important;
    visibility: visible;
    pointer-events: auto;
    transition: all 0.3s ease;
    transform: none!important;
}

/* Chap arrow - disabled bo'lganda yashirish */
.wd-nav-arrows .wd-prev.wd-disabled {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* O'ng arrow - disabled bo'lganda yashirish */
.wd-nav-arrows .wd-next.wd-disabled {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Arrow hover effektlari */
.wd-btn-arrow:not(.wd-disabled) {
    transition: all 0.3s ease;
}

.wd-btn-arrow:not(.wd-disabled):hover {
    transform: scale(1.1);
}

.wd-carousel-item.wd-slide-visible{

    object-fit: cover;
}

/* Основной контейнер */
.wd-search-results .wd-suggestion {
    display: flex !important;
    align-items: center !important;
    padding: 15px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

/* Изображение */
.wd-search-results .wd-suggestion-thumb {
    width: auto !important;
    height: auto !important;
    margin-right: 15px !important;
    flex-shrink: 0 !important;
}

.wd-search-results .wd-suggestion-thumb img {
    width: auto !important;
    height: auto !important;
    max-width: 160px !important;
    max-height: 160px !important;
    object-fit: contain !important;
    border-radius: 8px !important;
    transition: transform 0.3s ease !important;
}

.cstsaidmenu .elementor-item-active{
    background: #f5f5f5!important;

}

/* Эффект при наведении */
.wd-search-results .wd-suggestion:hover {
    background: #f9f9f9 !important;
}

.wd-search-results .wd-suggestion:hover img {
    transform: scale(1.05) !important;
}

.label label::after{
    display: none;
}

.woo-selected-variation-item-name::before {
  content: none !important;
}
/* Текст товара */
.wd-search-results .wd-suggestion-content {
    flex: 1 !important;
}

.sku_wrapper{
    padding: 8px;
    border: 1px solid #333;
    margin-bottom: 8px;
}

.wd-search-results .wd-entities-title {
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin-bottom: 5px !important;
    color: #333 !important;
}

.wd-search-results .price {
    font-size: 13px !important;
    color: #666 !important;
}


/* Мобильная версия */
@media (max-width: 768px) {
    .wd-search-results .wd-suggestion {
        padding: 12px !important;
    }
    
    .wd-search-results .wd-suggestion-thumb img {
        max-width: 60px !important;
        max-height: 60px !important;
    }
    
    .wd-search-results .wd-entities-title {
        font-size: 13px !important;
    }
}
/* X ni yashiramiz */
.woocommerce-cart-form__cart-item .product-remove a.remove {
    font-size: 0; /* matnni yashiradi */
    position: relative;
}

/* "Удалить" ni ohiriga qo‘shamiz */
.woocommerce-cart-form__cart-item .product-remove a.remove::after {
    content: "Удалить";
    font-size: 14px;
    color: #cc0000; /* qizil rang (xohlagancha o‘zgartiring) */
    margin-left: 5px;
}
td.product-remove a:before, .woocommerce-remove-coupon:before{
    display: none;
}

.cstcart div.quantity{
    gap: 8px;
}

.cstcart div.quantity input[type="button"],
.cstcart div.quantity input[type="number"]{
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f5f5f5;
}

/* Mobil uchun */
@media (max-width: 768px) {
    .price,
    .woocommerce-variation-price .price,
    .wd-single-price .price,
    .wrap-price .price {
        gap: 6px !important;
        font-size: 13px !important;
    }
    
    .price del,
    .woocommerce-variation-price .price del,
    .wd-single-price .price del,
    .wrap-price .price del {
        font-size: 12px !important;
    }
    
    .price ins,
    .woocommerce-variation-price .price ins,
    .wd-single-price .price ins,
    .wrap-price .price ins {
        font-size: 14px !important;
    }
}

/* Специально для поиска */
.wd-search-results .price {
    margin: 0 !important;
    font-size: 14px !important;
}

.wd-search-results .price del {
    font-size: 13px !important;
}

.wd-search-results .price ins {
    font-size: 15px !important;
}

/* Для карусели и виджетов */
.wd-carousel .price,
.widget_products .price,
.wd-products-tabs .price {
    justify-content: center !important;
}

.onsale.product-label{
    display: none!important;
}


/* Мобильная адаптация */
@media (max-width: 768px) {
    .price {
        gap: 6px !important;
        font-size: 13px !important;
    }
    
    .price ins {
        font-size: 14px !important;
    }
    
    .price del {
        font-size: 12px !important;
    }
}

/* Убираем лишние стили */
.price ins,
.price del {
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.home .wd-content-layout{
    padding: 0!important;
}



@media(max-width: 768px){
   .wd-carousel-container.wd-gallery-thumb{
    display: none;
   }
    .desktop{
        display: block;
    }
    .subcat-slider {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;    
    }
    .subcat-slider::-webkit-scrollbar {
        display: none; 
    }
    .subcat-slide {
        flex: 0 0 22%; 
    }
    .subcat-slide img {
        width: 64px;
        height: 64px!important;
        display: block;
    }
    .subcat-prev,
    .subcat-next{
        display: none!important;
    }
    .category-desc{
        font-size:12px; 
        margin-top:4px;
    }
   .cst_homeslider .swiper-pagination-bullet{
    width: 48px;
   } 
   .cst_homeslider .elementor-swiper-button{
    display: none!important;
   }
   .cstslider_brand .wd-brand-item{
    background: #f5f5f5;
   	

   }
   .product-wrapper .product-element-top img {
    height: 160px!important;
    padding: 8px!important;
    }
    .product-element-bottom .wd-product-cats{
        font-size: 10px!important;
    }
    .orderby{
        height: 32px!important;
    }
    

}

.woocommerce-cart .product-thumbnail img {
    width: auto;      /* original nisbatni saqlaydi */
    height: 100px;    /* kerakli balandlik */
    object-fit: contain; /* kesmasdan sig‘diradi */
}


.cst_shortcode .elementor-shortcode{
    font-size: 20px;
}

.label.cell{
    display: none!important;
}

.variable-items-wrapper.button-variable-items-wrapper{
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: normal;
}

.variable-items-wrapper.button-variable-items-wrapper li{
    width: 47.5%!important;
    height: 48px!important;
}
.variable-items-wrapper.button-variable-items-wrapper li .variation-price{
    font-size: 10px!important;
    color: #898989!important;
    padding-top: 2px!important;
    font-weight: 500!important;
}

.variable-items-wrapper.button-variable-items-wrapper li  .variable-item-span.variable-item-span-button{
    display: contents!important
}


.in-stock{
	margin-bottom: 5px;
}