/*
Theme Name: EZ COSMETIC VIỆT NAM
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

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

/* .flex-right {
    width: -webkit-fill-available;
} */


.wide-nav .flex-center {
    width: 100%;
}

.nav-center {
    justify-content: space-between;
}

.nav-center li a {
    font-weight: 700;
}

.header-search-form-wrapper .search-field {
    background-color: #fff !important;
}

.html.header-button-1 a {
    background: transparent url('/wp-content/themes/ez-cosmetic-viet-nam/img/facebook.png');
    background-repeat: no-repeat;
    box-shadow: none !important;
}

.header-language-dropdown .nav-dropdown.nav-dropdown-simple {
    max-height: inherit;
    left: 0 !important;
    top: 37px;
    border: 0;
    margin: 0;
    padding: 0;
    width: 32px;
    min-width: 32px;
}

.header-language-dropdown .nav-dropdown.nav-dropdown-simple >li>a {
    padding: 0;
}

/* .header-language-dropdown .nav-dropdown.nav-dropdown-simple >li:not(:last-child)>a {
    padding-bottom: 5px;
} */
.flex-col.hide-for-medium.flex-left.flex-grow {
    margin: auto;
    max-width: 400px;
}

.flex-col.hide-for-medium.flex-left.flex-grow .form-flat input:not([type=submit]) {
    height: 40px;
    border-color: #000;
}

.account-item .header-button a,
.account-login,
.header-cart-link {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    flex-flow: row-reverse;
    color: #000;
}

.account-item .header-button:hover a {
    color: #fff;
}

.account-login span,
.header-cart-link span {
    margin-left: 5px;
}

.header-block {
    display: contents;
    width: fit-content;
}

.header-block .header-block-block-1 a {
    padding: 8.4px 10px;
    font-weight: 700;
    border-radius: 5px;
    border: 1px solid;
    transition: all ease-in .3s;
    font-size: .8em;
    text-transform: uppercase;
}

.header-block .header-block-block-1:hover a {
    background: #00264c;
    color: #fff;
}

.section.section-slider {
    padding: 10px 0 0 0 !important;
}

.slider-main .col-inner,
.slider-left .col-inner .row > div > .col-inner {
    border-radius: 10px;
    overflow: hidden;
}

.slider-left .slider-left-img {
    padding: 0;
}

.slider-left .slider-left-img:not(:first-child) {
    padding-top: 10px;
}

.slider-left .col-inner .row {
    margin: 0 !important;
}

.slider-main {
    padding: 0px;
}

.slider-left {
    padding: 0 0 0 10px;
}

.brands-item {
    width: calc(100% / 6) !important;
    max-width: calc(100% / 6) !important;
    -ms-flex-preferred-size: calc(100% / 6) !important;
    flex-basis: calc(100% / 6) !important;
}

.section-title b {
    background-color: transparent;
}

.section-title-normal span,
.section-title-normal {
    border: none;
}

h3.section-title-main {
    font-size: 22px;
}

h3.section-title span {
    font-size: 25px;
}

h3.section-title {
    margin-bottom: 0;
}

.section-title-container {
    margin-bottom: 10px;
}

/* h3.section-title span {
    min-width: 180px;
    padding-bottom: 13px;
    position: relative;
    color: #00274e;
    text-align: center;
}

h3.section-title span:before {
    background-color: #f48120;
    content: '';
    display: block;
    height: 3px;
    width: 70px;
    margin-bottom: 5px;
}

h3.section-title span:after {
    background-color: #f48120;
    content: '';
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    height: 3px;
    width: 70px;
    margin-bottom: 0.25em;
} */
.list-products .section-title-normal {
    font-size: 16px;
    font-weight: 500;
    padding-top: 20px;
    margin-bottom: 0px;
}

.list-products {
    padding-top: 10px;
}

.woocommerce-Tabs-panel {
    font-size: 13px;
}

