/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root{
	--cl-x: #1c3f60;
	--cl-y: #ffdf60;
	--fs-title: clamp(1.25rem, 1.1rem + 0.75vw, 2rem);
}

body{
    font-family: "Inter", sans-serif;
}

p:last-of-type{
	margin-bottom: 0;
}

.justify-content-center{
	justify-content: center;
}

.row-inner-full > .col > .col-inner{
	height: 100%;
}

.row-slider .flickity-slider > .col{
	padding-bottom: 0 !important;
}

.button, button, input[type=button], input[type=reset], input[type=submit], .button.icon{
    /*line-height: normal;*/
    /*min-width: unset;*/
    /*min-height: unset;*/
    font-size: 1rem;
    font-weight: 500;
    /*padding: 0.325rem 1rem;*/
    span{
        /*line-height: inherit;*/
    }
}

.button.primary:not(.is-outline){
    color: var(--cl-y);
}

.button.secondary{
    border: 2px solid #C8A51C;
    background: linear-gradient(90deg, rgba(255, 223, 96, 1) 0%, rgba(200, 165, 28, 1) 50%, rgba(255, 217, 66, 1) 100%);
    color: var(--cl-x);
}

.button.is-large{
    font-size: 1.25rem;
}

.svg-clip-path {
    width: 0;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    opacity: 0;
}

.wpcf7-form{
    margin-bottom: 0;
}

.wpcf7 .wpcf7-spinner{
    display: none;
}

.wpcf7 .wpcf7-not-valid-tip{
    position: absolute;
    margin-top: -1rem;
    font-size: 0.75rem;
    z-index: 1;
}

.social-icons a{
    width: 2rem;
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0 !important;
}

.social-icons a i{
    top: unset;
}

/*===*/
.icon-header .top-icon{
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-header .top-icon .icon{
    width: 1rem;
    flex-shrink: 0;
}

.icon-header .top-icon .icon img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.icon-header .top-icon .title{
    margin-bottom: 0;
    font-size: 0.875rem;
    font-weight: 400;
}

.icon-header .bottom-icon{
    font-weight: 500;
}

.header-nav > li.menu-item{
    margin: 0 0.5rem;
}

.header-nav > li.menu-item a{
    padding: 0.75rem 0.75rem;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 600;
}

.header-nav > li.menu-item.active:before{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 100%;
    width: 1rem;
    background-image: url('/wp-content/themes/flatsome-child/images/shape-menu-left.png');
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: contain;
    transform: translateX(-100%);
}

.header-nav > li.menu-item.active:after{
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    width: 1rem;
    background-image: url('/wp-content/themes/flatsome-child/images/shape-menu-right.png');
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: contain;
    transform: translateX(100%);
}

.header-nav > li.menu-item.active > a:after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90%;
    z-index: -1;
    border-radius: 0.75rem 0.75rem 0 0;
    background: linear-gradient(90deg, rgba(255, 223, 96, 1) 0%, rgba(200, 165, 28, 1) 50%, rgba(255, 217, 66, 1) 100%);
    color: var(--cl-x) !important;
}



body.home .header-main .flex-row .flex-left,
body.home .header-main .flex-row .flex-right .header-button-2,
body:not(.home) .header-main .flex-row .flex-right .header-block,
body:not(.home) .header-bottom{
    display: none !important;
}

body.home .header-main .flex-row .flex-right{
    width: 100%;
}


body:not(.home){
    .header-main .header-inner .flex-left{
        align-self: flex-end;
    }

    .header-nav > li.menu-item.active:before,
    .header-nav > li.menu-item.active:after{
        filter: brightness(0) saturate(100%) invert(19%) sepia(9%) saturate(5226%) hue-rotate(172deg) brightness(94%) contrast(87%);
    }

    .header-nav > li.menu-item.active > a{
        background: linear-gradient(90deg,rgba(255, 223, 96, 1) 0%,rgba(200, 165, 28, 1) 50%,rgba(255, 217, 66, 1) 100%);
        -webkit-background-clip: text !important;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        text-fill-color: transparent;
    }

    .header-nav > li.menu-item.active > a:after{
        background: var(--cl-x);
    }

}

