@use '../utils' as *;

/*----------------------------------------*/
/*  2.3 Buttons
/*----------------------------------------*/

.#{$theme-prifix}-btn{
	font-weight: 400;
	font-size: 16px;
	display: inline-block;
	padding: 9px 48px;
	border-radius: 24px;
	//color: var(--tp-common-white);
	//background-color: var(--tp-theme-primary);
	color: var(--tp-hover-color);
	background-color: var(--tp-theme-primary);

	&:hover{
		//border: 1px var(--tp-theme-primary) solid;
		//background-color: rgba(0, 0, 0, 0.09) !important;
		//color: var(--tp-hover-color) !important;
		background-color: var(--tp-hover-color);
		color: var(--tp-theme-primary);
	}

	
	& svg{
		@extend %tp-svg-y-2;
	}

	&-sm{
		padding: 4px 24px;
	}

}

.#{$theme-prifix}-btn-green{
	font-weight: 400;
	font-size: 16px;
	color: var(--tp-common-white);
	display: inline-block;
	padding: 9px 48px;
	border-radius: 24px;
	background-color: var(--tp-theme-green);

	&:hover{
		background-color: #42603D;
		color: var(--tp-common-white);
	}

	
	& svg{
		@extend %tp-svg-y-2;
	}

	&-sm{
		padding: 4px 24px;
	}
}

.#{$theme-prifix}-btn-red {
	font-weight: 400;
	font-size: 16px;
	//color: var(--tp-common-white);
	display: inline-block;
	padding: 9px 48px;
	border-radius: 24px;
	//background-color: var(--tp-theme-green);

	//&:hover{
	//	background-color: #42603D;
	//	color: var(--tp-common-white);
	//}


	& svg{
		@extend %tp-svg-y-2;
	}

	&-sm{
		padding: 4px 24px;
	}
}

/* offcanvas btn */

.#{$theme-prifix}-btn-offcanvas{
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	color: var(--tp-common-white);
	background: var(--tp-theme-primary);
	text-align: center;
	font-family: var(--tp-ff-space);
	padding: 9px 22px;
	letter-spacing: -0.02em;
	position: relative;
	z-index: 1;
	text-transform: capitalize;

	& i{
		padding-left: 5px;
	}
	&:hover{
		background-color: var(--tp-common-black);
		color: var(--tp-common-white);
	}
}


.#{$theme-prifix}-pulse-border{
	&::after,
	&::before{
		position: absolute;
		content: '';
		left: 50%;
		top: 50%;
		@include transform(translate(-50%, -50%));
		width: 100%;
		height: 100%;
		border-radius: 50%;
		border: 1px solid rgba($color: #fff, $alpha: .4);
		animation: borderanimate2 2s linear infinite;
		animation-delay: 0s;
		-webkit-animation-delay: 0s;
		animation-delay: 0s;
		@extend %tp-transition;
		z-index: -1;
	}

	&::before{
		animation-delay: .7s;
	}
}

.#{$theme-prifix}-link-btn{
	display: inline-block;
	font-weight: 500;
	font-size: 13px;
	color: var(--tp-common-black);
	@include tp-transition-mul(color .3s ease-in-out);
	& i,
	& svg{
		@include tp-transition-mul((transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1)));
		margin-left: 2px;
	}

	& svg{
		@extend %tp-svg-y-1;
	}
	&:hover{
		color: var(--tp-theme-primary);
		& svg{
			@include transform(translate(3px, -1px));
		}
		& i{
			@include transform(translateX(3px));
		}
	}
	&-2{
		font-weight: 400;
		font-size: 16px;
		color: var(--tp-common-black);
		position: relative;
		&::after,
		&::before{
			position: absolute;
			content: '';
			left: auto;
			right: 0;
			bottom: 0;
			width: 100%;
			height: 1px;
			background-color: var(--tp-common-black);
			@extend %tp-transition;
		}
		&::before{
			width: 0%;
			background-color: var(--tp-theme-primary);
			z-index: 1;
		}
		&:hover{
			color: var(--tp-theme-primary);
			& svg,
			& i{
				@include transform(translate(3px, -1px));
			}

			&::before{
				left: 0;
				right: auto;
				width: 100%;
				background-color: var(--tp-theme-primary);
			}
		}
	}
}


