/*
Theme Name: Factuure Theme
Theme URI: https://razrabotka-sajtov.su/
Author: Litvinenko Nikolay
Author URI: https://razrabotka-sajtov.su/
Description: A custom WordPress theme with Bootstrap and WooCommerce integration.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: factuure-theme
*/

:root {
    /* Основные цвета */
    --primary-color: #545040;
    --secondary-color: #F6F6ED;
	--price-color: #A55A2B;
    --white-color: #ffffff;
    --text-color: #545040;
    --background-color: #F6F6ED;
    --header-bg: #f8f9fa;
	
	--bs-heading-color: #545040;

    /* Дополнительные цвета */
    --error-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;

    /* Отступы */
    --spacing-small: 8px;
    --spacing-medium: 16px;
    --spacing-large: 24px;
	
	--font-family-secondary: Helvetica;
}

::-webkit-scrollbar { /* chrome based */
    width: 0px;  /* ширина scrollbar'a */
    background: transparent;  /* опционально */
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

html {
    -ms-overflow-style: none;  /* IE 10+ */
    scrollbar-width: none; /* Firefox */
}

#wpadminbar a {
	color: white !important;
}

/* Классы цветов */
.color-primary {
	color: var(--primary-color) !important;
}

.color-white {
	color: white;
}

.color-secondary {
	color: var(--secondary-color);
}

.bg-color-primary {
	background-color: var(--primary-color) !important;
}

.bg-color-white {
	background-color: white;
}

.bg-color-secondary {
	background-color: var(--secondary-color) !important;
}

/* Подключение пользовательских стилей */
body, .offcanvas {
	background-color: var(--background-color) !important;
	overflow-x: hidden;
}

header i {
	font-size: 25px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: Times New Roman !important;
	color: var(--primary-color) !important;
}

h2 {
	font-weight: 400 !important;
	line-height: 110% !important;
	letter-spacing: 0 !important;
}

p, a, span, figcaption, th.label label, td.value select {
	font-family: Helvetica !important;
	font-weight: 400;
	line-height: 110%;
	letter-spacing: 0;
	/*color: var(--primary-color) !important;*/
	text-decoration: none !important;
}

input, select {
    border: 1px solid;
	border-color: #54504040 !important;
    padding: 18px;
    color: #545040cc;
    background-color: transparent;
}

input:focus-visible, textarea:focus-visible {
    outline: 0px;
}

select option {
	background-color: var(--secondary-color);
	color: var(--primary-color);
	border-radius: 0 !important;
}

.select2-selection {
	display: flex !important;
	align-items: center !important;
	border: 1px solid !important;
	border-color: #54504040 !important;
    padding: 13px 18px !important;
	height: auto !important;
    color: #545040cc;
    background-color: transparent !important;
	border-radius: 0 !important;
}

.select2-selection .select2-selection__rendered {
	padding: 0 !important;
	color: #545040cc !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	top: 14px !important;
	right: 15px !important;
}

.woocommerce form .show-password-input, .woocommerce-page form .show-password-input {
	top: 20px !important;
	right: 15px !important;
}

.select2-dropdown {
	background-color: #f6f6ed !important;
}

.cursor-pointer {
	cursor: pointer;
}

.woocommerce-product-details__short-description p, 
.woocommerce-product-details__short-description a, 
.woocommerce-product-details__short-description span, 
.woocommerce-product-details__short-description figcaption {
	color: #545040CC !important;
}

th.label label {
	color: #545040CC;
	text-transform: uppercase;
	font-size: 17px;
	margin-bottom: 12px;
}

td.value select {
	color: #545040;
	text-transform: uppercase;
	font-size: 15px;
	padding: 9px 10px !important;
	min-width: 30% !important;
	border-color: var(--primary-color) !important;
}

a:hover, a:focus {
	text-decoration: underline !important;
}

a.header-btn:hover, a.header-btn:focus, .my-btn a:hover, .my-btn a:focus {
	text-decoration: none !important;
}

