/*!
Theme Name: sajt-pod-klyuch
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: sajt-pod-klyuch
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

sajt-pod-klyuch is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

@font-face {
	font-family: 'Inter';
	src: url('/wp-content/themes/sajt-pod-klyuch/assets/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

.container {
	max-width: 1720px;
}

:root {
	--main-color: #1F7A8C;
}

[id] {
    scroll-margin-top: 100px;
}

html, body {
    overflow-x: hidden;
}

body {
	font-family: 'Inter', sans-serif;
	font-size: 16px;
}

.btn-oval {
	width: max-content;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease,transform 0.2s ease;
}

.btn-oval::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-oval:hover::before {
    transform: translateY(0);
}

.btn-oval:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.btn-oval:active {
    transform: translateY(0);
}

.btn-oval--black {
    color: #fff;
    background-color: #000;
    border: 1px solid #000;
}

.btn-oval--black::before {
    background-color: #fff;
}

.btn-oval--black:hover {
    color: #000;
    border-color: #000;
}

.btn-oval--white {
    color: #000;
    background-color: #fff;
    border: 1px solid #fff;
}

.btn-oval--white::before {
    background-color: #eee;
}

.btn-oval--white:hover {
    color: #333;
    border-color: #fff;
}

.btn-oval--transparent {
    color: #222222;
    background-color: transparent;
    border: 1px solid #222222;
}

.btn-oval--transparent::before {
    background-color: #222222;
}

.btn-oval--transparent:hover {
    color: #ffffff;
    border-color: #222222;
}

header.site-header.is-home {
	position: fixed;
    width: 100%;
    z-index: 1000;
}

header.site-header {
	position: fixed;
    width: 100%;
    z-index: 1000;
}

.site-header__top {
	background-color: #000704;
	display: flex;
	align-items: center;
	color: #fff;
	font-size: 14px;
    font-weight: 400;
}

.site-header__top a {
	text-decoration: none;
	color: #fff;
}

.site-header__bottom a {
	text-decoration: none;
	color: #000;
}

.site-header.is-home .site-header__bottom a {
	text-decoration: none;
	color: #fff;
}

.site-header-contacts a:last-child {
	margin-right: 0px;
}

.site-header-contacts a {
	margin-right: 16px;
}

.site-header-messengers a:last-child {
	margin-right: 0px;
}

.site-header-messengers a {
	margin-right: 8px;
}

.site-header__bottom {
	display: flex;
	align-items: center;
	position: relative;
	z-index: 100;
	background: #fff;
	color: #000;
	padding: 12px 0px;
}

ul.menu-main-header li {
	padding: 16px 0px;
}

.site-header__bottom ul.menu-main-header,
.header-top-links ul {
	list-style: none;
	display: flex;
	padding-left: 0px;
	margin-bottom: 0px;
}

.site-logo a {
	display: block;
	font-weight: 900;
	text-transform: uppercase;
}

.site-logo img {
	height: 32px;
}

ul.menu-main-header li:last-child,
.header-top-links ul li:last-child {
	margin-right: 0px;
}

ul.menu-main-header li {
	position: relative;
}

ul.menu-main-header li,
.header-top-links ul li {
	margin-right: 32px;
}

.burger-menu span:last-child {
	margin-bottom: 0px;
}

.burger-menu span {
	width: 30px;
	height: 3px;
	background-color: var(--main-color);
	margin-bottom: 6px;
	display: block;
}

@media (min-width: 1200px) {
	.hide-on-desktop {
		display: none !important;
	}
}

@media (max-width: 1199px) {
	ul.menu-main-header li {
		padding: 0px;
	}
	.site-header__bottom {
		padding: 16px 0px;
	}
	.hide-on-mobile {
		display: none !important;
	}
	.first-section.section {
		padding-top: 130px !important;
	}
	.breadcrumbs-block {
		top: 90px !important;
	}
	[id] {
		scroll-margin-top: 60px;
	}
}

@media (max-width: 478px) {
	.need-help-block .service-cards-buttons {
		display: block;
	}
	.need-help-block .service-cards-buttons .service-card-link {
		margin-bottom: 16px;
	}
	.main-staty-portfolio-meta {
		flex-direction: column;
		align-items: normal !important;
		gap: 16px;
	}
}

.site-header__bottom.header-bottom-white {
	border-bottom: 1px solid #eee;
}

.site-header__bottom .site-logo-black {
	display: none;
}

.site-header__bottom.header-bottom-white .site-logo-white {
	display: none;
}

.site-header__bottom.header-bottom-white .site-logo-black {
	display: block;
}

.burger-menu {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	cursor: pointer;
	z-index: 1001;
	color: var(--main-color) !important;
}

.burger-menu span {
	display: block;
	height: 3px;
	background: #000;
	border-radius: 2px;
	transition: all 0.3s ease;
}

.mobile-menu {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #fff;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-20px);
	transition: all 0.4s ease;
	z-index: 1000;
	padding: 60px 20px;
	overflow-y: auto;
}

.mobile-menu.active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.mobile-menu .close-menu {
	position: absolute;
	top: 20px;
	right: 20px;
	background: none;
	border: none;
	font-size: 36px;
	line-height: 1;
	cursor: pointer;
	color: #111;
}

.mobile-menu .menu-list {
	list-style: none;
	padding: 0;
	margin-bottom: 36px;
}

.mobile-menu .menu-item {
	padding-bottom: 10px;
	padding-top: 10px;
	position: relative;
	border-bottom: 1px solid #E1E5F2;
}

.mobile-menu .menu-item a {
	font-size: 16px;
	color: #666;
	line-height: 1.4;
	text-decoration: none;
}

.mobile-menu .menu-item.open i {
	transform: rotate(180deg);
	background-color: #BFDBF7; 
	color: #022B3A;
}

.mobile-menu .menu-item i {
	position: absolute;
    right: 0;
    top: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--main-color);
    border-radius: 50%;
    color: #E1E5F2;
    transition: 0.3s;
}

.mobile-menu .sub-menu-block {
	display: none;
	margin-top: 10px;
}

.mobile-menu .menu-item.open .sub-menu-block {
	display: block;
}

.mobile-menu .sub-menu-list {
	list-style: none;
	padding-left: 15px;
}

.mobile-menu .sub-menu-item a {
	font-size: 16px;
	color: #555;
	text-decoration: none;
}

.mobile-menu-header {
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    color: #111;
}

.sub-menu-header {
	font-size: 16px;
	margin-bottom: 20px;
	font-weight: 900;
	text-transform: uppercase;
	color: var(--main-color);
}

.sub-menu-block-items .sub-menu-block-item li {
	padding: 0px !important;
}

.breadcrumb-block {
	color: #a3a3a3;
	padding: 10px 0px;
}

.breadcrumb-block p {
	margin-bottom: 0px;
}

.breadcrumb-block a {
	text-decoration: none;
	color: #111;
}

.section-grey {
	background-color: #f9f9f9;
}

section.section {
	padding-top: 80px;
	padding-bottom: 80px;
}

.modal-content {
	border-radius: 18px;
	padding: 24px;
}

.modal-content form textarea {
	height: 230px;
}

.modal-content form textarea, .block-form form textarea,
.modal-content form input[type=text], .block-form form input[type=text],
.modal-content form input[type=tel], .block-form form input[type=tel], 
.modal-content form input[type=email], .block-form form input[type=email] {
	width: 100%;
    padding: 0.75rem;
    border-radius: 18px;
    border: 1px solid #ccc;
    margin-bottom: 0.75rem;
}

.modal-content form input[type="file"],
.block-form form input[type="file"]{
	margin-bottom: 24px;
}

.modal-content form input[type="file"]::file-selector-button,
.block-form form input[type="file"]::file-selector-button {
	background-color: #fff;
	color: var(--main-color);
	border: 2px solid var(--main-color);
	border-radius: 18px;
	padding: 6px 12px;
	cursor: pointer;
}

.modal-content form label,
.block-form form label {
	width: 100%;
}

.modal-content form .wpcf7-list-item,
.block-form form .wpcf7-list-item {
	margin-left: 0px;
	margin-bottom: 4px;
}

.wpcf7-not-valid-tip {
	display: none !important;
}

input.wpcf7-not-valid, textarea.wpcf7-not-valid {
	border-color: #e63946 !important;
	box-shadow: 0 0 0 0.15rem rgba(230, 57, 70, 0.2);
}

.submit-form-button p {
	margin-bottom: 0px;
}

@media (min-width: 1200px) {
	.burger-menu {
		display: none;
	}
}

/* Скрываем подменю по умолчанию */
.submenu-block {
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	min-width: 200px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.3s ease;
	z-index: 1000;
}