.product-title.woocommerce-loop-product__title a,
.product_list_widget .product-title {
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.vertical-thumbnails::-webkit-scrollbar {
    display: none;
}

.tab-brand .nav .tab a {
    border-radius: 4px;
    font-weight: 700;
    padding: 16px 16px;
}

.tab-brand .nav .tab {
    margin: 0 4px 8px !important;
    background: #f2f2f2;
}

.tab-brand .nav .tab a span {
    line-height: 1;
}

.tab-brand .panel-brand {
    align-items: center;
    margin: 0 !important;
    border-bottom: 1px solid #00274e;
    padding: 40px 0;
}

.tab-brand .panel-brand > div,
.tab-brand .panel-brand .brands-list {
    padding-bottom: 0;
}

.first-word {
    margin-right: 28px;
    margin-bottom: 20px;
    padding: 14px 14px;
    line-height: 1;
    font-style: normal;
    font-weight: 700;
    text-transform: capitalize;
    color: #00274e;
    border: 2px solid #00274e;
    border-radius: 12px;
    width: fit-content;
}

/* .section-brands .brands-list:not(:first-child) > div */
.section-brands .brands-list .col-inner > div:not(:first-child) {
    padding-top: 30px;
    border-top: 2px solid #dcdcdc;
}

#footer .footer-widgets.footer.footer-1 {
    background: #fff;
    padding: 0;
    margin: 0;
}

#footer .footer-widgets.footer.footer-1 .block_widget {
    margin: 0;
}

.nb-copyright {
    color: #000;
}

.ux-menu-title,
.nb-copyright a,
.nb-footer p,
.nb-footer a,
.nb-footer h1,
.nb-footer h2,
.nb-footer h3 {
    color: #000 !important;
    font-size: 14px;
    min-height: auto;
    padding: 0;
}

.ux-menu-title {
    font-size: 16px;
    min-height: auto;
    padding: 0;
}

.back-to-top {
    right: 15px;
}

/* 
#top-link
{
    background: #5fbf34;
    border-color: #5fbf34;
}
 */
.nb-footer p {
    margin: 0;
}

.nb-footer {
    padding: 0;
    margin: 0;
    padding-top: 40px !important;
    color: #fff;
}

.email-newsletter p {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: stretch;
    align-items: stretch;
    width: 100%;
}

.email-newsletter .wpcf7-spinner,
.email-newsletter ~  .wpcf7-response-output,
.email-newsletter .wpcf7-not-valid-tip {
    display: none !important;
}

.email-newsletter .wpcf7-form-control-wrap {
    width: 100%;
}

.email-footer {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid #5c5c5c !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    color: #000 !important;
}

.email-footer::placeholder {
    color: #5c5c5c;
}

.submit-footer {
    position: absolute !important;
    padding: 0 !important;
    margin: 0 !important;
    right: 0 !important;
    bottom: calc(50% - 15px);
    width: 30px !important;
    height: 30px !important;
    background: transparent url('/wp-content/themes/ez-cosmetic-viet-nam/img/right-arrow.png')no-repeat !important;
    background-size: 100% !important;
    border: 0 !important;
    box-shadow: none !important;
    min-height: auto !important;
}

.footer_social {
    margin-top: 15px;
    display: inline-flex;
    margin-bottom: 15px;
}

.footer_social a img {
    width: 40px;
}

.footer_social a:not(:last-child) {
    margin-right: 10px;
}

.absolute-footer {
    display: none;
}

.footer-top {
    align-items: normal !important;
}

.list_logo_pay {
    display: flex;
    margin: 20px 0 7px;
    align-items: center;
}

.list_logo_pay a img {
    max-height: 35px;
    margin-right: 6px;
}

.logo-bct {
    margin-top: 10px;
}

.product-title.entry-title {
    font-size: 16px;
}

.cart-item .nav-dropdown,
ul.product_list_widget li a:not(.remove) {
    font-size: 14px !important;
}

.woocommerce-breadcrumb.breadcrumbs,
.box-blog-post .is-divider {
    display: none;
}

.woocommerce-message {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 300px;
    background: transparent;
}

.woocommerce-message .message-container {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    text-align: center;
    padding: 7% 0;
}

.msg-add-to-cart .msg-content .msg-image {
    width: 80px;
    height: 80px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    border-radius: 50%;
    background: #36c69c;
    position: relative;
}

