.product-layout-container {
    display: flex;
    flex-direction: row;
    gap: 40px;
    margin-bottom: 40px;
}

.product-main-content {
    width: 70%;
}

.product-main-content .product-main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-sidebar-content {
    width: 30%;
}

.product-title {
    font-size: 24px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
}

.product-description-tabs {
    margin-top: 40px;
}

/* Стили для цены */
.price {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 15px 0;
}

/* Стили для кнопки добавления в корзину */
.single_add_to_cart_button {
    position: relative;
    overflow: hidden;
}

.single_add_to_cart_button.adding {
    opacity: 0.7;
    cursor: not-allowed;
}

.single_add_to_cart_button.added {
    background-color: #165c43 !important;
}

/* Стили для краткого описания */
.woocommerce-product-details__short-description {
    margin: 20px 0;
    color: #666;
}

.product-image-container {
    padding: 27px 39px 39px;
    border: 1px solid #ececec;
    border-radius: 8px;
}

@media (max-width: 480px) {
    .product-image-container {
        padding: 5px 5px 5px;
    }
}

.page-content h1, .page-content h2, .page-content h4 {
    margin-top: 0px !important;
    margin-bottom: 25px;
    font-weight: 600;
    color: #333;
}


.product-main-image-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.product-main-image {
    cursor: zoom-in;
    max-height: 650px;
    object-fit: contain;
    width: 100% !important;
    display: block;
}

.product-gallery-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.product-gallery-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    overflow: hidden;
    width: calc(70px * 4 + 30px); /* Ширина 4 миниатюр + отступы */
}

.gallery-thumbnail {
    max-height: 60px;
    width: auto;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
    opacity: 1;
}

.gallery-nav {
    background: none;
    border: 1px solid #ececec;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    flex-shrink: 0; /* Предотвращает сжатие кнопок */
}

.gallery-nav:hover {
    background-color: #f5f5f5;
}

/* Адаптивные стили для галереи */
@media (max-width: 768px) {
    .product-layout-container {
        flex-direction: column;
        padding: 0 15px;
    }

    .product-main-content {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    /* Явно задаем порядок отображения блоков */
    .product-image-container {
        order: 0; /* Первым идет блок с изображениями */
    }

    .product-essential-info2 {
        display: block;
        order: 1 !important; /* Принудительно ставим вторым */
        margin: 20px 0;
    }

    .ordered-block-kit.mobile-only {
        order: 2; /* Состав комплекта идет третьим */
    }

    .product-description-block {
        order: 3; /* Описание идет четвертым */
    }

    /* Скрываем десктопную версию */
    .product-essential-info {
        display: none;
    }

    /* Остальное содержимое сайдбара */
    .product-sidebar-content {
        width: 100%;
        margin-top: 0;
        order: 4;
    }

    /* Скрываем дублирующуюся информацию */
    .product-sidebar-content > .product__heading,
    .product-sidebar-content > .cost.prices.detail.prices_block,
    .product-sidebar-content > .counter_wrapp_addtocart1,
    .product-sidebar-content > .wrapp-one-click,
    .product-sidebar-content > .calculate-delivery1,
    .product-sidebar-content > .calculate-delivery2 {
        display: none;
    }

    .char-side1,
    .kolleksia-pr1,
    .similar-products-list,
    .nugnaconsultacia {
        order: 5;
    }

    /* Адаптируем блок с количеством и кнопкой корзины */
    .counter_wrapp_addtocart1 {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
    }

    /* Стили для селектора количества */
    .counter_wrapp_addtocart1 .quantity-selector {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 15px !important;
    }

    @media (max-width: 768px) {
        .counter_wrapp_addtocart1 .quantity-selector {
            width: 100% !important;
            max-width: 100% !important;
            margin-bottom: 1px !important;
        }
    }

    /* Специфичные стили для кнопки корзины */
    .counter_wrapp_addtocart1 .single_add_to_cart_button {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        margin: 0 !important;
        min-width: 100% !important;
        display: block !important;
        padding-top: 15px !important;    /* Увеличиваем вертикальные отступы */
        padding-bottom: 15px !important;
        min-height: 48px !important;     /* Минимальная высота как у кнопки "Купить в 1 клик" */
        line-height: 18px !important;    /* Высота строки для выравнивания текста */
    }

    /* Убираем возможные отступы и ограничения ширины */
    .counter_wrapp_addtocart1 .single_add_to_cart_button.button {
        padding-left: 25px !important;
        padding-right: 25px !important;
        box-sizing: border-box !important;
    }

    .quantity-selector,
    .single_add_to_cart_button {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Убираем фиксированную ширину 50% для кнопки на мобильных */
    .single_add_to_cart_button {
        width: 100% !important;
        flex: none !important;
    }

    .product-gallery-thumbnails {
        width: calc(70px * 2 + 10px); /* Ширина 2 миниатюр + отступ */
    }
    
    .gallery-nav {
        visibility: visible !important; /* Принудительно показываем стрелки на мобильных */
    }

    .char-side1 {
        display: none;
    }
}

/* Более специфичный селектор для заголовка только на странице товара */
body.single-product .product__heading h1.product_title.entry-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    font-family: 'Montserrat', sans-serif !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    color: #333 !important;
}

h1.product_title.entry-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    font-family: 'Montserrat', sans-serif !important;
    margin-bottom: 15px !important;
    line-height: 1.2 !important;
}

.product__heading {
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
}

@media (max-width: 768px) {
    .product__heading {
        margin-bottom: 0px;
    }
}

.product-sku {
    font-size: 14px;
    margin-top: 0px !important;
    font-family: 'Montserrat', sans-serif;
}

.cost.prices.detail.prices_block {
    margin-top: 20px;
    font-family: 'Montserrat', sans-serif;
}

.font_xs.muted {
    font-size: 0.867em;
    line-height: 1.692em;
    color: #999;
    font-family: 'Montserrat', sans-serif;
}

.price-old {
    font-size: 13px;
    line-height: 15px;
    font-weight: normal;
    text-decoration: line-through;
    color: #999;
    font-family: 'Montserrat', sans-serif;
}

.price-current {
    font-size: 1.733em;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    margin-top: 10px;
    color: inherit;
    text-decoration: none;
}

/* Если нет скидки, базовая цена отображается как акционная */
.no-sale .price-old {
    font-size: 1.733em;
    font-weight: bold;
    text-decoration: none;
    color: inherit;
    font-family: 'Montserrat', sans-serif;
}

/* Стили для блока с информацией о наличии */
.quantity_block_wrapper {
    display: flex;
    align-items: center;
    margin-top: 15px;
    gap: 20px;
}