#logo img{
    padding: 0.25rem 0 !important;
}

#search-lightbox{
    font-size: 1rem;
}

.searchform-wrapper .flex-col{
    padding: 0 !important;
}

.searchform-wrapper.form-flat .flex-col:last-of-type{
    margin-left: -2.5rem;
}

.searchform-wrapper input[type=search]{
    height: unset;
    padding: 0.5rem 1rem;
}

.searchform-wrapper button[type="submit"]{
    margin: 0;
    padding: 0;
}


/*===*/
.banner-page{
    height: 5rem;
    background-color: transparent;
}

.banner-page .bg-fill{
    background-position: center bottom;
}

.banner-page .title-banner-page{
    margin: 0;
    font-size: clamp(1rem, 0.8rem + 1vw, 2rem);
    font-weight: 700;
    line-height: normal;
    width: 0;
    height: 0;
    visibility: hidden;
    overflow: hidden;
}

.rank-math-breadcrumb p{
    margin-top: 0.25rem;
}


/**/
.main-title h2{
    font-size: var(--fs-title);
}

.box-main-title h2{
    margin-bottom: 0.325rem;
    font-size: var(--fs-title);
}

.box-main-title h3{
    margin-bottom: 0;
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.25rem);
    font-family: "Great Vibes", cursive;
    font-weight: 400;
}


/*======*/
.box-category .box-image{
    border-radius: 0.75rem;
    border: 2px solid #FFDF60;
}

.box-category .box-text{
    padding: 1rem;
}

.box-category .header-title{
    color: var(--cl-x);
}



/*===*/
.box-icon-counter{
    position: relative;
    height: 100%;
    padding: 1rem clamp(0.25rem, 0.1rem + 0.75vw, 1rem);
    border-radius: clamp(0.5rem, 0.4rem + 0.5vw, 1rem);
}

.box-icon-counter p:first-child{
    margin-bottom: 1rem;
    font-weight: 500;
}

.box-icon-counter h3{
    margin-bottom: 1rem;
}