.submenu-block ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.submenu-block ul li {
	padding: 0px !important;
	margin-right: 0px !important;
}

.submenu-block li a {
	padding: 10px 15px;
	display: block;
	color: #333 !important;
	white-space: nowrap;
}

.submenu-block li a:hover {
	background: #f5f5f5;
	color: var(--main-color);
}

/* Показываем подменю при наведении */
.menu-main-header .menu-item:hover .submenu-block {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.klient-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
	border-radius: 18px;
    border: 2px solid #eee;
}

.klient-slide a {
	width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.klient-slide a img {
    max-height: 60px;
	width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
	transition: .3s;
}

.klient-slide a:hover img {
    filter: grayscale(0%);
}

.swiper-pagination {
	position: relative;
	margin-top: 24px;
}

.swiper-pagination .swiper-pagination-bullet {
	width: 12px;
	height: 12px;
}

.error-page-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.error-page-number {
    font-size: 80px;
    font-weight: 600;
    color: var(--main-color);
}

.error-page-info-header {
    font-size: 20px;
    font-weight: 500;
}

.error-page-info .lead-button {
	width: max-content;
}

.main-page-first-section {
    color: #fff;
    height: 100vh;
    background-size: cover;
    background-position: center right;
    position: relative;
    align-items: center;
    display: flex;
}

.main-page-first-section:before {
	content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgb(6 12 18 / 55%) 0%, rgb(6 12 18 / 40%) 35%, rgb(6 12 18 / 35%) 70%, rgba(6, 12, 18, .2) 100%);
}

.main-page-first-section .container {
    z-index: 2;
}

.main-page-first-section h1 {
	font-weight: 200;
	font-size: 64px;
	line-height: 1;
	margin-bottom: 32px;
}

.main-page-first-content .main-firs-description {
	opacity: .7;
	margin-bottom: 32px;
}

.main-first-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    border-radius: 18px;
	margin-bottom: 32px;
}

.main-first-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 34px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 60px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all .35s ease;
}

.main-first-button::after {
    content: "→";
    font-size: 16px;
    transition: transform .35s ease;
}

