/* 
   Файл custom.css для дочерней темы Hello Elementor Child.
   Здесь вы можете добавлять свои стили с высоким приоритетом.
*/ 
body {
	margin: 0px!important;
}

h1 {
	font-family: 'Inter', sans-serif;
	font-size: 1.8em;
	text-transform: uppercase;
	color: #333;
	display: flex !important;
	flex-wrap: wrap;
	align-items: flex-start;
	font-weight: 900;
	margin: 0px;
}

h1 span {
	color: #48543C;
	align-content: flex-end;
	height: 70px;
	margin-left: -3em;
}

.price span.price,
.price .woocommerce-loop-product__buttons,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.added:after,
.allproduct a.added_to_cart {
	display: none !important;
}

.colorborder a:hover img {
	border: 1px solid #999999 !important;
}

.colorborder a img {
	border: 1px solid #fff !important;
}

.colorborder h2 {
	padding: 0px 10px !important;
}

.allproduct .woocommerce-loop-product__buttons {
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	margin-top: -3.1em;
	margin-right: 1em;
}

.allproduct ul.products li.product a img {
	object-fit: cover !important;
	height: 23em;
	object-position: -25px 0px;
}
.raznoe .bdt-ep-advanced-icon-box {
	display: flex;
	justify-content: center;
	padding: 5px 0px;
}

.raznoe p {
	margin: -20px 0px !important;
}

.money span.bdt-ep-advanced-icon-box-icon-wrap {
	margin-top: -20px;
}

.e-off-canvas__content .woocommerce.columns-1 ul {
	display: flex;
	flex-wrap: wrap;
	row-gap: 15px !important;
}

.e-off-canvas__content .woocommerce.columns-1 ul li a {
	display: flex !important;
	align-items: center;
	column-gap: 15px;
}

.e-off-canvas__content .woocommerce.columns-1 ul li a img {
	width: 80px;
	border-radius: 1em;
	object-fit: cover;
	margin: 0px;
}

.e-off-canvas__content ul.products {
	display: flex;
	flex-direction: column;
}

.e-off-canvas__content .woocommerce.columns-1 ul li a.button.product_type_variable,
.e-off-canvas__content .woocommerce.columns-1 ul li a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart,
.e-off-canvas__content .woocommerce.columns-1 span.price,
.e-off-canvas__content mark.count {
	display: none !important;
}

.yamaps iframe {
	border-radius: 1em !important;
}

p.copyright {
	color: #999999;
	font-family: 'Manrope';
}

p.copyright span {
	font-family: 'Manrope';
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
	z-index: 1;
}

#quiz .qmn_btn, .qsm-quiz-container.qmn_quiz_container .qmn_btn {
	font-family: 'Manrope' !important;
	text-transform: uppercase;
	font-size: 1em !important;
	background: #48543C !important;
	color: #fff !important;
	border-radius: 1em !important;
	border: 0px !important;
	box-shadow: none !important;
	margin: 3em auto !important;
	text-align: center !important;
	width: 40% !important;
	display: flex;
	justify-content: center;
	padding: 0.5em;
}

#quiz .qsm-progress-bar .progressbar-text {
	font-size: 14px;
	color: #48543C;
}

#quiz .mlw_qmn_message_before p {
	text-align: center;
	font-family: 'Manrope';
	font-size: 1em;
	text-transform: uppercase;
	font-weight: 700;
	margin-top: 1em;
}

#quiz .mlw_qmn_new_question {
	font-family: 'Manrope' !important;
	font-size: 1.3em !important;
	text-transform: uppercase !important;
	font-weight: 900 !important;
	margin-bottom: 2em;
	display: block;
}

#quiz span.mlw_qmn_question_number,
#quiz span.pages_count,
#quiz div#mlw_error_message {
	display: none!important;
}

#quiz .qmn_mc_answer_wrap.qmn_image_option.mrq_checkbox_class {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: center;
}

#quiz .qmn_mc_answer_wrap.qmn_image_option.mrq_checkbox_class span.qsm_image_caption {
	text-align: center;
	display: flex;
}

#quiz .qmn_mc_answer_wrap.qmn_image_option.mrq_checkbox_class span.qsm_image_caption {
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	font-family: 'Inter';
	font-size: 1em;
	font-weight: 400;
}

#quiz .qmn_radio_answers.mlwRequiredRadio {
	display: flex;
	gap: 0em 2em;
}


#quiz .qsm-quiz-container input[type=checkbox], 
#quiz .qsm-quiz-container input[type=radio] {
	accent-color: #48543C;
	vertical-align: top;
	margin-top: 0px;
	width: 15px;
}