.availability {
    display: flex;
    align-items: center;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin: 0px 9px 0px 0px;
}

.in-stock .status-dot {
    background-color: #1d7656;
}

.out-of-stock .status-dot {
    background-color: #e10000;
}

.in-stock .status-text {
    color: #1d7656;
    font-size: 12px;
}

.out-of-stock .status-text {
    color: #e10000;
    font-size: 12px;
}

.found-cheaper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.found-cheaper svg {
    flex-shrink: 0;
}

.found-cheaper svg path {
    fill: #666;
}

.found-cheaper span {
    font-size: 12px;
    color: #666;
}

/* Стили для блока с количеством и кнопкой корзины */
.counter_wrapp_addtocart1 {
    padding-top: 18px;
    display: flex;
    gap: 20px;
}

.quantity-selector {
    position: relative;
    width: 50%;
    height: 48px;
    box-sizing: border-box;
    border: 1px solid rgb(236, 236, 236);
    border-radius: 3px;
    background: rgb(248, 248, 248);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}

.quantity-selector input[type="button"] {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #1D7656;
    font-family: Montserrat, sans-serif;
}

.quantity-selector input[type="number"] {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
    width: 40px;
    border: none;
    background: transparent;
    text-align: center;
    color: rgb(51, 51, 51);
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 48px;
    letter-spacing: 0%;
    margin: 0;
    padding: 0;
    height: 100%;
}

.quantity-selector input[type="number"]::-webkit-inner-spin-button,
.quantity-selector input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.single_add_to_cart_button {
    background-color: #1D7656 !important;
    color: #fff !important;
    font-family: Montserrat, sans-serif !important;
    font-weight: 500 !important;
    font-size: 0.7333em !important;
    text-transform: uppercase !important;
    padding: 0 25px !important;
    height: 48px !important;
    border: none !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    width: 50% !important;
    letter-spacing: 0.8px !important;
}

.single_add_to_cart_button:hover {
    background-color: #165c43 !important;
}

/* Стили для кнопки "Купить в 1 клик" */
.wrapp-one-click {
    margin-top: 15px;
}

.buy-one-click-btn {
    display: inline-block;
    width: 100%;
    font-size: 0.7333em;
    border: 1px solid #1d7656;
    border-radius: 2px;
    letter-spacing: 0.8px;
    padding: 12px 21px 11px;
    text-transform: uppercase;
    text-decoration: none;
    color: #1d7656;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-one-click-btn:hover {
    background-color: #1d7656;
    color: #fff;
}

/* Стили для блоков с доставкой */
.calculate-delivery1, .calculate-delivery2 {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    margin-top: 15px;
    font-size: 12px;
    line-height: 1.692em;
    font-family: 'Montserrat', sans-serif;
}

.calculate-delivery1 svg, 
.calculate-delivery2 svg {
    flex-shrink: 0;
    margin-right: 20px;
}

.calculate-delivery2 {
    margin-top: 10px;
}

.delivery-info-text {
    color: #333;
}

.delivery-details {
    display: flex;
    flex-direction: column;
}

/* Стили для блока характеристик */
.char-side1 {
    margin-top: 30px;
}

.char-side1 > .title {
    font-size: 15px;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
}

.properties_list {
    margin-top: 13px;
}

.property-item {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 8px;
    gap: 5px;
}

.property-name {
    color: #999;
    font-size: 0.867em;
    line-height: 1.692em;
    font-family: 'Montserrat', sans-serif;
}

.property-name::after {
    content: '—';
    margin: 0 5px;
    color: #999;
}

.property-value {
    color: #333;
    font-size: 0.867em;
    line-height: 1.692em;
    font-family: 'Montserrat', sans-serif;
}

.more-char-link {
    margin: 10px 0px 0px;
}

.more-char-link a {
    color: #1d7656;
    font-size: 0.8em;
    line-height: 1.692em;
    text-decoration: none;
    border-bottom: 1px dotted #1d7656;
    font-family: 'Montserrat', sans-serif;
}

.more-char-link a:hover {
    border-bottom-color: transparent;
}

/* Стили для дополнительного текста */
.text-additional {
    margin-top: 29px;
    font-size: 12px;
    line-height: 1.692em;
    color: #666;
    font-family: 'Montserrat', sans-serif;
}

/* Стили для блока коллекции */
.kolleksia-pr1 {
    margin-top: 3rem !important;
    border: 1px solid #1D7656 !important;
    border-radius: 2px;
    display: block;
    text-decoration: none !important;
    transition: box-shadow 0.3s ease;
}

.kolleksia-pr1:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* При наведении на блок меняем цвет стрелки */
.kolleksia-pr1:hover .collection-arrow-custom {
    background-color: #165c43;
}

.sidebar-sections-kolleksia {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    cursor: pointer;
    padding: 0 !important;
}

.collection-info {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.collection-view-all {
    font-size: 14px;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 5px;
    text-decoration: none;
}

.collection-name {
    font-weight: bold;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
}

.collection-arrow {
    color: #1d7656;
    flex-shrink: 0;
}

/* Новый уникальный стиль для стрелки в блоке коллекции */
.collection-arrow-custom {
    flex-shrink: 0;
    background-color: #1D7656;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
}


.collection-arrow-custom svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.collection-arrow svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Убираем все возможные подчеркивания */
.kolleksia-pr1:hover,
.kolleksia-pr1:focus,
.kolleksia-pr1 *,
.kolleksia-pr1 *:hover,
.kolleksia-pr1 *:focus {
    text-decoration: none !important;
}

/* Стили для похожих товаров в сайдбаре */
.similar-products-list {
    margin-top: 13px;
}

.sidebar-sections__item {
    border-bottom: 1px solid #EDEDED;
}

.sidebar-section {
    min-height: 58px;
    display: flex;
    align-items: center;
    position: relative;
    background: #fff;
    transition: 0.5s all ease;
    padding: 5px 35px 5px 5px;
    text-decoration: none;
}

.sidebar-section:hover {
    background: #f8f8f8;
}

.sidebar-section__icon {
    min-width: 50px;
    margin-right: 20px;
    font-size: 0;
}

.sidebar-section__icon img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 48px !important;
}

.sidebar-section__name {
    font-size: 14px;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    flex-grow: 1;
    padding-right: 10px;
}

.sidebar-section__arrow {
    position: absolute;
    right: 10px;
    color: #1d7656;
}

.sidebar-section__arrow svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Стили для блока консультации */
.nugnaconsultacia {
    margin: 28px 0px 0px;
    border: 1px solid #ececec;
    border-radius: 2px;
    transition: box-shadow 0.3s ease;
}

