/*
Theme Name: Sober Child Theme
Theme URI: http://uix.store/sober/
Author: UIX Themes
Author URI: http://uix.store
Description: Sober is a fully responsive Premium WordPress Theme with a pixel perfect design and extensive functionality
Version: 99.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sober
Tags: one-column, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
Template: sober
*/

.header-icon li.menu-item-cart span.count, .header-icon li.menu-item-wishlist span.count {
    background-color: #1e5945 !important;
}

svg {
    fill: #1e5945 !important;
	stroke: #1e5945 !important;
}
.site-navigation a:after {
    background-color: #1e5945 !important;
}

.line-hover.active:after, .woocommerce table.my_account_orders .active.button:after, .woocommerce-account .woocommerce-MyAccount-content p a.active:not(.button):after, .woocommerce-cart .woocommerce-shipping-calculator a.active:after, .woocommerce-error .box-content .active.button:after, .woocommerce-info .box-content .active.button:after, .woocommerce-message .box-content .active.button:after, .sober-tab__title a.active:after, .wpb-js-composer .vc_tta.vc_tta-tabs.vc_tta-style-outline .vc_tta-tab>a.active:after, .line-hover:hover:after, .woocommerce table.my_account_orders .button:hover:after, .woocommerce-account .woocommerce-MyAccount-content p a:hover:not(.button):after, .woocommerce-cart .woocommerce-shipping-calculator a:hover:after, .woocommerce-error .box-content .button:hover:after, .woocommerce-info .box-content .button:hover:after, .woocommerce-message .box-content .button:hover:after, .sober-tab__title a:hover:after, .wpb-js-composer .vc_tta.vc_tta-tabs.vc_tta-style-outline .vc_tta-tab>a:hover:after {
    background-color: #1e5945 !important;
}

.woocommerce a.button, .woocommerce a.button.alt, .woocommerce a.button.disabled, .woocommerce a.button.alt.disabled, .woocommerce a.button:disabled, .woocommerce a.button.alt:disabled, .woocommerce a.button:disabled[disabled], .woocommerce a.button.alt:disabled[disabled], .woocommerce button.button, .woocommerce button.button.alt, .woocommerce button.button.disabled, .woocommerce button.button.alt.disabled, .woocommerce button.button:disabled, .woocommerce button.button.alt:disabled, .woocommerce button.button:disabled[disabled], .woocommerce button.button.alt:disabled[disabled], .woocommerce input.button, .woocommerce input.button.alt, .woocommerce input.button.disabled, .woocommerce input.button.alt.disabled, .woocommerce input.button:disabled, .woocommerce input.button.alt:disabled, .woocommerce input.button:disabled[disabled], .woocommerce input.button.alt:disabled[disabled] {
    background-color: #1e5945 !important;
}

