/* Genesis ReForge WooCommerce - Fluent Design Edition
Loaded on WooCommerce pages */

/* WooCommerce Globals
---------------------------------------------------------------------------- */

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.disabled, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit:disabled, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit:disabled[disabled], 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.disabled, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button:disabled, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button:disabled[disabled], 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.disabled, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button:disabled, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button:disabled[disabled], 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.disabled, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button:disabled, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button:disabled[disabled], 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.disabled, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit:disabled, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit:disabled[disabled], 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.disabled, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button:disabled, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button:disabled[disabled], 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.disabled, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button:disabled, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button:disabled[disabled], 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.disabled, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button:disabled, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button:disabled[disabled] {
    color: #fffffff2;
    cursor: not-allowed;
    opacity: 0.4;
    padding: .618em 1em;
}

.woocommerce ul.products li.product a img {
    margin: 0;
}

.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals {
    float: left;
    width: 100%;
}

.woocommerce.full-width-content .content,
.woocommerce-page.full-width-content .content {
    max-width: 1140px;
    width: 100%;
    background: transparent;
    border-radius: 8px;
    box-shadow: none;
}

.woocommerce .entry.product {
    padding: 0;
    transition: transform 0.2s ease;
}

.woocommerce abbr.required,
.woocommerce ins {
    text-decoration: none;
}

.woocommerce span.onsale {
    background: #0078D4; /* Fluent акцентный цвет */
    border-radius: 4px;
    line-height: 1.75;
    min-height: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.woocommerce fieldset {
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 15px;
}

/* WooCommerce Shop Page - Grid вместо Flex
---------------------------------------------------------------------------- */

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px; /* Расстояние между элементами */
    padding: 0;
}

.woocommerce ul.products li.product {
    display: grid;
    overflow: hidden;
    width: auto;
    grid-template-rows: auto 1fr auto; /* Картинка, контент, кнопка */
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 0;
    transition: all 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.woocommerce ul.products li.product .product-image {
	
}

.woocommerce ul.products li.product .product-details {
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product .product-details .product-title {
	
}

.woocommerce ul.products li.product h3 {
    color: #333;
    transition: color 0.2s ease;
}

.woocommerce ul.products li.product .product-details .product-price {
    margin-top: auto;
}

.woocommerce ul.products li.product h3:hover,
.woocommerce ul.products li.product .price {
    color: #0078D4;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 0;
}

.woocommerce ul.products li.product .button {
    background: #0078D4;
    width: 100%;
    border-radius: 20px;
    color: #fff;
    padding: 12px;
    margin: 0;
    text-align: center;
    transition: all 0.2s ease;
}

.woocommerce ul.products li.product .button:hover {
    background: #106EBE;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* WooCommerce Product Gallery
---------------------------------------------------------------------------- */

.woocommerce .woocommerce-product-gallery__wrapper {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
}

.woocommerce .woocommerce-product-gallery__trigger {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.woocommerce .woocommerce-product-gallery__trigger:hover {
    background: #0078D4;
    color: #fff;
}

/* WooCommerce Product
---------------------------------------------------------------------------- */

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #0078D4;
    font-weight: 600;
}

.woocommerce div.product form.cart .button {
    background: #0078D4;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.woocommerce div.product form.cart .button:hover {
    background: #106EBE;
    transform: translateY(-2px);
}

/* WooCommerce Product Tabs
---------------------------------------------------------------------------- */

.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px 6px 0 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: none;
    background: transparent;
    border-radius: 6px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li:hover,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: rgba(0, 120, 212, 0.1);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: #333;
    padding: 10px 20px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #0078D4;
}

/* WooCommerce Checkout
---------------------------------------------------------------------------- */

.woocommerce-checkout #customer_details {
    background-color: #ffffff59;
    margin: 0 0 50px;
    padding: 10px;
    border-radius: 8px;
}

.woocommerce-cart #payment,
.woocommerce-checkout #payment {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
    padding-bottom: 30px;
}

.woocommerce-checkout #billing_country_field {
	display: none;
}

/* WooCommerce Forms
---------------------------------------------------------------------------- */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    color:#f3f3f3;
    background: #0078D4;
    border: none;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    color:#f3f3f3;
    background: #106EBE;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 12px;
    transition: all 0.2s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: #0078D4;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.3);
}

/* WooCommerce Pagination
---------------------------------------------------------------------------- */

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #0078D4;
    color: #fff;
}

/* WooCommerce Cart Page
---------------------------------------------------------------------------- */