.box-icon-counter:after{
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;      
    background: linear-gradient(90deg, rgba(255, 223, 96, 1) 0%, rgba(200, 165, 28, 1) 50%, rgba(255, 217, 66, 1) 100%);
    -webkit-mask: 
       linear-gradient(#fff 0 0) content-box, 
       linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;        
    pointer-events: none;
}



/*===*/

.section-profile .section-bg{
    top: -50%;
    bottom: -50%;
    height: unset;
}

.col-profile .col-inner{
    border-radius: 1rem 0;
}

.box-profile{
    display: flex;
    flex-direction: column-reverse;
    padding-bottom: 5rem;
}

.box-profile .icon-box-img{
    position: absolute;
    bottom: 2rem;
    align-self: flex-end;
    margin-bottom: 0;
}

.box-profile .img{
    position: absolute;
    bottom: 2rem;
}





/*===*/
.product-small .badge-container{
    left: unset;
    right: 0.5rem;
    margin-top: 0.5rem;
    .badge{
        height: 1.8rem;
    }
}

.product-small.box{
    margin: 0.25rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0px 0px 4px #00000040;
    .box-image{
        border-radius: 0.25rem;
    }

    .box-text{
        margin-top: 0.75rem;
        padding: 0;
        .product-title{
            height: 3rem;
            margin: 0 0 1rem;
            padding: 0.5rem 1rem;
            font-size: clamp(0.875rem, 0.825rem + 0.25vw, 1.125rem);
            font-weight: 400;
            text-align: center;
        }

        .product-title a{
            margin: 0;
            color: var(--cl-x);
        }


        .price-wrapper{
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem 1rem;
            background-color: var(--cl-x);
            clip-path: url('#clip-path-price');
        }

        .price-wrapper .price{
            display: flex;
            flex-direction: row-reverse;
            justify-content: center;
            gap: 1.25rem;
            font-size: clamp(0.875rem, 0.85rem + 0.125vw, 1rem);
        }

        span.amount{
            color: #fff;
            font-weight: 500;
        }

        .lable-contact{
            background: linear-gradient(90deg,rgba(255, 223, 96, 1) 0%,rgba(200, 165, 28, 1) 50%,rgba(255, 217, 66, 1) 100%);
            -webkit-background-clip: text !important;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            text-fill-color: transparent;
            font-weight: 500;
            font-size: clamp(0.875rem, 0.85rem + 0.125vw, 1rem);
        }
    }
}


/*===*/
.icon-wcu .icon-box-img{
    --w-icon: clamp(6rem, 4.8rem + 6vw, 12rem);
    width: var(--w-icon) !important;
    height: var(--w-icon);
    padding: clamp(2rem, 1.8rem + 1vw, 3rem);
    border: 1px dashed var(--cl-x);
    border-radius: 50%;
}



.row-policy .col .col-inner{
    padding: 0;
}

.box-icon-policy{
    clip-path: url('#clip-path-policy');
    display: flex;
    align-items: center;
    background-color: var(--cl-x);
    padding: 1rem;
}

.box-icon-policy .icon-box-text h3{
    margin-bottom: 0;
}


.row-policy .col:first-child .box-icon-policy{
    clip-path: url('#clip-path-policy-first');
}

.row-policy .col:last-child .box-icon-policy{
    clip-path: url('#clip-path-policy-last');
}





/*====*/
.box-blog-post{
    display: flex;
    flex-direction: column;
    .box-image{
        width: 100%;
        border-radius: 0.25rem;
    }

    .box-text{
        flex: 1;
        padding: 0.75rem 0 0;
        font-size: inherit;
        line-height: 1.3;
    }
    .box-text-inner{
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .is-divider{
        display: none;
    }

    .post-meta{
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
        opacity: 1;
        color: #7F7F7F;
    }

    .post-meta:before{
        content: "\f073";
        font-family: "Font Awesome 6 Pro";
        color: var(--cl-x);
        margin-right: 0.5rem;
    }

    .post-title{
        margin-top: 0;
        margin-bottom: 0.5rem;
        font-size: clamp(1rem, 0.975rem + 0.125vw, 1.125rem);
        font-weight: 600;
    }

    .post-title a{
        margin: 0;
    }

    .from_the_blog_excerpt{
        line-height: inherit;
        margin: 0 0 clamp(0.5rem, 0.4rem + 0.5vw, 1rem);
    }

    .button{
        margin: auto 0 0;
        color: rgba(0, 0, 0, 0.5);
        text-decoration: underline;
        font-weight: 400;
    }

    .badge.post-date{
        top: 0%;
        left: 0.5rem;
        transform: translateY(calc(-100% - 0.5rem));
        width: 2.75rem;
        height: 2.75rem;        
    }

    .badge.post-date .badge-inner{
        border-radius: 0.325rem;
        background-color: #fff;
        font-size: 1.25rem;
    }

    .badge.post-date .badge-inner span{ 
        color: #000;
        text-transform: uppercase;
    }

    :hover .post-title a{
        
    }
}


/*=== Footer*/
.col-footer h3{
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.25rem);
}

.col-footer p{
    margin-bottom: 0.325rem;
}

.col-footer .ux-menu .ux-menu-link + .ux-menu-link{
    margin-top: 0.5rem !important;
}

.col-footer .ux-menu .ux-menu-link__link{
    flex: unset;
    min-height: unset;
    padding: 0;
    transition: all .3s ease-in-out;
}

.col-footer .ux-menu .ux-menu-link__link:hover{
    transform: translateX(0.5rem);
    color: #BF7C00 !important;
}

.social-icons.social-footer{
    display: flex;
    gap: 0.25rem;
    margin-top: 1rem;
}

.social-icons.social-footer a{
    margin: 0;
    padding: 0.25rem;
    width: 2rem;
    height: 2rem;
    min-width: unset;
    min-height: unset;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border: 0;
    color: #000;
    font-size: 0.75rem;
}

.social-footer a i{
    top: 0;
    line-height: normal;
    font-size: 1rem;
}

.icon-envelop:before{
    content: "\f0e0";
    font-family: "Font Awesome 6 Pro";
}

.absolute-footer{
    display: none;
}

.menu-footer-bottom{
    flex-direction: row;
    gap: 1.5rem;
}

.menu-footer-bottom .ux-menu-link__link{
    min-height: unset;
    padding: 0;
}

.menu-footer-bottom .ux-menu-link__link:hover{
    color: var(--cl-y) !important;
}

.back-to-top{
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
}


/*==== Page Contact*/
.icon-info-contact{
    --w-icon: clamp(3rem, 2.9rem + 0.5vw, 3.5rem);
    height: 100%;
    position: relative;
}

.icon-info-contact:after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--w-icon) / 2);
    bottom: 0;
    z-index: -1;
    background-color: #F8F8F9;
    border-radius: 0.5rem;
}

