﻿/*
Theme Name: Reboot Child
Theme URI: https://wpshop.ru/themes/reboot
Author: WPShop.biz
Author URI: http://wpshop.biz/
Template: reboot
Version: 1.0.0
*/

/* Below you can add your CSS styles */
/* Ниже Вы можете добавить свои CSS стили */

*меню и ширина сайта*/

@media (max-width: 991px) {

.site-header {

position: fixed;

width: 100%;

z-index: 10;

transition: transform 0.5s;

}

/*Уплывайка лого. Гамбургер вниз на 200 точек и лого вверх на 200 точек +скрипт*/

.humburger {

transition: transform 0.5s;

}

.site-header.menuopen {

transform: translateY(-200px);

}

.site-header.menuopen .humburger.open {

transform: translateY(200px);

}

/**/

.card-slider-container+.site-content, .mobile-menu-placeholder+.site-content {

margin-top: 80px;

}

.mobile-menu-placeholder {

position: fixed;

width: 80%; /* ширина моб. меню */

max-width: 400px; /* максимальная ширина моб. меню */

left: -100%;

top: 0;

z-index: 9;

margin: 0;

height: 100%;

}

.mobile-menu-placeholder nav {

position: static!important;

display: block!important;

}

.main-navigation+.mobile-menu-placeholder.open,

.mobile-menu-placeholder.open {

left: 0;

margin: 0;

}

.mobile-menu-placeholder .main-navigation {

position: relative;

margin: 0;

padding: 70px 0 50px!important;

height: 100%!important;

background: rgba(0, 0, 0,0.9); /* цвет моб. меню */

box-shadow: 0 8px 26px rgba(0,0,0,0.1); /*0 28px 30px rgba(0,0,0,0.1);*/

/*box-shadow: inset -30px 0 26px -26px rgba(0,0,0,0.3);*/ /* Тень моб. меню */

}

.mobile-menu-placeholder .main-navigation ul li .sub-menu {

background: transparent;

}

.mobile-menu-placeholder .main-navigation ul li .sub-menu li {

background: rgba(0, 0, 0,0.3); /* цвет фон подпункта подменю */

box-shadow: 0 3px 10px -5px rgb(0 0 0 / 30%);

}

.mobile-menu-placeholder .main-navigation ul li.menu-item-has-children:before {

background: rgba(0,0,0,0.9);  /* цвет стрелки */

}

.mobile-menu-placeholder .main-navigation-inner {

height: 100%;

overflow-y: auto;

}

.main-navigation-inner.fixed {

display: none;

}

.mobile-menu-placeholder .main-navigation-inner.fixed {

display: block;

}

}

@media (min-width: 1399px) {

.container, .fixed.block-after-site, .fixed.main-navigation-inner, .fixed.related-posts, .fixed.section-block, .fixed.section-html, .fixed.site-content, .fixed.site-footer-inner, .fixed.site-header-inner, .footer-navigation.fixed, .main-navigation.fixed, .site-footer.fixed, .site-header.fixed {

max-width: 1290px;

}

}

@media (min-width: 1600px) {

.container, .fixed.block-after-site, .fixed.main-navigation-inner, .fixed.related-posts, .fixed.section-block, .fixed.section-html, .fixed.site-content, .fixed.site-footer-inner, .fixed.site-header-inner, .footer-navigation.fixed, .main-navigation.fixed, .site-footer.fixed, .site-header.fixed {

max-width: 1500px;

}

.widget-area {

max-width: 400px;

}

.content-area {

max-width: calc(100% - 400px);

}

.entry-content, .home-text, .taxonomy-description {

max-width: 830px;

}

}

/*and*/

/*Цвет фона активного пункта меню*/

navigation ul li>a, .main-navigation ul li>span,

.mobile-menu-placeholder .main-navigation ul li.menu-item-has-children.current-menu-item:before {

background:red;

}

/*Высота строк в подменю (расстояние между пунктами)*/

.main-navigation ul li .sub-menu li>a {

padding:10px 20px;

}

/*and*/

.main-navigation ul li .sub-menu li>a,

.main-navigation ul li .sub-menu li>span {

white-space: normal;

}

@media (min-width: 992px) {

/* Выпадайка на ПК )*/

.main-navigation ul li .sub-menu {

min-width: 300px; /* Минимальное */

max-width: 320px; /* Максимальное */

}

}

/* Домик на ПК / 13 - ID меню, смотреть в коде страницы */

#menu-item-13 a,

#menu-item-13 span {

font-size: 0;

}

#menu-item-13 a:after,

#menu-item-13 span:after {

content: "";

width: 24px;

height: 24px;

display: inline-block;

background-position: center center;

background-size: contain;

background-repeat: no-repeat;

background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 512 512' fill='%23ffffff' style='enable-background:new 0 0 512 512;' xml:space='preserve'%3e%3cg%3e%3cg%3e%3cpath d='M506.188,236.413L297.798,26.65c-0.267-0.27-0.544-0.532-0.826-0.786c-22.755-20.431-57.14-20.504-79.982-0.169 c-0.284,0.253-0.56,0.514-0.829,0.782L5.872,236.352c-7.818,7.804-7.831,20.467-0.028,28.285 c7.804,7.818,20.467,7.83,28.284,0.028L50,248.824v172.684c0,44.112,35.888,80,80,80h72c11.046,0,20-8.954,20-20v-163h70v163 c0,11.046,8.954,20,20,20h70c44.112,0,80-35.888,80-80c0-11.046-8.954-20-20-20c-11.046,0-20,8.954-20,20 c0,22.056-17.944,40-40,40h-50v-163c0-11.046-8.954-20-20-20H202c-11.046,0-20,8.954-20,20v163h-52c-22.056,0-40-17.944-40-40 v-212c0-0.2-0.003-0.399-0.009-0.597L243.946,55.26c7.493-6.363,18.483-6.339,25.947,0.055L422,208.425v113.083 c0,11.046,8.954,20,20,20c11.046,0,20-8.954,20-20v-72.82l15.812,15.917c3.909,3.935,9.047,5.904,14.188,5.904 c5.097,0,10.195-1.937,14.096-5.812C513.932,256.912,513.974,244.249,506.188,236.413z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e");

/* цвет - ffffff (%23 перед ним)*/

}

}