#quiz .qmn_pagination.border.margin-bottom {
	display: flex!important;
	flex-direction: column!important;
	flex-wrap: wrap!important;
	justify-content: center!important;
}

#quiz svg path:last-child {
	stroke: #48543C;
}

#quiz div#qsm_progress_bar_1 {
	height: 5px;
	margin: 1em 0px;
}

#quiz a.qmn_btn.mlw_qmn_quiz_link.mlw_next.mlw_custom_next {
	order: 2;
}

#quiz a.qmn_btn.mlw_qmn_quiz_link.mlw_previous {
	order: 3;
	background: transparent !important;
	color: #999 !important;
	margin: -3.5em 0px 0px !important;
	padding: 0px !important;
}

#quiz div#mlw_error_message_bottom {
	font-size: 0.9em;
	font-weight: 300;
	font-family: 'Inter';
	width: 100%;
}

#quiz .qmn_mc_answer_wrap.mrq_checkbox_class {
	display: flex;
	gap: 1em;
}

#quiz .qsm-auto-page-row.qsm-question-page {
	width: 100%;
	display: flex;
	min-width: 1176px;
}

#quiz select.qsm_select.qsm_dropdown.qsmRequiredSelect {
	border: 1px solid #ccc;
	color: #333333;
	appearance: none;
	padding: 1em;
}

#quiz select {
	width: 100%;
	border: solid 1px #ccc;
	border-radius: 1em;
}

#quiz .qsm_contact_div {
	margin: 16px 0px;
}

#quiz .qsm_contact_div input {
	border-color: #ccc;
	border: 1px solid #ccc;
	color: #333333;
	appearance: none;
	padding: 1em;
	border-radius: 1em;
}

.grecaptcha-badge {
	visibility: hidden;
}

/* МЕНЮ - СКРЫТИЕ НА ГЛАВНОЙ СТРАНИЦЕ */
.home #hide-header {
	opacity: 0;
	transform: translateY(-100%);
	transition: all 0.3s ease;
	position: fixed;
	z-index: 0;
}

.home #hide-header.show-menu {
	opacity: 1;
	transform: translateY(0);
	z-index: 999;
}

/* Скрываем меню и поиск на главной до прокрутки */
.home .elementor-element-40eb1ff {
	opacity: 0;
	transform: translateY(-100%);
	transition: all 0.3s ease;
}

.home .elementor-element-40eb1ff.show-menu {
	opacity: 1;
	transform: translateY(0);
}

input#shipping_method_0_free_shipping1 {
	accent-color: #333;
}

.elementor-widget-woocommerce-cart .woocommerce table.cart img {
	width: 80px;
	border-radius: 1em;
}

td.product-name {
	width: 250px !important;
	padding-left: 10px !important;
}

th.product-name {
	width: 250px !important;
	padding-left: 10px !important;
	text-align: center;
}

td.product-quantity {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	min-height: 125px;
	max-height: 140px;
}

td.product-price, 
th.product-price,
td.product-subtotal {
	width: 100px;
	text-align: center;
}

td.product-remove {
	position: relative;
}

a.remove {
	position: absolute;
	top: 1em;
}

.bdt-mini-cart-product-remove svg {
	width: 7px;
	height: 14px;
}

.suggestions-promo a svg {
	display: none !important;
}

table.shop_table.woocommerce-checkout-review-order-table thead, 
tfoot tr.cart-subtotal {
	display: none;
}

tr.accordion-header button.accordion-toggle {
	background: #999;
	color: #fff;
	border: 0px;
	border-radius: 1em;
	font-family: 'Manrope';
	font-weight: 400;
	font-size: 0.9em;
	text-transform: uppercase;
	width: 100%;
	padding: 10px 0px;
}

button.accordion-toggle:hover {
	cursor: pointer;
}

ul#shipping_method input {
	accent-color: #333;
}

.accordion-content td.product-name {
	width: 340px;
	max-width: 340px !important;
	min-width: 340px;
	padding-right: 10px !important;
}

.accordion-content td.product-total {
	text-align: right;
}

span.optional,
a.added_to_cart.wc-forward,
mark.count {
	display: none;
}

.product-sort-buttons {
	display: flex;
	gap: 10px;
	margin-bottom: 0px;
	align-items: center;
	justify-content: center;
}

.sort-button {
	padding: 5px 10px;
	background-color: #EBEBEB;
	border-radius: 3px;
	text-decoration: none;
	transition: all 0.3s ease;
	cursor: pointer;
	height: 35px;
	width: 35px;
	display: flex;
}

a.sort-button svg {
	fill: #333;
	width: 19px;
}

.sort-button:hover {
    background-color: #999999;
	fill: #fff !important;
}

.sort-button.active {
    background-color: #999999;
	fill: #fff !important;
}

