/*
Theme Name: Bono Child
Theme URI: https://wpshop.ru/themes/bono
Author: WPShop.ru
Author URI: http://wpshop.ru/
Template: bono
Version: 1.0.0
*/

/*--------------------------------------------------------------
 *   DON'T EDIT THIS FILE
 *   After update you will lose all changes. Use child theme
 *
 *   НЕ РЕДАКТИРУЙТЕ ЭТОТ ФАЙЛ
 *   После обновления Вы потереяете все изменения. Используйте дочернюю тему
 *
 *   https://docs.wpshop.ru/child-themes/
--------------------------------------------------------------*/
.woocommerce .woocommerce-checkout .woocommerce-additional-fields .form-row .input-text,
.woocommerce .woocommerce-checkout .woocommerce-billing-fields .form-row .input-text,
.woocommerce .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper .form-row .input-text,
.woocommerce-EditAccountForm .form-row .input-text,
.woocommerce-account .woocommerce-ResetPassword .woocommerce-form-row .woocommerce-Input,
.woocommerce-account .woocommerce-form-login .woocommerce-form-row .woocommerce-Input,
.woocommerce-account .woocommerce-form-register .woocommerce-form-row .woocommerce-Input,
.woocommerce-address-fields .form-row .input-text {
    display: block;
    max-width: 100%;
}

@media screen and (max-width: 500px) {
    .woocommerce .woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row {
        float: none;
        width: auto;
        margin-right: 0;
        margin-left: 0;
    }
    .site-header-inner .search-icon.search-icon--mob {
        position: initial !important;
        left: auto !important;
        top: auto !important;
        bottom: auto !important;
        right: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 1 !important;
    }
}

@media (min-width: 1400px) {
    .block-after-site,
    .main-navigation-inner,
    .related-posts,
    .section-block,
    .section-html,
    .site-content,
    .site-footer-inner,
    .site-header-inner,
    .super-header-inner {
        padding-left: 5px;
        padding-right: 5px;
    }
}

.product-category a {
    padding: 1px;
    -webkit-box-shadow: inset 0 0 0 1px rgba(206,212,218,.5);
    box-shadow: inset 0 0 0 1px rgba(206,212,218,.5);
    font-weight: 700;
    text-decoration: none;
    color: #111;
}

.product-category,
.shop-item {
    position: relative;
    padding: 0 10px;
    margin-bottom: 20px;
}

.product-category a img {
    margin-bottom: 1px;
}

@media (min-width: 768px) {
    .product-category,
    .shop-item {
        padding: 0 10px;
    }
    .section-block,
    .section-html {
        margin-left: -5px;
        margin-right: -5px;
        padding-top: 0px;
        padding-bottom: 0px;
    }
}

.section-block,
.section-html {
    position: relative;
    margin-left: -1px;
    margin-right: -1px;
}

.product-info .product_meta {
    margin-top: 1em;
}

.filter__title .on-sale {
    color: red;
}

.section-block__header {
    position: relative;
    margin-bottom: 3px;
    z-index: 2;
}

@media (max-width: 1200px) and (min-width: 992px) {
    .shop-item__badges {
        top: 23%;
    }
}

@media (max-width: 1200px) and (min-width: 767px) {
    .section-categories .shop-grid--columns-4 .product-category {
        width: 25.0%;
    }
}

@media (max-width: 991px) and (min-width: 767px) {
    .shop-item__badges {
        top: 34%;
    }
}

@media (min-width: 991px) and (max-width: 1920px) {
    .header-cart {
        padding-left: 0px !important;
    }
}

