/*
	Theme Name:   Savoy Child
	Theme URI:    http://themeforest.net/item/savoy-minimalist-ajax-woocommerce-theme/12537825
	Description:  Savoy child theme
	Author:       NordicMade
	Author URI:   http://www.nordicmade.com
	Template:     savoy
	Version:      1.0
*/


/* Child theme CSS
--------------------------------------------------------------- */
/* Header */
#nm-main-menu-ul .sub-menu:before {
    content: "";
    position: absolute;
    top: 0;
    height: 100%;
    width: 200vw;
    background: #fff;
    transform: translateX(-50%);
    box-shadow: 0 4px 4px 0 rgba(0,0,0,.04);
}
#nm-main-menu-ul > li:first-child > a,
#nm-mobile-menu .menu > li:first-child > a {
    font-weight: bold;
}

#nm-main-menu-ul > .menu-item-has-children > a:after,
#nm-mobile-menu .menu > .menu-item-has-children > a:after {
    font-family: 'nm-font';
    font-size: 13px;
    font-style: normal;
    font-weight: normal;
    content: "\f107";
    margin-left: 6px;
    display: inline-block;
    transition: transform 0.2s ease; /* Додаємо плавний перехід */
}


#nm-main-menu-ul > .menu-item-has-children:hover > a:after {
    transform: rotate(180deg); /* Поворот на 180 градусів */
}
#nm-mobile-menu .menu > .menu-item-has-children.active > a:after {
    transform: rotate(180deg); /* Повертає стрілку */
    transition: transform 0.2s ease; /* Плавний перехід */
}


.phone-icon-bg::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 6px;
    height: 6px;
    background-color: #28a745; /* Зелений колір */
    border-radius: 50%; /* Робимо кружок круглим */
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.6); /* Ефект світіння */
    animation: pulse 1.5s infinite; /* Анімація пульсації */
}

/* Анімація пульсації */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.6;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.nm-header.menu-centered .nm-header-logo {
    width: 16%;
}

.nm-header.menu-centered .nm-main-menu {
    width: 67%;		
}

.nm-header.menu-centered .nm-right-menu {
    width: 17%;
    display: flex;
    justify-content: end;
}
.search-icon-bg {
	max-width: 100%;
	height: 20px;
	width: 20px;
	background: url(./img/search-icon.svg);
	background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
}
.phone-icon-bg {
	max-width: 100%;
	height: 20px;
	width: 20px;
	background: url(./img/phone-icon.svg);
	background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
}
.cart-icon-bg {
	max-width: 100%;
	height: 20px;
	width: 20px;
	background: url(./img/cart-icon.svg);
	background-size: 115%;
    background-position: center;
    background-repeat: no-repeat;
}


.nm-font-heart-outline:before,
.nm-font-search:before,
.nm-font-cart:before {
    font-size: 20px;
}

.nm-menu-phone a:hover .nm-font-phone {
    background-color: #000; /* Колір при наведенні */
}

#nm-right-menu-ul > .nm-menu-cart > a {
	position: relative;
}

#nm-right-menu-ul > .nm-menu-cart > a > span{
	position: absolute;
	top: 9px;
    right: 9px;
	font-size: 0px;
	height: 8px;
	width: 8px;
	background-color: #F7DB5D;
	border-radius: 50%;
}

.nm-menu-cart .count.nm-count-zero {
	opacity: 0;
}

#nm-left-menu-ul {
	display: none;
}
/* Кошик */

.wp-block-woocommerce-checkout-order-summary-totals-block {
    display: none;
}				




/* Footer */

.nm-footer-widgets .widget .nm-widget-title {
    font-size: 20px;
}

.nm-footer-block-grid > li {
    padding-bottom: 20px;
}
.phone_footer {
    margin: 20px 0px 10px 0px;
}
.email_footer {
    margin: 10px 0px 0px 0px;
}
.email_footer > a {
    font-size: 15px;
}
.footer_widget_social_icon > a:first-child {
    margin-right: 5px;
}
.footer_widget_social_icon > a:last-child {
    margin-left: 5px;			
}

/* Product Page */

.product-description {
    margin-top: 50px;
    margin-bottom: 50px;
}

.product-characteristics-background {
	background-color: #f4f4f4;
	padding-top: 50px;
	padding-bottom: 50px;
}
.nm-additional-information-inner {
	max-width: none;
}
.shop_attributes th {
	width: 30%;
}
/* Footer */



/* Media */

@media (max-width: 550px) {
	.woocommerce-tabs .tabs {
		display: flex;
		justify-content: space-between;
	}
	.woocommerce-tabs .tabs a {
	font-size: 14px !important;
	}
}
@media (max-width: 420px) {
	.woocommerce-tabs .tabs a {
	font-size: 10px !important;
	}
}

@media all and (max-width: 991px) {
    #nm-header-search {
        display: block;
    }
}
@media all and (max-width: 1250px) {
	.nm-header.menu-centered .nm-right-menu > ul {
		display: flex;
	}
    .nm-right-menu ul li.nm-menu-search {
		display: none;
	}
	.nm-header-col {
		position: relative;
		display: flex;
		justify-content: center;
	}
	.nm-header-placeholder {
        height: 70px;
	}
	.nm-header {
		padding-top: 10px;
		padding-bottom: 10px;
	}
	
	/* Logo */
	.nm-header.default .nm-header-logo {
		margin-right: 0;
	}
    .nm-header-logo svg,
	.nm-header-logo img {
		height: 16px;
	}
	
    /* Menu */
    .nm-menu li a {
        padding-left: 2px;
    }
    
	/* Main menu */
	.nm-main-menu ul li {
		display: none;
	}
	
	/* Right menu */

    .nm-right-menu ul li.nm-menu-cart {
		display: block;
		order: 1;
	}


    .nm-right-menu ul li.nm-menu-phone {
		display: block;
		order: 2;
	}
	
	/* Menu offscreen button */
	.nm-menu li.nm-menu-offscreen {
		display: block;
		float: left;
	}
	    .nm-header.menu-centered .nm-header-logo {
        width: auto;
    }
    
    /* Main menu */
    .nm-header.menu-centered .nm-main-menu {
        display: none;
    }
    
    /* Right menu */
    .nm-header.menu-centered .nm-right-menu {
	    display: flex;
	    position: absolute;
	    right: 20px;
    	width: auto;
    }
    #nm-left-menu-ul {
    	display: flex;
    	position: absolute;
    	left: 20px;
    	width: auto;
    }
}

.wrapper-menu {
  width: 20px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 330ms ease-out;
}

.wrapper-menu.open {
  transform: rotate(-45deg);  
}

.line-menu {
  background-color: #1C1C1C;
  border-radius: 5px;
  width: 100%;
  height: 2px;
}

.line-menu.half {
  width: 50%;
}

.line-menu.start {
  transition: transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
  transform-origin: right;
}
 
.open .line-menu.start {
  transform: rotate(-90deg) translateX(1px);
}

.line-menu.end {
  align-self: flex-end;
  transition: transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
  transform-origin: left;
}

.open .line-menu.end {
  transform: rotate(-90deg) translateX(-1px);
}

.open .line-menu {
  background-color: red;
}
