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


/**
 * ------------------------------------------------------------------------------------------------
 * Хелперы
 * ------------------------------------------------------------------------------------------------
 */
.thumbnail-16-9 img {
    aspect-ratio: 16/9;
    object-fit: cover;
}

.wd-header-cats.wd-style-1 .menu-opener {
    min-width: 300px !important;
    border-radius: 0 !important;
    background: var(--wd-primary-color);
    color: white;

}

.wd-header-cats.wd-style-1 .menu-opener .menu-open-label {
    font-size: 14px;
}

.elementor-widget-icon-list .elementor-icon-list-items .elementor-icon-list-text {
    text-shadow: none !important;
}

.wd-page-title {
    --wd-title-font-s: 30px;
}

.wd-page-title .title {
    order: 1;
}

.wd-gallery-item.wd-carousel-item > a {
    position: relative;
}

.category-grid-item .wd-cat-thumb,
.category-grid-item .wd-cat-image {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-grid-item .wd-cat-content .wd-entities-title {
    font-size: 14px;
    text-transform: none;
}

.category-grid-item .wd-cat-thumb:after {
    background: rgba(51, 51, 51, .05);
    position: absolute;
    content: "";
    display: block;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
}

.category-grid-item .wd-cat-thumb img {
    aspect-ratio: 1;
    object-fit: contain;
}

/**
 * ------------------------------------------------------------------------------------------------
 * Contact form 7
 * ------------------------------------------------------------------------------------------------
 */
.wpcf7 .policy-text p {
    margin-bottom: 0;
}
.wpcf7 .policy-text {
    font-size: var(--e-global-typography-42a5abb-font-size, 14px);
    line-height: var(--e-global-typography-42a5abb-line-height, 1.3em);
}
.wpcf7 .policy-text a {
    color: inherit;
    text-decoration: underline;
}
.wpcf7 .policy-text a:hover, .policy-text a:focus {
    color: inherit;
    text-decoration: none;
}

.contact-tabs .wd-tabs-header {
    order: 1;
}

.contact-tabs .wd-entry-content iframe {
    border-radius: 10px;
    overflow: hidden;
}

@media screen and (max-width: 1400px) {
    .first-screen-remove-radius .wd-carousel .wd-image img {
        border-radius: 0 !important;
    }
}

/**
 * ------------------------------------------------------------------------------------------------
 * Шапка
 * ------------------------------------------------------------------------------------------------
 */
/* увеличить отступ для крестика в поиске */
form.searchform .wd-clear-search {
	width: 42px;
}

/**
 * ------------------------------------------------------------------------------------------------
 * Подвал
 * ------------------------------------------------------------------------------------------------
 */
.wd-footer .footer-sidebar .footer-column-1 {
    --wd-col-sm: 12 !important;
    --wd-col-md: 12 !important;
    --wd-col-lg: 9 !important;
}

.wd-footer .footer-sidebar .footer-column-2 {
    --wd-col-sm: 12 !important;
    --wd-col-md: 12 !important;
    --wd-col-lg: 3 !important;
}

.footer-column-1 .wc-block-product-categories-list {
    column-count: 3;
    padding-left: 1.25em;
    list-style: disc;
}

.footer-column-1 .wc-block-product-categories-list .wc-block-product-categories-list-item {
    margin-bottom: 8px;
}

@media screen and (max-width: 768px) {
    .footer-column-1 .wc-block-product-categories-list {
        column-count: 2;
    }
}

@media screen and (max-width: 576px) {
    .footer-column-1 .wc-block-product-categories-list {
        column-count: 1;
    }
}

.footer-column .footer-widget.widget {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* копирайт */
.wd-copyrights .wd-text-block a {
    color: var(--e-global-color-27061cb, #fff);
}

@media screen and (max-width: 576px) {
	.wd-copyrights .wd-info-box {
		flex-direction: column-reverse;
	}
}

.wd-copyrights .wd-text-block a:hover,
.wd-copyrights .wd-text-block a:focus,
.wd-copyrights .wd-info-box:hover .info-box-content,
.wd-copyrights .wd-info-box:focus .info-box-content,
.wd-copyrights .wd-list-content a:hover,
.wd-copyrights .wd-list-content a:focus {
    text-decoration: underline;
}

body:not(.sticky-footer-on) .wd-page-wrapper.website-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body:not(.sticky-footer-on) .wd-page-content {
    flex: 1 0 auto;
}

/**
 * ------------------------------------------------------------------------------------------------
 * Разное
 * ------------------------------------------------------------------------------------------------
 */
/* jivo */
@media (max-width: 1024px) {
	jdiv .__jivoMobileButton {
		bottom: 60px;
	}
}

/**
 * ------------------------------------------------------------------------------------------------
 * Каталог
 * ------------------------------------------------------------------------------------------------
 */
/* уменьшить padding чтобы вмещались названия категорий */
.category-grid-item .wd-cat-content {
	padding: 8px 0 10px;
}

/* табличный список товаров */
.woocommerce-ordering,
.wd-filter-buttons {
    display: none !important;
}
.shop-loop-head {
    margin-bottom: 15px;
}
.wd-products-element {
    margin-top: 30px;
}
.wd-action-btn.wd-style-text > a {
    font-weight: 400;
}

.krep-products-table {
    display: table;
    width: 100%;
    margin-bottom: 30px;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
}

.krep-products-table__image-col {
    width: 85px;
}

.krep-products-table__price-col {
    width: 150px;
}

.krep-products-table__attribute-col {
    width: 120px;
}

.krep-products-table__actions-col {
    width: 175px;
}

.krep-products-table thead {
    display: table-header-group;
}

.krep-products-table tbody {
    display: table-row-group;
}

.krep-products-table tr {
    display: table-row;
}

.krep-products-table th,
.krep-products-table td {
    display: table-cell;
    padding: 12px 12px;
    border-bottom: 1px solid var(--brdcolor-gray-300, #e5e5e5);
    text-align: left;
    vertical-align: middle;
}

.krep-products-table thead th {
    padding-top: 0;
    padding-bottom: 14px;
    color: var(--color-gray-800, #333);
    text-align: left;
    font-size: 14px;
    font-weight: 400;
}

.krep-products-table__image {
    width: 90px;
    text-align: left;
}

.krep-products-table__image-link {
    display: block;
    position: relative;
    width: 60px;
}

.krep-products-table__image-link:before,
.krep-products-table__image-link:after {
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.krep-products-table__image-link:before {
    content: "";
    z-index: 1;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    margin-left: -17px;
    border-radius: 50%;
    background-color: rgba(80, 80, 80, 0.82);
    transform: scale(.85);
}

.krep-products-table__image-link:after {
    content: "\f130";
    z-index: 2;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    margin-left: -17px;
    color: #fff;
    text-align: center;
    font-family: woodmart-font;
    font-size: 18px;
    line-height: 34px;
    transform: scale(.85);
}

.krep-products-table__image-link:hover:before,
.krep-products-table__image-link:hover:after,
.krep-products-table__image-link:focus:before,
.krep-products-table__image-link:focus:after {
    opacity: 1;
    transform: scale(1);
}

.krep-products-table__image img {
    display: block;
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.krep-products-table__title {
    width: auto;
    text-align: left;
}

.krep-products-table__title-link {
    display: inline-block;
    color: var(--color-gray-800, #333);
    font-size: 14px;
    line-height: 1.35;
}

.krep-products-table__title-link:hover,
.krep-products-table__title-link:focus {
    color: var(--wd-primary-color);
}

.krep-products-table__price,
.krep-products-table__price-head {
    width: 150px;
    text-align: left;
}

.krep-products-table__attribute,
.krep-products-table__attribute-head {
    width: 120px;
    text-align: center;
}

.krep-products-table__attribute {
    color: var(--color-gray-800, #333);
    font-size: 14px;
    line-height: 1.35;
}

.krep-products-table__price .price {
    display: block;
    margin-bottom: 0;
    color: var(--color-gray-800, #333);
    font-size: 14px;
    font-weight: 400;
}

.krep-products-table__actions,
.krep-products-table__actions-head {
    width: 150px;
    text-align: right;
}

.krep-products-table__cart {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.krep-products-table__cart .quantity {
    margin-bottom: 0;
    --wd-form-height: 42px;
}

.krep-products-table__cart .quantity input[type="number"],
.krep-products-table__cart .quantity input[type="text"] {
    width: 44px;
}

.krep-products-table__add {
    --wd-btn-icon: "\f123";
    --wd-action-icon-size: 22px;
    --wd-action-icon-color: #fff;
    --wd-action-icon-color-hover: #fff;
}

.krep-products-table__add .add_to_cart_button,
.krep-products-table__add .product_type_variable,
.krep-products-table__add .product_type_grouped {
    width: 44px;
    height: 42px;
    min-width: 44px;
    min-height: 42px;
    padding: 0;
    border-radius: 5px;
    background-color: #d9332b;
    color: #fff;
    font-size: 0;
}

.krep-products-table__add > a,
.krep-products-table__add a,
.krep-products-table__add .add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 42px !important;
    min-width: 44px;
    min-height: 42px;
    padding: 0 !important;
    border-radius: 5px;
    background-color: #d9332b !important;
    color: #fff !important;
    font-size: 0 !important;
}

.krep-products-table__add > a:hover,
.krep-products-table__add > a:focus,
.krep-products-table__add a:hover,
.krep-products-table__add a:focus {
    background-color: #bd291f !important;
    color: #fff !important;
}

.krep-products-table__add .add-to-cart-loop .wd-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.krep-products-table__add .wd-action-icon:before,
.krep-products-table__add .add-to-cart-loop .wd-action-icon:before {
    content: "\f123" !important;
    color: #fff !important;
    opacity: 1 !important;
    font-family: "woodmart-font" !important;
}

.krep-products-table__add .add-to-cart-loop.loading .wd-action-icon:before {
    opacity: 0 !important;
}

.krep-products-table__add a.added .wd-action-icon:before {
    opacity: 0 !important;
}

.krep-products-table__add .wd-action-btn .wd-check-icon,
.krep-products-table__add .wd-check-icon {
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: inherit;
    background-color: transparent;
    transform: none;
}

.krep-products-table__add a.added .wd-check-icon {
    display: flex;
}

.krep-products-table__add .added_to_cart {
    display: none !important;
}

.krep-products-table__add .wd-check-icon:before {
    color: #fff;
    font-size: 17px;
}

.krep-products-table__add .add-to-cart-loop .wd-action-icon:before,
.krep-products-table__add .product_type_variable:before,
.krep-products-table__add .product_type_grouped:before {
    font-size: 22px;
}

.krep-products-table__add .wd-action-text {
    display: none;
}

@media (max-width: 768.98px) {
    .krep-products-table,
    .krep-products-table thead,
    .krep-products-table tbody,
    .krep-products-table tr,
    .krep-products-table th,
    .krep-products-table td {
        display: block;
    }

    .krep-products-table thead {
        display: none;
    }

    .krep-products-table tr {
        display: grid;
        grid-template-columns: 64px 1fr;
        gap: 8px 12px;
        padding: 12px 0;
        border-bottom: 1px solid var(--brdcolor-gray-300, #e5e5e5);
    }

    .krep-products-table td {
        width: auto;
        padding: 0;
        border-bottom: none;
    }

    .krep-products-table__image {
        grid-row: span 5;
    }

    .krep-products-table__image-link,
    .krep-products-table__image img {
        width: 56px;
        height: 56px;
    }

    .krep-products-table__image-link:before,
    .krep-products-table__image-link:after {
        top: 0;
        left: auto;
        right: 0;
        opacity: 1;
        transform: none;
    }

    .krep-products-table__image-link:before {
        width: 20px;
        height: 20px;
        margin: 0;
        background-color: rgba(80, 80, 80, 0.62);
    }

    .krep-products-table__image-link:after {
        width: 20px;
        height: 20px;
        margin: 0;
        font-size: 10px;
        line-height: 20px;
    }

    .krep-products-table__price {
        margin-top: 2px;
    }

    .krep-products-table__attribute {
        display: flex;
        gap: 8px;
        justify-content: flex-start;
        text-align: left;
    }

    .krep-products-table__attribute:before {
        content: attr(data-label) ":";
        min-width: 72px;
        color: var(--color-gray-500, #777);
    }

    .krep-products-table__attribute--empty {
        display: none;
    }

    .krep-products-table__actions {
        margin-top: 4px;
    }

    .krep-products-table__cart {
        justify-content: flex-start;
    }
}

/* Product table PhotoSwipe lightbox */
.pswp .pswp__bg {
    background-color: rgba(0, 0, 0, 0.7);
}

.pswp .pswp__top-bar {
    height: 48px;
    background-color: rgba(35, 35, 35, 0.82);
}

.pswp .pswp__counter {
    color: #fff;
    opacity: 1;
}

.pswp .pswp__button {
    opacity: 1;
}

.pswp .pswp__button:before {
    opacity: 1;
}

.pswp .pswp__button--close,
.pswp .pswp__button--share,
.pswp .pswp__button--fs,
.pswp .pswp__button--zoom {
    background-color: rgba(0, 0, 0, 0.35);
}

.pswp .pswp__button--close:hover,
.pswp .pswp__button--share:hover,
.pswp .pswp__button--fs:hover,
.pswp .pswp__button--zoom:hover {
    background-color: rgba(0, 0, 0, 0.55);
}

.pswp .pswp__button--arrow--left,
.pswp .pswp__button--arrow--right {
    background-color: rgba(0, 0, 0, 0.32);
}

.pswp .pswp__button--arrow--left:hover,
.pswp .pswp__button--arrow--right:hover {
    background-color: rgba(0, 0, 0, 0.5);
}