.#{$theme-prifix}-link-btn-3{
	font-size: 16px;
	color: var(--tp-common-black);
	& span{
		display: inline-block;
		@include tp-transition-mul((transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1)));
		& svg{
			@extend %tp-svg-y-1;
		}
	}

	&:hover{
		color: var(--tp-theme-primary);
		
		& span{
			@include transform(translateX(3px) translateY(0));
		}
	}
}

/* link btn line */

.#{$theme-prifix}-link-btn-line{
	font-size: 16px;
	line-height: 10px;
	text-transform: uppercase;
	color: var(--tp-common-black);
	position: relative;

	&::after{
		position: absolute;
		content: '';
		left: auto;
		right: 0;
		width: 0%;
		height: 1px;
		bottom: 3px;
		background-color: var(--tp-theme-primary);
		@extend %tp-transition;
	}

	& svg{
		@extend %tp-svg-y-1;
	}

	&:hover{
		color: var(--tp-theme-primary);
		&::after{
			width: 100%;
			left: 0;
			right: auto;
		}
	}
}

.#{$theme-prifix}-link-btn-line-2{
	font-size: 16px;
	line-height: 10px;
	color: var(--tp-common-black);
	position: relative;

	&::after{
		position: absolute;
		content: '';
		left: auto;
		right: 0;
		width: 100%;
		height: 1px;
		bottom: 2px;
		background-color: var(--tp-common-black);
		@extend %tp-transition;
	}

	& svg{
		@extend %tp-svg-y-1;
		
	}

	& svg,
	& i{
		@include tp-transition(all, .2s)
	}

	&:hover{
		color: var(--tp-theme-primary);
		&::after{
			width: 100%;
			left: 0;
			right: auto;
			background-color: var(--tp-theme-primary);
		}
	}
}


.#{$theme-prifix}-hamburger-btn-2{
	width: 44px;
	height: 44px;
	background-color: rgba($color: $white, $alpha: .14);
	border-radius: 6px;
	position: relative;
	& span{
		position: absolute;
		top: 14px;
		left: 13px;
		display: block;
		width: 16px;
		height: 2px;
		background-color: var(--tp-common-white);
		border-radius: 10px;

		&:nth-child(2){
			top: 21px;
			width: 20px;
		}
		&:nth-child(3){
			top: 28px;
		}
	}
}


.#{$theme-prifix}-load-more-btn{
	display: inline-block;
	padding: 5px 33px;
	border: 1px solid var(--tp-common-black);
	font-weight: 400;
	font-size: 16px;
	color: var(--tp-common-black);

	& svg{
		@extend %tp-svg-y-2;
	}

	&:hover{
		color: var(--tp-common-white);
		background-color: var(--tp-theme-primary);
		border-color: var(--tp-theme-primary);
	}
}

.#{$theme-prifix}-filter-btn{
	font-weight: 500;
	font-size: 14px;
	line-height: 1;
	color: var(--tp-common-white);
	background-color: var(--tp-common-black);
	display: inline-block;
	padding: 13px 35px 9px;
	border: 1px solid var(--tp-common-black);
	& svg{
		@extend %tp-svg-y-2;
	}

	&:hover{
		color: var(--tp-common-black);
		background-color: var(--tp-common-white);
	}

	@media #{$md}{
		padding-left: 30px;
		padding-right: 30px;
	}
}

.#{$theme-prifix}-product-list-add-to-cart-btn{
	font-weight: 500;
	font-size: 14px;
	color: var(--tp-common-white);
	background-color: var(--tp-common-black);
	display: inline-block;
	padding: 5px 20px;

	&:hover{
		background-color: var(--tp-theme-primary);
		color: var(--tp-common-white);
	}

}


.#{$theme-prifix}-menu-showcase-btn{
	font-weight: 500;
	font-size: 14px;
	padding: 11px 26px 9px;
	border: 0;
	color: var(--tp-common-white);
	background-color: var(--tp-theme-primary);
	&-2{
		border-radius: 6px;
		font-family: var(--tp-ff-roboto);
	}

	&:hover{
		background-color: var(--tp-common-black);
		color: var(--tp-common-white);
	}
	
}