.sbros button {
	border: 0px !important;
	background: #EBEBEB !important;
	color: #333 !important;
	border-radius: 1em !important;
	font-family: 'Manrope';
	text-transform: uppercase;
	font-size: 0.7em !important;
	margin-top: -3px;
}

.wcpf-filter-inner .priceLabel {
	text-transform: uppercase;
	font-family: 'Inter';
	font-size: 0.9em;
	margin-top: -5px;
}

div#shipping_people_field h3 {
	font-family: 'Manrope';
	text-transform: uppercase;
	font-size: 1em;
	font-weight: 700;
}

.checkout tr.woocommerce-shipping-totals.shipping,
.checkout tr.order-total {
	padding: 1em !important;
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
}

.checkout tr.woocommerce-shipping-totals.shipping th,
.checkout tr.order-total th {
	width: 20%;
}

.checkout tr.woocommerce-shipping-totals.shipping td,
.checkout tr.order-total td {
	display: flex;
	flex-direction: column;
	max-width: 80%;
	min-width: 80%;
	width: 80%;
}

.checkout .woocommerce ul#shipping_method {
	display: flex;
	flex-direction: column;
	width: max-content;
}

p#order_comments_field label {
	font-family: 'Manrope';
	text-transform: uppercase;
	font-size: 1em;
	font-weight: 700;
	color: #333 !important;
	margin-bottom: 1em !important;
}

.payment_box.payment_method_bacs p,
.payment_box.payment_method_cheque p {
	margin: 0px;
	color: #333;
}

.payment_box.payment_method_bacs,
.payment_box.payment_method_cheque {
	background-color: #EBEBEB !important;
	border-radius: 1em !important;
	padding: 1em 2em !important;
}

input#payment_method_bacs,
input#payment_method_cheque {
	accent-color: #333;
}

.woocommerce-privacy-policy-text p,
.woocommerce-privacy-policy-text a {
	color: #999999;
}

.woocommerce-privacy-policy-text a:hover {
	color: #333;
}

input.woocommerce-form__input-checkbox {
	accent-color: #333;
	transform: scale(1.3);
	margin-right: 10px;
}

.woocommerce-form__label-for-checkbox span {
	color: var(--sections-checkboxes-color, #69727d);
	position: relative;
	top: -1px;
}

.bdt-mini-cart-product-price span.quantity {
	font-size: 0.8em;
	color: #fff;
	font-weight: 700;
	font-family: 'Manrope';
}

.raznoe h4 {
	margin-top: 7px;
}

.checkout ul#shipping_method li label,
.carts ul#shipping_method li label {
	font-size: 0.9em;
	font-weight: 400;
	font-family: 'Inter';
	color: #333 !important;
}

.checkout ul#shipping_method li label {
	font-size: 1em!important;
	font-family: 'Inter' !important;
}

#recently .recently-viewed-products {
	display: flex;
	flex-direction: row;
	justify-content: left;
	align-items: flex-start;
}

#recently .recently-viewed-products li {
	list-style: none !important;
	width: 15%;
}

#recently .recently-viewed-products li img {
	width: 220px;
	display: block;
	max-width: 180px;
	border-radius: 1em;
}

#recently a.woocommerce-loop-product__link, #recently h2.woocommerce-loop-product__title {
	text-transform: initial;
	color: #48543C !important;
	margin-bottom: 1em !important;
	font-family: 'Manrope';
	font-weight: 400;
	font-size: 0.9em;
	text-align: center;
	min-height: 55px;
}

#recently span.price bdi {
	text-transform: uppercase;
	font-family: 'Manrope';
	font-size: 0.8em;
	font-weight: 400;
	color: #333;
}

#recently a.add_to_cart_button.ajax_add_to_cart {
	background: #48543C;
	color: #fff !important;
	font-family: 'Manrope';
	font-size: .8em;
	font-weight: 400;
	float: right;
	border-radius: 1em;
	margin-right: 10px;
}

.related.products h2.woocommerce-loop-product__title {
	padding: 0.5em !important;
}

.quantity-cal {
	display: flex;
	align-items: center;
}

.wc-empty-mini-cart svg {
	fill: #fff;
	width: 55px;
}

p.wc-empty-message {
	color: #fff;
	font-family: 'Manrope';
	font-size: 1em;
}

a.bdt-button.bdt-button-primary.bdt-button-small {
	background: #fff;
	color: #333;
	border-radius: 1em;
	font-size: 1.1em;
	font-family: 'Manrope';
	text-transform: uppercase;
	padding: 5px 20px;
}

.wc-empty-mini-cart {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

a#elementor-menu-cart__toggle_button span.woocommerce-Price-currencySymbol {
	margin-left: -3px;
}