.woocommerce table.shop_table {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
	margin: 0 -1px 40px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#add_payment_method .cart-collaterals .cart_totals table, 
.woocommerce-cart .cart-collaterals .cart_totals table, 
.woocommerce-checkout .cart-collaterals .cart_totals table {
    border-collapse: separate;
    margin: 0 0 30px;
    padding: 0;
}

.woocommerce a.remove {
    margin: 0;
    padding: 0;
    display: inline-block;
    font-size: 19px;
    height: 30px;
    width: 30px;
    text-align: center;
    line-height: normal;
    border-radius: 100%;
    color: var(--wc-red)!important;
    text-decoration: none;
    font-weight: 700;
    border: 0;
}


/* WooCommerce Account Menu
---------------------------------------------------------------------------- */

.woocommerce-account .woocommerce-MyAccount-content {
    float: none;
    width: auto;
}

/* WooCommerce Reviews
---------------------------------------------------------------------------- */

.woocommerce #reviews #comments ol.commentlist li .comment-text {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* WooCommerce Misc
---------------------------------------------------------------------------- */

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    border-top: 3px solid #0078D4;
    padding-left: 50px;
    margin: 0 0 30px;
}

/* Media Queries
---------------------------------------------------------------------------- */

@media only screen and (min-width: 600px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media only screen and (min-width: 960px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }
    
    .full-width-content.woocommerce div.product .woocommerce-tabs ul.tabs li {
        background: rgba(255, 255, 255, 0.9);
        border-radius: 6px;
    }
}

@media only screen and (min-width: 1140px) {
    .content-sidebar .woocommerce ul.products,
    .sidebar-content .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}


/* 
	WooCommerce кнопки в хедере
*/

#woocommerce-header-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Выравнивание по правому краю */
}

#woocommerce-header-center-button {
    margin: 0;
}

#woocommerce-header-center-button form {    
	display: grid;
    grid-template-columns: auto max-content;
    align-items: center;
}


#woocommerce-dynamic-search-button,
#woocommerce-header-account-button,
#woocommerce-header-cart-button {
    /* Убираем рамки, тени и фон */
    width: 48px;
    height: 48px;
    padding: 8px;
    border-radius: 50%;
    text-decoration: none;
    background-color: transparent; /* Прозрачный фон */
    border: none;
    box-shadow: none;
    color: #373737; /* Цвет иконки */
    font-size: 24px; /* Размер иконки */
    display: inline-grid;
    align-content: center;
    vertical-align: super;
    transition: all 0.3s ease;
}

#woocommerce-dynamic-search-button:hover,
#woocommerce-header-account-button:hover,
#woocommerce-header-cart-button:hover {
    background: rgba(0, 120, 212, 0.1);
    color: #0078D4;
    transform: scale(1.1);
}

#woocommerce-header-cart-button .cart-count {
    background: #D83B01; /* Акцентный красный для корзины */
    padding: 2px 6px;
    font-size: 11px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    position: absolute;
    border: solid white 2px;
    color: white;
    border-radius: 50%;
    margin-top: 0px;
    margin-left: -5px;
}

#woocommerce-header-right-buttons {
    display: flex;
    justify-content: flex-end;
}

/*
	Раздел иконок для пунктов меню
*/