.nugnaconsultacia:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* При наведении на весь блок меняем стиль кнопки */
.nugnaconsultacia:hover .ask-question-btn {
    color: #fff;
    background-color: #1d7656;
}

/* Убираем hover эффект самой кнопки, так как теперь он управляется родительским блоком */
.ask-question-btn:hover {
    color: #fff;
    background-color: #1d7656;
    cursor: pointer;
}

.vncons {
    padding: 25px 0px 0px;
    text-align: center;
    background: #fff;
}

.vncons .svg {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 56px;
}

.vncons .svg svg {
    fill: #1d7656;
    width: 58px;
    height: 56px;
}

.side-block__text14 {
    margin: 18px 0px 0px;
}

.side-block__text14 .introtext {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 22px;
    font-weight: 500;
    color: #333;
    font-family: 'Montserrat', sans-serif;
}

.side-block__text14 p {
    font-size: 13px;
    line-height: 20px;
    color: #666;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}

.side-block__bottom14 {
    margin-top: 40px;
    padding: 0;
    border-top: 1px solid #ececec;
}

.ask-question-btn {
    width: 100%;
    background-color: transparent;
    border: none;
    border-radius: 0 0 2px 2px;
    padding: 15px 0;
    position: relative;
    z-index: 3;
    font-size: 11px;
    line-height: 1.3em;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    color: #1d7656;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

/* Стили для блока описания */
.product-description-block {
    margin-top: 40px;
}

.product-description-tabs {
    font-family: 'Montserrat', sans-serif;
}

.product-description-tabs .tab-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.product-description-tabs .tab-content p {
    margin-bottom: 15px;
}

.product-description-tabs .tab-content p:last-child {
    margin-bottom: 0;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .product-description-block {
        padding: 0px;
        margin-top: 30px;
    }
}

/* Стили для блока с вкладками */
.product-tabs-wrapper {
    margin-top: 40px;
}

@media (max-width: 768px) {
    .product-tabs-wrapper {
        margin-top: 0px;
    }
}

.product-tabs-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: 20px;
}

.product-tab {
    display: inline-block;
    float: none;
    margin: 3px;
    background: #fafafa;
    cursor: pointer;
    padding: 16px 24px 15px;
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400 !important;
    font-size: 12px;
    text-transform: uppercase;
    color: #777777;
    transition: all 0.3s ease;
    border: 1px solid #ececec;
}

.product-tab:hover {
    background: #f0f0f0;
}

.product-tab.active {
    background: #f0f0f0;
    border-top: 2px solid #1d7656;
    color: #333;
}

.product-tabs-content {
    background: #fff;
}

.tab-content {
    display: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.tab-content.active {
    display: block;
}

/* Адаптивные стили для табов */
@media (max-width: 768px) {
    .product-tabs-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        gap: 3px;
        padding-bottom: 5px; /* Для скроллбара */
        margin: -5px -15px 15px; /* Отрицательные отступы для полной ширины */
        padding: 5px 15px; /* Компенсируем отступы */
        
        /* Скрываем скроллбар для разных браузеров */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE и Edge */
    }

    /* Скрываем скроллбар для Chrome, Safari и Opera */
    .product-tabs-nav::-webkit-scrollbar {
        display: none;
    }

    .product-tab {
        flex: 0 0 auto;
        width: auto;
        margin: 0 3px;
        white-space: nowrap;
    }

    .product-tab:first-child {
        margin-left: 0;
    }

    .product-tab:last-child {
        margin-right: 0;
    }

    .product-tabs-content {
        padding: 20px 0;
    }
}

.tab-content ol {
    padding-left: 20px;
    margin: 15px 0;
}

.tab-content ol li {
    margin-bottom: 15px;
}

.tab-content ol li:last-child {
    margin-bottom: 0;
}

/* Стили для блока характеристик в описании */
.ordered-block14 {
    margin: 3.133rem 0px;
}

.block-title14 {
    font-weight: 500;
    font-size: 1.3333em;
    line-height: 1.4em;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
}

.char_block1415 {
    padding: 30px 40px;
    background: #fff;
    border: 1px solid #ececec;
}

.props_list {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.props_list tr {
    background: transparent !important;
}

.props_list td {
    padding: 7px 0;
    font-size: 0.933em;
    line-height: 1.6em;
    border: none;
}

.props_list .char_name {
    position: relative;
    vertical-align: top;
    color: #666;
    width: 50%;
    padding-right: 50px;
    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAABCAAAAAA+i0toAAAAAnRSTlMA/1uRIrUAAAAMSURBVHheY7j1/z8ABY8C2UtBe8oAAAAASUVORK5CYII=") repeat-x 0 14px;
}

.props_list .char_name span {
    background: #fff;
    padding-right: 10px;
}

.props_list .char_value {
    color: #333;
    width: 50%;
    padding-left: 20px;
    vertical-align: top;
}

.props_list .char_value span {
    background: #fff;
    padding-left: 10px;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .char_block1415 {
        padding: 20px;
    }

    .props_list td {
        padding: 5px 0;
    }

    .props_list .char_name {
        padding-right: 20px;
    }

    .props_list .char_value {
        padding-left: 10px;
    }
}

/* Контейнер для изображения и точек */
.product-card__image-container {
    position: relative;
    width: 100%;
    height: 246px;
}

/* Контейнер для изображения */
.product-card__image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 234px;
    overflow: hidden;
}

/* Стили для изображений */
.product-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 234px;
    object-fit: contain;
    display: none;
    transition: opacity 0.3s ease;
}

.product-card__image.active {
    display: block;
}

/* Стили для навигации по галерее */
.section-gallery-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 234px;
    display: flex;
    flex-direction: row;
    z-index: 2;
}

.section-gallery-wrapper__item {
    flex: 1;
    position: relative;
}

.section-gallery-wrapper__item-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Точки */
.product-card__image-dots {
    position: absolute;
    top: 234px;
    left: 10px;
    right: 10px;
    height: 12px;
    display: flex;
    justify-content: space-between;
    gap: 4px;
    z-index: 3;
    padding-top: 5px;
}

.image-dot {
    flex: 1;
    height: 1px;
    border-radius: 0;
    background-color: rgba(153, 153, 153, 0.5);
    transition: background-color 0.3s ease;
}

.image-dot.active {
    background-color: #1d7656;
}

/* Добавляем эффект при наведении на области переключения */
.section-gallery-wrapper__item-nav:hover {
    background: rgba(255, 255, 255, 0.029); /* Меняем красный на едва заметный белый */
}

/* Стили для кнопки корзины */
.product-card__cart-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card__cart-button:hover {
    transform: scale(1.1);
}