.main-first-button:hover {
    color: #fff;
    text-decoration: none;
    background: #fff;
    border-color: #fff;
    color: #060c12;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,.25);
}

.main-first-button:hover::after {
    transform: translateX(5px);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

.site-header__top {
    height: 36px;
    overflow: hidden;
    transition: all .4s ease;
}

.site-header.hide-top .site-header__top {
    height: 0;
    opacity: 0;
	padding: 0;
}

.site-header.is-home .site-header__bottom {
    transition: all .4s ease;
    background: transparent;
	color: #fff;
}

.site-header.scrolled .site-header__bottom {
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

.site-header,
.site-header * {
    transition: background .4s ease, height .4s ease, opacity .4s ease, transform .4s ease, box-shadow .4s ease;
}

/* Обертка галереи */
.custom-product-gallery {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(60px, 80px) 1fr;
    gap: 12px;
}

/* --- ГЛАВНАЯ ОБЛАСТЬ --- */
.gallery-main-area {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f5f5f5;
    aspect-ratio: 4 / 5;
    width: 100%;
}

.gallery-main-area .main-swiper {
    width: 100%;
    height: 100%;
}

.gallery-main-area .swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-image-wrapper {
    width: 100%;
    height: 100%;
}

.slide-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Стрелки главного фото */
.gallery-main-area .swiper-button-prev,
.gallery-main-area .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin: 0;
}
.gallery-main-area .swiper-button-prev { left: 15px; }
.gallery-main-area .swiper-button-next { right: 15px; }

.gallery-main-area .swiper-button-prev::after,
.gallery-main-area .swiper-button-next::after { display: none; }

.gallery-main-area .swiper-button-prev {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2.5'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}
.gallery-main-area .swiper-button-next {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2.5'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}
.gallery-main-area .swiper-button-disabled { opacity: 0.3; cursor: default; }

/* Зум иконка */
.gallery-zoom-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background 0.2s ease;
}
.gallery-zoom-icon:hover { background: #fff; }

/* --- МИНИАТЮРЫ (ДЕСКТОП) --- */
.gallery-thumbs-area {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    min-height: 0;
}

.thumbs-nav {
    width: 100%;
    height: 24px;
    background: #f0f0f0;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    flex-shrink: 0;
    transition: background 0.2s ease;
}
.thumbs-nav:hover { background: #e0e0e0; }
.thumbs-nav.swiper-button-disabled { opacity: 0.2; cursor: default; }

.gallery-thumbs-area .thumbs-swiper {
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.gallery-thumbs-area .swiper-slide {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    box-sizing: border-box;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}
.gallery-thumbs-area .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #000;
}

.thumb-image-wrapper {
    width: 100%;
    height: 100%;
}
.thumb-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- МОБИЛЬНАЯ ВЕРСИЯ --- */
@media (max-width: 768px) {
    .custom-product-gallery {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .gallery-thumbs-area {
        width: 100%;
        order: 2;
        height: auto !important; /* Отменяем инлайн-высоту с десктопа */
        flex-direction: row;
    }
    .gallery-main-area {
        order: 1;
        width: 100%;
    }
    .thumbs-nav { display: none; }
    
    .gallery-thumbs-area .thumbs-swiper {
        width: 100%;
    }
    
    .gallery-thumbs-area .swiper-slide {
        height: 100%;
    }
    
    .gallery-main-area .swiper-button-prev,
    .gallery-main-area .swiper-button-next {
        width: 32px;
        height: 32px;
    }
}

/* Контейнер вариаций */
.custom-variation-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

/* Кнопки-табы вариаций */
.swatch-tab {
    padding: 10px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.swatch-tab:hover {
    border-color: #000;
}

/* Активный таб */
.swatch-tab.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* Скрываем стандартный выпадающий список */
.variations select {
    display: none !important;
}

/* Блок цены */
.single_variation_wrap .woocommerce-variation-price {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}

/* Блок "Количество + В корзину" */
.single_variation_wrap .woocommerce-variation-add-to-cart {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

/* Поле количества */
.woocommerce div.product form.cart .quantity {
    margin: 0;
}

.woocommerce div.product form.cart .quantity input.qty {
    height: 46px;
    width: 60px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    outline: none;
}

/* Кнопка "В корзину" */
.woocommerce div.product form.cart .single_add_to_cart_button {
    height: 46px;
    padding: 0 28px;
    background-color: #000 !important;
    color: #fff !important;
    border-radius: 8px !important;
    border: none;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    opacity: 0.85;
}

/* --- Скрываем стандартные элементы WooCommerce --- */
.variations_form .variations select,
.variations_form .reset_variations {
    display: none !important;
}

/* --- Лейблы атрибутов (Название + Выбранное значение) --- */
.variations_form .variations td.value,
.variations_form .variations th.label {
    display: block;
    padding: 0 0 8px 0;
}

.custom-attribute-header {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.4;
}

.custom-attribute-title {
    font-weight: 700;
    color: #111;
}

.custom-attribute-selected {
    font-weight: 400;
    color: #888;
    margin-left: 6px;
}

/* --- Табы атрибутов (Swatches) --- */
.custom-variation-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.swatch-tab {
    padding: 10px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #fff;
    color: #1a202c;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.swatch-tab:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.swatch-tab.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* --- Блок покупки: Количество + Кнопка --- */
.single_add_to_cart_button,
.woocommerce-variation-add-to-cart {
    display: flex !important;
    align-items: center;
    gap: 12px;
}

/* Стилизация счетчика количества (+/-) */
.custom-quantity-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    height: 50px;
}

.custom-quantity-btn {
    width: 38px;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-quantity-btn:hover {
    background: #f1f5f9;
}

.quantity input.qty {
    width: 44px !important;
    height: 100% !important;
    border: none !important;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #1a202c;
    -moz-appearance: textfield;
    padding: 0 !important;
    margin: 0 !important;
}

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

.single_add_to_cart_button.button {
    height: 48px;
    padding: 0 28px;
    background-color: #000 !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    border: none !important;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
}

.single_add_to_cart_button.button:hover {
    background-color: #222 !important;
}

.single_add_to_cart_button.button:active {
    transform: scale(0.98);
}

.product-hero__sub-title {
	font-weight: 400;
    color: #888;
    font-size: 18px;
    margin-bottom: 16px;
}

/* Таблица характеристик */
.attrib-block {
    width: 100%;
	background-color: #f9f9f9;
    padding: 24px;
    border-radius: 8px;
	margin-bottom: 16px;
}

.attrib-block .attrib-block__header {
	font-weight: 600;
	margin-bottom: 8px;
	font-size: 18px;
}

.attrib-block .product-hero__attributes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.attrib-block .product-hero__attributes-table tr {
    border-bottom: 1px solid #e5e5e5;
}

.attrib-block .product-hero__attributes-table tr:last-child {
    border-bottom: none;
}

.attrib-block .product-hero__attributes-table td {
    padding: 10px 0;
    vertical-align: middle;
}

.attrib-block .product-hero__attributes-table .attrib-label {
    color: #666;
    font-weight: 500;
    text-align: left;
    padding-right: 15px;
    width: 45%;
}

.attrib-block .product-hero__attributes-table .attrib-value {
    color: #111;
    font-weight: 600;
    text-align: right;
}

.advantages-blocks {
	width: 100%;
	background-color: #f9f9f9;
    padding: 24px;
    border-radius: 8px;
	margin-bottom: 16px;
}

.advantages-blocks .advantages-blocks__header {
	font-weight: 600;
    margin-bottom: 8px;
	font-size: 18px;
}

.advantages-blocks .advantages-blocks__content {
	padding: 10px 0px;
	color: #666;
	font-weight: 500;
	font-size: 14px;
	display: flex;
    align-items: center;
    gap: 16px;
}

.advantages-blocks .advantages-block_icon img {
	height: 36px;
}

.advantages-blocks .advantages-block_header {
	color: #111;
	font-weight: 600;
}

.product-hero__divider {
    width: 100%;
    height: 1px;
    background-color: #e5e5e5; /* Светло-серый цвет */
    margin: 20px 0;           /* Отступы сверху и снизу */
}

.product-single-content {
	padding-bottom: 44px;
}

/* Шапка и навигация табов */
.modern-tabs-wrapper {
	display: flex;
	justify-content: center;
	border-bottom: 1px solid #e2e8f0;
}

.modern-tabs {
	display: inline-flex;
	position: relative;
	gap: 36px;
}

.tab-btn {
	background: none;
	border: none;
	padding: 16px 4px;
	font-size: 16px;
	font-weight: 500;
	color: #64748b;
	cursor: pointer;
	transition: color 0.25s ease;
	display: flex;
	align-items: center;
	gap: 8px;
}

.tab-btn:hover,
.tab-btn.active {
	color: #0f172a;
}

.badge-count {
	background: #f1f5f9;
	color: #0f172a;
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 12px;
	font-weight: 600;
}

/* Бегущий индикатор под табом */
.tab-indicator {
	position: absolute;
	bottom: -1px;
	height: 2px;
	background: #0f172a;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Логика отображения табов */
.tab-pane-content {
	display: none;
}

.tab-pane-content.active {
	display: block;
	animation: fadeInTab 0.35s ease forwards;
}

@keyframes fadeInTab {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 768px) {
	.modern-tabs {
		gap: 16px;
		overflow-x: auto;
		width: 100%;
		justify-content: flex-start;
	}
	.tab-btn {
		white-space: nowrap;
		font-size: 14px;
	}
}

.product-description-formatted {
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.7;
}

.product-description-formatted h2 {
	font-size: 24px;
}

.product-description-formatted h3 {
	font-size: 20px;
}

.modern-tab-content {
    max-width: 1000px;
    margin: 0 auto;
}

.specs-box table {
	width: 100%;
	border-collapse: collapse;
}

.specs-box table tr {
	border-bottom: 1px solid #e5e5e5;
}

.specs-box table tr td {
	padding: 10px 0;
    vertical-align: middle;
}

.specs-box table tr .attrib-label {
	color: #666;
    font-weight: 500;
    text-align: left;
    padding-right: 15px;
    width: 45%;
}

.specs-box table tr:last-child {
	border-bottom: none;
}

.specs-box table tr .attrib-value {
	color: #111;
    font-weight: 600;
    text-align: right;
}

.product-description-banner {
    width: 100%;
    height: 350px; /* Укажите нужную высоту */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px; /* По желанию: скругление углов */
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .product-description-banner {
        height: 200px; /* Адаптивная высота для мобильных */
    }
}

.product-single-recom {
	padding-bottom: 44px;
}

.product-single-recom__header {
	border-bottom: 1px solid #e2e8f0;
	padding-bottom: 16px;
	margin-bottom: 24px;
}

.product-single-recom__header h2 {
	margin-bottom: 0px;
}

/* Карточка */
.product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #ffffff;
}

.product-card__variations {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 5;
	
	padding: 6px 10px;
	border-radius: 6px;
	
	background: rgba(255, 255, 255, 0.9);
	color: #222;
	
	font-size: 13px;
	line-height: 1;
	font-weight: 500;
	
	pointer-events: none;
}

/* Изображение */
.product-card .product-card__image-link {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	background-color: #f6f6f6;
	border-radius: 12px;
	overflow: hidden;
}

.product-card .product-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.product-card:hover .product-card__image {
	transform: scale(1.04);
}

/* Кнопка избранного поверх фото */
.product-card .favorite-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(4px);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #111;
	transition: background-color 0.2s, transform 0.2s;
}

.product-card .favorite-btn:hover {
	background: #ffffff;
	transform: scale(1.08);
}

/* Контент */
.product-card .product-card__content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex-grow: 1;
	padding: 12px 0 0 0;
	gap: 12px;
}

.product-card .product-card__category a {
	font-size: 11px;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: none;
}

.product-card .product-card__title {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	margin: 2px 0 0 0;
}

.product-card .product-card__title a {
	color: #111;
	text-decoration: none;
}

/* Новые характеристики: аккуратная строка с разделителем точки */
.product-card .product-card__meta-specs {
	margin: 6px 0 0 0;
	font-size: 12px;
	color: #666;
	line-height: 1.4;
}

/* Футер: цена и аккуратная ссылка */
.product-card .product-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
}

.product-card .product-card__price {
	font-size: 16px;
	font-weight: 600;
	color: #111;
	display: flex;
	align-items: center;
	gap: 6px;
}

.product-card .product-card__price del {
	font-size: 13px;
	color: #aaa;
	font-weight: 400;
	text-decoration: line-through;
}

.product-card .product-card__price ins {
	text-decoration: none;
}

/* Ссылка "Подробнее" */
.product-card .btn-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 500;
	color: #111;
	text-decoration: none;
	transition: opacity 0.2s;
}

.product-card .btn-more svg {
	transition: transform 0.2s ease;
}

.product-card .btn-more:hover svg {
	transform: translateX(3px);
}

/* Каталог товаров */
.catalog-archive-section ul.products.fs-products-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.catalog-archive-section .catalog-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.catalog-archive-section .catalog-header h1 {
	margin-bottom: 0px;
}

.catalog-archive-section .catalog-header .fh-catalog-toolbar {
    display: flex;
    align-items: center;
    gap: 18px;
}

.catalog-archive-section .catalog-header .fh-catalog-toolbar p {
	margin-bottom: 0px;
}

.product-files-list .file-name-link {
	color: #000;
}

.product-files-list a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 24px;
    color: #ffffff;
    background-color: #000000;
    border: 1px solid #000000;
    border-radius: 8px; 
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.product-files-list a.btn:hover {
    color: #000000;
    background-color: #ffffff;
    border-color: #000;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.product-files-list a.btn:active {
    transform: scale(0.97);
}

.product-files-list a.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #000000;
}

.custom-select-wrapper {
    position: relative;
    user-select: none;
}

.custom-select-wrapper select.orderby {
    display: none !important;
}

.custom-select-trigger {
	min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 42px;
    padding: 0 16px;
    background-color: #ffffff;
    color: #111111;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.custom-select-trigger:hover {
    border-color: #111111;
    background-color: #fafafa;
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: #111111;
    box-shadow: 0 0 0 1px #111111;
    background-color: #ffffff;
}

.custom-select-trigger::after {
    content: "";
    width: 10px;
    height: 6px;
    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='%23111111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s ease;
}

.custom-select-wrapper.open .custom-select-trigger::after {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    top: calc(100% + 6px);
	min-width: 100%;
	white-space: nowrap;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 10px 16px;
    font-size: 0.875rem;
    color: #555555;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.custom-option:hover {
    background-color: #f4f4f5;
    color: #111111;
}

.custom-option.selected {
    color: #111111;
    font-weight: 600;
    background-color: #f4f4f5;
}

@media (max-width: 575.98px) {
    .custom-select-wrapper {
        width: 100%;
		min-width: 100%;
    }
}

.main-menu-header-desktop {
	display: flex;
	align-items: center;
	gap: 36px;
}

.navbar-cart--counter,
.navbar-fav--counter {
    position: absolute;
    top: -4px;  
    right: -8px;     
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;    
    background-color: #888888; 
    color: #ffffff;  
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    pointer-events: none;
}

/* Показываем выпадающий блок при наведении */
.navbar-cart-wrapper:hover .mini-cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Выпадающее окно */
.mini-cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 340px;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 15px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    font-family: inherit;
    color: #333;
}

/* Стрелочка сверху (как на скриншоте) */
.mini-cart-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 15px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-left: 1px solid #e5e5e5;
    border-top: 1px solid #e5e5e5;
    transform: rotate(45deg);
}

/* Список товаров */
.mini-cart-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 280px;
    overflow-y: auto;
}