.icon-info-contact .icon-box-img{
    width: var(--w-icon) !important;
    height: var(--w-icon);
    background-color: #000;
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.icon-info-contact .icon,
.icon-info-contact .icon-inner{
    width: 100%;
    height: 100%;
}

.icon-info-contact .icon-box-img img{
    padding-top: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.icon-info-contact .icon-box-text{
    padding: 0.75rem;
    line-height: normal;
}

.icon-info-contact .icon-box-text h3{
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.25rem);
}


.box-map{
    border-radius: clamp(0.5rem, 0.4rem + 0.5vw, 1rem);
    overflow: hidden;
    height: 400px;
}

.box-map iframe{
    width: 100%;
}

.wrapper-form-contact{
    padding: 2rem;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    border-radius: clamp(0.5rem, 0.4rem + 0.5vw, 1rem);
    background-color: rgba(255, 255, 255, 0.15);
}

.wrapper-form-contact .form-contact .form-control{
    height: unset;
    background-color: #F4F2F2;
    padding: clamp(0.5rem, 0.45rem + 0.25vw, 0.75rem) 1rem;
    border: 0;
    border-radius: 0.25rem;
    box-shadow: none !important;
    color: #000;
}

.wrapper-form-contact .form-contact .form-control::placeholder{
    color: rgba(0, 0, 0, 0.5);
}

.wrapper-form-contact .form-contact input[type=submit]{
    margin: 0;
    border: 0;
    border-radius: 0.25rem;
    font-weight: 600;
}



/*=== Sản phẩm*/
.blog-archive > .row > .col{
    padding-bottom: 0;
}





/*=== Sản phẩm*/
.product-info .woocommerce-breadcrumb {
    display: none;
}

.product-gallery .product-images{
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    border-radius: 0.5rem;
    overflow: hidden;
}

.product-gallery .product-thumbnails .flickity-slider > .col a{
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    border-radius: 0.5rem;
    margin: 0.25rem;
    overflow: hidden;
}


.product-info .product-short-description{
    margin-bottom: 1rem;
}

.product-info .ux-quantity.quantity{
    display: flex;
}

.product-info .ux-quantity.quantity input[type="button"]{
    margin: 0;
    width: 2.5rem;
    height: 2.5rem;
    font-weight: 700;
    text-shadow: none;
}

.product-info .ux-quantity.quantity input[type="number"]{
    height: 2.5rem;
    box-shadow: none !important;
}

.product-info .ux-quantity + .single_add_to_cart_button {
    display: none;
}

.wrapper-button-add-cart{
    display: flex;
    gap: 0.5rem;
}

.product-info .single_add_to_cart_button{
    margin: 0;
    padding: 0.75rem 1rem;
    background-color: #000;
    width: 100%;
    border-radius: 0.25rem;
    line-height: normal;
}

.product-info .single_add_to_cart_button .label-bottom{
    font-size: 0.875rem;
    font-weight: 400;
}

/*===*/
.woocommerce-tabs .tabs li{
    width: auto !important;
}

.woocommerce-tabs .tabs li a{
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.25rem);
    border-radius: 0.5rem;
}


.related-products-wrapper{
    margin-bottom: 2rem;
}

.product-section-title-related{
    padding-top: clamp(2rem, 1.6rem + 2vw, 4rem);
    font-size: var(--fs-title);
}



/*=== Shop Sidebar*/
.widget .is-divider{
    display: none;
}

