/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */
 
 #products .thumbnail-container {
    width: 100%;
}
 
 
@media (max-width: 767px){
#header .header-top .col-md-10 {width: 100%;}
}
@media only screen and (max-width: 576px){
#header .top-logo > h1, #header .top-logo {
    flex-grow: 1;
	display: flex;
    justify-content: center;
	padding-left: 1rem;
}
}

/***ШАПКА СТРАНИЦ***/

/*
 * Код главного меню.
 */ 
.cart-added {
    background-color: #ed6e13 !important;
}
#_desktop_top_menu .collapse {
	margin: 0;
	padding: 0;
	left: 0;
	background: #fff url(img/gradient.png) repeat-x 0 0;
	border: solid 1px #b4b4b4;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	-webkit-box-shadow: 0 1px 3px rgba(0,0,0, .3);
	-moz-box-shadow: 0 1px 3px rgba(0,0,0, .3);
	box-shadow: 0 1px 3px rgba(0,0,0, .3);
}
#_desktop_top_menu .top-menu[data-depth="2"] {
    margin: 0.625rem;
}
#_desktop_top_menu .top-menu .sub-menu ul[data-depth="1"] > li {
    margin: 0 1.25rem;
	width: 100%;
}
#header .menu, #header .menu>ul>li {
    display: inline-block;
    position: relative;
}
#_desktop_top_menu .top-menu .sub-menu {
    position: absolute;
	width: inherit;
    min-width: inherit;
	 z-index: 18;
	
}
#_desktop_top_menu .top-menu .sub-menu ul[data-depth="1"] .collapse {
    position: absolute;
	left: calc(100% - 6px); 
    top: 0;
}
#_desktop_top_menu .collapse {
    visibility: hidden;
    opacity: 0;
}
#_desktop_top_menu .top-menu[data-depth="1"] li:hover > .collapse{visibility:visible;opacity:1} 

/*
 * Перезаписали высоту блока названия категории, убрали .block-category {min-height: 13.75rem;}
 */
.block-category {
    min-height: inherit;
}

/*
 * Перезаписали стили. Первый символ каждого слова в предложении выводит заглавным: {text-transform: capitalize;}
 */
#products .product-title, .featured-products .product-title, .product-accessories .product-title, .product-miniature .product-title {
    text-transform: none;
}
/*
 * Перезаписали стили. Название товара выводится заглавными буквами: {text-transform: uppercase;}
 */
#product .h1 {
    text-transform: none;
}

/*
 * Создали стили. Для контейнера div с классом class="header-top-navfullwidth".
 */
.header-top-navfullwidth {
	background: blue;
}
#header .header-top-navfullwidth a[data-depth] {
    color: blue;
}
#header .header-top-navfullwidth a[data-depth="0"] {
    color: #fff;
	text-transform: none;
}
/*
 * Переписали стили. Для строки поиска.
 */
/*#search_widget {
    flex-grow: 1;
	margin-right: 1rem;
	margin-left: 1rem;
}*/
#search_widget form input {
	border-radius: 80px;
}
/*@media only screen and (max-width: 767px) and (min-width: 319px){
    .block-categories {
        display:none;
    }
}*/

#header .header-top-right {
    display: flex;
	align-items: baseline;
    justify-content: flex-end;
}
  @media (min-width: 576px) {
.header-top .search-widgets {
  max-width: none;
}
  }
  
     @media only screen and (min-width: 768px) {
#search_widget {
  width: 100%;
}
	 }  
  .header-top .menu {
  flex: 1;
}
/*#_desktop_cart .header, #_desktop_cart .header > a {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}
#_desktop_cart .header span:first-of-type {
	flex-basis: 100%;
	order: 2;
	text-align: center;
}*/
#header .header-top {
  padding: 0.5rem 0;
}
.top-menu a[data-depth="0"] {
  font-variant: small-caps;
  letter-spacing: 0.1em;
}
.top-menu a.dropdown-submenu {
  text-transform: none;
}
@media (max-width:767px){.container{width:auto; } }

#header ul.hh {
	display: flex;
}
/*#header #_desktop_contact_link #contact-link {
	display: flex;
	align-items: baseline;
}*/
/*#header .header-nav #_desktop_contact_link #contact-link {
    margin-top: 0;
}*/
/*
 * Перезаписали стили. На мобилных телефонах категории выводить в две колонки (было в одну).
 */
@media (max-width:576px){
 #subcategories ul li {
	width: calc(100%/2 - 40px); 
  min-width: 30px;
  margin: 3px;
  }
}
/*
 * Липкое навигационное меню — на больших экранах.
 */
#header .header-top.scroll {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}
/*
 * Липкое навигационное меню — на мобильных экранах.
 */
@media (max-width: 767px) {
	#header {
        padding-top: 60px;
    }
        #header .header-nav {
             position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 10;
			background: white;
        }
}	

body#checkout section.checkout-step .address-item {
  -ms-flex: 0 0 100%;
  flex: 0 0 100%;
}
/*
 * Не менять регистр текста в названии шагов заказа (Все буквы были прописные, сделали строчными с первой заглавной.
 */
