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


/* Общее */
.hidden-fields-container {
    display: none;
}

.col-auto {
    flex: 0 0 auto !important;
    width: auto !important;
}

.col-flex-auto {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto !important;
    width: auto !important;
}

.product-category .wrapp-category .category-image-wrapp img {
    aspect-ratio: 240 / 220;
    -o-object-fit: contain;
    object-fit: contain;
}

.product-wrapper .product-element-top .product-image-link img {
    aspect-ratio: 240 / 220;
    -o-object-fit: contain;
    object-fit: contain;
}

.product-wrapper .wd-entities-title {
    font-size: 16px !important;
}

.product-wrapper .product-item-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
}

.product-wrapper .price > span.woocommerce-Price-amount,
.product-wrapper .price > ins > span.woocommerce-Price-amount {
    font-size: 18px !important;
}

.wd-swatches-product {
    gap: 8px;
}

.wd-swatch.wd-text .wd-swatch-text {
    font-size: 14px;
}

.wd-reset-var .reset_variations {
    font-size: 14px;
    padding-block: 8px;
}

.wd-list.wd-type-icon li {
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.wd-list.wd-type-icon li .list-icon {
    margin-top: 1px;
}

.password-input {
    position: relative;
    display: block;
}

.show-password-input {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: var(--wd-form-height);
    height: var(--wd-form-height);
    cursor: pointer;
    font-size: 16px;
    color: var(--color-gray-600);
    -webkit-transition: all .25s ease;
    -o-transition: all .25s ease;
    transition: all .25s ease;
    background-color: transparent;
}

.show-password-input:hover {
    background-color: transparent;
}

.show-password-input:before {
    font-family: "woodmart-font";
    content: "\f11a";
}

.checkout-inline-error-message {
    font-size: 13px;
    margin-top: 2px;
}

.hide-larger-price .price>span:nth-child(3) {
    display: none;
}

.quick-shop-form table.variations {
    margin-bottom: 36px;
}

.wd-reset-var {
    display: block !important;
}

.wd-reset-var .reset_variations {
    margin-left: 0 !important;
}

.wd-sidebar.wd-side-hidden .widget-area {
    padding-block: 20px !important;
}

.wd-sidebar.wd-side-hidden .wd-widget {
    padding-inline: 20px !important;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.custom-hidden {
    display: none !important;
}

.form-hidden {
	display: none;
}

/* quantity */
div.quantity input[type="button"] {
    min-width: 32px !important;
}

.wd-quantity-overlap div.quantity input[type="button"] {
    min-width: 42px !important;
}

/* swatch */
.wd-swatches-product .wd-swatch.wd-text {
    border: var(--wd-form-brd-width) solid var(--wd-form-brd-color);
    border-radius: var(--wd-form-brd-radius) !important;
    padding: 8px 12px;
}

.wd-swatches-product .wd-swatch.wd-text:after {
    content: none !important;
}

.wd-swatches-product .wd-swatch.wd-text.wd-active {
    border-color: var(--wd-primary-color);
}

.wd-swatches-product .wd-swatch:hover {
    border-color: var(--wd-primary-color);
}

.wd-swatch.wd-disabled,
.wd-swatch.wd-out-of-stock {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

/* Шапка */
.whb-main-header {
    --wd-header-general-brd-w: 0px;
}

.whb-main-header .wd-header-text,
.whb-main-header .wd-header-text a {
    color: var(--wd-primary-color);
    text-transform: uppercase;
    font-size: 13px;
    line-height: 1.3em;
    font-weight: 500;
}

.whb-main-header .wd-header-text a:hover,
.whb-main-header .wd-header-text a:focus {
    text-decoration: none;
    color: inherit;
}

.wd-dropdown-menu.wd-design-sized:not(.wd-scroll)>.container, .wd-dropdown-menu.wd-design-sized.wd-scroll .wd-dropdown-inner>.container {
    padding-bottom: 30px !important;
}

@media (max-width: 480px) {
    .whb-main-header .whb-mobile-center .site-logo .wd-main-logo img[src$=".svg"] {
        max-width: 100% !important;
        max-height: 54px;
    }
}

@media (min-width: 992px) {
    .whb-sticked .whb-general-header.whb-sticky-row {
        display: none;
    }

    .whb-general-header .info-box-content .info-box-inner {
        margin-top: 0 !important;
    }
}

.page-title-default {
    border-bottom: 1px solid #ececec;
}

/* Подвал */
.wd-footer.footer-container {
    border-top: 1px solid #ececec;
}

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

.main-footer .footer-column .footer-widget .wp-block-heading {
    text-transform: var(--wd-widget-title-transform);
}

.main-footer .footer-column-4 .wp-block-heading::after {
    display: none;
}

.main-footer .footer-column-4 .wpb-content-wrapper {
    margin-top: 20px;
}

@media (min-width: 1025px) {
    .wd-copyrights {
        padding-bottom: 12px !important;
    }
}

@media (max-width: 1024px) {
    .wd-copyrights .wpb-copyright {
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
}

.main-footer {
    margin-top: 20px;
}

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

/* Woocommerce */
.woocommerce-Price-amount {
    white-space: nowrap;
}



@media (max-width: 576px) {
	.product-labels .product-label {
		min-width: 85px;
	}
}

/* Карточка товара */
.product-labels .product-label.label-term-new {
    color: #ffffff !important;
    background: #17a2b8 !important;
}

.product-labels .product-label.label-term-hit {
    color: #ffffff !important;
    background: #fd7e14 !important;
}

/* Страница товара */
.single-product .single-product-page .single-product-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.single-product .woocommerce-product-gallery .wd-gallery-images .wd-carousel-item > figure {
    padding: 12px;
    background: #fff;
    border: 1px solid #ececec;
}

.single-product .woocommerce-product-gallery .wd-gallery-images .wd-carousel-item > figure img {
    aspect-ratio: 1 / 1;
    -o-object-fit: contain;
    object-fit: contain;
}

.single-product .woocommerce-product-gallery .wd-gallery-thumb .wd-carousel-item > img {
    aspect-ratio: 1 / 1;
    -o-object-fit: contain;
    object-fit: contain;
    background: #fff;
    border: 1px solid #ececec;
}

@media screen and (min-width: 1024px) {
    .single-product .woocommerce-product-gallery .wd-gallery-thumb .wd-btn-arrow {
        border: 1px solid #ececec;
    }
}


.woocommerce-tabs.tabs-layout-accordion .wd-accordion-title .wd-accordion-title-text {
    font-weight: 600;
}

.woocommerce-tabs.tabs-layout-accordion .wd-accordion-item {
    border-top-width: 1px !important;
}

.single-product .related-and-upsells .related-products {
    border-top: 1px solid var(--brdcolor-gray-300);
    margin-top: 90px;
    padding-top: 20px;
}

.single-product table.variations {
    margin-bottom: 36px;
}

.single-product table.variations th.label {
    padding-bottom: 5px !important;
}

.single-product table.variations td.value {
    display: block;
    padding-bottom: 15px;
}

.single-product .wd-accordion .wd-accordion-item {
    border-top-width: 1px !important;
}

.single-product .wd-accordion .wd-accordion-item .wd-accordion-title {
    padding-block: 15px;
}

.single-product .wd-accordion .wd-accordion-item .wd-accordion-title .wd-accordion-title-text {
    font-weight: 600;
}

.single-product .wd-accordion .wd-scroll-content {
    padding-bottom: 15px;
    -webkit-padding-end: 0;
    padding-inline-end: 0;
    overflow: visible;
}

.single-product .wd-accordion .wd-scroll-content tr {
    padding-bottom: 5px;
    margin-bottom: 5px;
    border-style: dashed;
}

.single-product .wd-accordion .wd-scroll-content tr:last-child {
    border-bottom: 0;
}

.single-product .wd-accordion .wd-scroll-content .shop_attributes {
    overflow: visible;
}

.single-product .wd-single-add-cart .wd-reset-var .reset_variations,
.product-quick-view .wd-reset-var .reset_variations {
    padding-block: 0;
}

.single-product .woocommerce-variation-availability {
    margin-bottom: 0;
}

.woocommerce-availability {
    margin-bottom: 15px;
}

.woocommerce-availability a.wd-open-popup,
.woocommerce-availability p {
    display: inline;
}

.woocommerce-availability a.wd-open-popup {
    text-decoration: underline;
}

/*.single-product .single_variation_wrap {
    margin-bottom: 15px;
}*/

/* Характеристики */
@media (min-width: 1025px) {
    .single-product .wpcag_groups {
        column-count: 2;
        column-gap: 30px;
    }
}

.single-product .wpcag_groups .wpcag_group {
    page-break-inside: avoid;
    margin-bottom: 36px;
}

.single-product .wpcag_groups .wpcag_group .wpcag_group_heading {
    font-weight: 400;
    margin-bottom: 20px;
    padding: 0;
    text-transform: uppercase;
    border: none;
    background: transparent;
    font-size: 20px;
    font-family: var(--wd-title-font);
    color: var(--wd-primary-color);
}

.single-product .stock-list-status .list-label {
    color: var(--color-gray-800);
    font-weight: 600;
}

.single-product .stock-list-status ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.single-product .stock-list-status ul li {
    margin: 0;
}

/* Купить в кредит */
.single-product .credit_add_to_cart {
    width: auto !important;
}
.single-product .credit_add_to_cart .single_add_to_cart_button {
    background-color: #f79a16 !important;
}
.single-product .credit_add_to_cart .single_add_to_cart_button:hover {
    background-color: #d37f07 !important;
}
.credit-row .wpb_wrapper {
    flex-wrap: nowrap !important;
}
.credit-row .wpb_wrapper .vc-wc-add-to-cart-custom {
    margin-bottom: 10px;
    margin-right: 15px;
}
.credit-modal-button {
    position: relative;
}
.credit-modal-button .wd-btn-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (min-width: 1025px) {
    .wd-reset-side-lg .wd-reset-var {
        position: absolute;
        inset-inline: 0;
        top: calc(100% + var(--wd-reset-btn-space));
    }
}

.popup-quick-view .woocommerce-variation-availability {
    margin-bottom: 15px;
}

.single-product .variations_form.variation-swatch-selected,
.product-quick-view .variations_form.variation-swatch-selected {
    --wd-var-table-mb: 60px !important;
}

.single-product .variations_form,
.product-quick-view .variations_form {
    --wd-var-table-mb: 30px;
}

.wd-sizeguide .wd-sizeguide-content .wp-block-table td,
.wd-sizeguide .wd-sizeguide-content .wp-block-table th {
    border-color: var(--brdcolor-gray-300);
}

/* Наличие в магазинах (модалка) */
.availability-shops {
    max-width: 500px !important;
}

.availability-shops-title {
    font-size: 24px;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 12px;
}

.availability-shops-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

ul.availability-shops-list {
    list-style: none;
    padding-left: 0
}

.availability-shops-list li {
    display: block;
    margin-bottom: 12px;
}

.availability-shops-list.list-solid li {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    border-bottom: 1px solid #d0d0d0;
    margin-bottom: 12px;
    line-height: 1.3em;
}

.availability-shops-list.list-solid li span {
    position: relative;
    top: 3px;
    padding-right: 0;
    background: #fff;
}

.availability-shops-list.list-solid li div:first-child {
    flex: 1 1 auto;
    max-width: 100%
}

.availability-shops-list.list-solid li div:nth-child(2) {
    margin-left: auto;
    text-align: right;
}

.availability-shops-list.list-solid li div:nth-child(2) span {
    padding-left: 3px;
}

/* Страница Корзина */
.cart_totals .woocommerce-shipping-totals,
.cart_totals .cart-subtotal {
    display: none;
}

/* Миникорзина */
.cart-widget-side .woocommerce-mini-cart__buttons .btn-cart {
    background-color: transparent;
    border: 2px solid var(--wd-primary-color);
    color: var(--wd-primary-color);
}

.cart-widget-side .woocommerce-mini-cart__buttons .btn-cart:hover {
    background-color: var(--wd-primary-color);
}

/* Оформление заказа */
.woocommerce-shipping-totals.shipping {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

.woocommerce-shipping-totals.shipping th,
.woocommerce-shipping-totals.shipping td{
    width: 100%;
}

.woocommerce-shipping-methods li {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    position: relative;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    text-align: left;
}

.woocommerce-shipping-methods li div {
    width: 100%;
}

.woocommerce-shipping-methods input.shipping_method {
    position: absolute !important;
    left: 0 !important;
    top: 3px !important;
    float: none !important;
    margin: 0 !important;
}

.woocommerce-shipping-methods > li > label {
    width: 100%;
    margin-bottom: 5px !important;
    padding: 0 5px 0 20px;
}

.delivery-list {
    padding: 10px 12px;
    background: #fafafa;
    text-align: left;
}

.delivery-item {
    margin-bottom: 10px;
    font-size: 0.9em;
}

.delivery-item:last-child {
    margin-bottom: 0;
}

.delivery-item label {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    line-height: 1.25;
}

@media (min-width: 1024px) {
	:is(.woocommerce-checkout>.checkout-order-review,.woocommerce-order-pay #order_review) {
		position: sticky;
		top: 90px;
	}
}

@media (max-width: 1024px) {
    form.woocommerce-checkout>:is(.customer-details,.checkout-order-review) {
        flex-basis: 100%;
        width: 100%;
        max-width: 100%;
    }
	
	.woocommerce-checkout .woocommerce-billing-fields {
		margin-top: 20px;
	}
}

.woocommerce-checkout :is(.customer-fields, .delivery-fields, .payment-fields) {
	position: relative;
	border: 1px dashed var(--brdcolor-gray-300);
	padding: 30px 15px 15px;
}

.woocommerce-checkout :is(.customer-fields, .delivery-fields, .payment-fields) h3 {
	position: absolute;
	top: -16px;
	left: 7px;
	z-index: 350;
	padding-inline: 8px;
	background-color: #fcfcfc;
}

.woocommerce-checkout :is(.customer-fields, .delivery-fields) {
	margin-bottom: 60px;
}

.woocommerce-checkout .customer-fields p:last-child {
	margin-bottom: 0;
}

.woocommerce-checkout .delivery-fields .woocommerce-shipping-methods li:last-child label {
	margin-bottom: 0 !important;
}

.woocommerce-checkout .delivery-fields .delivery-address-fields p:first-child {
	margin-top: 25px;
}

.woocommerce-checkout .delivery-fields p:last-child {
	margin-bottom: 0;
}

.woocommerce-checkout .delivery-fields:has(#checkout-shipping-methods:empty) p {
	margin-bottom: 0;
}

.woocommerce-checkout .payment-fields .payment_methods {
	margin-bottom: 0;
}

/* Страница спасибо */
.woocommerce-order .woocommerce-order-overview__payment-method {
    display: none;
}

.woocommerce-order .woocommerce-order-overview + p {
    display: none;
}

.woocommerce-order .woocommerce-order-details tfoot tr:first-child,
.woocommerce-order .woocommerce-order-details tfoot tr:last-child {
    display: none;
}

.woocommerce-order .woocommerce-order-overview__total {
    border-right: 0;
}


/* Главная */
.home .wd-slider .wd-slide {
    aspect-ratio: 920/609;
    min-height: unset !important;
}

@media (min-width: 768px) {
    .home .wd-slider .wd-slide {
        aspect-ratio: 1347/428;
    }
}

.wd-product .wd-product-cats {
    display: none;
}

.wd-nav-tabs .wd-nav-link .nav-link-text::after {
    background-color: var(--wd-primary-color) !important;
}

.wd-tabs.tabs-design-aside .wd-nav-tabs {
    --nav-gap: 12px;
}

.wd-tabs.tabs-design-aside .wd-nav-tabs li {
    width: 100%;
    margin-bottom: 10px;
}

.wd-tabs.tabs-design-aside .wd-nav-tabs li .wd-nav-link {
    text-transform: none !important;
    color: var(--wd-primary-color);
    border: 2px solid var(--wd-primary-color);
    padding: 10px 15px;
    width: 100%;
}

.wd-tabs.tabs-design-aside .wd-nav-tabs li:hover .wd-nav-link,
.wd-tabs.tabs-design-aside .wd-nav-tabs li.wd-active .wd-nav-link {
    background: var(--wd-primary-color);
    color: #ffffff;
}

@media (min-width: 1025px) {
    .wd-tabs.tabs-design-aside .wd-nav-tabs {
        --nav-gap: .001px;
    }

    .wd-tabs.tabs-design-aside .wd-nav-tabs li .wd-nav-link {
        padding: 15px 25px;
    }
}

.wpcf7-acceptance input[type="checkbox"] {
    vertical-align: -2px;
}

.subscribe-html-block .cf-subscribe-form .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
    position: absolute;
}

.subscribe-html-block.wd-section-stretch {
    overflow: unset !important;
}

.subscribe-html-block .vc_custom_heading {
    font-size: 24px;
    line-height: 1.2;
}

.subscribe-html-block .cf-subscribe-form + .wpcf7-response-output {
    position: absolute;
    top: 170px;
}

@media (min-width: 768px) {
    .subscribe-html-block .cf-subscribe-form + .wpcf7-response-output {
        position: absolute;
        top: 100px;
    }

    .subscribe-html-block .vc_custom_heading {
        font-size: 28px;
    }
}

/* Новости */
.blog-design-list .wd-post-inner .wd-post-content .wd-post-header,
.blog-design-list .wd-post-inner .wd-post-thumb .wd-post-cat  {
    display: none;
}

.post-single-page .wd-single-post-header .wd-post-meta .wd-meta-author {
    display: none;
}

/* Выпадающее меню */
@media (min-width: 1025px) {
    .wd-design-sized .wd-sub-menu li > a,
    .wd-design-full-width .wd-sub-menu li > a {
        padding-top: 5px;
        padding-bottom: 5px;
    }
    .wd-design-sized > .container > .wd-sub-menu {
        display: block;
        column-count: 2;
        column-gap: 30px;
        margin-bottom: 30px;
    }

    .wd-design-sized > .container > .wd-sub-menu > li {
        page-break-inside: avoid;
        margin-bottom: 15px;
    }

    .wd-design-full-width > .container > .wd-sub-menu {
        display: block;
        column-count: 3;
        column-gap: 30px;
        margin-bottom: 30px;
    }

    .wd-design-full-width > .container > .wd-sub-menu > li {
        page-break-inside: avoid;
        margin-bottom: 15px;
    }
}

.wd-tabs .wd-tab-content.wd-active {
    display: block;
    visibility: visible;
    opacity: 1;
    height: auto;
}

/* Стилизация фильтра магазина */
@media (max-width: 1024px) {
    .woodmart-archive-shop .shop-loop-head {
        margin-bottom: 30px;
    }
}

.woodmart-archive-shop:not(:has(.cart-widget-side.wd-opened)) .wd-close-side.wd-close-side-opened {
	opacity: 0;
	pointer-events: none;
}

.woodmart-archive-shop .wd-sidebar .woodmart-woocommerce-layered-nav .wd-scroll-content {
	max-height: none;
}

.woodmart-archive-shop .wd-sidebar.wd-side-hidden {
	width: 100%;
}

.woodmart-archive-shop .close-side-widget-wrapper {
	position: absolute;
	bottom: 0;
	right: 0;
	left: 0;
}

@media (min-width: 1024px) {
	.woodmart-archive-shop .wd-sidebar.wd-side-hidden {
		width: min(var(--wd-side-hidden-w), 100vw);
	}
	
	.woodmart-archive-shop .wd-sidebar.wd-opened {
		box-shadow: 4px 0 5px 0 rgba(0, 0, 0, 0.25);
	}
	
	.woodmart-archive-shop .wd-sidebar .woodmart-woocommerce-layered-nav .wd-scroll-content {
		max-height: 223px;
	}
	
	.woodmart-archive-shop .close-side-widget-wrapper {
		display: none;
	}
}

@media (max-width: 1024px) {
	.woodmart-archive-shop .wd-sidebar.wd-side-hidden .widget-area {
		padding-bottom: 50px !important;
	}
}

.woodmart-archive-shop .wd-sidebar .price_slider_wrapper .price_slider_amount .button {
	display: none;
}