.product-card__cart-icon {
    fill: #1D7656;
    transition: all 0.3s ease;
}

/* Иконка галочки (изначально скрыта) */
.product-card__check-icon {
    display: none;
    fill: #1D7656;
}

/* Стили для активного состояния кнопки */
.product-card__cart-button.added .product-card__cart-icon {
    display: none;
}

.product-card__cart-button.added .product-card__check-icon {
    display: block;
}

/* Анимация для кнопки при добавлении */
@keyframes addToCartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.product-card__cart-button.adding {
    animation: addToCartPulse 0.3s ease;
}

/* Анимация для кнопки при добавлении */
@keyframes buttonSuccess {
    0% { transform: translateY(0); }
    50% { transform: translateY(-100%); }
    51% { transform: translateY(100%); }
    100% { transform: translateY(0); }
}

.single_add_to_cart_button.success-animation .button-text {
    animation: buttonSuccess 0.5s ease forwards;
}

/* Стили для счетчика корзины */
.cart-count,
.header-cart-count {
    background-color: #1D7656 !important; /* Добавляем !important для переопределения других стилей */
    color: #fff !important;
    width: 18px !important;
    height: 17px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: 100% !important;
    margin-left: 5px !important;
}

/* Убедимся, что стили применяются и к обновленному счетчику */
.header-cart-count {
    background-color: #1D7656 !important;
    color: #fff !important;
    width: 18px !important;
    height: 17px !important;
}

/* Стили для страницы каталога */
.main-catalog-wrapper12 {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1px;
}

.item_block_osn14 {
    padding: 0;
    margin: 0;
    width: 50%;
    display: flex;
}

.item_block_osnvn14 {
    width: 100%;
    display: flex;
    padding: 28px 34px 27px;
    transition: box-shadow ease 0.2s, border ease-out 0.2s, transform ease 0.2s;
    border: 1px solid #ececec;
    margin: 0 0 -1px -1px;
}

/* Обновляем стили для таблицы внутри блока */
.item_block_osnvn14 table {
    width: 100%;
    border-collapse: separate;
}

.item_block_osnvn14 tr {
    display: flex;
    width: 100%;
}

.category-info-cell {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 3px;    /* Небольшой отступ сверху для выравнивания с изображением */
    padding-left: 26px;
}

.category-image-cell {
    text-align: center;
    width: 61px;
    flex-shrink: 0;       /* Предотвращает сжатие ячейки с изображением */
    display: flex;        /* Для лучшего выравнивания */
    align-items: flex-start;
}

.category-image-cell img {
    max-width: 61px;
    max-height: 61px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.category-name {
    font-size: 1.0667em;
    line-height: 1.5625em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-name a {
    color: #333 !important;
    text-decoration: none;
}

.category-name a:hover {
    text-decoration: none;
}

.category-count {
    border: 1px solid rgba(153, 153, 153, 0.35);
    padding: 2px 4px 1px;
    font-size: 0.733em;
    line-height: 1.273em;
    border-radius: 2px;
    color: #999;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.subcategories-list {
    margin-top: 8px;
    line-height: 1.384em;
}

.subcategory-link {
    margin-right: 6px;
    color: #1d7656;
    font-size: 13px;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .item_block_osn14 {
        width: 100%;
    }
}

/* Обновляем стили для каталога */
.item_block_osnvn14:hover {
    box-shadow: 0 0 27px 0 rgba(0, 0, 0, 0.1);
}

.subcategory-link {
    margin-right: 6px;
    color: #1d7656;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.subcategory-link:hover {
    color: #165c43;
}

.subcategory-link:after {
    content: ',';
    color: #999;
}

.subcategory-link:last-child:after,
.subcategory-link:nth-last-child(2):after {
    content: '';
}

/* Улучшаем адаптивность */
@media (max-width: 991px) {
    .item_block_osn14 {
        width: 100%;
    }
    
    .item_block_osnvn14 {
        padding: 20px;
    }
    
    .category-info-cell {
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .subcategories-list {
        display: none; /* Скрываем подкатегории на мобильных устройствах */
    }
    
    .category-header {
        flex-wrap: wrap;
    }
}

.catalog-page-header {
    width: 100%;
}


.catalog-page-content {
    width: 100%;
}

/* Стили для страницы корзины */
.basket-items-list-outer {
    background: #fff;
    margin-right: 30px;
    flex: 1;
}

.basket-items-list-header {
    font-size: 18px;
    font-weight: 500;
    padding: 20px 0;
    border-bottom: 1px solid #ececec;
    font-family: 'Montserrat', sans-serif;
}

.basket-items-table {
    width: 100%;
    border-collapse: collapse;
}

.basket-item {
    border-bottom: 1px solid #ececec;
    padding: 20px 0;
}

.basket-item-image {
    width: 100px;
    padding: 20px 20px;
}

.basket-item-image img {
    max-width: 80px;
    height: auto;
}

.basket-item-name {
    padding: 20px;
}

.basket-item-name a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
}

.basket-item-name a:hover {
    color: #1d7656;
}

/* Стили для блока количества */
.quantity-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ececec;
    border-radius: 3px;
    width: 120px;
    height: 40px;
    background: #f8f8f8;
}

.quantity-minus,
.quantity-plus {
    width: 40px;
    height: 100%;
    border: none;
    background: none;
    color: #1D7656;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-wrapper input {
    width: 40px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 14px;
    color: #333;
    -moz-appearance: textfield;
}

.quantity-wrapper input::-webkit-outer-spin-button,
.quantity-wrapper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Стили для цены */
.basket-item-price {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    padding: 20px;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
}

/* Стили для кнопки удаления */
.basket-item-remove {
    padding: 20px;
    text-align: right;
}

.remove-item {
    color: #999;
    transition: color 0.3s ease;
}

.remove-item:hover {
    color: #333;
}

/* Стили для правого блока с итогами */
.basket-total-outer {
    width: 350px;
    flex-shrink: 0;
}

.basket-total-block-sticky-top {
    position: sticky;
    top: 20px;
    background: #fff;
    padding: 25px;
    border: 1px solid #ececec;
    border-radius: 3px;
}

.basket-total-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.basket-total-title span:first-child {
    font-size: 18px;
    font-weight: 500;
}

.basket-total-sum {
    font-size: 20px;
    font-weight: 500;
    color: #333;
}

/* Стили для промокода */
.basket-promo-container {
    margin-bottom: 20px;
}

.basket-promo-toggle {
    position: relative;
}

.basket-promo-input {
    width: 100%;
    height: 40px;
    border: 1px solid #ececec;
    border-radius: 3px;
    padding: 0 40px 0 15px;
    font-size: 13px;
    color: #333;
}

.basket-promo-apply {
    position: absolute;
    right: 0;
    top: 0;
    height: 40px;
    width: 40px;
    border: none;
    background: none;
    cursor: pointer;
    color: #1D7656;
}

/* Стили для кнопки оформления */
.basket-checkout-button {
    width: 100%;
    height: 48px;
    background: #1D7656;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.basket-checkout-button:hover {
    background: #165c43;
}

/* Стили для пустой корзины */
.empty-cart-message {
    padding: 40px 0;
    text-align: center;
    font-size: 16px;
    color: #999;
    font-family: 'Montserrat', sans-serif;
}

/* Адаптивные стили */
@media (max-width: 991px) {
    .basket-items-flex1 {
        flex-direction: column;
    }
    
    .basket-items-list-outer {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .basket-total-outer {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .basket-item {
        display: grid;
        grid-template-columns: 80px 1fr;
        grid-gap: 15px;
        padding: 15px;
    }
    
    .basket-item-image {
        grid-row: 1 / span 2;
        width: auto;
        padding: 0;
    }
    
    .basket-item-name {
        padding: 0;
    }
    
    .basket-item-quantity {
        grid-column: 2;
    }
    
    .basket-item-price {
        padding: 10px 0;
    }
    
    .basket-item-remove {
        position: absolute;
        top: 15px;
        right: 15px;
        padding: 0;
    }
}

/* Стили для страницы сравнения товаров */
.compare-page-header {
    margin-bottom: 30px;
}

.compare-page-header .h2 {
    font-size: 24px;
    font-weight: 500;
    margin: 20px 0;
    font-family: 'Montserrat', sans-serif;
}

/* Стили для хлебных крошек */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.bread-crumb {
    color: #999;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
}

a.bread-crumb:hover {
    color: #1d7656;
}

/* Стили для пустого состояния */
.empty-compare-message {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 4px;
    color: #666;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
}

/* Стили для контейнера сравнения */
.compare-items-wrapper {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 40px;
}

/* Стили для таблицы сравнения */
.compare-table {
    width: 100%;
    min-width: 768px;
    border-collapse: separate;
    border-spacing: 0;
}

/* Стили для шапки таблицы */
.compare-table thead th {
    position: sticky;
    top: 0;
    background: #f8f8f8;
    padding: 20px;
    font-weight: 500;
    text-align: left;
    border-bottom: 1px solid #ececec;
    min-width: 200px;
    z-index: 2;
    font-family: 'Montserrat', sans-serif;
}

.compare-table thead th:first-child {
    min-width: 150px;
    font-weight: 400;
    color: #666;
}

/* Стили для ячеек с товарами */
.compare-table tbody td {
    padding: 15px 20px;
    border-bottom: 1px solid #ececec;
    vertical-align: middle;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.compare-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.compare-table tbody td:first-child {
    font-weight: 500;
    color: #333;
    background: #f8f8f8;
}

/* Стили для изображений и информации о товаре */
.compare-product-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 10px;
}

.compare-product-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}

.compare-product-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
}

.compare-product-title:hover {
    color: #1d7656;
}

.compare-product-price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 10px 0;
}