.mini-cart-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.mini-cart-list .mini-cart-item:last-child {
	border-bottom: none;
	margin-bottom: 0px;
}

/* Квадратное изображение товара */
.mini-cart-item__img img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    display: block;
}

.mini-cart-item__details {
    flex: 1;
    font-size: 13px;
    line-height: 1.3;
}

.mini-cart-item__title a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.mini-cart-item__meta {
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-cart-item__price {
    font-weight: 700;
}

/* Кнопка удаления (крестик) */
.mini-cart-item__remove a.remove {
    color: #999;
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
}
.mini-cart-item__remove a.remove:hover {
    color: #e00;
}

.mini-cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 10px 0;
    border-top: 1px solid #e5e5e5;
}

.mini-cart-buttons {
    display: flex;
    gap: 10px;
}

.mini-cart-buttons .button {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid #333;
    transition: background 0.2s;
    box-sizing: border-box;
}

.mini-cart-buttons .button--cart {
    background: #fff;
    color: #333;
}
.mini-cart-buttons .button--cart:hover {
    background: #f5f5f5;
}

.mini-cart-buttons .button--checkout {
    background: #333;
    color: #fff;
}
.mini-cart-buttons .button--checkout:hover {
    background: #555;
}

.mini-cart-empty {
    text-align: center;
    margin: 10px 0;
    font-size: 14px;
    color: #777;
}

