/*
Theme Name: Thành Lâm 2024
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

.no-margin {margin: 0 !important}
.no-margin > * {margin: 0 !important}
.no-paddding {padding: 0 !important}
.no-paddding > *{padding: 0 !important}
.row-no-padding-bottom .col{padding-bottom: 0 !important}
.absolute-footer {display: none;}

:root {
    --black-color: #333;
    --main-color: #005d79;
    --se-color: #61ce70;
    --border-color: #ddd;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --waring-color: #ffc107;
}

#masthead.header-main {
    .header-inner > .flex-right {
        flex: 1 !important;
    }
}

.section-pdt {
    padding-top: 70px !important;
}

.mrt-5 {
    margin-bottom: 5px !important;
}

.icon-box-sp {
    align-items: center;
    .icon-box-text h3 {
        margin-bottom: 0;
    }
}

.title-heading-1 {
    b {
        background: var(--main-color) !important;
        opacity: 1;
    }
    span.section-title-main {
        border: 0;
    }
}

.product-home {
    .product-small {
        display: flex;
        & > .col-inner {
            border: 1px solid var(--border-color);
            padding: 20px;
            border-radius: 10px;
            transition: all .3s ease-in-out;
        }

        &:hover > .col-inner {
            -webkit-box-shadow: 5px 5px 17px 0px rgba(204,204,204,1);
            -moz-box-shadow: 5px 5px 17px 0px rgba(204,204,204,1);
            box-shadow: 5px 5px 17px 0px rgba(204,204,204,1);
        }
		
		.name.product-title.woocommerce-loop-product__title {
			height: unset !important;
		}
    }

    .box-image {
        width: 50%;
    }

    .box-text {
        flex: 1;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		padding-bottom: 0;
		padding-right: 0 !important;
        .title-wrapper  {
            text-align: left;
			margin-left: 0;
        }

        .title-wrapper .category {
            color: var(--black-color);
            font-size: 13px;
        }

        .title-wrapper .product-title {
            font-size: 1.2em;
            font-weight: bold;
        }

        .price-wrapper {
           margin-left: 0;
        }
    }
	
	.add-to-cart-button a {
		font-size: 0.7em;
	}
}

.price-wrapper {
    .price {
        display: flex;
        flex-direction: row-reverse;
        justify-content: flex-end;
        align-items: end;
    }
    .price ins {
        font-size: 1.5em;
    }

    .price del {
        margin-left: 10px;
    }

    .price > .woocommerce-Price-amount > bdi {
        font-size: 1.5em;
        color: var(--danger-color);
    }
}

.shop-container > .products .price-wrapper .price, .related-products-wrapper .price {
    justify-content: center;
}

.btn-animation {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 5px 25px;

    &::before {
        content: '';
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        transform: translate(-100%, 0) rotate(50deg);
        transform-origin: top left;
        transition: all 0.35s;
        background-color: var(--main-color);
        z-index: -1;
    }

    &.fill-btn::before {
        background: #fff;
    }

    &:hover {
        background: transparent !important;
    }

    &.fill-btn:hover {
        color: var(--main-color);
    }

    &:hover::before {
        transform: translate(0, 0);
    }
}


.bgr-section {
    background-image: linear-gradient(to right, var(--main-color), var(--se-color));
}

.product-page-sections {
    .product-section {
        .col {
            max-width: 100%;
            flex-basis: 100%;

            &:first-child h5 {
                font-weight: bold;
                color: var(--main-color);
                font-size: 1.2em;
                margin-bottom: 0;
            }
        }
    }
}

.product-main {
    .product-title {
        font-size: 2em;
        font-weight: bold;
        color: var(--main-color);
    }

    nav.woocommerce-breadcrumb {
        a {
            text-transform: capitalize;
            color: var(--black-color);
        }
    }

    p.product-page-price  {
        display: flex;
        flex-direction: row-reverse;
        justify-content: flex-end;
        align-items: end;
        gap: 10px;
        .screen-reader-text {
            display: none;
        }
        &.price ins {
            font-size: 1.5em;
        }
        &.price del {
            font-size: 0.8em;
        }
    }

    .product-info > .price-wrapper > p.product-page-price  {
        margin-bottom: 20px;
    }
}

.shop-container > .product {
    .product-images {
        border: 1px solid var(--border-color);
        border-radius: 10px;
        overflow: hidden;
    }

    .product-thumbnails a {
        border-radius: 10px;
    } 
}

.info-contact-footer {
    list-style: none;
    margin-bottom: 0;
    li {
        margin-left: 0 !important;
    }
    i {
        min-width: 20px;
    }
}

.menu-footer {
    .ux-menu-link a{
        padding: 0;
        margin-bottom: 8px;
        min-height: unset !important;
        transition: all .3s ease-in-out;
        &:hover {
            padding-left: 10px;
        }
    }
}

.back-to-top {
    border-color: var(--main-color) !important;
    background: var(--main-color) !important;
    i {
        color: #fff;
    };
}

.product-small {

    .col-inner {
        border: 1px solid var(--border-color);
        border-radius: 10px;
        overflow: hidden;
        -webkit-box-shadow: 5px 5px 6px 0px rgba(224,224,224,1);
        -moz-box-shadow: 5px 5px 6px 0px rgba(224,224,224,1);
        box-shadow: 5px 5px 6px 0px rgba(224,224,224,1);
    }
	
	.box-text {
		padding-left: 1.4em;
		padding-right: 1.4em;
		
		.title-wrapper a {
			font-weight: 700;
			font-size: 1em;
			color: var(--black-color);
		}
	}
	
	.price-wrapper .price {
		justify-content: flex-end !important;
	}
}

.badge-container {
    margin: 0;
    left: 20px;
    top: 20px;
}

.woocommerce-result-count {
    display: none;
}

.woocommerce-result-count + form select{
    border-radius: 10px;
}

.blog-single .entry-meta {
    text-transform: none;
    font-size: 16px;
    letter-spacing: 0;
    color: gray;
    border-top: 1px solid #e2e2e2;
    border-bottom: 1px solid #e2e2e2;
    padding: 10px;
    background: #f9f9f9;
	display: none !important;
}

.danh-muc span.title, .the-tim-kiem span.title {
    border-radius: 4px;
    background: var(--main-color);
    padding: 4px 10px;
    color: white;
    margin-right: 5px;
    margin-bottom: 5px;
}

.danh-muc a, .the-tim-kiem a {
    line-height: 32px;
    border-radius: 4px;
    margin-bottom: 10px;
    padding: 4px 10px;
    background: #dedede;
    color: #464646;
}

.danh-muc a:hover, .the-tim-kiem a:hover {
    background: var(--se-color);
    color: #fff;
}

.flatsome_recent_posts {

    .recent-blog-posts {
        align-items: center !important;
    }
    .badge-inner {
        border: 1px solid var(--border-color) !important;
    }
}

.blog-wrapper.blog-archive.page-wrapper {
    padding-top: 0;    
}

.post-item {
    .col-inner {
        border: 1px solid var(--border-color);
        border-radius: 10px;
        overflow: hidden;
    }

    h5 {
        font-weight: bold;
        font-size: 1.2em;
        color: var(--main-color);
    }
    
    .box-text {
        padding-bottom: 0;
        padding-top: 20px;
        padding: 10px;
        background: #ebebeb;
    }

    .box-image {
        padding: 10px;
    }

    .box-image .image-cover {
        padding-top: 70% !important;
    }
}

#main-menu {
    ul.nav > li.current-menu-item {
        background: var(--main-color);
        a {
            color: #fff;
        }
    }
}

.searchform {
    position: relative;
}

.live-search-results {
    position: absolute;
    margin-top: 10px;
    left: 0;
    width: 100%;
    background: var(--main-color);
    border-radius: 10px;
    & > * {
        color: #fff;
    }
}

.sub-menu.nav-dropdown {
	padding-top: 0;
	padding-bottom: 0;
	overflow:hidden;
	.menu-item a {
		padding-top: 15px;
		padding-bottom: 15px;
		
		&:hover {
			background: var(--main-color);
			padding-left: 25px;
			color: #fff;
		}
	}
}


.bai-viet-lien-quan {
	padding-top: 50px;
	
	.list-bai-viet .row {
		margin-bottom: 30px;
		&:last-child {
			margin-bottom: 0;
		}
		border: 1px solid var(--border-color);
		border-radius: 10px;
		overflow:hidden;
		
		.text-box-right {
			h4 {
				font-weight: bold;
				font-size: 1.3em;
				line-height: 1.2em;
			}
			padding: 5px 20px;
			display: block;
		}
	}
}

.add-to-cart-button a {
	margin: 0;
	border-radius: 5px;
	width: 100%;
}
.wvs-archive-variations-wrapper{
	padding-left: 1.4em;
	padding-right: 1.4em;
}
.woocommerce-variation.single_variation{display: none !important}

.woocommerce div.product .stock.discontinued {
    color: #d9534f;
    font-weight: bold;
}

.woocommerce-variation-add-to-cart {display: none;}

/* mobile */
@media (max-width: 549px) {

}

/*table*/
@media (max-width: 849px) {
    
}

/*desktop*/
@media (min-width: 850px) {

    .row-no-padding-bottom-col {
        & > .col {
            padding-bottom: 0 !important;
        }
    }
	
	.deep-menu {
        & > .sub-menu {
            display: flex;
            flex-direction: column;
            
            .menu-item-has-children {
                width: 100%;
                position: relative;
                & > a {
                    font-weight: normal;
                    color: hsla(0, 0%, 40%, .85);
                    font-size: inherit;
                    &:hover {color: #000;}
                    display: flex;
                    flex-direction: row-reverse;
                    justify-content: space-between;
                    padding-right: 10px;
                    text-transform: inherit;
                }
                
                & > .sub-menu {
                    display: none;
                    position: absolute;
                    top: 0;
                    right: -100%;
                    background: #fff;
                    border-radius: 5px;
                    min-width: 300px;
                    box-shadow: 1px 1px 15px rgba(0, 0, 0, .15);
                }
                &:hover > .sub-menu{
                    display: block;
                }
            }
        }
    }
}