/*
Theme Name: Rebarmat
Author: Roman Bruskevtsev
Author URI: https://www.facebook.com/RomanBruskevtsev/
Description: Wordpress theme for Rebarmat
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rebarmat
Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
*/


.rbm-products_grid_block {
    margin-top: 65px;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

.rbm-product_block {
    width: 100%;
    height: 100%;
    border: 2px solid #40474F;
    display: block;
    color: #40474F;
    position: relative;
    text-decoration: none;
    padding-bottom: 98px;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

.rbm-product_block:hover {
    color: #40474F;
    border-color: #F26522;
}

.rbm-product_block .thumbnail {
    width: 100%;
    height: 308px;
    background-position: center;
    background-size: cover;
    border-top: 8px solid #40474F;
    position: relative;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

.rbm-product_block .thumbnail::after {
    content: "";
    width: 100%;
    height: 100%;
    background-color: rgba(242, 101, 34, .2);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}
.rbm-products_grid_block2 {
	margin-bottom: 200px;
}
.rbm-products_grid_block2 .rbm-product_block{
	
}

.rbm-product_block .content {
    width: 100%;
    padding: 45px 30px 0;
    position: relative;
}

.rbm-product_block .content h4 {
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.rbm-product_block .content p {
    margin-bottom: 0;
}

.rbm-product_block .rbm-text_link {
    position: absolute;
    bottom: 36px;
    left: 30px;
    right: 30px;
}

.breadcrumbs{
	margin-bottom: 40px;
}
.breadcrumbs a{
	    color: #40474F;
}

.page_new{
	padding-top: 100px;
}



.rbm-product_description_block {
    padding: 0 82px 0 40px;
    position: relative
}

.rbm-product_description_block span {
    position: absolute;
    border: 1px solid #40474F;
    display: block;
    pointer-events: none
}

.rbm-product_description_block span.first {
    top: -38px;
    left: 13px;
    right: 46px;
    bottom: -57px
}

.rbm-product_description_block span.second {
    top: -23px;
    left: 0;
    right: 19px;
    bottom: -82px
}

.rbm-product_description_block span::after {
    content: "";
    width: 16px;
    height: 16px;
    display: block;
    border-top: 1px solid #40474F;
    border-left: 1px solid #40474F;
    position: absolute;
    bottom: -16px;
    right: -16px
}

.rbm-product_description h1 {
    margin-bottom: 0!important
}

.rbm-product_description {
    margin: 0 0 195px;
}


.blog-page__author{
	padding-top: 50px;
	border-top: 1px solid #40474F;
	margin-top: 100px;
	margin-bottom: 100px;
}


.blog-page__author-container{
	display: flex;
}

.blog-page__author-subtitle a,
.blog-page__author-btn{
    color: #40474F;	
}

.blog-page__author-wrapper img {
    border-radius: 50%;
    margin-right: 40px;
}


.author_new_page .blog-page__author{
	border: none;
}

.author .rbm-products_grid_block2{
margin-top: -30px;
}

.rbm-products_grid_block2 .rbm-section_title{
	margin-bottom: 40px;
}


.rbm-main_nav .menu-item-has-children .sub-menu{
	display: none;
}









.sub-menu {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
	
}

.menu-item-has-children .submenu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    margin-left: 10px;
    display: inline-block;
    color: #fff;
    position: absolute;
}

.menu-item-has-children.active .sub-menu {
	    padding-left: 15px;
    padding-top: 15px;
    display: block;
    max-height: 1000px; /* Достатньо велике значення для показу всього контенту */
}




.sub-menu li a{    font-size: 1rem !important;}




#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none; /* Спочатку прихована */
    width: 40px;
    height: 40px;
    background-color: #F26522;
    color: white;
    border: none;
   
    text-align: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, box-shadow 0.3s;
}

#back-to-top:hover {
    background-color: #40474F;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}




.swiper-pagination{
	justify-content: center;
}


.swiper-pagination span{
	background-color: #40474F !important;
	width: 25px !important;
	height: 25px !important;
	opacity: 1 !important;
}

.swiper-pagination span:after,
.swiper-pagination span:before{
	opacity: 0;
}

.swiper-pagination span.swiper-pagination-bullet-active{
	background-color: #F26522 !important;
}


.footer-new-list{
	    margin-top: 30px;
    margin-bottom: -70px;
}

.footer-new-list a{
	display: block;
	color: #fff;
	text-decoration: none;
}

.footer-new-list a:hover{
	text-decoration: underline;
}

@media screen and (max-width: 767px) {

.footer-new-list {
    margin-bottom: -45px;
}
	
}
