/*
Theme Name: Hủ Tiếu Tịnh Thủy
Description: Giao diện website Hủ tiếu Tịnh Thủy
Author: UX Themes
Template: flatsome
Version: 1.0
*/

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

a:where(:not(.wp-element-button)) {
    text-decoration: none !important;
}

.bold {
    font-weight: 700 !important;
}

#header {
    position: absolute;
}

.header-wrapper.stuck {
    box-shadow: none !important;
}

.header-main .header-inner {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 40px;
}

.header-main .flex-right {
    margin-right: 5px !important;
}

.header-main .logo {
    margin-left: -10px !important;
}

.slider-style-container .flickity-slider>:not(.is-selected),
.slider-style-focus .flickity-slider>:not(.is-selected),
.slider-style-shadow .flickity-slider>:not(.is-selected) {
    opacity: 1;
}

.button.primary {
    background: linear-gradient(to right, var(--fs-color-primary), var(--fs-color-secondary), var(--fs-color-secondary), var(--fs-color-primary)) !important;
    background-size: 300% auto !important;
    background-position: left center !important;
    transition: background-position 0.4s 0.125s cubic-bezier(0, 0.15, 0.85, 1) !important;
    border: none !important;
    padding: 5px 35px;

    &:hover {
        background-position: right center !important;
        box-shadow: none !important;
    }
}

.gradient {
    background: linear-gradient(to right, var(--fs-color-primary), var(--fs-color-secondary), var(--fs-color-primary)) !important;
    background-size: 200% auto !important;
    background-position: right center !important;
}

.gradient.rtl {
    background-position: right center !important;
}

.gradient.ltr {
    background-position: left center !important;
}

.glassy {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
}

.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.position-fixed {
    position: fixed !important;
}

.position-sticky {
    position: sticky !important;
}

.w-100vw {
    width: 100vw !important;
}

.h-100vh {
    height: 100vh !important;
}

.h-200vh {
    height: 200vh !important;
}

.h-300vh {
    height: 300vh !important;
}

.h-400vh {
    height: 400vh !important;
}

.h-500vh {
    height: 500vh !important;
}

.h-600vh {
    height: 600vh !important;
}

.h-700vh {
    height: 700vh !important;
}

.z-0 {
    z-index: 0 !important;
}

.z-1 {
    z-index: 1 !important;
}

.z-2 {
    z-index: 2 !important;
}

.z-3 {
    z-index: 3 !important;
}

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

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

.top-0 {
    top: 0 !important;
}

.bottom-0 {
    bottom: 0 !important;
}

.left-50 {
    left: 50% !important;
}

.right-50 {
    right: 50% !important;
}

.top-50 {
    top: 50% !important;
}

.bottom-50 {
    bottom: 50% !important;
}

.left-100 {
    left: 100% !important;
}

.right-100 {
    right: 100% !important;
}

.top-100 {
    top: 100% !important;
}

.bottom-100 {
    bottom: 100% !important;
}

.translate-middle {
    transform: translate(-50%, -50%) !important;
}

.rounded-30 {
    border-radius: 2.5rem !important;
}

.m-1 {
    margin: 1rem !important;
}

.mb-1 {
    margin-bottom: 1rem !important;
}

.subtitle {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
}

.text-primary {
    color: var(--fs-color-primary) !important;
}

.text-white {
    color: #fff !important;
}

.text-outline-primary {
    color: white;
    text-shadow:
        -2px -2px 0 var(--fs-color-primary),
        2px -2px 0 var(--fs-color-primary),
        -2px 2px 0 var(--fs-color-primary),
        2px 2px 0 var(--fs-color-primary),
        -2px 0px 0 var(--fs-color-primary),
        2px 0px 0 var(--fs-color-primary),
        0px -2px 0 var(--fs-color-primary),
        0px 2px 0 var(--fs-color-primary);
}

.text-dark-primary {
    color: var(--fs-color-primary) !important;
    filter: brightness(0.65) contrast(1.5);
}

.text-xs {
    font-size: 70% !important;
}

.text-sm {
    font-size: 85% !important;
}

.text-md {
    font-size: 100% !important;
}

.text-lg {
    font-size: 150% !important;
}

.text-xl {
    font-size: 250% !important;
}

.lh-1 {
    line-height: 1 !important;
}

.lh-2 {
    line-height: 1.5 !important;
}

.lh-3 {
    line-height: 2.5 !important;
}