a#elementor-menu-cart__toggle_button span.woocommerce-Price-amount.amount {
	margin-right: 15px;
}

.elementor-menu-cart--items-indicator-bubble .elementor-menu-cart__toggle .elementor-button-icon .elementor-button-icon-qty[data-counter] {
	border-radius: 1em;
	font-size: 10px;
	min-height: 35px;
	line-height: 28px;
	min-width: 35px;
	top: -15px !important;
	padding: 3px;
	right: -15px !important;
}

.search .filters {
	display: none;
}

.search .sort {
	width: 100%;
	justify-content: flex-end;
}

li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--downloads {
	display: none !important;
}

/*	НЕ МОЁ	*/
body .product-view-switcher {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

body .product-view-switcher a {
    padding: 5px 10px;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 3px;
}

body .product-view-switcher a.active {
    background-color: #0073aa;
    color: white;
}

/* Стили для отображения товаров в виде grid */
body .woocommerce ul.products.grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
}

/* Стили для отображения товаров в виде list */
body .woocommerce ul.products.list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

body .woocommerce ul.products.list li.product {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    width: 100% !important;
}

/* Общие стили для иконок */
i {
    font-family: FontAwesome;
    font-style: normal;
}

/* Стили для контейнера select и иконки */
.select-wrapper {
    position: relative;
    display: inline-block;
}

.select-wrapper i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.select-wrapper select.orderby {
    padding-left: 30px;
    padding-right: 30px;
}

/* Стили для иконок в выпадающем списке сортировки */
body .woocommerce-ordering select.orderby {
    padding-right: 30px;
}

body .woocommerce-ordering select.orderby option[value="price"] {
    position: relative;
    padding-left: 20px;
}

body .woocommerce-ordering select.orderby option[value="price"]::before {
    content: "\f161";
    font-family: FontAwesome;
    position: absolute;
    left: 5px;
}

body .woocommerce-ordering select.orderby option[value="price-desc"] {
    position: relative;
    padding-left: 20px;
}

body .woocommerce-ordering select.orderby option[value="price-desc"]::before {
    content: "\f162";
    font-family: FontAwesome;
    position: absolute;
    left: 5px;
}

/* Стили для иконки сортировки */
.sort-icon-wrapper {
    display: inline-block;
    margin-bottom: 20px;
    cursor: pointer;
}

.sort-icon-wrapper i {
    font-size: 20px;
    color: #666;
    transition: color 0.3s ease;
}

.sort-icon-wrapper i:hover {
    color: #0073aa;
}

/* Стили для переключателя вида товаров */
.view-switcher {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.view-switcher a {
    margin-right: 10px;
    color: #666;
    text-decoration: none;
}

.view-switcher a.active {
    color: #000;
}

/* Стили для иконок сортировки */
.sort-icons-wrapper {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.sort-icons-wrapper i {
    font-size: 18px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
    margin-left: 10px;
}

.sort-icons-wrapper i:hover {
    color: #000;
}

/* Стили для сетки товаров */
.products.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Стили для списка товаров */
.products.list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.products.list .product {
    display: flex;
    gap: 20px;
}

.products.list .product img {
    width: 200px;
    height: auto;
}

.products.list .product .woocommerce-loop-product__title {
    font-size: 18px;
    margin-bottom: 10px;
}

.products.list .product .price {
    font-size: 16px;
    margin-bottom: 10px;
}

.products.list .product .button {
    margin-top: 10px;
}

/* Стили для блока количества товара */
.quantity-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.quantity-wrap .label {
    font-weight: 500;
    color: #333;
}

.quantity-wrap .quantity-cal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 150px;
    margin: 0 auto;
}

.quantity-wrapper {
	flex: 1;
	margin: 2px 10px;
}

.woocommerce div.product form.cart div.quantity {
	float: left;
	margin: 0px;
}

.woocommerce .quantity .qty {
	width: 6em;
	text-align: center;
}

.quantity-wrapper .quantity {
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-wrapper input.qty {
    width: 50px;
    text-align: center;
    margin: 0;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}


.woocommerce .quantity input.qty:focus-visible, 
.woocommerce .quantity input.qty:focus {
	border: 1px solid #ddd;
	border-radius: 4px;
	border-width: 1px;
	outline: none;
}


button.single_add_to_cart_button.button.alt {
	background: #48543C;
	color: #fff !important;
	font-family: 'Manrope';
	font-size: 0.8em;
	font-weight: 400;
	border-radius: 1em;
	text-transform: uppercase;
	padding: 10px 25px;
}

button.single_add_to_cart_button.button.alt:hover {
	background: #333;
	transition: 0.3s;
}

i.fas.fa-plus:before,
i.fas.fa-minus:before {
	content: '+';
	font-size: 1.8em;
	font-weight: 900;
	color: #333;
	line-height: 20px;
	font-family: 'Manrope';
}

i.fas.fa-minus:before {
	content: '-';
}

.quantity-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	background: #EBEBEB;
	border: 0px;
	border-radius: 3px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #e7e7e7;
}

.quantity-btn i {
    font-size: 12px;
    color: #666;
}

.quantity-btn[style*="opacity: 0.5"] {
    cursor: not-allowed;
    background: #f7f7f7;
}

.quantity-btn[style*="opacity: 0.5"]:hover {
    background: #f7f7f7;
}

/* Стили для виджета SKU товара */
.product-sku {
    font-size: 14px;
    color: #666;
    margin: 10px 0;
    padding: 5px 0;
}

.product-sku:empty {
    display: none;
}

.purchase-count-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.purchase-count-icon {
    display: inline-flex;
    align-items: center;
}

.product-title {
    display: inline-block;
}

#purchase-count {
    display: inline-block;
    margin: 0;
}