.msg-add-to-cart .msg-content .msg-image::before {
    content: "\f00c";
    font-family: "FontAwesome";
    color: #fff;
    font-size: 2em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.msg-add-to-cart .msg-content .msg-text {
    color: #fff;
    font-size: 1.5em;
}

/* .post-item .image-cover {
    padding-top: 100% !important;
} */

.title-sale .section-title b {
    display: none;
}

.title-sale .section-title {
    justify-content: flex-start;
}

.title-sale .section-title-main {
    margin: 0;
}

.text.countdown {
    display: flex;
}

.row-countdown {
    align-items: center;
    padding: 0 10px;
    margin: 0 !important;
}

.row-countdown > div {
    padding: 0 !important;
}

.countdown-sale {
    padding: 0;
    margin: auto;
    margin-bottom: auto !important;
}

.countdown-sale .countdown .woo-sctr-shortcode-countdown-1 {
    display: flex !important;
    align-items: center;
    text-align: center;
    max-width: 100%;
}

.countdown-sale .countdown .woo-sctr-shortcode-countdown-unit-wrap {
    margin: auto !important;
    width: 400px;
    max-width: 100%;
}

.countdown-sale .countdown .woo-sctr-shortcode-countdown-unit-wrap:not(:last-child) > span {
    border-right: 1px solid #dcdcdc;
}

.countdown-sale .countdown .woo-sctr-shortcode-countdown-unit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 5px;
    line-height: 18px;
    margin: 5px 0px;
    font-weight: 700;
}

.countdown-sale .countdown .woo-sctr-shortcode-countdown-text {
    width: fit-content;
    margin-left: 5px;
    font-weight: 100;
    font-size: 16px !important;
}

.row-flash-sale {
    padding-top: 20px;
    background: linear-gradient(to bottom, #1f9f69, transparent);
    border-radius: 10px;
    background-size: 100% 50%;
    background-repeat: no-repeat;
}

.row-flash-sale > div {
    padding-bottom: 0;
}

.row-flash-sale .list-products {
    background: transparent;
}

.row-flash-sale .list-products > div,
.row-flash-sale .list-products > div .product-small {
    padding-bottom: 0;
}

.row-flash-sale .list-products > div .product-small .product-small {
    background: #fff;
    border-radius: 10px;
}

.row-flash-sale .list-products > div .product-small .product-small .box-text-products {
    padding-left: 10px;
    padding-right: 10px;
}

.countdown-sale .ux-timer-text span {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 5px;
    line-height: 29px;
    margin: 10px 0px;
}

.countdown-sale .ux-timer-text span:not(:last-child) {
    border-right: 1px solid #dcdcdc;
}

.countdown-sale .ux-timer-text strong {
    font-size: 12px;
    line-height: 29px;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    position: relative;
}

.countdown-sale .ux-timer-text {
    display: flex;
    width: 400px;
    max-width: 100%;
    background: #fff;
    border-radius: 4px;
}

.btn-flash-sale {
    background: #fff !important;
    color: #000 !important;
    padding: 5px 12px;
    height: 42px;
    line-height: 1;
    margin-bottom: 0;
    font-size: 14px;
    border-radius: 4px;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
}

#login h1 a {
    background: url("/wp-content/themes/ez-cosmetic-viet-nam/logo-admin.png") no-repeat;
    padding: 0;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    width: 100%;
}

.badge-container {
    display: none;
}

.woocommerce-tabs .nav-line-grow>li>a {
    font-weight: 700 !important;
    font-size: 18px;
}

.woocommerce-tabs .nav-line-grow>li>a:before {
    width: 0 !important;
}

.list-news .post-item .post-title {
    transition: all ease-in-out .3s;
}

.list-news .post-item:hover .post-title {
    color: #f48120;
}

.list-news-cus .post-item .box-text
{
    vertical-align: top;
}

.list-news-cus .post-item .box-text .post-title
{
    font-size: 1.6em;
    line-height: 1.3;
    text-align: justify;
}

.list-news-cus .post-item .box-text .from_the_blog_excerpt 
{
    text-align: justify;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 20px;
    -webkit-line-clamp: 8;
    height: 160px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

strong {
    font-weight: 700;
}

.service-image,
.service-image .img-inner {
    position: relative;
}
.service-image .img-inner:before {
    overflow: hidden;
    position: absolute;
    top: 0;
    left: -80%;
    display: block;
    content: '';
    width: 50%;
    height: 100%;
    background: -o-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .3) 100%);
    background: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), to(rgba(255, 255, 255, .3)));
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .3) 100%);
    -webkit-transform: skewX(-25deg);
    -ms-transform: skewX(-25deg);
    transform: skewX(-25deg);
    z-index: 1;
}

