/*
 Theme Name:   Storefront Child
 Theme URI:    http://example.com/storefront-child/
 Description:  Дочерняя тема для Storefront
 Author:       Ваше имя
 Author URI:   http://example.com
 Template:     storefront
 Version:      1.0.0
*/
#welcomeModal {
    width: 330px;
    text-align: center;
    border-radius: 8px;
    display:none;
    position:fixed;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    background-color:white;
    padding:20px;
    box-shadow:0px 0px 10px rgba(0,0,0,0.5);
    z-index:1000;
}
#welcomeModal p{
    text-align: justify;
}
.categories-navigation ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.categories-navigation li {
    margin-bottom: 10px;
    position: relative;
}

.categories-navigation li ul {
    display: none; /* Скрываем подкатегории по умолчанию */
    margin-left: 20px; /* Отступ для вложенного списка */
}

.categories-navigation li.active > ul {
    display: block; /* Показываем подкатегории, если родитель активен */
}

.categories-navigation li > a {
    text-decoration: none;
    color: #333;
    cursor: pointer;
    display: block;
}

.categories-navigation li.menu-item-has-children > a::after {
    content: '▸'; /* Добавляем стрелочку справа от текста */
    float: right;
    transform: rotate(90deg);
}

.categories-navigation li.active > a::after {
    transform: rotate(-90deg); /* Поворачиваем стрелочку вниз, если подкатегории раскрыты */
}
.subcategories{
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, .025);
    margin-right: 15px;
    margin-bottom: 15px;
    color: #727272;
}
.subcategories:hover{
    background-color: #e6e6e6;
}
.subcategories-block{
    text-align: justify;
}
.added_to_cart{
    padding: 10px 5px;
}
.menu-item-tel{
    font-weight: bold;
}
.storefront-handheld-footer-bar ul li.my-account>a::before {
    content: "";
}
.page-template-template-homepage.has-post-thumbnail .type-page.has-post-thumbnail{
    background-size: contain;
    background-repeat: no-repeat;
    min-height: 500px;
}
@media only screen and (min-width: 768px){    
    ul.products{
	display: flex;
	flex-wrap: wrap;
    } 
    .site-main ul.products.columns-4 li.product {        
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    ul.products li.product .woocommerce-LoopProduct-link{
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
    }
    .storefront-full-width-content .content-area {
        float: right;
    }

    .storefront-full-width-content .widget-area {
        float: left;
    }
    .storefront-full-width-content .widget-area {
        display: none;
    }
}
@media only screen and (max-width: 767px){
    #secondary{
	display: none;
    }
    ul.products li.product{
	width: 49%;	
	margin-left: 0.5%;
	margin-right: 0.5%;
	display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    ul.products{
	display: flex;
	flex-wrap: wrap;
    }
    .storefront-primary-navigation{
	position: fixed;
	left: 0;
	width: 75%;
	top: 0;
	max-height: 100%;
        overflow-y: auto;	
    }    
    .storefront-primary-navigation .col-full{
	margin: 0;
	padding-left: 20px;
	height: 100%;
    }
    #site-navigation.toggled{
	background: #fff;
	padding-bottom: 80px;
	min-height: 100vh;
	margin-left: -20px;
    }
    .handheld-navigation, .main-navigation div.menu>ul:not(.nav-menu){
	transition: none;
    }
    button.menu-toggle{
	margin-top: 25px;
	position: fixed;
	right: 25px;	
	top: 0;
	z-index: 99;
	height: 40px;
        width: 45px;
        padding: 0;
    }
    button.menu-toggle{
	display: none;
    }
    .toggled .handheld-navigation{
	padding-top: 60px;
    }    
    .handheld-navigation ul.sub-menu > li {    
	padding-right: 45px;
    }
    .handheld-navigation .dropdown-toggle {    
	right: 2px;
    }
    .handheld-navigation ul.menu > li {    
	padding-left: 20px;
    }
    .handheld-navigation ul.menu > li.all-category{
	padding-left: 0;
    }
    .handheld-navigation ul.menu > li.all-category > a{
	background: #B4DAA7;
	padding-left: 20px;
    }
    .mobile-header-block{	
	height: 60px;
	background: #000000;
	position: fixed;
        top: 0;
        left: 0;
        width: 75%;
        z-index: 9999;
	display: none;
    }
    #site-navigation.toggled .mobile-header-block{
	display: flex;
    }
    .mobile-header-block a{
	display: block;
	width: 33.3333%;
	position: relative;
    }
    .mobile-header-block a::before {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	display: inline-block;
	font-style: normal;
	font-variant: normal;
	font-weight: normal;
	line-height: 1;
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	line-height: inherit;
	vertical-align: baseline;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	text-align: center;
	line-height: 60px;;
	font-size: 1.618em;
	text-indent: 0;
	display: block;
	cursor: pointer;
    }
    .mobile-header-block a.mobile-header-shop::before{
	content: "";
	color: #fff;
	text-align: left;
	padding-left: 20px;
    }
    .mobile-header-block a.mobile-header-myaccount::before{
	content: "";
	color: #fff;
    }
    .mobile-header-block a.mobile-header-close::before{
	content: "";
	color: #fff;
	text-align: right;
        padding-right: 20px;
    }
    .menu-item-tel{
	border-top: 1px solid #DFDFDF;	
    }
    .menu-item-telegram img, .menu-item-viber img{
	display: inline-block;
	width: 25px;
	vertical-align: middle;
	margin-right: 5px;
    }
    .main-navigation ul li.menu-item-telegram a , .main-navigation ul li.menu-item-viber a{
	padding-top: 0;
    }
    #wpadminbar {
	z-index: 999;
    }
    .page-template-template-homepage.has-post-thumbnail .type-page.has-post-thumbnail{   
	min-height: 200px;
	margin-bottom: 0px;
    }
}