/* Стили для фиксированной корзины */
.sticky-add-to-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 15px;
    display: none;
}

.sticky-add-to-cart-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.sticky-product-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.sticky-product-title {
    font-weight: 500;
    flex: 1;
}

.sticky-product-price {
    font-weight: 600;
    color: #333;
}

.sticky-add-to-cart-button {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.sticky-add-to-cart-button:hover {
    background: #45a049;
}

/* Адаптивность */
@media (max-width: 768px) {
    .sticky-add-to-cart-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .sticky-product-title {
        order: 2;
        width: 100%;
        text-align: center;
    }

    .sticky-product-price {
        order: 3;
    }

    .sticky-add-to-cart-button {
        order: 4;
        width: 100%;
    }
}

/* Стили для виджета фильтра по цене */
.price-filter-widget {
    padding: 20px;
    border-radius: 8px;
}

.price-filter-title {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
}

.price-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.price-filter-button {
    flex: 1;
    min-width: 120px;
    padding: 10px 15px;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 14px;
}

.price-filter-button:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

.price-filter-button.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Адаптивность */
@media (max-width: 768px) {
    .price-filter-buttons {
        flex-direction: column;
    }
    
    .price-filter-button {
        width: 100%;
    }
}

/* Стили для продвинутой галереи товара */
.product-gallery-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

/* Вертикальная галерея */
.gallery-layout-vertical {
    flex-direction: row;
}

.gallery-layout-vertical.thumbnails-position-left {
    flex-direction: row;
}

.gallery-layout-vertical.thumbnails-position-right {
    flex-direction: row-reverse;
}

.gallery-layout-vertical .product-gallery-thumbnails {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 500px;
    width: 100px;
    flex-shrink: 0;
    overflow: hidden;
}

.gallery-layout-vertical .gallery-thumbnails-slider {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.3s ease;
}

.gallery-layout-vertical .gallery-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-layout-vertical .gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.gallery-layout-vertical .gallery-thumbnail.active img {
	border-color: transparent;
	border-width: 0px;
	filter: brightness(0.5);
}

.gallery-layout-vertical .gallery-thumbnails-slider img {
	border-radius: 1em !important;
}

/* Горизонтальная галерея */
.gallery-layout-horizontal {
    flex-direction: column;
}

/* Позиционирование миниатюр в горизонтальном режиме */
.gallery-layout-horizontal.thumbnails-position-left {
    flex-direction: column;
}

.gallery-layout-horizontal.thumbnails-position-left .product-gallery-thumbnails {
    order: 1;
}

.gallery-layout-horizontal.thumbnails-position-left .product-gallery-main {
    order: 2;
}

.gallery-layout-horizontal.thumbnails-position-right {
    flex-direction: column;
}

.gallery-layout-horizontal.thumbnails-position-right .product-gallery-thumbnails {
    order: 2;
}

.gallery-layout-horizontal.thumbnails-position-right .product-gallery-main {
    order: 1;
}

.gallery-layout-horizontal .product-gallery-thumbnails {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gallery-layout-horizontal .gallery-thumbnails-slider {
    display: flex;
    flex-direction: row;
    gap: 10px;
    transition: transform 0.3s ease;
}

.gallery-layout-horizontal .gallery-thumbnail {
    width: 100px;
    aspect-ratio: 1;
    flex-shrink: 0;
    cursor: pointer;
}

.gallery-layout-horizontal .gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.gallery-layout-horizontal .gallery-thumbnail.active img {
    border-color: #000;
}

/* Кнопки навигации */
.gallery-nav-button {
    position: absolute;
    z-index: 2;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.gallery-nav-button:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Позиционирование кнопок для вертикального режима */
.gallery-layout-vertical .gallery-nav-prev {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.gallery-layout-vertical .gallery-nav-next {
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}

/* Позиционирование кнопок для горизонтального режима */
.gallery-layout-horizontal .gallery-nav-prev {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-layout-horizontal .gallery-nav-next {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Основное изображение */
.product-gallery-main {
    position: relative;
    overflow: hidden;
    flex: 1;
}

.product-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.gallery-image {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-image.active {
    display: block;
    opacity: 1;
}

.dottedprice p.price {
	padding: 1em;
	margin: -2.4em;
	border: 1px solid;
	border-radius: 1em;
}

/* МОБИЛЬНИК */
@media (max-width: 767px) {
.gallery-layout-vertical {
	flex-direction: column;
}

.gallery-layout-vertical .product-gallery-thumbnails {
	flex-direction: row;
	max-height: none;
	width: 100%;
}

.gallery-layout-vertical .gallery-thumbnails-slider {
	flex-direction: row;
}

.gallery-layout-horizontal .product-gallery-main,
.gallery-layout-horizontal .product-gallery-thumbnails {
	order: 0;
}

#mobfootericon ul li {
	padding: 10px;
}

.yamaps iframe {
	border-radius: 0em 0em 1em 1em !important;
}

#quiz .qmn_quiz_container.qsm_auto_pagination_enabled img {
	display: none!important;
}

#quiz .qmn_btn, .qsm-quiz-container.qmn_quiz_container .qmn_btn {
	width: 100%!important;
}

#quiz .qmn_radio_answers.mlwRequiredRadio {
	display: flex;
	flex-direction: column;
	gap: 1em 0em;
}

#quiz .mlw_qmn_new_question {
	font-size: 1em!important;
}

#quiz .qsm-auto-page-row.qsm-question-page {
	width: 100%;
	display: flex;
	min-width: 270px;
}

#quiz span.mlw_qmn_message_end p {
	margin: -2em 0px;
}

#quiz .quiz_section.qsm-question-wrapper.question-type-0.question-section-id-1.slide1 .qmn_radio_answers.mlwRequiredRadio {
	align-items: flex-start;
}