/* Добавьте этот код в Customizer → Дополнительный CSS */
.woocommerce-MyAccount-navigation ul li a::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    display: inline-block;
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard a::before {
    content: "\f3fd"; /* Иконка дашборда */
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--orders a::before {
    content: "\f290"; /* Иконка заказов */
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--downloads a::before {
    content: "\f019"; /* Иконка загрузок */
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-address a::before {
    content: "\f2b9"; /* Иконка адресов */
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--payment-methods a::before {
    content: "\f09d"; /* Иконка платежных методов */
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-account a::before {
    content: "\f4ff"; /* Иконка настроек аккаунта */
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a::before {
    content: "\f2f5"; /* Иконка выхода */
}

/*
	Раздел стилей для AJAX 
*/

/* Стили для AJAX поиска */
.ajax-search-container {
    position: relative;
    margin: 15px 0;
}

#search-results {
    position: absolute;
    top: 100%;
    padding: 10px;
    margin: 12px 0;
    width: calc(100% + (75px * 2));
    left: -75px;
    height: auto;
    background: #fff;
    z-index: 999;
    border: 1px solid #ddd;
    border-radius: 20px;
    overflow: hidden;
    display: none;
}

.ajax-search-result {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.ajax-search-result a {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    justify-items: start;
}

.ajax-search-result img {
    grid-row: 1 / 3;
    border-radius: 8px;
    width: 50px;
    height: auto;
    margin-right: 15px;
}

.ajax-search-result h4 {
    margin: 0 0 5px;
    font-size: 14px;
}

.ajax-search-result .price {
    font-size: 13px;
    color: #77a464;
    font-weight: bold;
}

/* Индикатор загрузки */
.loading {
    position: relative;
    opacity: 0.7;
}

.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-products {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 16px;
}

/* Обновление корзины в шапке */
.cart-contents .count {
    display: inline-block;
    margin-left: 5px;
    background: #77a464;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
}

/*
	коректировочные стили (база)
*/

.woocommerce ul.products li.product.entry::before {
    display: none;
}

.woocommerce ul.products li.product.entry::after {
    display: none;
}

.woocommerce ul.products li.product, 
.woocommerce-page ul.products li.product {
    margin: 0;
}

.woocommerce .products ul::after, 
.woocommerce .products ul::before, 
.woocommerce ul.products::after, 
.woocommerce ul.products::before {
    display: none;
}

.woocommerce ul.products[class*=columns-] li.product, 
.woocommerce-page ul.products[class*=columns-] li.product {
    width: auto;
	animation: reveal 1s ease-in-out forwards;
}

@media only screen and (max-width: 860px) {
	
    .woocommerce ul.products[class*=columns-] li.product, 
	.woocommerce-page ul.products[class*=columns-] li.product {
        width: auto;
        margin: 0;
    }
}

@keyframes reveal {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}


/*
	zen_ui коректировка стилей плагина 
*/
.zen-ui-select__dropdown {
    border: solid 1px #00000026;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.zen-ui-select__value {
    border-radius: 20px;
}
.zen-ui-select__search-input {
    border: none !important;
}
.wcus-checkout-fields {
    padding-bottom: 30px;
}
/* Добавляем звёздочку к заголовку доставки */
.wcus-checkout-fields h3::after {
    content: "*";
    color: #ff0000;
    margin-right: 5px;
    font-weight: bold;
}

/* Стили для поиска */
.search-loading {
    text-align: center;
    padding: 15px;
}
.search-loading-dots {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}
.search-loading-dots .dot {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #333;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}
.search-loading-dots .dot:nth-child(1) {
    animation-delay: -0.32s;
}
.search-loading-dots .dot:nth-child(2) {
    animation-delay: -0.16s;
}
.search-loading-text {
    color: #666;
    font-size: 14px;
}

/* Стили для загрузки товаров */
#products-loading {
    grid-column: 1 / -1;
}
.products-loading {
    text-align: center;
    padding: 45px 0 150px;
    width: 100%;
}
.loader-spinner {
    margin: 0 auto 15px;
    width: 50px;
    height: 50px;
}
.spinner {
    width: 100%;
    height: 100%;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #333;
    animation: spin 1s ease-in-out infinite;
}
.loading-text {
    color: #666;
    font-size: 16px;
}

/* Анимации */
@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Price slider styles */
.price-slider-wrapper {
    padding: 0 10px;
}

.slider-range {
    height: 6px;
    background: #e5e5e5;
    border-radius: 3px;
    margin-bottom: 20px;
    position: relative;
}

.ui-slider-handle {
    width: 18px;
    height: 18px;
    background: #333;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    outline: none;
    top: -6px;
    transform: translateX(-9px);
    position: absolute;
}

.ui-slider-range {
    height: 6px;
    background: #0073aa;
    border-radius: 3px;
    position: absolute;
}

.slider-values {
    display: flex;
    justify-content: space-between;
}

.slider-values input {
    width: 80px;
    padding: 5px;
    border: 1px solid #ddd;
    text-align: center;
}

.price-min-label,
.price-max-label {
    display: flex;
    align-items: center;
    gap: 5px;
}

/*
    стили для категорий для фильтров
*/
.product-categories li label {
    border-radius: 5px;
    padding: 0 0 0 9px;
    margin: 3px;
    gap: 9px;
    display: flex
;
}

.product-categories .children {
    border-radius: 5px;
    margin-left: 15px;
    border-left: solid 1px #cbcbcb;
}


.filter-form div.filter-group {
    margin: 40px 0 0;
    border-top: solid 1px #adadad;
    border-radius: 10px;
    background: linear-gradient(rgb(255 255 255 / 27%), #00000000);
}
.filter-form div.filter-group.filter-price {
    padding-bottom: 1px;
}

.filter-form .filter-group h3 {
    font-size: 25px;
    margin: 0;
}