@media (max-width: 275px) {
    .section-categories .shop-grid--columns-4 .product-category {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .widget-area.widget-area--mobile {
        display: none;
    }
}

@media (max-width: 275px) {
    .shop-grid--columns-3 .product-category,
    .shop-grid--columns-3 .shop-item:not(.shop-item--type-small),
    .shop-grid--columns-4 .product-category,
    .shop-grid--columns-4 .shop-item:not(.shop-item--type-small),
    .shop-grid--columns-5 .product-category,
    .shop-grid--columns-5 .shop-item:not(.shop-item--type-small) {
        width: 50%;
    }
    .section-block,
    .section-html {
        padding-top: 1px;
        padding-bottom: 1px;
    }
}

.woocommerce-ordering {
    display: none;
}

.shop-sorting.woocommerce-price-suffix {
    order: 3;
    margin-left: 10px;
}

body.single-product .woocommerce-price-suffix {
    font-size: 1em;
}

.filter-selection__link_type_reset {
    margin: 0 5px 5px 0;
    padding: 8px 6px;
    border: 1px solid #ff8989;
    background: none;
    line-height: 1;
    color: #333;
    transition: all .3s ease;
    border-radius: 0px;
}

.filter__checkgroup-count {
    font-size: 0.9em;
    position: relative;
    top: 3px;
    display: flex;
}

/* Tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
    margin-bottom: 1.37931em;
    width: 100%;
}

table thead,
table tfoot {
    font-weight: bold;
}

table thead th,
table thead td,
table tfoot th,
table tfoot td {
    padding: 0.55172em 0;
    font-size: 1em;
    text-align: left;
}

table tr th,
table tr td {
    padding: 0.62069em 0em;
    font-size: 1.06897em;
}

table thead tr th,
table tfoot tr th,
table tbody tr td,
table tr td,
table tfoot tr td {
    display: table-cell;
    line-height: 1.24138em;
}

table th {
    font-weight: 700;
    letter-spacing: 0.1em;
}

table td,
table th {
    padding: 0px 10px 15px;
    text-align: left;
}

table tr:last-child {
    border-bottom: 0;
}

.nasa-visibility-hidden {
    visibility: hidden;
    opacity: 0;
}

.nasa-body-loaded .nasa-tabs-content .nasa-panel.active {
    -webkit-transition: 250ms ease-in-out 280ms;
    -moz-transition: 250ms ease-in-out 280ms;
    -o-transition: 250ms ease-in-out 280ms;
    transition: 250ms ease-in-out 280ms;
}

.nasa-body-loaded .nasa-tabs-content.animation-none .nasa-panel,
.nasa-body-loaded .nasa-tabs-content.woocommerce-tabs .nasa-panel {
    -webkit-transition: none;
    -moz-transition: none;
    -o-transition: none;
    transition: none;
}

table.nasa-info-size-guide thead td {
    background-color: #f76b6a;
    font-size: 15px;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    padding: 15px 0;
    letter-spacing: 2px;
}

table.nasa-info-size-guide td {
    text-align: center;
    vertical-align: middle;
    padding: 20px 5px;
    color: #333;
    font-weight: 800;
    font-size: 14px;
}

/* Hide fields */
#billing_company_field,
#billing_inn_field,
#billing_position_field {
    display: none;
}

.woocommerce form .form-row .required,
.woocommerce form .form-row .optional {
    display: none;
}

.order-total .woocommerce-Price-amount bdi {
    text-decoration: none;
    color: red;
}

@media (min-width: 992px) {
    .shop-grid--columns-4 .product-category,
    .shop-grid--columns-4 .shop-item {
        width: 16.66667%;
    }
}

.shine-button {
    text-decoration: none;
    display: inline-block;
    padding: 10px 30px;
    margin: 10px 20px;
    position: relative;
    overflow: hidden;
    border: 2px solid #6d6d6d;
    border-radius: 0px;
    font-family: 'Montserrat', sans-serif;
    color: #635e6b;
    transition: .2s ease-in-out;
}

.shine-button:before {
    content: "";
    background: linear-gradient(90deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .5));
    height: 50px;
    width: 50px;
    position: absolute;
    top: -8px;
    left: -75px;
    transform: skewX(-45deg);
}

.shine-button:hover {
    background: #182a4b;
    color: #fff;
}

.shine-button:hover:before {
    left: 150px;
    transition: .5s ease-in-out;
}

@media (min-width: 768px) {
    body:not(.is-mobile) .shop-item--type-standard .shop-item__buttons {
        bottom: 0px;
    }
}

.shop-item--type-standard .shop-item-inner {
    height: auto;
}