.lh-4 {
    line-height: 4 !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.absolute-footer .container {
    border-top: 1px solid #E0E0E0 !important;
    padding-top: 15px !important;
}

.footer-primary {
    padding: 7.5px 0px !important;
}

.hu-tieu1 .img-inner {
    padding: 0 0 30px !important;
}

/* custom css content */
.hu-tieu1::before {
    content: '';
    position: absolute;
    z-index: 0;
    bottom: 45px;
    left: 30px;
    height: 520px;
    width: 300px;
    background: linear-gradient(to right, var(--fs-color-primary), var(--fs-color-secondary)) !important;
    border-radius: 0px 120px 0px 50px;
}

.hu-tieu1::after {
    content: '';
    position: absolute;
    z-index: 1;
    bottom: 470px;
    left: 45px;
    width: 80px;
    height: 80px;
    background: url(/files/uploads/icon-bw.svg) no-repeat center center;
    background-size: cover;
}

.hu-tieu1 .img-inner::before {
    content: '';
    position: absolute;
    z-index: 0;
    bottom: -30px;
    left: 30px;
    width: 40%;
    height: 40%;
    background: url(/files/uploads/hanh-tim1.webp) no-repeat center center;
    background-size: cover;
}

.hu-tieu1 .img-inner::after {
    content: '';
    position: absolute;
    z-index: 0;
    bottom: -10px;
    right: 30px;
    width: 40%;
    height: 40%;
    background: url(/files/uploads/chiec-la3.webp) no-repeat center center;
    background-size: cover;
}

.hu-tieu2::before {
    content: '';
    position: absolute;
    z-index: -1;
    bottom: 40px;
    left: 30px;
    height: 280px;
    width: 520px;
    background: linear-gradient(to right, var(--fs-color-secondary), var(--fs-color-primary)) !important;
    border-radius: 120px 0px 50px 0px;
}

.call-to-action img {
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 80%);
}

.call-to-action .img-inner {
    height: 290px;
}

.call-to-action .button {
    margin-bottom: 0 !important;
}


/* custom css rice-noodles-porks */
/* Khung cột chứa 2 ảnh */
.noodle-column {
    position: relative;
    /* cho phép con dùng absolute */
}

/* Ảnh tô bún heo quay */
.noodle-column .rice-noodles-porks {
    position: absolute;
    left: 75%;
    bottom: -20px;
    transform: translateX(-50%);
    z-index: 3;
}


/* Banner ảnh xưởng */
.factory-banner {
    position: relative;
    overflow: hidden;
    background-color: transparent !important;
}