.widget .widget-title{
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.widget_product_categories .widget-title{
    background-color: var(--cl-x);
    margin-bottom: 0;
    padding: 1rem;
    border-radius: 1rem 1rem 0 0;
    color: var(--cl-y);
}

.product-categories{
    padding: 0 0.5rem;
    background-color: #EAEAEA;
    border-radius: 0 0 1rem 1rem;
}


.product-categories li.cat-item{
    transition: all .3s ease-in-out;
}

.product-categories li.cat-item + li.cat-item{
    border-top-color: #fff;
}

.widget .product-categories li.cat-item:hover{
    /*transform: translateX(0.25rem);*/
}

.widget .product-categories li.cat-item.active a,
.widget .product-categories li.cat-item:hover a{
    color: var(--cl-x);
}

.widget .product-categories li.cat-item a{
    padding: 0.5rem 1rem;
    font-weight: 600;
}

/*button contact*/
.button-contact-fixed{
    position: fixed;
    bottom: 8%;
    right: 0.25rem;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.box-ring {
    width: clamp(4rem, 3.8rem + 1vw, 5rem);
    height: clamp(4rem, 3.8rem + 1vw, 5rem);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: visibility .5s;
    position: relative;
}

.box-ring-outline {
    position: absolute;
    width: clamp(4rem, 3.8rem + 1vw, 5rem);
    height: clamp(4rem, 3.8rem + 1vw, 5rem);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transform-origin: 0 0;
    border: 2px solid rgba(30, 30, 30, 0.5);
    background-color: transparent;
    border-radius: 50%;
    opacity: .5;
    transition: all .5s;
    animation: coccoc-alo-circle-anim 1.2s infinite ease-in-out;
}

.box-ring-inline {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(3rem, 2.8rem + 1vw, 4rem);
    height: clamp(3rem, 2.8rem + 1vw, 4rem);
    transform: translate(-50%, -50%);
    transform-origin: 0 0;
    border: 2px solid transparent;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: all .5s;
    animation: coccoc-alo-circle-fill-anim 2.3s infinite ease-in-out;
}

.box-ring-image{
    width: clamp(2.5rem, 2.4rem + 0.5vw, 3rem);
    height: clamp(2.5rem, 2.4rem + 0.5vw, 3rem);
    padding: 6px;
    border: 2px solid transparent;
    border-radius: 50%;
    background-color: #000;
    opacity: 1;
    animation: coccoc-alo-circle-img-anim 1s infinite ease-in-out;
}

.box-ring-image img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.box-ring-label{
	position: absolute;
	right: 2rem;
	height: 2.25rem;
	z-index: -1;
	padding: 0.25rem 3rem 0.25rem 1rem;
	border-radius: 50rem;
	white-space: nowrap;
	color: #fff;
	display: flex;
	align-items: center;
}

@keyframes coccoc-alo-circle-anim {
    0% {
        transform: rotate(0) scale(.5) skew(1deg) translate(-50%, -50%);
        opacity: .1
    }
    30% {
        transform: rotate(0) scale(.7) skew(1deg) translate(-50%, -50%);
        opacity: .5
    }
    100% {
        transform: rotate(0) scale(1) skew(1deg) translate(-50%, -50%);
        opacity: .1
    }
}

@keyframes coccoc-alo-circle-fill-anim {
    0% {
        transform: rotate(0) scale(.7) skew(1deg) translate(-50%, -50%);
    }
    50% {
        transform: rotate(0) scale(1) skew(1deg) translate(-50%, -50%);
    }
    100% {
        transform: rotate(0) scale(.7) skew(1deg) translate(-50%, -50%);
    }
}

@keyframes coccoc-alo-circle-img-anim {
    0% {
        transform: rotate(0) scale(1) skew(1deg)
    }
    10% {
        transform: rotate(-25deg) scale(1) skew(1deg)
    }
    20% {
        transform: rotate(25deg) scale(1) skew(1deg)
    }
    30% {
        transform: rotate(-25deg) scale(1) skew(1deg)
    }
    40% {
        transform: rotate(25deg) scale(1) skew(1deg)
    }
    50% {
        transform: rotate(0) scale(1) skew(1deg)
    }
    100% {
        transform: rotate(0) scale(1) skew(1deg)
    }
}