.shop-item-inner .shop-item__image p {
    margin: 0 !important;
}

.woocommerce-pagination > .page-numbers > li {
    position: relative;
    z-index: 0;
}

.page-links .page-numbers,
.page-links .post-page-numbers,
.pagination .nav-links .page-numbers,
.pagination .nav-links .post-page-numbers,
.woocommerce-pagination > .page-numbers .page-numbers,
.woocommerce-pagination > .page-numbers .post-page-numbers {
    z-index: 2 !important;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.page-numbers {
    touch-action: manipulation;
}

.product-category.product {
    position: relative;
}

.product-category.product a {
    cursor: pointer;
    touch-action: manipulation;
}

.product-category.product a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.filter-selection__link_type_reset {
    cursor: pointer;
    touch-action: manipulation;
}

.filter__checkgroup-title,
.filter__checkgroup-check {
    cursor: pointer;
    touch-action: manipulation;
}

@media (min-width: 768px) {
    html #secondary.widget-area {
        max-width: 300px;
    }
}

.shop-item__image {
    aspect-ratio: 1 / 1;
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.shop-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    transform: scale(1);
    display: block;
}

.shop-item__badges .onsale,
.single-product__badge--onsale {
    background-color: #D7271D;
}

.shop-item__badges .onsale {
    background: #D7271D;
    color: #fff;
}

body.page .site-content-inner h1 {
    text-align: center !important;
    margin: 0 auto;
}

div.site-content-inner .btn-box {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto;
}

body.page.page-id-18232 .site-content-inner h1,
body.page.page-id-18806 .site-content-inner h1 {
    text-align: left !important;
    margin: 0;
}

.bono-bottom-bar-text-filter-toggle {
    width: 100%;
    display: block;
    height: auto;
    padding: 0;
    border: none;
    font-size: inherit;
    line-height: normal;
    padding-top: 11px;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    text-align: center;
    font-weight: bold;
    color: #333;
}

.filter-selection__link_type_reset {
    margin: 0 5px 5px 0;
    padding: 8px 6px;
    border: 1px solid #ff8989;
    background: none;
    line-height: 1;
    color: #333;
    transition: all .3s ease;
    border-radius: 0px;
}

.filter-selection__link_type_reset:hover {
    background-color: #d7271d;
    color: white;
    border-color: #d7271d;
}

.bono-bottom-bar-text-filter-toggle:active {
    font-weight: bold;
    color: #d7271d;
	}
.header-cart__link {
    display: inline-block;
    text-decoration: none;
    font-size: .95em;
    border-radius: 0px;
    transition: all .2s;
    color: #111;
    white-space: nowrap;
	min-height: 38px;
	padding-left: 0;
	padding-right: 0;
	min-width: 40px;
}.header-cart__link.header-favorite sup{
	margin-left: -.8em;
}
.header-cart:has(+.header-cart__link),.header-cart__link:has(+.header-cart){
	min-width: 40px;
}
@media (max-width: 992px){
	.header-cart__link{
		min-width: auto;
	}
	.header-cart:has(+.header-cart__link),.header-cart__link:has(+.header-cart){
		min-width: 40px;
	}
}


/* .site-header-inner > *:nth-child(1){
	order: 1;
}.site-header-inner > *:nth-child(2){
	order: 2;
}.site-header-inner > *:nth-child(3){
	order: 3;
}.site-header-inner > *:nth-child(4){
	order: 4;
}.site-header-inner > *:nth-child(5){
	order: 5;
}.site-header-inner > *:nth-child(6){
	order: 7;
}.site-header-inner > *:nth-child(7){
	order: 6;
}.site-header-inner > *:nth-child(8){
	order: 8;
} */

.site-header-inner .header-favorite {
	padding:.5em  0
}
.site-header-inner .header-cart__link {
	padding: .5em 0;
}

/* .site-header-inner:has(.header-mobile-items-container) > *:nth-child(8){
	order: 6;
}.site-header-inner:has(.header-mobile-items-container) > *:nth-child(7){
	order: 8;
}.site-header-inner:has(.header-mobile-items-container) > *:nth-child(6){
	order: 7;
} */
.site-header-inner .top-menu-burger{
	margin-right: 20px;
}.site-header-inner .search-icon:hover:before{
	color: inherit;
}.site-header-inner .header-mobile-item{
	width: auto;
	height: auto;
	padding: 0;
}