.compare-product-price-old {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}

/* Стили для кнопки удаления */
.compare-remove {
    color: #999;
    border: none;
    background: none;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
    margin-top: 10px;
}

.compare-remove:hover {
    color: #333;
}

/* Адаптивные стили */
@media (max-width: 991px) {
    .compare-table thead th,
    .compare-table tbody td {
        min-width: 180px;
    }
    
    .compare-table thead th:first-child,
    .compare-table tbody td:first-child {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .compare-items-wrapper {
        margin: 0 -15px;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
    
    .compare-table thead th,
    .compare-table tbody td {
        padding: 12px 15px;
    }
    
    .compare-product-info {
        padding: 15px 10px;
    }
    
    .compare-product-image {
        width: 100%;
        height: 120px;
    }
}

/* Стили для модального окна покупки в 1 клик */
.one-click-modal {
    z-index: 100000;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.one-click-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.one-click-modal__content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    width: 100%;
    position: relative;
}

.one-click-modal__close {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

/* Убедимся, что форма покупки в 1 клик всегда поверх других элементов */
.one-click-form {
    position: relative;
    z-index: 100001;
}

.one-click-modal__title {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    margin-top: 0 !important;
}

.one-click-form__group {
    margin-bottom: 20px;
    position: relative;
}

.one-click-form__group label {
    display: block;
    font-size: 12px;
    color: #333;
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: normal;
}

.one-click-form__input {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #ececec;
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    background: #f8f8f8;
    transition: all 0.3s ease;
}

.one-click-form__input:focus {
    border-color: #1d7656;
    background: #fff;
    outline: none;
}

.one-click-form__input::placeholder {
    color: #999;
}

/* Стили для чекбоксов */
.one-click-form__group.checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.one-click-form__group.checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    line-height: 1.4;
    color: #666;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.one-click-form__group.checkbox input {
    position: relative;
    width: 16px;
    height: 16px;
    margin: 2px 10px 0 0;
    cursor: pointer;
    opacity: 0;
}

.one-click-form__group.checkbox label:before {
    content: '';
    position: absolute;
    left: 0;
    width: 16px;
    height: 16px;
    border: 1px solid #ececec;
    background: #f8f8f8;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.one-click-form__group.checkbox input:checked + label:before {
    background: #1d7656;
    border-color: #1d7656;
}

.one-click-form__group.checkbox input:checked + label:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 7px;
    width: 6px;
    height: 3px;
    background: #1d7656;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.one-click-form__submit {
    width: 100%;
    height: 48px;
    background: #1d7656;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 10px;
}

.one-click-form__submit:hover {
    background: #165c43;
}

/* Стили для состояния загрузки */
.one-click-form.loading .one-click-form__submit {
    opacity: 0.7;
    pointer-events: none;
}

/* Адаптивные стили */
@media (max-width: 480px) {
    .one-click-modal__content {
        padding: 30px 20px;
    }
    
    .one-click-modal__title {
        font-size: 20px;
        margin-bottom: 0px;
    }
}

/* Стили для модального окна подписки */
.subscribe-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.subscribe-modal.active {
    display: block;
}

.subscribe-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.subscribe-modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 40px;
    border-radius: 0;
    width: 90%;
    max-width: 460px;
    z-index: 1;
}

.subscribe-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 5px;
    line-height: 1;
    transition: color 0.3s ease;
}

.subscribe-modal__close:hover {
    color: #333;
}

.subscribe-modal__title {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    margin-top: 0 !important;
}

/* Стили для формы подписки */
.subscribe-form {
    width: 100%;
}