a {
	color: var(--primary-color) !important;
}

.woocommerce-LoopProduct-link span.price {
	color: var(--primary-color) !important;
}

.border-style {
	border: 1px solid !important;
}

.border-style-left {
	border-left: 1px solid !important;
}

.border-style-top {
	border-top: 1px solid !important;
}

.border-style-bottom {
	border-bottom: 1px solid !important;
}

.border-color {
	border-color: #54504040 !important;
	color: #54504040 !important;
}

.table-color {
	border-color: #54504040 !important;
}

.header-btn, .my-btn a {
	font-weight: 400;
	font-size: 19px !important;
	line-height: 110%;
	letter-spacing: 0;
	text-transform: uppercase;
	padding: 11px 22px;
	border: 1px solid var(--primary-color);
	background-color: transparent;
}

.my-btn a:hover, .my-btn a:focus{
    background-color: var(--primary-color);
	color: white !important;
}

.header-btn:hover, .header-btn:focus{
    background-color: white;
	color: var(--primary-color) !important;
}


.o-nas-social-bottom {
    position: absolute;
    bottom: 0;
    width: 100%;
    margin: 0;
	font-weight: 400;
    font-size: 24px;
	line-height: 110%;
	letter-spacing: 0;
	text-transform: uppercase;
}

.o-nas-social a  {
    font-family: Times New Roman !important;
}

.main-catalog {
    padding: 30px 16px 26px 16px;
    border: 1px solid rgb(84 80 64 / 25%);
    border-right: 0;
    text-align: center;
}

.podborki .main-catalog p {
    padding: 0;
    margin: 8px;
}

.podborki figcaption {
	background: linear-gradient(0deg,rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 100%);
	color: white !important;
	position: absolute;
	bottom: 0;
	width: 100%;
	text-transform: uppercase;
	height: 40px;
	margin: 0;
	align-items: center;
	justify-content: center;
}

/* Переопределяем позиционирование */
.dropdown-menu {
    position: static !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    margin-top: 0;
}