@media (max-width: 500px){
/* 	.site-header-inner:has(.header-mobile-items-container) > *:nth-child(6){
		order: 12;
	}.site-header-inner:has(.header-mobile-items-container) > *:nth-child(8) {
		order: 11;
	} */
	.site-header-inner .top-menu-burger{
		margin-right: 19px;
	}
}

.filter-selection__link_type_reset {
    margin: 0 5px 5px 0;
    padding: 8px 6px;
    border: 1px solid #ff8989;
    background: none;
    line-height: 1;
    color: #333;
    transition: all .3s ease;
    border-radius: 0px;
}

.filter-selection__link_type_reset:hover {
    background-color: #d7271d;
    color: white;
    border-color: #d7271d;
}

.filter__checkgroup-check:before {
    opacity: 0;
    content: "";
    background: #d7271d;
    -webkit-transition: 0.05s ease-in-out;
    -o-transition: 0.05s ease-in-out;
    transition: 0.05s ease-in-out;
    width: 10px;
    height: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
.bono-bot-item__a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;  /* Space between icon and text */
}

.bono-bottom-bar-text-filter-toggle {
    padding-top: 0;  /* Remove top padding that was causing wrapping */
    border-top: none;  /* Remove border that was adding extra space */
    display: inline;  /* Keep text inline with icon */
}