/* three js */
.three-wrap:not(:has(#three-packaging)) {
    top: 0;
    left: 0;
    overflow: hidden;
    background: transparent;
}

.three-wrap:has(#three-packaging) {
    height: 650px;
}

.parallax-wrap img {
    position: absolute;
    z-index: 0;
    object-fit: cover;
}

.parallax-wrap .chiec-la1 {
    filter: blur(2px);
    width: 66px;
    height: 78px;
    top: calc(50% - 120px);
    left: calc(50% + 500px);
}

.parallax-wrap .chiec-la2 {
    width: 55px;
    height: 64px;
    top: calc(50% + 100px);
    left: calc(50% + 700px);
}

.parallax-wrap .chiec-la4 {
    width: 80px;
    height: 49px;
    top: calc(50% + 0px);
    left: calc(50% - 100px);
}

.parallax-wrap .hanh-tim2 {
    width: 56px;
    height: 50px;
    top: calc(50% + 280px);
    left: calc(50% + 400px);
}

.parallax-wrap .hanh-tim3 {
    width: 84px;
    height: 89px;
    top: calc(50% + 150px);
    left: calc(50% - 200px);
}

.parallax-wrap .ot-do2 {
    width: 54px;
    height: 50px;
    top: calc(50% + 250px);
    left: calc(50% - 20px);
}

.parallax-wrap .ot-xanh {
    width: 48px;
    height: 50px;
    top: calc(50% + 0px);
    left: calc(50% + 600px);
}

.parallax-wrap .rau-can {
    filter: blur(3px);
    width: 101px;
    height: 87px;
    top: calc(50% + 100px);
    left: calc(50% - 100px);
}

/* CSS only version */
.home-spices img {
    position: absolute;
    z-index: 0;
    object-fit: cover;
    animation: float 3s ease-in-out infinite;
}

.home-spices .img .img-inner {
    position: unset;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}
.home-spices .chiec-la1 img {
    filter: blur(2px);
    animation-delay: 0.9s;
}

.home-spices .chiec-la2 img {
    animation-delay: 0.8s;
}

.home-spices .chiec-la4 img {
    animation-delay: 0.7s;
}

.home-spices .hanh-tim2 img {
    animation-delay: 0.6s;
}

.home-spices .hanh-tim3 img {
    animation-delay: 0.5s;
}

.home-spices .ot-do img {
    animation-delay: 0.4s;
}

.home-spices .ot-xanh img {
    animation-delay: 0.3s;
}

.home-spices .rau-can img {
    filter: blur(3px);
    animation-delay: 0.2s;
}

.home-spices .package-1 img {
    animation-delay: 0.1s;
}

.home-spices .package-2 img {
    animation-delay: 0s;
}

.noodles-wrap svg {
    position: absolute;
    top: 400px;
    left: calc(50% - 500px);
    width: 1000px;
    height: 1740px;
}

.model-1 {
    width: 220px !important;
    top: 120px;
    left: 20px;
}

.model-2 {
    width: 360px !important;
    top: 80px;
    right: -80px;
}

/* Container must have position for pseudo-elements to work */
.three-wrap .target-cart {
    position: absolute;
    bottom: -750px;
    left: calc(50% - 600px);
    width: 449px;
    height: 388px;
    pointer-events: none;
    /* Allow interaction with canvas below */
}

/* Layer 1: Image BELOW canvas (cart-1.webp) */
.three-wrap .target-cart:first-child {
    z-index: 0;
}

.three-wrap .target-cart:first-child::before {
    content: '';
    position: absolute;
    z-index: 0;
    bottom: -20px;
    left: calc(50% - 200px);
    width: 450px;
    height: 80px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(to right, var(--fs-color-secondary), var(--fs-color-primary)) !important;
}

/* Layer 3: Image ABOVE canvas (cart-0.webp) */
.three-wrap .target-cart:last-child {
    z-index: 2;
}

/* product loop */
.product-loop .product-image img {
    object-fit: contain;
}

.product-loop .image-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.product-loop .image-bg + img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

/* product single */
.product-single .product_hero .fill {
    height: 100vh;
    position: fixed;
    z-index: 0;
    pointer-events: none;
}

.product-single .section:not(.difference) .section-content>.row {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 36px;
    padding: 36px;
}

.product-single .section:not(.difference) {
    margin-top: 20px !important;
    padding: 0px !important;
}

.product-single .meta {
    position: relative;
    overflow: hidden;
}

.product-single .meta .col-inner::before {
    content: '';
    /* Bắt buộc phải có */
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 100px;
    z-index: 3;
    opacity: 0.25;
    mix-blend-mode: screen;
}

.product-single .meta .col-inner {
    position: relative;
    /* Đặt nội dung lên trên mask */
    z-index: 2;
    color: #3c3c3c;
    padding: 20px;
    border-radius: 16px;
    padding: 20px;
}

.product-single .meta.hide-for-small>.col-inner {
    margin: 10px !important;
}

.product-single .meta.price .col-inner::before {
    background: url(/files/themes/child/price.svg) no-repeat 50% 50%;
    background-position: 100% 80%;
    background-size: 75% 75%;
}

.product-single .meta.packaging_specs .col-inner::before {
    background: url(/files/themes/child/packaging.svg) no-repeat 50% 50%;
    background-position: 100% 80%;
    background-size: 75% 75%;
}

.product-single .meta.weight .col-inner::before {
    background: url(/files/themes/child/weight.svg) no-repeat 50% 50%;
    background-position: 100% 80%;
    background-size: 75% 75%;
}

.product-single .meta.expired .col-inner::before {
    background: url(/files/themes/child/expired.svg) no-repeat 50% 50%;
    background-position: 100% 80%;
    background-size: 75% 75%;
}

.product-single .meta.price>.col-inner {
    background: #f7b20f;
}

.product-single .meta.packaging_specs>.col-inner {
    background: #fdbec7;
}

.product-single .meta.weight>.col-inner {
    background: #d1e971;
}

.product-single .meta.expired>.col-inner {
    background: #52a233;
}

.product-single .image-center-decor {
    width: 70%;
    height: 80%;
    overflow: visible;
    transform: translateX(-50%);
}

.product-single .image-center-decor + img {
    position: absolute;
    bottom: 20%;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    object-fit: contain;
}

/* footer */
.social-animation a {
    position: relative;
    padding: 5px 9px 2px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px;
    border-radius: 50%;
    background: #fff;

    &:hover {
        background: var(--fs-color-primary);
        color: #fff;
    }
}

.social-animation a:hover .icon-box-img svg,
.social-animation a:hover .icon-box-img path {
    fill: #fff !important;
}

.social-animation .icon-box .icon-box-img {
    margin: 0 !important;
}

.social-animation a::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--fs-color-primary);
    animation: 1.5s linear 0s normal none infinite impulse;
}