.woocommerce div.product form.cart .wcboost-wishlist-button svg, .woocommerce div.product form.cart .add-to-wishlist-button svg, .woocommerce div.product p.cart .wcboost-wishlist-button svg, .woocommerce div.product p.cart .add-to-wishlist-button svg {
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

.woocommerce div.product form.cart .button svg, .woocommerce div.product p.cart .button svg {
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

.wcboost-variation-swatches .wcboost-variation-swatches__item {
    margin: 4px;
    box-shadow: none !important;
    border: 1px solid #f5f5f5;
}

.wcboost-variation-swatches--button .wcboost-variation-swatches__item.selected {
    color: #ffffff;
   background-color: #1e5945 !important;
    border: 1px solid #1e5945;
}

.wcboost-variation-swatches--color .wcboost-variation-swatches__name {
    width: 100% !important;
      height: 100% !important;
}

.wcboost-variation-swatches .wcboost-variation-swatches__item.selected {
     border: 1px solid #1e5945 !important;
}

.woocommerce .woocommerce-breadcrumb {
    font-weight: 500 !important;
    font-size: 1.6rem !important;
}

.page-header .page-title {
    font-size: 8rem !important;
}

.woocommerce ul.products li.product .button svg, .woocommerce ul.products li.product .yith-wcwl-add-to-wishlist svg {
    stroke: #fff !important;
    fill: #fff !important;
}

.woocommerce .woocommerce-breadcrumb a, .woocommerce .woocommerce-breadcrumb .fa {
    color: #1e5945 !important;
}

.button, .btn, .wpcf7-form .wpcf7-submit {
    background-color: #1e5945 !important;
}

.woocommerce-error .box-content .button, .woocommerce-info .box-content .button, .woocommerce-message .box-content .button {
    background: none !important;
}

.wc-block-cart .wc-block-cart__submit-button {
 
    background-color: #1e5945 !important;
}

.woocommerce-page-header li:hover .count, .woocommerce-page-header li.active .count {
   background-color: #1e5945 !important;
}

:root :where(.wp-element-button, .wp-block-button__link) {
    background-color: #1e5945 !important;
}


.nav-menu li li a:hover {
    color: #1e5945 !important;
}

.sober-icon-box .box-content {
    line-height: normal !important;
}

.woocommerce div.product form.cart .variations .variable-options {
    display: flex !important;
    flex-direction: column !important;
    align-items: start !important;
    justify-content: space-between !important;
    position: relative !important;
    border-bottom: none !important;
}

.woocommerce div.product form.cart .variations .arrow {
	display:none  !important;
}
.wcav-tooltip {
	background: #1e5945 !important;
}
.wcav-option.is-selected .wcav-main-label {
	color: #1e5945 !important;
}

.wcav-option.is-selected .wcav-subtitle {
color: #1e5945;
}

.wcav-option:hover, .wcav-option:focus {
	background:none;
	border: 1px solid #1e5945;
	color: #1e5945;
}
.wcav-option.is-selected {
    border: 1px solid #1e5945 !important;
    padding: 6px 12px  !important;
}
.woocommerce div.product form.cart .variations .variable-options:after {
    display:none;
}
p.stock.in-stock {
    color: #1e5945 !important
}
.woocommerce div.product form.cart .reset_variations {
    padding: 0 !important;
  
}
label.filter__label-button {
    display: flex;
    flex-direction: column;
    text-align: center;
}
span.label__subtitle {
    font-size: 11px;
    color: #838080;
}

select#pa_razmer {
    display: none;
    padding: 0;
}
@media screen and (max-width: 940px) {
    .page-header .page-title {
        font-size: 35px !important;
        font-size: 3.5rem !important;
        line-height: 1.125 !important;
        padding-bottom: 15px !important;
    }
	.sober-icon-box {
		padding: 0px;
	}
	.sober-icon-box .box-title {
    font-size: 1.6rem;
	}
}

@media screen and (max-width: 991px) {
    .page-header .page-title {
        font-size: 50px !important;
        font-size: 5rem !important;
        padding-bottom: 15px !important;
    }
}

@media screen and (max-width: 767px) {
    .woocommerce div.product form.cart .wcboost-wishlist-button__text {
        color: #fff !important;
    }
}

/* Бренд товара (логотип + название) над кратким описанием */
.modoshop-brand {
    margin: 25px 0;
    font-size: 14px;
    line-height: 1.4;
}

.modoshop-brand a.brand {
    display: inline-flex;
    align-items: center;
    color: #23232c;
    text-decoration: none;
    transition: color .2s ease;
}

.modoshop-brand a.brand:hover {
    color: #1e5945;
}

.tnp-subscription input.tnp-submit, .tnp-profile input.tnp-submit, .tnp-unsubscribe button.tnp-submit, .tnp-reactivate button.tnp-submit {
    background-color: #1e5945 !important;
}

.modoshop-brand img.brand-logo {
    width: auto;
    max-height: 50px;
    margin-right: 10px;
    vertical-align: middle;
}
.woocommerce div.product form.cart .variations .variable {
    display: block !important;
}
/* Страница категории: подкатегории отдельной сеткой над товарами */
ul.products.modoshop-subcategories {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e4e6eb;
}

ul.products.modoshop-subcategories::after {
    content: "";
    display: table;
    clear: both;
}

/* ===== Страница брендов (/brands/): навигация по буквам и список ===== */
.modoshop-brands__nav {
    margin-bottom: 45px;
}

.modoshop-brands__nav-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.modoshop-brands__nav-row:last-child {
    margin-bottom: 0;
}

.modoshop-brands__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: #f4f5f7;
    border-radius: 6px;
    color: #23232c;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.modoshop-brands__chip:hover,
.modoshop-brands__chip:focus {
    background: #e4e6eb;
    color: #23232c;
}

.modoshop-brands__chip:focus-visible {
    outline: 2px solid #1e5945;
    outline-offset: 2px;
}

.modoshop-brands__chip.is-active {
    background: #1e5945;
    color: #fff;
}

.modoshop-brands__list {
    transition: opacity .2s ease;
}

.modoshop-brands__list.is-loading {
    opacity: .45;
    pointer-events: none;
}

.modoshop-brands__group {
    display: flex;
    align-items: flex-start;
    padding: 32px 0;
    border-bottom: 1px solid #e4e6eb;
}

.modoshop-brands__group:first-child {
    border-top: 1px solid #e4e6eb;
}

.modoshop-brands__letter {
    flex: 0 0 190px;
    max-width: 190px;
    color: #23232c;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.modoshop-brands__items {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.modoshop-brands__items li {
    margin: 0;
}

.modoshop-brands__items a {
    color: #23232c;
    text-decoration: none;
    transition: color .2s ease;
}

.modoshop-brands__items a:hover {
    color: #1e5945;
}

.modoshop-brands__empty {
    padding: 30px 0;
    color: #7c7c80;
}
span.value-sizes {
    color: #1e5945;
    font-weight: 600;
}

.woocommerce ul.products li.product .price {
    font-size: 1.5rem !important;
}

.woocommerce div.product .product-size-guide a {
    text-transform: none !important;
    font-size: 14px !important;
}

/*
 * Размерная сетка рядом с выбором размера.
 * Кнопка переносится из-под цены в строку атрибута «Размер»
 * (sober-child/functions.php → modoshop_relocate_size_guide_button()):
 * строка становится двухколоночной — слева подпись и размеры, справа сетка.
 */
.woocommerce div.product form.cart .variations .variable {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 12px;
}

.woocommerce div.product form.cart .variations .variable > .product-size-guide {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.woocommerce div.product form.cart .variations .variable > .product-size-guide .icon-size {
    flex-shrink: 0;
    display: block;
}

@media screen and (max-width: 991px) {
    .modoshop-brands__letter {
        flex-basis: 120px;
        max-width: 120px;
    }

    .modoshop-brands__items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 767px) {
    .modoshop-brands__group {
        flex-direction: column;
    }

    .modoshop-brands__letter {
        flex-basis: auto;
        max-width: none;
        margin-bottom: 16px;
    }
}

/* ===== Заголовок виджета Product Grid (WPBakery) ===== */
.sober-product-grid .sober-product-grid__title {
    font-size: 24px;
    font-size: 2.4rem;
    font-weight: 300;
    color: #23232c;
    text-align: center;
    font-family: "Sofia Pro", Poppins, sans-serif;
    margin: 0 0 60px;
}

/* ===== Аккордеон на странице товара: «Ключевые особенности», «Наши преимущества» ===== */
.modoshop-accordions {
    margin: 25px 0 10px;
    border-top: 1px solid #e4e6eb;
}

.modoshop-accordion {
    border-bottom: 1px solid #e4e6eb;
}

.modoshop-accordion__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 18px 0;
    background: none;
    border: none;
    box-shadow: none;
    color: #23232c;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
}

.modoshop-accordion__header:hover,
.modoshop-accordion__header:focus {
    background: none;
    color: #1e5945;
}

.modoshop-accordion__icon {
    flex-shrink: 0;
    color: #23232c;
    transition: transform .3s ease;
}

.modoshop-accordion__header:hover .modoshop-accordion__icon {
    color: #1e5945;
}

.modoshop-accordion.is-open .modoshop-accordion__icon {
    transform: rotate(180deg);
}

/* Анимация раскрытия через grid-template-rows: не нужно замерять высоту контента. */
.modoshop-accordion__content {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows .35s ease, visibility .35s ease;
}

.modoshop-accordion.is-open .modoshop-accordion__content {
    grid-template-rows: 1fr;
    visibility: visible;
}

.modoshop-accordion__inner {
    min-height: 0;
    overflow: hidden;
    padding-bottom: 0;
    color: #4a4a4f;
    font-size: 15px;
    line-height: 1.7;
    transition: padding-bottom .35s ease;
}

.modoshop-accordion.is-open .modoshop-accordion__inner {
    padding-bottom: 20px;
}

.modoshop-accordion__inner > :last-child {
    margin-bottom: 0;
}