body #quiz .quiz_section .qmn_radio_answers label, 
body #quiz .quiz_section .qmn_check_answers label, 
body #quiz .quiz_section .qmn_accept_answers label {
	font-size: 16px;
	font-family: 'Inter';
}

h1 span {
	color: #48543C;
	align-content: center;
	text-align: center;
	height: auto;
	margin-left: 0;
}

#mobh1 h1 {
	justify-content: center;
}

#mobip span {
	margin-top: 0.5em;
}

a#logomob {
	display: flex!important;
	flex-direction: row!important;
	align-content: center!important;
	justify-content: center!important;
	align-items: center!important;
}

#otlichiya .elementor-icon-box-icon {
	display: flex;
	align-content: center !important;
	flex-wrap: wrap;
}

#mobicon .bdt-ep-advanced-icon-box-content {
	margin-top: -7px;
}

#mobicon .bdt-ep-advanced-icon-box-icon {
	margin-bottom: 0px;
}

.dottedprice p.price {
	padding: 1em;
	margin: 0em;
	border: 0px solid;
	border-radius: 0em;
}

.allproduct ul.products li.product a img {
	object-fit: cover !important;
	height: auto;
	object-position: center;
}

#novinki li.product.type-product {
	max-width: 345px;
	min-width: 270px;
}

td.product-thumbnail {
	display: block !important;
}

tr.woocommerce-cart-form__cart-item.cart_item {
	display: flex !important;
	flex-direction: column;
	justify-content: center;
	position: relative;
}

td.product-remove {
	position: absolute;
	right: 3em;
	top: 1em;
}

td.product-name,
td.product-price,
td.product-subtotal {
	min-width: 100%;
	padding-left: 0px !important;
}

td.product-price {
	min-width: 100%;
}

td.product-quantity {
	align-items: center;
	min-height: auto;
	max-height: none;
}

.product-thumbnail:before {
	display: none;
}

.elementor-widget-woocommerce-checkout-page .e-checkout__container {
	align-items: stretch;
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	max-width: 100%;
	min-width: 100%;
	width: 100%;
}

.checkout tr.woocommerce-shipping-totals.shipping td, .checkout tr.order-total td {
	display: flex;
	flex-direction: column;
	max-width: 100%;
	min-width: 100%;
	width: 106%;
}

.woocommerce .e-checkout__container .col2-set, .woocommerce-page .col2-set,
.e-checkout__column-inner.e-sticky-right-column.e-sticky-right-column--active {
	width: 100%;
}