svg {
    flex-shrink: 0;  /* Prevent SVG from shrinking */
}
@media (min-width: 768px) {
/*     .header-cart__link {
        padding: .5em 1em .5em .5em;
    } */
}
/* @media (max-width: 768px) {
	.header-cart{
		position: initial;
	}
} */
body .site-header-inner .header-cart{
	padding-left: 0;
	padding-right: 0;
	position: initial;
}
@media (max-width: 991px) {
    body .site-header-inner{
        gap: 0;
	}.site-header-inner .menu-lang{
		display: none;
	}
}.header-mobile-items-container{
	position: initial!important;
}
.menu-lang {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: inherit;
    font-size: 1.3em;
}
@media (max-width: 991px) {
    .site-branding {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
}
/* Стили для контейнера с кнопками */
.cart-buttons-container {
    display: flex;
    gap: 20px; /* Расстояние между кнопками */
    margin: 20px;
}

/* Стили для кнопок */
.cart-buttons-container .button {
    min-width: 150px;
    text-align: center;
}

/* Скрываем правую часть корзины */
.cart-collaterals {
    display: none;
}
@media (min-width: 768px) {
    .woocommerce-cart-form table.shop_table_responsive tr td {
        padding: 0px 2px;
    }
}
.woocommerce-cart-form .shop_table td, .woocommerce-checkout-review-order .shop_table td, .woocommerce-order-details .shop_table td {
    padding: 2px 0;
}
html table tr:nth-of-type(2n) td {
    background-color: #f1f1f100;
}
/* Контейнер элемента корзины */
.woocommerce-mini-cart-item {
    position: relative;
    padding: 8px 15px;
    padding-right: 35px; /* Добавляем отступ справа для кнопки удаления */
    display: flex;
    align-items: flex-start;
}

/* Ссылка с изображением и названием */
.woocommerce-mini-cart-item > a:not(.remove) {
    position: relative;
    padding-left: 60px;
    padding-right: 5px; /* Уменьшаем правый отступ */
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    width: 100%;
}

/* Изображение */
.woocommerce-mini-cart-item img {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: auto;
    display: block;
}

/* Количество и цена */
.woocommerce-mini-cart-item .quantity {
    color: #666;
    font-size: 13px;
    white-space: nowrap;
    margin-left: 10px; /* Добавляем отступ слева */
}

.woocommerce-mini-cart-item {
    position: relative;
    padding-right: 40px; /* Для текста товара */
}

.woocommerce-mini-cart-item .remove {
    position: absolute;
        right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    z-index: 1;
    text-decoration: none;
}

/* Для hover состояния */
.woocommerce-mini-cart-item .remove:hover {
    background: transparent;
    color: #f43c33;
}
/* Основной контейнер корзины */
.widget_shopping_cart_content {
    background: #fff;
	width: 300px;
    padding: 15px 0;
}

/* Заголовок корзины */
.widget_shopping_cart_content h2 {
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 20px;
}

/* Контейнер элемента корзины */
.woocommerce-mini-cart-item {
    position: relative;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

/* Ссылка с изображением */
.woocommerce-mini-cart-item > a:not(.remove) {
    position: relative;
    padding-left: 70px;
    padding-right: 5px;
    display: flex;
    align-items: center;
    min-height: 60px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    width: 100%;
}

/* Изображение товара */
.woocommerce-mini-cart-item img {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: auto;
    border-radius: 0px;
}

/* Количество и цена */
.woocommerce-mini-cart-item .quantity {
    position: absolute;
    right: 40px;
    color: #666;
    font-size: 13px;
    white-space: nowrap;
}

/* Стили для итоговой суммы */
.woocommerce-mini-cart__total {
   font-size: 1.1em;
    padding: 0 15px;
	    text-align: center;
}

/* Контейнер для кнопок */
.woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Стили для кнопок */
.woocommerce-mini-cart__buttons .button {
    display: block;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0px;
    background: #000;
    color: #fff;
    text-transform: uppercase;
    font-size: 14px;
}
@media (min-width: 768px) {
    .woocommerce-mini-cart__buttons .button+.button {
        margin-left: 0px;
    }
}
.woocommerce-mini-cart-item .quantity {
    position: absolute;
    right: 40px;
    color: #666;
    font-size: 13px;
    white-space: nowrap;
    display: none;
}
.site-header-cart-hidden .widget_shopping_cart_content {
   padding: 5vh 25px 25px;
    font-size: .9em;
}

.woocommerce-mini-cart {
    list-style: none;
    margin: 0 0 0px -20px;
    padding: 0;
}
/* Поднимаем слово "доставка" выше */
.woocommerce-shipping-totals.shipping {
    flex-direction: column !important;
	
}

/* Убираем фон */
.woocommerce-shipping-totals [data-title="Доставка"] {
    background-color: transparent !important;
    margin-left: 0 !important;
}

/* Центрируем радиокнопки */
.woocommerce-shipping-methods li {
    align-items: center !important;
    margin-bottom: 10px !important;
}

/* Отступ между радиокнопкой и текстом */
.woocommerce-shipping-methods li label {
    margin-left: 10px !important;
}
@media (min-width: 768px) {
    .woocommerce .woocommerce-checkout #order_review_heading {
        float: right;
        width: 48%;
}
    .woocommerce .woocommerce-checkout .woocommerce-checkout-review-order {
        float: right;
        width: 48%;
    }
}
/* Обнуляем базовые стили таблицы */
table td, table th {
    padding: 0 !important;
    text-align: left !important;
}

/* Стили для ячеек таблицы */
html table td {
    text-align: left !important;
    padding: 10px 0 !important;
    color: inherit !important;
}

/* Стили для строк корзины */
.woocommerce-cart-form .shop_table td,
.woocommerce-checkout-review-order .shop_table td,
.woocommerce-order-details .shop_table td {
    padding: 10px 0 !important;
}

/* Убираем фоновые цвета */
table tr:nth-child(odd),
table tr:nth-child(even),
.shop_table tr,
.shop_table td,
.shop_table th {
    background: none !important;
    background-color: transparent !important;
}

/* Убираем отступы у цен */
.woocommerce-Price-amount {
    background: none !important;
    color: inherit !important;
}
/* Выравнивание заголовков таблицы */
.shop_table th.product-name {
    text-align: left !important;
    padding-left: 0 !important;
}

.shop_table th.product-total {
    text-align: left !important;
    padding-right: 0 !important;
}
/* Настройка ширины колонок для мобильной версии */
@media screen and (max-width: 768px) {
   .shop_table td.product-name {
       width: 85% !important; /* Уменьшаем ширину колонки с названием */
   }
   
   .shop_table td.product-total {
       width: 15% !important; /* Увеличиваем ширину колонки с ценой */
   }

   /* Убираем перенос в цене */
   .woocommerce-Price-amount {
       white-space: nowrap !important;
   }

   /* Убираем красный цвет итоговой цены */
   .order-total .woocommerce-Price-amount,
   .cart-subtotal .woocommerce-Price-amount {
       color: inherit !important;
   }
}
.order-total .woocommerce-Price-amount bdi {
    text-decoration: none;
    color: #000000;
}
/* Для ПК и планшетов */
@media screen and (min-width: 768px) {
   /* Задаем фиксированную ширину для колонок */
   .woocommerce-cart-form__cart-item td.product-price,
   .woocommerce-cart-form__cart-item td.product-quantity,
   .woocommerce-cart-form__cart-item td.product-subtotal {
       width: 95px !important;
       min-width: 95px !important;
       text-align: center !important;
   }

   /* Добавляем равномерные отступы */
   .woocommerce-cart-form__cart-item td {
       padding: 10px 15px !important;
   }

   /* Центрируем содержимое в ячейках */
   .woocommerce-cart-form__cart-item td.product-price,
   .woocommerce-cart-form__cart-item td.product-quantity,
   .woocommerce-cart-form__cart-item td.product-subtotal {
       vertical-align: middle !important;
   }
}
/* Стили для заголовков таблицы */
.woocommerce-cart-form__cart-item th.product-price,
.woocommerce-cart-form__cart-item th.product-quantity,
.woocommerce-cart-form__cart-item th.product-subtotal,
.shop_table thead th.product-price,
.shop_table thead th.product-quantity, 
.shop_table thead th.product-subtotal {
   width: 95px !important;
   min-width: 95px !important;
   text-align: center !important;
   padding: 10px 15px !important;
}

/* Дополнительно выравниваем текст заголовков */
.shop_table thead th {
   vertical-align: middle !important;
   text-align: center !important;
}
.woocommerce-cart-form .shop_table .product-quantity .quantity {
    max-width: 95px;
    display: inline-block;
}
.woocommerce-mini-cart__close {
    display: block;
    position: absolute;
    top: calc(5vh - 1px);
    right: 11px; /* Используем то же значение */
    font-size: 26px;
    transition: all .2s;
    opacity: .5;
    cursor: pointer;
}
.delivery-section h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 1.5rem;
}
.woocommerce-billing-fields h3 {
    margin-bottom: 1.5rem;
}
.woocommerce-billing-fields__field-wrapper {
    margin-top: 1rem;
}
.woocommerce-checkout h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 1.5rem;
    /* Важно для выравнивания по одной линии */
    line-height: 1.2;
    margin-top: 0;
}
.woocommerce-shipping-totals.shipping h4 {
    flex-direction: column !important;
	    font-size: 24px;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
@media screen and (max-width: 768px) {
  .woocommerce-message {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin: 8px;
    min-height: 46px;
    gap: 8px;
    background-color: #f7f7f7;
    border-left: 3px solid #7dc855;
  }

  .woocommerce-message::before {
    position: static;
    margin: 0;
    color: #7dc855;
  }

  .woocommerce-message .button.wc-forward {
    order: 2;
    margin-left: auto;
    padding: 6px 12px;
    font-size: 14px;
    white-space: nowrap;
  }
}
.site-header-cart-hidden {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 80%;
    outline: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    color: #111;
    -webkit-box-shadow: 0 5px 20px -5px rgba(39, 49, 67, .3);
    box-shadow: 0 5px 20px -5px rgba(39, 49, 67, .3);
    z-index: 9999;
}
/* Скрываем label для поля комментария к заказу */
label[for="order_comments"] {
    display: none !important;
}
@media (max-width: 500px) {
    .site-header-inner .search-icon.search-icon--mob {
        display: flex;
        align-items: center;
        justify-content: center;
/*         margin-left: 5px; Уменьшенный отступ от меню */
        z-index: 1;
        /* Убраны лишние позиционирования, так как используем flex */
    }
    
    .site-header-inner .search-icon:before {
        content: "🔍";
        font-size: 1.0em;
        opacity: 1; /* Увеличена непрозрачность */
        color: #333; /* Добавлен темный цвет */
    }
	.menu-item-lang {
		display: flex;
		align-items: center;
		padding: 1em;
	}

@media (max-width: 768px) {
    .menu-item-lang {
        padding: 0.5em 1em;
    }
}
}
@media screen and (max-width: 768px) {
    td.product-name[data-title="Товар"]::before {
        content: '' !important;
    }
}

#wpadminbar {
    max-width: 100%;
    overflow: hidden;
}