.mini-cart-item__attributes {
    color: #888888;
    font-size: 0.9em;
    font-weight: normal;
    display: inline;
}

/* Селектор количества */
.mini-cart-qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    background: #fff;
}

.mini-cart-qty-selector.loading {
    opacity: 0.5;
    pointer-events: none;
}

.mini-cart-qty-selector .qty-btn {
    width: 26px;
    height: 26px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}

.mini-cart-qty-selector .qty-btn:hover {
    background: #f0f0f0;
}

.mini-cart-qty-selector .qty-input {
    width: 30px;
    height: 26px;
    border: none;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    text-align: center;
    font-size: 13px;
    color: #333;
    padding: 0;
    background: transparent;
    -moz-appearance: textfield;
}

.mini-cart-qty-selector .qty-input::-webkit-outer-spin-button,
.mini-cart-qty-selector .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-hero__actions .price del {
    color: #888888;
    font-size: 0.9em; 
    text-decoration: line-through;
    font-weight: 400;
    opacity: 0.8;
	margin-right: 8px;
}

.product-hero__actions .price ins { 
    font-size: 1.15em; 
    font-weight: 700; 
    text-decoration: none;
}

.woocommerce-pagination {
    display: flex;
    justify-content: center;
    margin-top: 48px;
    margin-bottom: 24px;
}

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