body#checkout section.checkout-step .step-title {
  text-transform: none;
}
/*
 * Стили названия страницы Оформление Заказа.
 */
.order-block-title {
	padding: 0.5rem;
	background-color: #fff;
	margin-bottom: 7px;
	text-align: center;
}
.order-block-title h1 {
	margin-bottom: 0;
	font-size: 1.5rem;
	font-weight: 400;
}
/*
 * Стили Блока "Адрес доставки".
 */
.address-wraper {
	display: flex;
}
.address-wraper > div:first-of-type {
	margin-right: 5rem;
}
@media only screen and (max-width: 576px){
.address-wraper {
	flex-direction: column;
}
.address-wraper > div:first-of-type {
	margin-bottom: 1rem;
}	
}
/*
 * Стили ссылки в верхней части страницы "Вернуться на предыдущую страницу".
 */
#main .page-content-top-link {
    margin-bottom: 0.2rem;
}
/*
 * Стили ссылки в верхней части страницы "Вернуться на предыдущую страницу".
 */
.form-field-hidden {
    display: none;
}
/*
 * Скрыть на странице заказа на шаге Адрес доставки последний блок "Использовать этот адрес и в качестве почтового".
 */
#delivery-address .form-fields .form-group:last-of-type {
	display: none;
} 
#main .page-content ul {
 display: flex;
 justify-content: space-around;
}
#main .page-home ul {
 display: flex;
 justify-content: space-around;
}
/*
 * Стили страницы "Главная".
 */
body#index #subcategories ul li .cat_desc {
  display: inline;
}

/*
 * Стили футтера.
 */
 .footer-container {
  padding-top: 0;
}
#footer {
  color: #5e5e5e;
  line-height: 20px;
}	
.footer-container a {
  font-size: .875rem;
  color: #7a7a7a;
  cursor: pointer;
}
.footer-container a:hover {
  color:#24b9d7;
}
  @media (max-width: 576px) {
.text-sm-center {
  text-align: center !important;
}
  }
  
/*
 * Objects.
 */
 
.o-flex-box {
    display: flex;
}
	@media only screen and (max-width: 767px) {
		.o-flex-box {
			flex-direction: column;
		}
	}

.o-list {
    list-style: none;
    margin-left: 0;
}
    .o-list > li,
        .o-list > li > a {
			display: inline-block;
    }
		@media only screen and (max-width: 767px) {
			.o-list > li,
				.o-list > li > a {
					display: block;
			}
		}
/*
 * End. Objects.
 */	
	
/*
 * Components.
 */
 
.l-legal-inform {
	justify-content: space-between;
	align-items: center;
    padding: 1em 0.875em;
}
	@media only screen and (max-width: 767px) {
		.l-legal-inform {
			flex-direction: column-reverse;
			row-gap: 1em;
		}
	}
	.l-legal-inform__inner {
		
	} 
.c-legal-inform {
    border-top: 1px solid #f6f6f6;
}  
  
.c-copyright__text {
  margin-bottom: 0;
  font-size: .875rem;
}  
.c-copyright__list {
  margin-bottom: 0;
}
  @media only screen and (max-width: 767px) {
.c-copyright__list {
  flex-direction: column;
}
  }
.c-copyright__list-item {
  margin-left: .66667em;
}
  @media only screen and (max-width: 767px) {
.c-copyright__list-item {
  margin-bottom: 1.33333em;
  margin-left: 0;
}
  }
.c-copyright__list-link {
  color: inherit;
  line-height: 1.33;
  text-decoration: underline;
}

#contact-infos {
  display: flex;
}
  #contact-infos > div {
  flex: 1 1 50%;
} 
  
#header .sidebar__single {
    position: absolute;
    left: 200px;
    right: 120px;
    max-width: 100%;
    z-index: 99;
    display: none;
}


#header .search-toggle {
    
    right: 10px;
}
#header .search-toggle-off {
    display: none;
}
.search-toggle {
    position: relative;
    text-align: center;
}
.sidebar__search {
    background-color: #ddd;
}
.sidebar__search i.search {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0px 20px;
}
.sidebar__search-form input[type="text"] {
    display: block;
    border: none;
    outline: none;
    background-color: #f6f6f8;
    font-size: 14px;
    font-weight: 300;
    padding-left: 50px;
    width: 100%;
    padding-right: 100px;
}
.search-toggle i:hover{
    cursor: pointer;
  }
  #header .header-top .position-static {
    position: static;
}
.sidebar__search-form button[type="submit"] {
    background: var(--primarycolor);
    padding: 10px;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    min-width: 100px;
    outline: none;
    border: none;
    transition: 0.5s;
    color: #fff;
    font-weight: 600;
    letter-spacing: .5px;
}
.sidebar__search-form {
    position: relative;
}
/*
 * Скрыть слово карзина в модуле.
 */ 
#_desktop_cart .header span:first-of-type {
    display: none;
}
#header .header-top-right {
    justify-content: flex-end;
}
#header .header-top .menu {
    padding-right: 15px;
}
#header .header-top-right .search-toggle {
  margin-left: auto;
}  
  