.checkout tr.woocommerce-shipping-totals.shipping, .checkout tr.order-total {
	padding: 1em !important;
	display: flex;
	justify-content: flex-start;
	flex-direction: column;
}

.checkout .woocommerce ul#shipping_method {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.product-gallery-main {
		position: relative;
		flex: 1;
		overflow: visible;
	}

.gallery-image.active {
	display: block;
	opacity: 1;
	min-width: 300px !important;
	min-height: 300px !important;
}
	
.gallery-layout-vertical.thumbnails-position-left {
	flex-direction: column;
	gap: 1em;
}

.product-template-default .elementor-widget-icon-box.elementor-mobile-position-left .elementor-icon-box-wrapper, .elementor-widget-icon-box.elementor-mobile-position-right .elementor-icon-box-wrapper {
		display: flex;
		align-items: center;
	}
	
#recently .recently-viewed-products {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 3em;
}

#recently .recently-viewed-products li {
	list-style: none !important;
	width: 95%;
}

#recently .recently-viewed-products li img {
	width: 220px;
	display: block;
	max-width: 330px;
	min-width: 290px;
}

#recently a.woocommerce-loop-product__link, #recently h2.woocommerce-loop-product__title {
	text-transform: initial;
	color: #48543C !important;
	margin-bottom: 1em !important;
	font-family: 'Manrope';
	font-weight: 400;
	font-size: 1.1em;
	text-align: center;
	min-height: 55px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

#recently a.add_to_cart_button.ajax_add_to_cart {
	background: #48543C;
	color: #fff !important;
	font-family: 'Manrope';
	font-size: 0.9em;
	font-weight: 400;
	float: none;
	border-radius: 1em;
	margin: 0px auto;
	text-align: center;
	width: 100%;
	padding: 1em;
}

.search .sort {
	width: 100%;
	justify-content: flex-start;
	margin-top: 1em;
}

.elementor-add-to-cart.elementor-product-simple {
	display: flex;
	flex-direction: column;
}

.gallery-layout-vertical .gallery-thumbnails-slider img {
	border-radius: 0em !important;
}

.gallery-layout-vertical .gallery-thumbnail {
	width: 100px;
	aspect-ratio: 1;
	cursor: pointer;
	min-width: 100px;
	max-width: 100px;
	min-height: 100px;
	max-height: 100px;
	width: 100px;
	height: 100px;
}

.elementor.product-type-variable h4.elementor-heading-title.elementor-size-default {
	display: none;
}

}

button.single_add_to_cart_button.button.alt.disabled {
	background: #999;
}

button.single_add_to_cart_button.button.alt.disabled:hover {
	background: #48543C;
}

table.woocommerce-product-attributes.shop_attributes th, table.woocommerce-product-attributes.shop_attributes td {
	font-family: 'Manrope';
	text-align: left;
	font-size: 0.9em;
	font-style: normal;
}

table.variations tr, table.variations th {
	font-size: 0.9em;
	font-family: 'Manrope';
	text-align: left;
	padding: 3px 10px 0px 0px;
}

.woocommerce div.product form.cart .variations select {
	height: 30px;
	text-indent: 10px;
	border: 1px solid #ccc;
	border-radius: 1em;
}

.woocommerce div.product form.cart .variations {
	margin-bottom: 0;
}

.product-type-variable .priceblock {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}

.product-type-variable .priceblock {
	gap: 3em !important;
}