#footer .ux-menu a:hover {
    color: var(--fs-color-primary) !important;
}

#footer .ux-menu a::before {
    content: '•';
    margin-right: 10px;
}

@keyframes impulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    75% {
        transform: scale(1.2);
        opacity: 0.25;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes slide {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 40px 0;
    }
}

/* Custom CSS Tablet */
@media (max-width: 849px) {}

/* Custom CSS Mobile */
@media (max-width: 549px) {
    .header-main .header-inner {
        margin-top: 0px;
        background: rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(10px);
        border-radius: 0px;
    }

    .parallax-wrap .chiec-la1 {
        filter: blur(2px);
        width: 66px;
        height: 78px;
        top: calc(50% - 80px);
        left: calc(50% + 90px);
    }

    .parallax-wrap .chiec-la2 {
        width: 55px;
        height: 64px;
        top: calc(50% + 0px);
        left: calc(50% + 0px);
    }

    .parallax-wrap .chiec-la4 {
        width: 80px;
        height: 49px;
        top: calc(50% - 180px);
        left: calc(50% - 0px);
    }

    .parallax-wrap .hanh-tim2 {
        width: 56px;
        height: 50px;
        top: calc(50% - 300px);
        left: calc(50% + 130px);
    }

    .parallax-wrap .hanh-tim3 {
        width: 84px;
        height: 89px;
        top: calc(50% - 200px);
        left: calc(50% - 240px);
    }

    .parallax-wrap .ot-do2 {
        width: 54px;
        height: 50px;
        top: calc(50% + 280px);
        left: calc(50% + 70px);
    }

    .parallax-wrap .ot-xanh {
        width: 48px;
        height: 50px;
        top: calc(50% - 50px);
        left: calc(50% + 180px);
    }

    .parallax-wrap .rau-can {
        filter: blur(3px);
        width: 101px;
        height: 87px;
        top: calc(50% + 0px);
        left: calc(50% - 180px);
    }

    /* custom css mobile */

    /* custom css content */
    .hu-tieu1::before {
        content: '';
        position: absolute;
        z-index: 0;
        bottom: 45px;
        left: 30px;
        height: 420px;
        width: 220px;
        background: linear-gradient(to right, var(--fs-color-primary), var(--fs-color-secondary)) !important;
        border-radius: 0px 120px 0px 50px;
    }

    .hu-tieu1::after {
        content: '';
        position: absolute;
        z-index: 1;
        bottom: 370px;
        left: 45px;
        width: 80px;
        height: 80px;
        background: url(/files/uploads/icon-bw.svg) no-repeat center center;
        background-size: cover;
    }

    .hu-tieu1 .img-inner::before {
        content: '';
        position: absolute;
        z-index: 0;
        bottom: -30px;
        left: 30px;
        width: 40%;
        height: 40%;
        background: url(/files/uploads/hanh-tim1.webp) no-repeat center center;
        background-size: cover;
    }

    .hu-tieu1 .img-inner::after {
        content: '';
        position: absolute;
        z-index: 0;
        bottom: -10px;
        right: 30px;
        width: 40%;
        height: 40%;
        background: url(/files/uploads/chiec-la3.webp) no-repeat center center;
        background-size: cover;
    }

    .hu-tieu2::before {
        content: '';
        position: absolute;
        z-index: -1;
        bottom: 40px;
        left: 30px;
        height: 280px;
        width: 520px;
        background: linear-gradient(to right, var(--fs-color-secondary), var(--fs-color-primary)) !important;
        border-radius: 120px 0px 50px 0px;
    }

    .noodles-wrap svg {
        position: absolute;
        top: 30vh;
        left: 0;
        width: 150vw;
        height: 200vh;
    }

    /* Container must have position for pseudo-elements to work */
    .three-wrap .target-cart {
        bottom: -850px;
        left: calc(50% - 200px);
        width: 360px;
        height: 280px;
    }

    .three-wrap .target-cart:first-child::before {
        bottom: -60px;
        left: calc(50% - 155px);
        width: 350px;
        height: 80px;
        background: linear-gradient(to right, var(--fs-color-secondary), var(--fs-color-primary)) !important;
    }
}