.woocommerce-pagination ul.page-numbers li {
    display: inline-flex;
    margin: 0;
    padding: 0;
    border: none !important;
}

.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #222222;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    line-height: 1;
}

.woocommerce-pagination ul.page-numbers li a:hover {
    color: #000000;
    background-color: #f5f5f5;
    border-color: #cccccc;
    transform: translateY(-1px);
}

.woocommerce-pagination ul.page-numbers li span.current {
    color: #ffffff;
    background-color: #111111;
    border-color: #111111;
    font-weight: 600;
}

.woocommerce-pagination ul.page-numbers li a.prev,
.woocommerce-pagination ul.page-numbers li a.next {
    font-size: 1.2rem;
    font-weight: 400;
}

.woocommerce-pagination ul.page-numbers li span.dots {
    border: none;
    background: transparent;
    color: #888888;
    min-width: 28px;
    padding: 0;
}

/* Контейнер обёртки */
.flow-checkbox-label {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease;
}

/* Скрываем нативный input, но оставляем его доступным для скриптов и фокуса */
.flow-filter-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}

/* Кастомный кастомный квадратик */
.flow-custom-checkbox {
    position: relative;
    width: 18px;
    height: 18px;
    background-color: #FFFFFF;
    border: 1px solid #D5D5D5;
    border-radius: 4px;
    margin-right: 10px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

/* Галочка внутри (через SVG узор на чистом CSS) */
.flow-custom-checkbox::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Состояние: Hover (Наведение) */
.flow-checkbox-label:hover .flow-filter-checkbox:not(:disabled) ~ .flow-custom-checkbox {
    border-color: #111111;
}

/* Состояние: Checked (Выбран) */
.flow-filter-checkbox:checked ~ .flow-custom-checkbox {
    background-color: #000000;
    border-color: #000000;
}

.flow-filter-checkbox:checked ~ .flow-custom-checkbox::after {
    display: block;
}

/* Состояние: Focus (Клавиатурная навигация) */
.flow-filter-checkbox:focus-visible ~ .flow-custom-checkbox {
    outline: 2px solid #111111;
    outline-offset: 2px;
}

/* Состояние: Disabled (Недоступный чекбокс) */
.flow-filter-checkbox:disabled ~ .flow-custom-checkbox {
    background-color: #F0F0F0;
    border-color: #E0E0E0;
    cursor: not-allowed;
}

.flow-checkbox-label:has(.flow-filter-checkbox:disabled) {
    cursor: not-allowed;
}

/* Текст рядом с чекбоксом */
.flow-checkbox-label .term-name {
    font-size: 0.88rem;
    color: #222222;
    transition: color 0.2s ease;
}

.flow-checkbox-label:hover .term-name {
    color: #000000;
}

.flow-checkbox-label {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse; /* Свитч справа, текст слева */
    align-items: center;
    padding: 6px 0;
    cursor: pointer;
}

/* Формируем корпус тумблера */
.flow-custom-checkbox {
    width: 34px;
    height: 18px;
    background-color: #E2E8F0;
    border-radius: 20px;
    border: none;
    margin-right: 0;
    position: relative;
    transition: background-color 0.25s ease;
}

/* Бегунок тумблера */
.flow-custom-checkbox::after {
    content: "";
    display: block !important;
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background-color: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transform: none !important;
    border: none !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.flow-filter-checkbox:checked ~ .flow-custom-checkbox {
    background-color: #111111;
}

.flow-filter-checkbox:checked ~ .flow-custom-checkbox::after {
    transform: translateX(16px) !important;
}

.flow-checkbox-label .term-name {
    font-size: 0.85rem;
    color: #4A5568;
}

/* Контейнер фильтра */
.flow-filter-wrapper {
    background: #FFFFFF !important; /* Белый чистый фон */
    border: 1px solid #EEEEEE;
}

/* Кнопка сброса */
#flow-reset-filter {
    border: 1px solid #111111 !important;
    background: transparent;
    color: #111111;
    font-weight: 500;
    transition: all 0.2s ease;
}

#flow-reset-filter:hover {
    background: #111111;
    color: #FFFFFF;
}