/* Анимация при открытии */
.nav-link:hover, .nav-link:focus {
	background-color: transparent !important;
	text-decoration: none !important;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu {
	border: 0 !important;
	background-color: transparent !important;
}

.dropdown-menu .nav-link {
	opacity: 0.6;
    padding: 2px 0 !important;
}

.primary-menu .nav-link {
	padding: 5px 0 !important;
	font-size: 16px;
}

.primary-menu .dropdown-menu .nav-link {
	padding: 2px 0 !important;
	font-size: 16px;
	opacity: 0.6;
}

.primary-menu .dropdown-menu {
	padding: 0px 0 0 !important;
}

.secondary-menu .nav-link {
    opacity: 0.8;
	padding: 5px 0 !important;
	font-size: 14px;
}

.woocommerce-breadcrumb {
	padding: 20px !important;
	margin: 0 !important
}

.site-main, .content-area {
	padding: 0 !important;
}

hr.hr-20 {
	margin: 20px 0 !important;
}

hr.hr-bread {
	width: 21px;
    margin: 0 10px !important;
    color: var(--primary-color);
    opacity: 0.5;
	flex-shrink: 0;
}

hr {
	margin: 0 !important;
}

.offcanvas-menu {
	padding: 20px;
}

.search-form button[type="submit"] {
	display: none;
}

input.search-field {
	background-color: transparent;
	border: 0;
	width: 100%;
	height: 40px;
	padding: 0;
}

div.search {
	border: 1px solid var(--primary-color);
	padding: 0 8px;
}

a.search-btn {
    margin-right: 10px;
    border: 1px solid var(--primary-color);
    padding: 8px;
    display: inline-block;
}

a.search-btn:hover, a.search-btn:focus {
    text-decoration: none !important;
	background-color: #54504026;
}

.bi {
	margin: 0 0 3px 3px;
}

.p-10 {
	padding: 10px !important;
}

.p-20 {
	padding: 20px !important;
}

.pr-20 {
	padding-right: 20px !important;
}

.px-20 {
	padding-left: 20px !important;
	padding-right: 20px !important;
}

.mx-20 {
	margin-top: 20px !important;
	margin-bottom: 20px !important;
}

.pt-20 {
	padding-top: 20px !important;
}

.py-20 {
	padding-top: 20px !important;
	padding-bottom: 20px !important;
}

.pb-20 {
	padding-bottom: 20px!important;
}

.p-25 {
	padding: 25px !important;
}

.pt-32 {
	padding-top: 32px !important;
}

.pt-46 {
	padding-top: 46px !important;
}

.p-10-20 {
	padding: 10px 20px !important;
}

.p-btn {
	padding: 11px 28px !important;
}

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


.woocommerce ul.products li.last, .woocommerce-page ul.products li.last {
	margin-right: 0px;
}

.yith-add-to-wishlist-button-block {
	margin: 0px;
}

/* Хлебные крошки */

.woocommerce-breadcrumb {
	display: flex !important;
	align-items: center !important;
	font-size: 14px !important;
	color: var(--primary-color) !important;
	font-family: var(--font-family-secondary);
	flex-wrap: wrap;
	row-gap: 5px;
}

.woocommerce-breadcrumb a {
	opacity: 0.5;
	flex-wrap: no-wrap;
	display: flex;
	flex-shrink: 0;
}

/* Пагинация */

.woocommerce-pagination ul {
	border: 0px solid var(--primary-color) !important;
}

.woocommerce-pagination li {
	border-right: 0px solid var(--primary-color) !important;
	color: var(--primary-color);
}

.woocommerce-pagination span.current, 
.woocommerce-pagination a:hover, 
.woocommerce-pagination a:focus {
	background: var(--primary-color) !important;
	color: white !important;
	opacity: 0.5 !important;
	text-decoration: none !important;
}

.absolute-center {
	top: 50%; /* Смещение на 50% от верхнего края родителя */
    left: 50%; /* Смещение на 50% от левого края родителя */
    transform: translate(-50%, -50%); /* Центрирование */
}

.yith-wcwl-custom-icon:hover , .yith-wcwl-custom-icon:focus {
	filter: brightness(0) invert(0.25) sepia(1) saturate(1) hue-rotate(20deg);
}

.woocommerce-error, .woocommerce-info, .woocommerce-message {
	padding: 12px 16px !important;
    background-color: #CB610033 !important;
    color: #545040 !important;
    border-top: 0 !important;
	
}

.woocommerce-error, .woocommerce-info {
	margin: 0 0 1em !important;
	width: 100%;
}

.woocommerce-info:before, .woocommerce-message:before, .woocommerce-error:before {
	display: none !important;
}

.woocommerce-message {
	/*display: none !important;*/
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button {
	border: 1px solid var(--primary-color);
	border-radius: 0px !important;
	background-color: var(--primary-color) !important;
	padding: 11px 28px;
	color: white !important;
	text-transform: uppercase !important;
	font-size: 14px !important;
	font-family: var(--font-family-secondary) !important;
	font-weight: 400 !important;
	line-height: 110% !important;
}

.woocommerce-variation-add-to-cart .button.disabled {
	padding: 11px 28px !important;
}


/* Стили для галереи */
.product-gallery {
    position: relative;
}

/* Стили для страницы товара */
.single-product .woocommerce-product-gallery__image img, .cart-item-img img {
    width: 100%; /* Занимает всю ширину контейнера */
    height: 100%; /* Сохраняет пропорции */
    object-fit: cover; /* Обрезает изображение для сохранения соотношения сторон */
	object-position: 50% 80%;
}

/* Стили для индикаторов */
.product-image-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 5px;
	width: 95%;
}

.image-indicators-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
	width: 100%;
}