.subscribe-form__group {
    margin-bottom: 15px;
    position: relative;
}

.subscribe-form__group label {
    display: block;
    font-size: 12px;
    color: #333;
    margin-bottom: 2px;
    font-family: 'Montserrat', sans-serif;
    font-weight: normal;
}

.subscribe-form__input {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #ececec;
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    background: #f8f8f8;
    transition: all 0.3s ease;
}

.subscribe-form__input:focus {
    border-color: #1d7656;
    background: #fff;
    outline: none;
}

/* Стили для чекбокса */
.subscribe-form__group.checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.subscribe-form__group.checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    line-height: 1.4;
    color: #666;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.subscribe-form__group.checkbox input {
    position: relative;
    width: 16px;
    height: 16px;
    margin: 2px 10px 0 0;
    cursor: pointer;
}

/* Стили для кнопки */
.subscribe-form__submit {
    width: 100%;
    height: 48px;
    background: #1d7656;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 10px;
}

.subscribe-form__submit:hover {
    background: #165c43;
}

/* Адаптивные стили */
@media (max-width: 480px) {
    .subscribe-modal__content {
        padding: 30px 20px;
    }
    
    .subscribe-modal__title {
        font-size: 20px;
        margin-bottom: 0px;
    }
}

/* Дополнительные стили для Contact Form 7 */
.wpcf7-form {
    margin: 0;
}

.wpcf7-not-valid-tip {
    color: #dc3232;
    font-size: 12px;
    margin-top: 5px;
}

.wpcf7-response-output {
    margin: 20px 0 0;
    padding: 12px 15px;
    border: 1px solid #ececec;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 3px;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #1d7656;
    background: #f8f8f8;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    border-color: #dc3232;
    background: #fff2f2;
}

/* Стили для чекбокса Contact Form 7 */
.subscribe-form__group.checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.subscribe-form__group.checkbox .wpcf7-acceptance {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.subscribe-form__group.checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    line-height: 1.4;
    color: #666;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
    position: relative;
    padding-left: 26px;
}

.subscribe-form__checkbox {
    position: absolute;
    opacity: 0;
    width: 16px;
    height: 16px;
    margin: 2px 0 0 0;
    left: 0;
    top: 0;
}

.subscribe-form__group.checkbox label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 16px;
    height: 16px;
    border: 1px solid #ececec;
    background: #f8f8f8;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.subscribe-form__group.checkbox label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 16px;
    height: 16px;
    border: 1px solid #ececec;
    background: #f8f8f8;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.subscribe-form__checkbox:checked + label:before {
    background: #1d7656;
    border-color: #1d7656;
}

.subscribe-form__checkbox:checked label:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 7px;
    width: 6px;
    height: 3px;
    background: #1d7656;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}


/* Дополнительные стили для обертки чекбокса CF7 */
.wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: flex-start;
    position: relative;
}

.wpcf7-acceptance input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 16px;
    height: 16px;
    margin: 2px 0 0 0;
    z-index: 1;
    cursor: pointer;
}

/* Стили для псевдоэлемента чекбокса */
.wpcf7-acceptance .wpcf7-list-item-label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 16px;
    height: 16px;
    border: 1px solid #ececec;
    background: #f8f8f8;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Стили для активного состояния */
.wpcf7-acceptance input[type="checkbox"]:checked + .wpcf7-list-item-label:before {
    background: #1d7656;
    border-color: #1d7656;
}

/* Галочка */
.wpcf7-acceptance input[type="checkbox"]:checked + .wpcf7-list-item-label:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 7px;
    width: 6px;
    height: 3px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

/* Стили для текста чекбокса */
.wpcf7-list-item-label {
    padding-left: 26px;
    font-size: 12px;
    line-height: 1.4;
    color: #666;
    cursor: pointer;
    display: block;
    position: relative;
}

/* Стили для пагинации */
.woocommerce-pagination {
    text-align: center;
    margin: 40px 0;
    width: 100%;
}

.woocommerce-pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination .page-numbers li {
    display: inline-flex;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: #333;
    background: #f5f5f5;
    transition: all 0.2s ease;
}

.woocommerce-pagination .page-numbers a:hover {
    background: #e0e0e0;
    color: #000;
}

.woocommerce-pagination .page-numbers span.current {
    background: #1d7656;
    color: white;
}

.woocommerce-pagination .prev,
.woocommerce-pagination .next {
    font-size: 14px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .woocommerce-pagination .page-numbers a,
    .woocommerce-pagination .page-numbers span {
        min-width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .woocommerce-pagination .page-numbers {
        gap: 4px;
    }
}

/* Изначально скрываем мобильную версию */
.product-essential-info2 {
    display: none;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    /* Скрываем десктопную версию */
    .product-essential-info {
        display: none;
    }

    /* Показываем мобильную версию */
    .product-essential-info2 {
        display: block;
        margin: 20px 0;
    }

    /* Наследуем все стили от оригинального блока */
    .product-essential-info2 .product__heading,
    .product-essential-info2 .cost.prices.detail.prices_block,
    .product-essential-info2 .quantity_block_wrapper,
    .product-essential-info2 .counter_wrapp_addtocart1,
    .product-essential-info2 .wrapp-one-click,
    .product-essential-info2 .calculate-delivery1,
    .product-essential-info2 .calculate-delivery2 {
        /* Наследуем все существующие стили */
    }

    .product-essential-info2 .product__heading {
        margin-bottom: 15px;
    }

    .product-essential-info2 .product__heading h1.product_title.entry-title {
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }
}

/* Стили для контейнера регистрации */
.registration-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 20px;
}

/* Обновляем существующие стили формы */
.registration-form-wrapper {
    max-width: 460px;
    margin: 30px 0;
    width: 100%;
}

.registration-form {
    width: 100%;
}

.registration-form .form-group {
    margin-bottom: 15px;
    position: relative;
}

.registration-form label {
    display: block;
    font-size: 12px;
    color: #333;
    margin-bottom: 2px;
    font-family: 'Montserrat', sans-serif;
    font-weight: normal;
}

.registration-form .form-input {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #ececec;
    border-radius: 3px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    background: #f8f8f8;
    transition: all 0.3s ease;
}

.registration-form .form-input:focus {
    border-color: #1d7656;
    background: #fff;
    outline: none;
}

/* Стили для чекбокса */
.registration-form .checkbox {
    display: flex;
    align-items: flex-start;
}

.registration-form .checkbox label {
    display: flex;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.4;
    color: #666;
    cursor: pointer;
    margin: 0;
    position: relative;
    padding-left: 26px;
}