/* Подвал FLOW */
.site-footer {
    font-family: inherit;
    background-color: #F8F8F8 !important;
}

.flow-footer-links a {
    transition: color 0.2s ease-in-out;
}

.flow-footer-links a:hover {
    color: #000000 !important;
}

/* Стилизация едва заметной ссылки разработчика */
.dev-link {
    color: #B0B0B0 !important;
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s ease;
}

.dev-link:hover {
    color: #666666 !important;
}

.site-footer-logo {
	height: 32px;
	width: 100%;
}

.footer-copyright {
	display: flex;
	justify-content: space-between;
}

.header-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.navbar-fav-wrapper,
.navbar-cart-wrapper {
    position: relative;
    display: inline-block;
}

.navbar-fav-wrapper a:hover,
.navbar-cart-wrapper a.navbar-cart:hover {
	border-color: #111111;
    background-color: #fafafa;
}

.navbar-fav-wrapper a,
.navbar-cart-wrapper a.navbar-cart {
	display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #e5e5e5;
    border-radius: 100%;
    width: 40px;
    height: 40px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.navbar-fav-wrapper i,
.navbar-cart-wrapper a.navbar-cart i {
	font-size: 16px;
}

.header-page-block {
	padding: 24px 0px;
}

.header-page-block .breadcrumb-block {
	padding: 0px;
}

.header-page-block.header-page-block__archive-woo {
	display: flex;
	align-items: end;
	justify-content: space-between;
}

.social-links-footer-block {
	display: flex;
	gap: 8px;
}

.social-links-footer-block a:hover {
	border-color: #111111;
    background-color: #fafafa;
}

.social-links-footer-block a {
	display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #e5e5e5;
    border-radius: 100%;
    width: 40px;
    height: 40px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
	text-decoration: none;
	color: #000;
}


/* Общий контейнер оформления заказа */
.custom-checkout-grid {
    display: grid !important;
    grid-template-columns: 1fr 420px !important;
    gap: 40px !important;
    width: 100% !important;
    margin: 0 auto !important;
    font-family: inherit !important;
    color: #111111 !important;
}

/* Блоки левой колонки (Доставка, Контакты, Оплата) */
.checkout-block {
    background: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
    box-shadow: none !important;
}

.checkout-block-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    color: #000000 !important;
    text-transform: none !important;
    border: none !important;
}

/* Стилизация радио-кнопок/чекбоксов в виде плашек */
.custom-shipping-methods ul, 
.wc_payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wc_payment_methods li,
.shipping-method-option {
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: flex-start !important;
    cursor: pointer !important;
    background-color: #ffffff !important;
    transition: border-color 0.2s ease, background-color 0.2s ease !important;
}

.wc_payment_methods li:hover,
.shipping-method-option:hover {
    border-color: #000000 !important;
}

/* Активный выбранный вариант */
.wc_payment_methods li.selected,
.wc_payment_methods li:has(input:checked),
.shipping-method-option:has(input:checked) {
    border-color: #000000 !important;
    background-color: #fafafa !important;
}

/* Поля ввода (Input, Textarea) */
.checkout-customer-details .form-row {
    margin-bottom: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    width: 100% !important;
}

.checkout-customer-details label {
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-bottom: 6px !important;
    color: #333333 !important;
    display: block !important;
}

.checkout-customer-details input[type="text"],
.checkout-customer-details input[type="email"],
.checkout-customer-details input[type="tel"],
.checkout-customer-details textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    background-color: #fcfcfc !important;
    font-size: 14px !important;
    color: #111111 !important;
    outline: none !important;
    box-shadow: none !important;
    height: auto !important;
    transition: border-color 0.2s ease, background-color 0.2s ease !important;
}

.checkout-customer-details input:focus,
.checkout-customer-details textarea:focus {
    border-color: #000000 !important;
    background-color: #ffffff !important;
}

/* Правая колонка: Карточка заказа */
.order-review-card {
    background: #f9f9f9 !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    position: sticky !important;
    top: 20px !important;
}

.order-review-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
}

.order-review-header h2 {
    font-size: 20px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    color: #000000 !important;
}

.cart-count {
    color: #777777 !important;
    font-size: 14px !important;
}

/* Карточки товаров в сайдбаре */
.checkout-cart-item {
    display: flex !important;
    gap: 16px !important;
    margin-bottom: 20px !important;
}

.cart-item-image img {
    width: 70px !important;
    height: 70px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    background: #eeeeee !important;
    display: block !important;
}

.cart-item-details {
    flex: 1 !important;
}

.cart-item-title {
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-bottom: 4px !important;
    color: #111111 !important;
}