.image-indicators-list li {
    flex: 1;
    height: 5px;
    background-color: #ccc;
    border-radius: 5px;
	margin: 0 2px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.image-indicators-list li.active {
    background-color: #FFF; /* Активный индикатор */
}

.related.products {
	margin-top: 80px;
}

.related.products .products {
	margin: 0 !important;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-evenly;
}

.related.products .price {
	display: none !important;
}

.stock {
	display: none;
}

.add-wishlist {
	padding: 0 16px;
}

button.custom-order {
	border: 1px solid var(--primary-color);
	padding: 11px 28px;
	color: var(--primary-color);
	background: transparent;
	text-transform: uppercase;
	font-size: 14px;
	font-family: var(--font-family-secondary);
	font-weight: 400;
	line-height: 110%;
	margin-top: 10px;
}

button.custom-order svg {
	color: var(--primary-color);
}

.quantity-input-group {
    display: flex;
    align-items: center;
	justify-content: center;
    overflow: hidden; /* Убираем лишние края */
}

.quantity-input-group .form-control {
    text-align: center; /* Центрирование текста */
    box-shadow: none; /* Убираем тень */
    padding: 5px 0; /* Уменьшаем отступы */
    width: 26px !important; /* Минимальная ширина поля */
}

.quantity-input-group .btn {
    padding: 5px 0; /* Отступы для кнопок */
    border: none; /* Убираем бордер кнопок */
    background-color: transparent; /* Прозрачный фон */
    color: #495057; /* Цвет иконок */
    font-size: 1rem; /* Размер иконок */
	width: 26px; /* Минимальная ширина поля */
}

.quantity-input-group .btn:hover {

}

.order-total, .order-total span {
    font-weight: 600;
    font-size: 17px;
    font-family: var(--font-family-secondary);
    color: var(--primary-color);
}

.woocommerce-billing-fields label {
	display: none !important;
}

.open-pvz-btn {
    background-color: var(--primary-color);
    color: white;
    text-transform: uppercase;
    font-family: var(--font-family-secondary);
    font-weight: 400;
    font-size: 17px;
	border-radius: 0;
}

.open-pvz-btn a {
    color: white !important;
}

.open-pvz-btn a:hover, .open-pvz-btn a:focus {
    text-decoration: none;
}

.cdek-office-info {
    background: #CB610033;
    border-radius: 0;
    margin-top: 7px;
    padding: 5px 10px;
}

.cdek-office-info::before {
	display: none;
}

.woocommerce-additional-fields h3 {
	padding-left: 10px;
}

.woocommerce-additional-fields__field-wrapper input {
	width: 100% !important;
}

.submit-btn {
	height: 40px;
}

.woocommerce-privacy-policy-text {
	font-size: 12px;
    color: #545040;
    opacity: 0.8;
    margin: 5px 0 0;
}

.woocommerce-privacy-policy-text p {
	margin-bottom: 5px;
}

.woocommerce-checkout-review-order {
	margin: 37px 0 0;
}

.title-shipping {
	font-weight: 600 !important;
	text-transform: uppercase !important;
	font-size: 17px !important;
}

.woocommerce-cart .woocommerce-message {
	display: none !important;
}

.woocommerce-shipping-methods li {
	margin-bottom: 16px !important;
}

.woocommerce-shipping-methods label bdi {
	font-weight: 400 !important;
}

.shipping_method[type="radio"], input[type="checkbox"], input[type="radio"] {
	width: 19px;
	height: 19px;
	accent-color: var(--primary-color) !important;
}

.entry-content>p{
	margin: 0;
}

.cart-items .woocommerce-info {
	width: 90%;
}

.single-product .woocommerce-info {
	display: none !important;
}

.coupon-title {
	color: var(--primary-color);
	text-transform: uppercase;
	font-size: 17px;
	font-weight: 600;
}

.coupon-title:hover {
	text-decoration: underline !important;
}

.woocommerce {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    /*margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x));*/
}

.woocommerce>* {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-top: var(--bs-gutter-y);
}

.cart-empty.woocommerce-info {
    width: 100%;
    text-align: center;
    background-color: transparent !important;
}

.btn-primary {
	background-color: var(--primary-color) !important;
    color: white !important;
    border: 1px solid var(--primary-color);
    padding: 10px 25px;
    text-transform: uppercase;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: transparent !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color);
	text-decoration: none !important;
}