.registration-form .checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 16px;
    height: 16px;
    margin: 2px 0 0 0;
    left: 0;
    top: 0;
    z-index: 1;
    cursor: pointer;
}

.registration-form .checkbox .checkbox-label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 16px;
    height: 16px;
    border: 1px solid #ececec;
    background: #f8f8f8;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.registration-form .checkbox input[type="checkbox"]:checked + label:before {
    background: #1d7656;
    border-color: #1d7656;
}

.registration-form .checkbox input[type="checkbox"]:checked + label:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 7px;
    width: 6px;
    height: 3px;
    background: #1d7656;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.registration-submit {
    width: 100%;
    height: 48px;
    background: #1d7656;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 20px;
}

.registration-submit:hover {
    background: #165c43;
}

/* Стили для страницы личного кабинета */
.personal-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .personal-container {
        padding: 10px;
    }
}

/* Стили для контейнера кнопок */
.auth-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.auth-buttons .registration-submit {
    margin-top: 0;
    flex: 1;
}

.registration-link {
    flex: 1;
    height: 48px;
    background: #fff;
    color: #1d7656;
    border: 1px solid #1d7656;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.registration-link:hover {
    background: #f5f5f5;
    color: #1d7656;
    text-decoration: none;
}

/* Обновляем стили для чекбокса */
.registration-form .checkbox input[type="checkbox"],
#remember {
    position: absolute;
    opacity: 0;
    width: 16px;
    height: 16px;
    margin: 2px 0 0 0;
    left: 0;
    top: 0;
    z-index: 1;
    cursor: pointer;
}

.registration-form .checkbox .checkbox-label:before,
.registration-form .checkbox label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 16px;
    height: 16px;
    border: 1px solid #ececec;
    background: #f8f8f8;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.registration-form .checkbox input[type="checkbox"]:checked + .checkbox-label:before,
.registration-form .checkbox input[type="checkbox"]:checked + label:before {
    background: #1d7656;
    border-color: #1d7656;
}

.registration-form .checkbox input[type="checkbox"]:checked + .checkbox-label:after,
.registration-form .checkbox input[type="checkbox"]:checked + label:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 7px;
    width: 6px;
    height: 3px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

/* Добавляем стили для контейнера с результатами и сортировкой */
.woocommerce-products-header {
    margin-bottom: 20px;
}

.woocommerce-results-sorting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Стили для количества результатов */
.woocommerce-result-count {
    margin: 0;
    color: #666;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    display: none;
}

/* Стили для выпадающего списка сортировки */
.woocommerce-ordering {
    margin: 0;
}