/* Если первый вариант не поможет, можно попробовать более агрессивный подход */
html {
    overflow-x: hidden;
}

body.admin-bar {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Дополнительно можно добавить для всех элементов админ-панели */
#wpadminbar * {
    max-width: 100vw;
    box-sizing: border-box;
}

/* Для элементов внутри админ-панели */
#wpadminbar > * {
    max-width: 100%;
}

/* Стили для основной кнопки "Купить" */
.shop-item .single_add_to_cart_button.button,
.woocommerce .shop-item a.button.single_add_to_cart_button,
.shop-item a.button,
.button.product_type_simple,
.shop-item__buttons a {
    background-color: #111111 !important;
    color: white !important;
    border: 1px solid #111111 !important;
    padding: 10px 20px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important; /* Полная ширина */
    display: block !important;
    margin-top: 10px !important;
    position: relative !important;
    z-index: 10 !important;
    text-decoration: none !important;
    text-align: center !important;
    box-shadow: none !important;
    box-sizing: border-box !important; /* Добавлено */
}

/* Стили для состояния наведения всех кнопок */
.shop-item .single_add_to_cart_button.button:hover,
.woocommerce .shop-item a.button.single_add_to_cart_button:hover,
.shop-item a.button:hover,
.button.product_type_simple:hover,
.shop-item__buttons a:hover {
    background-color: white !important;
    color: #111111 !important;
    border: 1px solid #111111 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Стили для карточки товара */
.shop-item {
    background-color: #ffffff;
    padding-bottom: 15px;
}

.shop-item-inner {
    position: relative;
    background-color: #ffffff;
}

/* Дополнительные стили для ссылок */
.shop-item a {
    text-decoration: none !important;
}

.shop-item a:hover {
    text-decoration: none !important;
}
.shop-item__buttons-cart.product_type_variable {
    display: none !important;
}

.input, input[type=color], input[type=date], input[type=datetime-local], input[type=datetime], input[type=email], input[type=month], input[type=number], input[type=password], input[type=range], input[type=search], input[type=tel], input[type=text], input[type=time], input[type=url], input[type=week], select, textarea {
    padding: .375em .75em;
    line-height: 1.5;
    color: #111;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #000000;
    -webkit-transition: border-color .15sease-in-out;
    transition: border-color .15sease-in-out;
}
@media (max-width: 768px) {
    .shop-item__price .price {
        display: block; /* Убираем flex, используем блочное отображение */
        font-size: 12px; /* Размер шрифта для цен */
        line-height: 1.2; /* Межстрочный интервал */
    }

    .shop-item__price .price > span:not(.woocommerce-price-suffix) {
        display: inline-flex; /* Цены в одну линию */
        align-items: baseline; /* Выравнивание по базовой линии */
        gap: 4px; /* Пробел между старой и новой ценой */
        flex-wrap: nowrap; /* Запрещаем перенос цен */
        width: auto; /* Ограничиваем ширину, чтобы не растягивать */
    }

    .shop-item__price .price del,
    .shop-item__price .price ins {
        display: inline-block;
        margin: 0; /* Убираем отступы */
    }

    .shop-item__price .price del {
        color: #999; /* Серая старая цена */
        text-decoration: none !important; /* Сбрасываем стандартное зачеркивание */
        -webkit-text-decoration: none !important; /* Для WebKit */
        position: relative; /* Для позиционирования псевдоэлемента */
    }

    .shop-item__price .price del::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 1px; /* Толщина линии */
        top: 50%; /* Центрируем линию */
        left: 0;
        transform: translateY(-50%); /* Точное центрирование */
    }

    .shop-item__price .price ins {
        color: #000; /* Черная новая цена */
        text-decoration: none; /* Без подчеркивания */
        font-weight: bold; /* Жирный шрифт для новой цены */
    }

    .shop-item__price .price .woocommerce-price-suffix,
    .shop-item__price .price small.woocommerce-price-suffix {
        display: block !important; /* "плюс НДС" на новой строке */
        width: 100% !important; /* Принудительно начинаем с новой строки */
        font-size: 12px; /* Меньший шрифт для "плюс НДС" */
        color: #666; /* Серый цвет */
        white-space: nowrap; /* Без переноса */
        margin: 0; /* Убираем отступы */
        margin-top: 2px; /* Небольшой отступ сверху для читаемости */
    }

    .shop-item__price .price .screen-reader-text {
        display: none; /* Скрываем текст для скринридеров */
    }

    .shop-item__price .price .woocommerce-Price-amount {
        white-space: nowrap; /* Цены не переносятся */
    }

    /* Дополнительная страховка для предотвращения выхода за экран */
    .shop-item__price {
        max-width: 100%; /* Ограничиваем ширину блока цен */
        overflow: hidden; /* Скрываем переполнение */
    }
}
@media (min-width: 769px) {
    .shop-item__price {
        display: flex;
        flex-direction: column; /* Цены и "+ НДС" в столбец */
        align-items: flex-start; /* Выравнивание по левому краю */
        min-width: 150px; /* Фиксированная минимальная ширина для блока цен */
    }

    .shop-item__price .price {
        display: flex;
        flex-direction: column; /* Вертикальное расположение */
        font-size: 16px; /* Размер шрифта для цен на десктопе */
        line-height: 1.2; /* Межстрочный интервал */
    }

    .shop-item__price .price > span:not(.woocommerce-price-suffix) {
        display: flex;
        align-items: baseline; /* Старая и новая цена на одной линии */
        gap: 6px; /* Пробел между старой и новой ценой */
        flex-wrap: nowrap; /* Не переносим цены */
    }
	.shop-item__title {
    font-weight: 700;
    margin-bottom: .35em;
    line-height: 25.5px;
    size: 17px;
}
    .shop-item__price .price del,
    .shop-item__price .price ins {
        display: inline-block;
        margin: 0; /* Убираем отступы */
        min-width: 60px; /* Минимальная ширина для цен, чтобы выровнять */
        text-align: left; /* Выравнивание текста по левому краю */
    }

    .shop-item__price .price del {
        color: #999; /* Серая старая цена */
        text-decoration: line-through;
    }

    .shop-item__price .price ins {
        color: #000; /* Черная новая цена */
        text-decoration: none;
        font-weight: bold; /* Жирный шрифт для новой цены */
    }

    .shop-item__price .price .woocommerce-price-suffix {
        font-size: 14px; /* Меньший шрифт для "+ НДС" */
        color: #666; /* Серый цвет */
        white-space: nowrap; /* Без переноса */
        margin: 0; /* Убираем отступы */
    }
.price>del:after, .product-info .grouped_form .group_table .woocommerce-grouped-product-list-item__price del:after, .widget_products>ul>li del:after, .widget_recent_reviews>ul>li del:after, .widget_recently_viewed_products>ul>li del:after, .widget_top_rated_products>ul>li del:after {
    content: "";
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: absolute;
    left: -.1em;
    right: -.1em;
    top: 45%;
    color: #f43c33;
    height: 0;
    border-bottom: 2px solid #f43c33;
}
    .shop-item__price .price .screen-reader-text {
        display: none; /* Скрываем текст для скринридеров */
    }
    .shop-item__price .price .woocommerce-Price-amount {
        white-space: nowrap; /* Цены не переносятся */
    }

    .shop-item {
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* Равномерное распределение пространства */
        height: 100%; /* Устанавливаем одинаковую высоту для всех карточек */
        padding: 10px; /* Единый внутренний отступ */
        box-sizing: border-box; /* Учитываем padding в размерах */
    }
}