.btn-secondary {
    background-color: transparent !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color);
    padding: 10px 25px;
    text-transform: uppercase;
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: 1px solid var(--primary-color);
	text-decoration: none !important;
}

.product .yith-wcwl-add-to-wishlist-button.yith-wcwl-add-to-wishlist-button--single.yith-wcwl-add-to-wishlist-button--anchor {
	height: 40px;
}

.orders-status {
	
}


.orders-status:hover, 
.orders-status:focus,
.orders-status:active {
	color: #CB6100 !important;
	text-decoration: none !important;
}

#individual h3 {
    font-size: 40px;
}

#individual p.info {
    font-size: 16px;
    opacity: 0.8;
}

#individual input {
    padding: 11px;
    background: transparent;
	color: var(--primary-color);
}

#individual textarea {
    padding: 11px;
    background: transparent;
    border-color: #54504040 !important;
	color: var(--primary-color);
}

#individual span.wpcf7-spinner {
    display: none;
}

#individual input[type="submit"] {
    background: var(--primary-color);
    color: white;
    text-transform: uppercase;
}

.woocommerce-message, a {
		outline: none !important;
		box-shadow: none !important;
}

.woocommerce-message *, a * {
	outline: none !important;
	box-shadow: none !important;
}

.my-btn .wp-block-button__link {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
}

.arrow-left {
    position: absolute;
    top: 50%;
    left: 10px;
    cursor: pointer;
}

.arrow-right {
    position: absolute;
    top: 50%;
    right: 10px;
    cursor: pointer;
}

#billing_address_2_field {
	display: none !important;
}

.coupon {
	z-index: 10;
}

.woocommerce table.shop_table {
	border: 0;
	margin: 0;
}

.wishlist_table thead tr th, .wishlist_table tfoot td td, .widget_yith-wcwl-lists ul.dropdown li.current a, .widget_yith-wcwl-lists ul.dropdown li a:hover, .selectBox-dropdown-menu.selectBox-options li.selectBox-selected a, .selectBox-dropdown-menu.selectBox-options li.selectBox-hover a {
	background: transparent;
	color: var(--primary-color);
	border-color: transparent;
}

.woocommerce table.shop_table.wishlist_table tr td {
	background: transparent;
	color: var(--primary-color);
	border-color: transparent;
}

.btn-palitra {
	padding: 9px 10px;
}

.btn-fill {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: white;
    text-transform: uppercase;
    line-height: 110%;
}

button.btn-outline:hover, button.btn-outline:active {
    background: var(--primary-color);
    color: white;
}

button.btn-outline:hover svg, button.btn-outline:active svg {
    color: white;
}

button.btn-fill:hover, button.btn-fill:active {
    background-color: #3D3A32 !important;
}

table.variations th.label label {
    margin-top: 20px;
}

.variation- p {
	margin-bottom: 0;
}

.wc-edostavka-method-additional-info {
    background-color: transparent !important;
    padding: 15px 0 0 !important;
    margin: 0 !important;
}

p.wc-edostavka-method-delivery-time, .wc-edostavka-method-button p {
    background: #CB610033;
    padding: 10px;
    font-size: 12px !important;
    color: var(--primary-color);
    line-height: 110%;
    margin-bottom: 10px !important;
}

.wc-edostavka-method-additional-info .wc-edostavka-method-button button {
    max-width: 100% !important;
}

.wc-edostavka-method-button {
    margin-top: 0 !important;
}