.elementor-add-to-cart.elementor-product-simple {
	display: flex;
	flex-direction: column;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product .stock {
	color: #48543C;
	text-align: center;
	order: 2;
	text-transform: lowercase;
	text-align: left;
	margin: 0px 16%;
}

.onbackorder .priceblock {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}

.woocommerce-variation-price span bdi {
	font-size: 1em;
	font-family: 'Manrope';
	color: #333;
	font-weight: 700;
	margin-bottom: 0.5em;
	display: block;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.gallery-image.active {
    animation: fadeIn 0.3s ease;
}

/* Стили для бара бесплатной доставки в мини-корзине */
.free-shipping-bar {
    margin: 10px 0;
    padding: 0 15px;
}

.free-shipping-bar .progress-bar {
    height: 6px;
    background: #f1f1f1;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.free-shipping-bar .progress-bar-fill {
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s ease;
}

.free-shipping-bar .progress-text {
    font-size: 0.7em;
    color: #f1f1f1;
    text-align: center;
    margin-top: 5px;
    font-family: 'Manrope';
    font-weight: 400;
}

.free-shipping-bar .progress-text.achieved {
    color: #f1f1f1;
    font-weight: 500;
}

/* Стили для мини-корзины */
.elementor-menu-cart__main {
	overflow: overlay;
	background: #333;
}

.elementor-menu-cart__container {
	z-index: 9998;
}

.bdt-mini-cart-product-remove {
	background: #fff;
	border-radius: 10em;
	width: 30px;
	height: 17px;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: center;
}

.elementor-menu-cart__close-button:after, .elementor-menu-cart__close-button:before {
	background: #fff;
	border-radius: 0px;
	content: "";
	height: 2px;
	margin: 10px -18px;
	position: absolute;
	transition: .3s;
	width: 25px;
}

.widget_shopping_cart_content {
	padding: 0px 16px 0px 0px;
	margin: 3em 0px;
}

.bdt-mini-cart-footer-buttons {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
}

.bdt-mini-cart-product-thumbnail a img {
	width: 90px;
	min-width: 90px;
	border-radius: 1em;
}

.bdt-mini-cart-footer-buttons a span {
	color: #333;
	background: #fff;
	font-family: 'Manrope';
	text-transform: uppercase;
	font-size: 0.8em;
	padding: 10px 15px;
	border-radius: 1em;
}

.widget_shopping_cart_content {
	padding: 0px 16px 0px 0px;
}

.bdt-mini-cart-product-name.bdt-margin-small-bottom a {
	color: #fff;
	font-family: 'Manrope';
	font-size: 0.9em;
}

.bdt-margin-small-left {
	height: 100%;
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	width: 100%;
}

.bdt-mini-cart-product-remove svg line {
	stroke: #000;
}

.bdt-mini-cart-subtotal {
	color: #fff;
	font-family: 'Inter';
	font-size: 1em;
	text-transform: uppercase;
	padding: 1em;
	font-weight: 400 !important;
}

.elementor-menu-cart__close-button {
	align-self: center;
	cursor: pointer;
	display: flex;
	font-family: eicons;
	font-size: 20px;
	height: 30px;
	line-height: 1;
	margin: 0px;
	position: relative;
}

.bdt-mini-cart-footer-buttons .bdt-button {
	padding: 0px 5px;
	margin: 1em 0em 3em;
}

.elementor-widget-woocommerce-purchase-summary .woocommerce a {
	color: #333;
}

.elementor-widget-woocommerce-purchase-summary .woocommerce a:hover {
	color: #999999;
}

table.woocommerce-table.woocommerce-table--custom-fields.shop_table.custom-fields {
	margin-top: 1em;
	color: #000;
}

p.woocommerce-customer-details--phone, p.woocommerce-customer-details--email {
	margin: 0px !important;
	padding-top: 6px;
	color: #333;
}

table.woocommerce-table.woocommerce-table--custom-fields.shop_table.custom-fields address {
	color: #000 !important;
}

.load-more-container {
	display: none !important;
}

p#billing_country_field,
p#shipping_country_field,
.my-account h2 {
	display: none;
}

body.term-podlozhki ul.products.elementor-grid.columns-5 {
  display: flex !important;
  flex-wrap: wrap;
}

body.term-podlozhki ul.products.elementor-grid li.product-category {
  flex: 0 0 20%;
  box-sizing: border-box;
}

body.term-podlozhki ul.products.elementor-grid li.product.type-product:nth-child(n+5) {
  flex: 0 0 20%;
  box-sizing: border-box;
  margin-top: 40px;
  clear: left; /* начало новой линии */
  flex-basis: calc(20% - 10px); /* пример ширины для 5 колонок */
}

/* Скрываем контейнер, если внутри только заголовок и нет товаров */
.custom-upsell-section:not(:has(.product)) {
    display: none !important;
}

.recently-viewed-products span.woocommerce-Price-amount.amount {
	position: absolute;
	margin-left: 10px;
}

.home .allproduct .woocommerce-loop-product__title {
	min-height: 70px;
}

.gifphoto .custom-gif-product-card {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	min-height: 285px;
	text-align: center;
}

/*КОМП*/
@media only screen and (min-width: 768px) {

	.woocommerce-order-details tbody {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		width: 600px;
		min-width: 700px;
		max-width: 1000px;
	}

	tr.woocommerce-table__line-item.order_item {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
	}

	.woocommerce-order-details tbody td.woocommerce-table__product-name.product-name {
		width: 100% !important;
		min-width: 700px !important;
		max-width: 1000px !important;
	}

	.woocommerce-order-details th {
		text-transform: uppercase;
		font-weight: 400;
		font-family: 'Manrope';
		font-size: 1em;
	}

	.woocommerce-order-details th.woocommerce-table__product-table.product-total {
		display: none;
	}

	table.woocommerce-table.woocommerce-table--custom-fields.shop_table.custom-fields tr {
		display: flex;
		align-items: center;
		gap: 5px;
		margin-right: 10px;
	}

}