.cart-item-price {
    font-weight: 600 !important;
    font-size: 14px !important;
    margin-top: 6px !important;
    color: #000000 !important;
}

/* Счетчик количества */
.cart-item-quantity {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 20px !important;
    padding: 2px 8px !important;
    background: #ffffff !important;
    margin-top: 8px !important;
}

.qty-btn {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 2px 6px !important;
    font-size: 14px !important;
    color: #111111 !important;
    box-shadow: none !important;
}

.qty-val {
    padding: 0 8px !important;
    font-size: 13px !important;
    color: #111111 !important;
}

/* Итоги */
.divider {
    border: none !important;
    border-top: 1px solid #e5e5e5 !important;
    margin: 16px 0 !important;
}

.summary-row {
    display: flex !important;
    justify-content: space-between !important;
    margin-bottom: 10px !important;
    font-size: 14px !important;
    color: #555555 !important;
}

.total-row {
    font-size: 18px !important;
    color: #000000 !important;
}

/* Кнопка оформления заказа */
.custom-place-order-btn,
#place_order {
    width: 100% !important;
    background-color: #111111 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 16px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    margin-top: 10px !important;
    display: block !important;
    text-align: center !important;
    text-transform: none !important;
}

.custom-place-order-btn:hover,
#place_order:hover {
    background-color: #333333 !important;
    color: #ffffff !important;
}

.secure-checkout-notice {
    text-align: center !important;
    font-size: 12px !important;
    color: #777777 !important;
    margin-top: 12px !important;
}

/* Мобильная адаптивность */
@media (max-width: 900px) {
    .custom-checkout-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Единый контейнер списка опций */
.custom-options-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

/* Карточка выбора (И для доставки, и для оплаты) */
.custom-option-card {
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
    padding: 18px 20px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 12px !important;
    background-color: #ffffff !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    position: relative !important;
}

.custom-option-card:hover {
    border-color: #a0a0a0 !important;
}

/* Состояние активной карточки (выбранной) */
.custom-option-card.active,
.custom-option-card:has(input:checked) {
    border-color: #000000 !important;
    border-width: 1.5px !important;
    background-color: #ffffff !important;
}

/* Радио-кнопка (скрываем стандартную, делаем кастомную) */
.option-radio {
    position: relative !important;
    width: 20px !important;
    height: 20px !important;
    margin-top: 2px !important;
    flex-shrink: 0 !important;
}

.option-radio input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 100% !important;
    height: 100% !important;
    cursor: pointer !important;
    z-index: 2 !important;
    margin: 0 !important;
}

.radio-custom {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 20px !important;
    height: 20px !important;
    border: 1px solid #ccc !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.custom-option-card:has(input:checked) .radio-custom {
    border-color: #000000 !important;
    border-width: 6px !important; /* Нативный вид черной галочки/точки в макете */
}

/* Контент карточки */
.option-content {
    flex: 1 !important;
}

.option-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 4px !important;
}

.option-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #111111 !important;
}

.option-meta {
    font-size: 13px !important;
    color: #666666 !important;
    font-weight: 500 !important;
}

.option-icons img, 
.option-icons svg {
    max-height: 20px !important;
    width: auto !important;
}

/* Описание метода под заголовком */
.option-description {
    font-size: 13px !important;
    color: #777777 !important;
    line-height: 1.4 !important;
    margin-top: 4px !important;
}

.option-description p {
    margin: 0 !important;
    font-size: 13px !important;
    color: #777777 !important;
}

.description-category-block {
	position: relative;
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	margin-top: 30px;
	box-sizing: border-box;
	border: 1px solid #EEEEEE;
}

.description-category-content {
	position: relative;
	max-height: 180px;
	overflow: hidden;
	transition: max-height 0.4s ease;
}

.description-category-content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 70px;
	background: linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0),
		#fff
	);
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.description-category-block.is-open .description-category-content {
	max-height: 5000px;
}

.description-category-block.is-open .description-category-content::after {
	opacity: 0;
}

.description-category-more {
	display: block;
	margin-top: 16px;
	padding: 0;
	border: 0;
	background: none;
	color: #222;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.description-category-more:hover {
	opacity: 0.7;
}

.catalog-sidebar-cooperation {
	padding: 24px;
	border-radius: 12px;
	background-image: url(/wp-content/uploads/2026/07/flow-main-2.jpg);
	background-position: center right;
	background-size: cover;
	position: relative;
}

.catalog-sidebar-cooperation__content {
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: relative;
	color: #fff;
}

.catalog-sidebar-cooperation:before {
	content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgb(6 12 18 / 55%) 0%, rgb(6 12 18 / 40%) 35%, rgb(6 12 18 / 35%) 70%, rgba(6, 12, 18, .2) 100%);
	border-radius: 12px;
}

.catalog-sidebar-cooperation__header {
	font-size: 18px;
	font-weight: 500;
}

.catalog-sidebar-cooperation__description {
	opacity: .7;
}

.store-logo-wrapper {
  height: 80px;
}

.store-logo {
  height: 60px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

/* Ховер-эффект для карточки */
.store-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #ffffff;
  border-radius: 12px;
	border: 1px solid #eee;
}

.store-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

.store-card:hover .store-logo {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.store-card p:last-child {
	margin-bottom: 0px;
}

.info-page-block {
	padding: 24px;
	border-radius: 12px;
	background-color: #f9f9f9;
	border: 1px solid #eee;
}