.service-image .img-inner:hover:before {
    -webkit-animation: shine 1s;
    animation: shine 1s;
}

.service-image .img-inner img
{
    border-radius: 10px;
    overflow: hidden;
}

@-webkit-keyframes shine {
  100% {
    left: 125%;
  }
}

@keyframes shine {
  100% {
    left: 125%;
  }
}

.service-image:before,
.service-image:after {
    content: "";
    position: absolute;
    display: block;
    z-index: -1;
    background-size: cover;
    width: 200px;
    height: 200px;
    background-image: url("/wp-content/themes/ez-cosmetic-viet-nam/img/shape.png");
    background-repeat: no-repeat;
}

.service-image:before {
    left: -20px;
    bottom: 0px;
    -webkit-animation: zoom-fade 8s infinite linear;
    animation: zoom-fade 8s infinite linear;
}

.service-image:after {
    right: -10px;
    top: 20px;
    -webkit-animation: zoom-fade 6s infinite linear;
    animation: zoom-fade 6s infinite linear;
}

@-webkit-keyframes zoom-fade {
    0% {
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
    }

    50% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    100% {
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
    }

}

@keyframes zoom-fade {
    0% {
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
    }

    50% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    100% {
        -webkit-transform: scale(0.9);
        transform: scale(0.9);
    }

}

.bg-contain,
.bg-contain .section-bg.bg-loaded
{
    background-size:  contain!important;
}


.service-image .grid-col-1 {
    height: unset!important;
    aspect-ratio: 4 / 3!important;
    padding: 5px!important;
}

.service-image .grid-col-1-3
{
    height: unset!important;
    aspect-ratio: 2 / 1!important;
    padding: 5px!important;
}

@media only screen and (max-width:48em) {

    /*************** ADD MOBILE ONLY CSS HERE  ***************/
    .service-text {
        order: 1;
    }

    .brands-item {
        width: calc(100% / 3) !important;
        max-width: calc(100% / 3) !important;
        -ms-flex-preferred-size: calc(100% / 3) !important;
        flex-basis: calc(100% / 3) !important;
    }

    .nb-footer,
    .container .section,
    .row .section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* a[hreflang] {
        padding: 13px 0 !important;
    }

    .lang-item.menu-item-type-custom {
        position: absolute;
        z-index: 99;
        left: 0;
        top: -30px;
        width: 80px !important;
    }

    .lang-item.menu-item-type-custom+.lang-item.menu-item-type-custom {
        left: 85px;
        border-left-color: #fff;
        border-left-style: solid;
        border-left-width: 1px;
    }

    .lang-item.menu-item-type-custom+.lang-item.menu-item-type-custom+li {
        margin-top: 20px;
    } */
}

.pl-0 {
    padding-left: 0 !important;
}

.pr-0 {
    padding-right: 0 !important;
}

@media (max-width:767.98px) {
    .slider-main,
    .slider-left {
        padding: 0 10px;
    }

    .slider-left {
        padding: 0;
    }

    .slider-left .slider-left-img {
        padding: 10px 5px 10px 10px;
    }

    .slider-left .slider-left-img:not(:first-child) {
        padding: 10px 10px 10px 5px;
    }

}


/* Wrapper */
.custom-buttons-wrapper {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Nút chung */
.custom-button-zalo,
.custom-button-shopee {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    margin-right: 0;
    border: 1.5px solid #ccc;  /* Viền nhẹ xám */
    border-radius: 8px;
    background: #fff;  /* Nền trắng */
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Ảnh logo */
.custom-button-zalo img,
.custom-button-shopee img {
    width: 90px;  /* chỉnh kích thước phù hợp */
    height: auto;
    display: block;
}

/* Hover hiệu ứng */
.custom-button-zalo:hover,
.custom-button-shopee:hover {
    border-color: #006af1; /* viền xanh dương */
    box-shadow: 0 4px 12px rgba(0, 106, 241, 0.4); /* bóng xanh dương nhẹ */
    transform: translateY(-3px);
}

/* Màu viền và bóng khác cho Shopee khi hover */
.custom-button-shopee:hover {
    border-color: #ff5722; /* cam đậm */
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}