.woocommerce-ordering select {
    padding: 8px 30px 8px 15px;
    border: 1px solid #ececec;
    border-radius: 3px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23333333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.woocommerce-ordering select:focus {
    outline: none;
    border-color: #1d7656;
}

/* Адаптивность */
@media (max-width: 767px) {
    .woocommerce-results-sorting {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .woocommerce-ordering {
        width: 100%;
    }

    .woocommerce-ordering select {
        width: 100%;
    }
}

/* Стили для сетки подкатегорий */
.subcategories-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0 -1px -1px 0;
    margin-bottom: 20px;
    margin-top: 20px;

}

.subcategory-item {
    text-decoration: none;
    margin: 0 0 -1px -1px;
    border: 1px solid #ececec;
    transition: border-color 0.3s ease;
    position: relative;
}

.subcategory-item:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.subcategory-content {
    display: flex;
    align-items: center;
    padding: 24px 25px;
}

.subcategory-image {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subcategory-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.subcategory-info {
    padding-left: 20px;
    line-height: 20px;
}

.subcategory-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.subcategory-count {
    font-size: 12px;
    color: #999;
}

/* Адаптивные стили */
@media (max-width: 991px) {
    .subcategories-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .subcategories-section {
        grid-template-columns: 1fr;
    }
    
    .subcategory-content {
        padding: 15px 20px;
    }
}

/* Стили для триггера фильтра */
.filter-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.filter-icon {
    width: auto;
    height: 14px !important;
}

.filter-text {
    font-size: 1.2em;
    line-height: 1.3em;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px dotted;
    color: #333;
    font-weight: 600;
}

/* Обновляем стили для контейнера результатов и сортировки */
.woocommerce-results-sorting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 30px;
    margin-top: 20px;
}

/* Адаптивные стили */
@media (max-width: 767px) {
    .woocommerce-results-sorting {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .filter-trigger {
        order: -1;
        margin-right: auto;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* Стили только для основного заголовка товара */
h1.product_title.entry-title.main-product-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    font-family: 'Montserrat', sans-serif !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    color: #333 !important;
}

/* Убираем конфликты с заголовками в составе комплекта */
.kit-item .product_title,
.kit-item .entry-title {
    font-size: 14px !important;
    font-weight: 500 !important;
    margin: 10px 0 !important;
    line-height: 1.4 !important;
}

/* Стили только для основного заголовка товара на странице товара */
body.single-product .product__heading h1.product_title.entry-title.main-product-title,
body.single-product .product-essential-info2 .product__heading h1.product_title.entry-title.main-product-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    font-family: 'Montserrat', sans-serif !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    color: #333 !important;
    text-transform: none !important;
}

/* Сброс стилей WooCommerce для основного заголовка */
.woocommerce div.product .product_title {
    clear: none;
    margin: 0 0 15px 0;
    padding: 0;
}

@media (max-width: 768px) {
    body.single-product .product-essential-info2 .product__heading h1.product_title.entry-title.main-product-title {
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }

    .kit-item-title {
        font-size: 13px;
        margin: 8px 0;
    }
}

/* Новые стили для заголовка товара */
.arnika-product-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    font-family: 'Montserrat', sans-serif !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    color: #333 !important;
    text-transform: none !important;
}

@media (max-width: 768px) {
    .arnika-product-title {
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }
}

/* Стили для основной цены товара */
.main-product-price {
    margin-top: 20px;
    font-family: 'Montserrat', sans-serif;
}

.main-product-price .price-old {
    font-size: 13px;
    line-height: 15px;
    font-weight: normal;
    text-decoration: line-through;
    color: #999;
}

.main-product-price .price-current {
    font-size: 1.733em;
    font-weight: bold;
    margin-top: 10px;
}

.main-product-price.no-sale .price-old {
    font-size: 1.733em;
    font-weight: bold;
    text-decoration: none;
    color: inherit;
}

/* Стили для цен в составе комплекта остаются прежними */
.kit-item .cost.prices:not(.main-product-price) {
    /* существующие стили для цен в комплекте */
}

.availability-link {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.availability-link:hover {
    opacity: 0.8;
}

/* Для доступности с клавиатуры */
.availability-link:focus {
    outline: 2px solid #1d7656;
    outline-offset: 2px;
}

/* Стили для блока наличия на складах */
.warehouses-availability {
    margin-top: 20px;
}

.warehouse-item {
    border: 1px solid #ececec;
    margin: -1px 0 0;
    position: relative;
    padding: 17px 20px 19px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.warehouse-info {
    flex: 1;
}

.warehouse-name {
    font-size: 0.933em;
    line-height: 1.501em;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.warehouse-contacts {
    font-size: 0.867em;
    color: #777;
    line-height: 1.5;
}

.warehouse-phone {
    margin-bottom: 4px;
}

.warehouse-status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-top: 3px;
}

.warehouse-status .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.warehouse-status.in-stock .status-dot {
    background-color: #1d7656;
}

.warehouse-status.out-of-stock .status-dot {
    background-color: #e10000;
}

.warehouse-status .status-text {
    font-size: 0.867em;
}

.warehouse-status.in-stock .status-text {
    color: #1d7656;
}

.warehouse-status.out-of-stock .status-text {
    color: #e10000;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .warehouse-item {
        flex-direction: column;
        padding: 15px;
        gap: 12px;
    }

    .warehouse-status {
        padding-top: 0;
    }

    .warehouse-name {
        font-size: 0.867em;
        line-height: 1.4;
    }

    .warehouse-contacts {
        font-size: 0.8em;
    }
}

/* Стили для стрелок галереи */
.product-gallery-arrow {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    opacity: 0;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
}

.product-gallery-arrow-prev {
    left: -10px;
}

.product-gallery-arrow-next {
    right: -10px;
}

/* Появление стрелок при наведении */
.product-main-image-wrapper:hover .product-gallery-arrow {
    opacity: 1;
}

.product-main-image-wrapper:hover .product-gallery-arrow-prev {
    left: 20px;
}

.product-main-image-wrapper:hover .product-gallery-arrow-next {
    right: 20px;
}

/* Стили для SVG в стрелках */
.product-gallery-arrow svg {
    width: 7px;
    height: 12px;
    color: #333;
    transition: color 0.3s ease;
}

.product-gallery-arrow:hover {
    background-color: #1d7656;
}

.product-gallery-arrow:hover svg {
    color: #fff;
}

/* Адаптивные стили */
@media screen and (max-width: 767px) {
    .product-gallery-arrow {
        width: 32px;
        height: 32px;
        opacity: 1;
    }
    
    .product-gallery-arrow-prev {
        left: 10px;
    }
    
    .product-gallery-arrow-next {
        right: 10px;
    }
}

/* Позиционирование стикеров на странице товара */
.product-main-image-wrapper {
    position: relative;
}

.product-main-image-wrapper .product-card__discount-badge,
.product-main-image-wrapper .product-card__new-badge,
.product-main-image-wrapper .product-card__day-badge,
.product-main-image-wrapper .product-card__hit-badge {
    position: absolute;
    left: 20px;
    z-index: 2;
}

.product-main-image-wrapper .product-card__discount-badge {
    top: 20px;
}

.product-main-image-wrapper .product-card__new-badge {
    top: 60px;
}

.product-main-image-wrapper .product-card__day-badge {
    top: 100px;
}

.product-main-image-wrapper .product-card__hit-badge {
    top: 140px;
}

/* Адаптивные стили для стикеров */
@media (max-width: 768px) {
    .product-main-image-wrapper .product-card__discount-badge,
    .product-main-image-wrapper .product-card__new-badge,
    .product-main-image-wrapper .product-card__day-badge,
    .product-main-image-wrapper .product-card__hit-badge {
        left: 10px;
    }

    .product-main-image-wrapper .product-card__discount-badge {
        top: 10px;
    }

    .product-main-image-wrapper .product-card__new-badge {
        top: 45px;
    }

    .product-main-image-wrapper .product-card__day-badge {
        top: 80px;
    }

    .product-main-image-wrapper .product-card__hit-badge {
        top: 115px;
    }
}

/* Стили для блока оптовых цен */
.optdiv {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ececec;
}

.optdiv .main-product-price {
    margin-top: 0;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .optdiv {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
}

/* Добавляем стили для страницы восстановления пароля */
.auth-links {
    margin-top: 20px;
    text-align: center;
}

.auth-link {
    color: #1d7656;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #165c43;
    text-decoration: underline;
}

.success-message {
    padding: 15px;
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 4px;
    color: #2e7d32;
    margin: 20px 0;
    text-align: center;
}

/* Стили для модальной галереи */
.modal-gallery {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.modal-gallery__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.modal-gallery__content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-gallery__image-container {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: 0 60px;
}

.modal-gallery__image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.modal-gallery__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.modal-gallery__close:hover {
    transform: scale(1.1);
}

.modal-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    z-index: 10001;
}

.modal-gallery__nav:hover {
    opacity: 0.8;
}

.modal-gallery__prev {
    left: 20px;
}

.modal-gallery__next {
    right: 20px;
}

/* Стиль для блокировки прокрутки при открытом модальном окне */
body.modal-open {
    overflow: hidden;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .modal-gallery__nav {
        width: 40px;
        height: 40px;
    }
    
    .modal-gallery__image-container {
        margin: 0 40px;
    }
    
    .modal-gallery__close {
        top: 10px;
        right: 10px;
    }
}

/* Стили для разделов каталога */
.catalog-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 30px 0 20px;
    font-family: 'Montserrat', sans-serif;
}

.popular-categories-section {
    margin-bottom: 20px;
}

.popular-categories-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1px;
}

/* Корректировка ширины блоков в популярных категориях */
.popular-categories-wrapper .item_block_osn14 {
    width: 50%;
}

@media (max-width: 768px) {
    .popular-categories-wrapper .item_block_osn14 {
        width: 100%;
    }
    
    .catalog-section-title {
        font-size: 16px;
        margin: 20px 0 15px;
    }
}

/* Fixed comparison table styles */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.compare-table th,
.compare-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ececec;
    vertical-align: middle;
}

.compare-table th {
    background-color: #f8f8f8;
    font-weight: 500;
    width: 150px;
}

.compare-header td {
    text-align: center;
    vertical-align: top;
    padding: 20px 10px;
}

.compare-product-image img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.compare-product-title {
    margin-bottom: 5px;
}

.compare-product-title a {
    color: #333;
    text-decoration: none;
}

.compare-product-title a:hover {
    color: #1d7656;
}

.compare-remove {
    margin-top: 10px;
    color: #999;
    cursor: pointer;
}

.compare-remove:hover {
    color: #333;
    text-decoration: underline;
}
