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

li.has-dinamic-discount.menu-item a {
	color: var(--wd-primary-color);
	font-weight: 600;
	padding-left: 25px;
}


.whb-column>.wd-button-wrapper {
    flex-grow: 1;
}

ul.contact_footer {
    list-style-type: none;
    padding-left: 0;
}

p#billing_country_field {
    display: none;
}

.contact_wrap ul {
    list-style-type: none;
    padding-left: 0;
}


.messenger-wrap img {
    margin-right: 10px;
}


.wd-nav-vertical img,
.wd-nav-img,
.mega-menu-list img {
    min-width: 18px;
}


.article-body-container .entry-meta,
.article-body-container .hovered-social-icons:after,
.article-body-container .wd-tooltip-label {
    display: none;
}

.footer-column .wp-block-image figcaption {
    text-align: left;
    font-style: normal;
}

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background-color: var(--wd-primary-color);
    border-radius: 20px;
}

/*Цвет статусов остатков*/

/* Закончился */
.ended {
    color: rgb(206, 55, 55)
}

/* Заканчивается */
.finish {
    color: rgb(245, 173, 41);
}

/* Мало */
.few {
    color: rgb(224, 224, 31);

}


/* Много */
.many {
    color: rgb(31, 207, 31);
}

p.stock.wd-style-default {
    display: none;
}

/*Конец цвет статусов остатков*/

.product-images img {
    max-height: 500px;
    -o-object-fit: contain;
    object-fit: contain;
}

.product-grid-item .product-image-link img,
.product-grid-item .hover-img img,
body:not(.home) .tax-product_cat .cat-design-alt img,
body:not(.home) .category-grid-item img {
    width: 100%;
    border-radius: var(--wd-brd-radius);
    height: 200px;
    object-fit: contain;
}



.products:not(.wd-img-width) .cat-design-alt img {
    width: 100% !important;
}

html .product.category-grid-item .wd-entities-title {
    background: #ffffffa3;
}




.footer-column {
    display: flex;
    justify-content: center;
}



figure.wp-block-image.size-medium.is-resized {
    text-align: center;
}

/* Отступ сетки товаров чтобы подвинуть сброс фильтров ниже */
.products[data-source="main_loop"] {
    margin-bottom: 20px;
}


/* Бейджики */

.product-labels {
  max-width: unset !important;
  position: absolute;
  top: 15px;
  inset-inline-start: calc(var(--wd-gap) / 2);
  z-index: 1;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  max-width: 50%;
  transition: all .3s ease;
  transform: translateZ(0);
	
}
.product-labels .product-label.hit_sales {
    background: rgb(229, 158, 52);
}

.product-labels .product-label.has-dinamic-discont {
	  background: var(--btn-accented-bgcolor);
}

.product-label {
  padding: 5px 10px;
  min-width: 50px;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  word-break: break-all;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
}

/* Архивные бейджики */
.archive .product-labels.labels-rectangular a {
    display: flex;
    margin-bottom: 5px;
}

/* Конец Архивные бейджики */

.labels-rectangular {
    gap: 5px;
}

/* Конец бейджики */

/* Карточка товара архив */
.product-grid-item .product-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.products.elements-grid.wd-products-holder {
    margin-bottom: 30px;
}

/**
 * 	Динамические скидки в архиве
 * 
 */

.wd-dynamic-discounts-archive {
	margin: 15px auto;
	font-size: 12px;
}

.wd-dynamic-discounts-archive thead th {
	text-transform: none;
	font-size: 14px;
	padding: 5px 3px;
}

.wd-dynamic-discounts-archive table td {
	padding: 3px;
}

.wd-dynamic-discounts-archive .wd-dd-quantity,
.wd-dynamic-discounts-archive .wd-dd-discount {
	color: var(--wd-text-color);
}
.wd-dynamic-discounts-archive .amount {
	color: var(--wd-title-color);
}

/*start responsive*/
@media screen and (min-width:1025px) {
    .site-logo {
        width: 270px;
    }

    /*Подтверждение учетной записи*/
    div#signup-content {
        padding-left: 300px;
    }
}


@media (max-width: 490px) {
    .hide-the-text p {
        display: none;
    }

    .whb-top-bar .whb-col-mobile {
        text-align: center;
    }
}


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

    .product-grid-item .product-image-link img,
    .product-grid-item .hover-img img {
        height: 150px;
    }

    .product-images img {
        max-height: 300px !important;
    }
}


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

    .product-grid-item .product-image-link img,
    .product-grid-item .hover-img img {
        height: 120px;
    }
}

@media screen and (max-width:768px) {
    .woocommerce-ordering.wd-ordering-mb-icon {
        margin-bottom: 0;
    }

    .wd-shop-tools {
        flex-grow: 1;
        justify-content: space-between;
    }
}

@media screen and (min-width:768px) {
    form.woocommerce-checkout {
        flex-wrap: inherit;
    }
}