/*
* Campaign TH
******************************************************************************/

h1, .h1 {
    font-size: calc(1.8rem + 0.5vw);
}

*.product-name {
    font-size: 1.4rem !important;
}

*.h-quote {
    font-size: calc(1.8rem + 0.5vw);
    font-weight: 500;
    color: #382019 !important;
}

*.t-quote {
    font-size: 1.375rem;
    font-weight: 500;
    color: #382019 !important;
}

#h3-s-p {
    font-size: 1.625rem !important;
    font-weight: 500;
}

*.h4-s-p {
    font-size: 1.625rem !important;
    font-weight: 450;
}

.f-400 {
    font-weight: 400 !important;
}

.f-500 {
    font-weight: 500 !important;
}

body {
    font-family: 'Kanit', sans-serif;
    /* font-family: 'PSL Kittithada Pro'; */
    color: #382019 !important;
}

h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
    color: #382019 !important;
}

.text-secondary {
    color: #AB8D38 !important;
}

/* nav */
.nav-logo-center {
    width: 80px;
    position: absolute;
    left: 50%;
    top: 3px;
    transform: translate(-50%);
}

.nav-link {
    color: #382019 !important;
}

.nav-link:hover {
    color: #0033A1;
    box-shadow: 0 -2px 0 #DDBD61 inset;
}

.nav-offcanvas-logo-center {
    width: 80px;
    position: absolute;
    top: 48px;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* / nav */


.top-header-img {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 150px;
}

.top-header-product {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    /* height: 500px; */
}

.top-header-product h1 {
    padding-top: 4rem;
}

.bg-primary {
    background-color: #382019 !important;
}

.bg-primary-dark {
    background-color: #1f120e !important;
}

.bg-secondary {
    background-color: #E3DDCA !important;
}

.bg-gradient-gold {
    background: linear-gradient(90deg, #B38D2B 0%, #FFF7B7 33.18%, #D2AC47 56.25%, #EBC766 79.28%, #DAB145 100%) !important;
}

.poster-img {
    width: 100%;
    object-fit: cover;
    max-height: 400px;
    /* transition: transform 1s; */
}

.poster-img:hover {
    /* transform: scale(1.05); */
}

.vbox-title {
    font-family: 'Cantarell', 'Kanit', sans-serif;
    font-size: 20px !important;
    font-weight: 500;
    color: #E3DDCA !important;
    text-transform: uppercase;
}

.vbox-grab .vbox-child img {
    max-height: 90vh !important;
}


/* detail */
/* Mobile */
@media only screen and (max-width: 991px) {
    .contact-top-space {
        height: 40px;
    }

    .pd-detail-top-space {
        top: 80px;
    }

    .pd-detail-col {
        padding: 30px 10px 10px 10px;
    }

    .swiper {
        width: 100%;
        height: 200px !important;
    }

    .home-text-name {
        position: absolute;
        text-align: center;
        top: 16vw;
        font-size: 1.7rem;
        padding: 0 3rem;
        font-weight: 500;
        width: 100%;

        text-decoration: underline #BE9F56 2px;
        text-underline-offset: 10px
    }

}

/* Desktop */
@media only screen and (min-width: 992px) {
    .contact-top-space {
        height: 110px;
    }

    .pd-detail-top-space {
        top: 68px;
    }

    .pd-detail-col {
        padding: 30px 40px 10px 40px;
    }

    .swiper {
        width: 100%;
        height: 500px !important;
    }
}

/* / detail */


/* card -------------- */
.btn-arrow-center-bottom {
    position: absolute;
    bottom: 1rem;
}

.btn-arrow-center-bottom p {
    font-size: 1.2rem;
    line-height: 1.1rem;
    margin: 0 0;
}

.btn-arrow-center-bottom img {
    padding: 0.6rem 0 0 0;
    width: 30px;
}

.btn-readmore {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    align-items: center; /* Vertically center children */
    gap: 0.5rem;         /* Optional: space between span and img */
}

.btn-readmore span {
    padding-right: 1rem;
    /* Remove vertical alignment hacks if any */
}

.btn-readmore img {
    width: 46px;
}

/* card -------------- */

/* botton */
.dropdown-item:hover, .dropdown-item:focus {
    color: #382019;
    background-color: #ddbe6129;
}

/* /botton */


/* content -------------------- */
.hr-line-1 {
    display: flex;
    justify-content: center;
}

.hr-line-1 hr {
    border: 1px solid #BE9F56;
    width: 3rem;
}

.hr-line-3 {
    display: flex;
    justify-content: center;
}

.hr-line-3 hr {
    border: 2px solid #BE9F56;
    width: 3rem;
}

.bg-content-background {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    height: 50vw;
}


.home-text-name {
    position: absolute;
    text-align: center;
    top: 16vw;
    font-size: 1.7rem;
    padding: 0 3rem;
    font-weight: 500;
    width: 100%;

    text-decoration: underline #BE9F56 2px;
    text-underline-offset: 10px
}

.product-intro-box {
    margin: 2rem 0 !important;
}

.top-img-product-name {
    display: inline-block;
    /* background-color: #fff; */
    width: 100% !important;
    background-image: url(../images/bg-brush.png?v=3);
    padding: 3rem 0rem;
    margin: 2.5rem 0 0 0;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
}

.top-img-product-name h1 {
    padding-top: 0rem;
    font-size: 2rem;
    text-shadow: 0px 2px 5px white;
}

/* -------------------------------------------Desktop */
@media only screen and (min-width: 992px) {
    .contact-top-space {
        height: 110px;
    }

    .pd-detail-top-space {
        top: 68px;
    }

    .pd-detail-col {
        padding: 30px 40px 10px 40px;
    }

    /* .swiper {
      width: 100%;
      height: 500px !important;
    } */
    .home-text-name {
        position: absolute;
        text-align: center;
        top: 4vw;
        font-size: 1.7rem;
        padding: 0 3rem;
        font-weight: 500;
        width: 100%;

        text-decoration: underline #BE9F56 2px;
        text-underline-offset: 10px;
    }

    .top-img-product-name {
        display: inline-block;
        /* background-color: #fff; */
        background-image: url(../images/bg-brush.png?v=3);
        padding: 3rem 8rem;
        margin: 41px 0 0 0;
        background-size: contain;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .top-img-product-name h1 {
        padding-top: 0rem;
        font-size: 2.6rem;
        text-shadow: 0px 2px 5px white;
    }


}

/* -------------------------------------------/ Desktop */

.description-product-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #5b3427 !important;
}

.description-product-detail {
    font-size: 1.2rem;
    font-weight: 400;
    color: #5b3427 !important;
}

.mb-p-st{
    position: absolute !important;
    font-size: 2.3rem !important;
}


/* / detail */


/* ---------------------------------Home Text */
/* 576px,992px,1200px */
/* -------------------------------------------SM */
@media only screen and (max-width: 718px) {
    .mb-p-st{
        position: static !important;
        font-size: 1.7rem !important;
    }
    .home-text-name {
        position: absolute;
        text-align: center;
        top: 16vw;
        font-size: 1.7rem;
        padding: 0 0.1rem;
        font-weight: 500;
        width: 100%;

        text-decoration: underline #BE9F56 2px;
        text-underline-offset: 10px
    }

}

/* -------------------------------------------MD */
@media only screen and (min-width: 768px) {


    .home-text-name {
        position: absolute;
        text-align: center;
        top: 4vw;
        font-size: 1.2rem;
        padding: 0 3rem;
        font-weight: 500;
        width: 100%;

        text-decoration: underline #BE9F56 2px;
        text-underline-offset: 10px
    }
}

/* -------------------------------------------LG */
@media only screen and (min-width: 992px) {


    .home-text-name {
        position: absolute;
        text-align: center;
        top: 4vw;
        font-size: 1.7rem;
        padding: 0 1rem;
        font-weight: 500;
        width: 100%;

        text-decoration: underline #BE9F56 2px;
        text-underline-offset: 10px
    }
}

/* / Home Text */


/* card -------------- */
.btn-arrow-center-bottom {
    position: absolute;
    bottom: 1rem;
}

.btn-arrow-center-bottom p {
    font-size: 1.2rem;
    line-height: 1.1rem;
    margin: 0 0;
}

.btn-arrow-center-bottom img {
    padding: 0.6rem 0 0 0;
    width: 30px;
}

.btn-readmore {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
}

.btn-readmore span {
    padding-right: 1rem;
}

.btn-readmore img {
    width: 46px;
}

/* card -------------- */

/* botton */
.dropdown-item:hover, .dropdown-item:focus {
    color: #382019;
    background-color: #ddbe6129;
}

/* /botton */


/* content -------------------- */
.hr-line-1 {
    display: flex;
    justify-content: center;
}

.hr-line-1 hr {
    border: 1px solid #BE9F56;
    width: 3rem;
}

.hr-line-3 {
    display: flex;
    justify-content: center;
}

.hr-line-3 hr {
    border: 2px solid #e4c680;
    width: 3rem;
}

.bg-content-background {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    height: 50vw;
}

.bg-content-background-h-0 {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.bg-content-video {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.bg-footer-recipes {
    background-color: #BE9F56;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left center;
    height: 300px;
}

.ico-product-notif {
    text-align: center;
    /* display: flex; */
    /* justify-content: center; */
    gap: 0.5rem;
}

.ico-product-notif img {
    width: 35px;
}


.hover-zoom-in {
    transition: .2s ease-out;
}

.hover-zoom-in:hover {
    transform: scale(1.02) translateY(0px);
    transition: 0.3s ease-in-out;
}

.card-bgimg-center {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

.card-bgimg-bottom-center {
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: cover;
}

.leaf-gold-left {
    position: absolute;
    width: 18vw;
    /* max-width: 200px; */
    left: -20px;
    top: 20vw;
}


.recipes-card-cover-gradient {
    background: linear-gradient(180deg, rgba(56, 32, 25, 0) 50%, rgba(34, 19, 15, 0.5) 100%);
    border-radius: 0.5rem;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
}

.recipes-card-cover-gradient p {
    color: white;
    font-size: 1rem;
    margin: 0 0 2rem 0;
}

.btn-check:checked + .btn-outline-primary, .btn-check:active + .btn-outline-primary, .btn-outline-primary:active, .btn-outline-primary.active, .btn-outline-primary.dropdown-toggle.show {
    color: #d90000 !important;
    background-color: #ffefef !important;
    border-color: #fff3ef !important;
    outline: 0 !important;
}

.btn-outline-primary:hover {
    color: #382019 !important;
    background-color: #FFF !important;
    border-color: #382019 !important;
}


.list-group-item-action:active {
    color: #5d3427 !important;
    background-color: #be9e57 !important;
}

.list-group-item-action:hover, .list-group-item-action:focus {
    color: #5b3427 !important;
    background-color: #be9e5733 !important;
}

/* / content -------------------- */


/* Footer --------------------*/
.bg-footer-theme {
    background: linear-gradient(95.27deg, #FDF4E6 23.57%, #FFFCF6 99.54%) !important;
}

.bg-footer-graphic {
    background-image: url(../images/footer-graphic.svg);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
}

.footer p {
    font-size: 1rem;
    font-weight: 500;
}

.footer li {
    font-size: 0.7rem;
}

.footer-address p {
    font-size: 0.7rem;
    font-weight: 400;
}

/* animate */
.rotate-90-ccw {
    animation: rotate-90-ccw 8s cubic-bezier(0.250, 0.460, 0.450, 0.940) infinite alternate both;
}

@keyframes rotate-90-ccw {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(-30deg);
    }
}


.splide__slide__container {
    border-right: none !important;
}
/* Default arrow size */
.splide__arrow {
    width: 2.5em;
    height: 2.5em;
}

.splide__arrow svg {
    width: 1.2em;
    height: 1.2em;
}

.hover-zoom-in img {
    transition: transform 0.3s;
}

.hover-zoom-in:hover img {
    transform: scale(1.08);
}

.splide__slide {
    min-width: 0;
    width: 100%;
    height: auto;
}


@media (max-width: 768px) {
    .splide__arrow {
        width: 1.8em;
        height: 1.8em;
    }

    .splide__arrow svg {
        width: 0.8em;
        height: 0.8em;
    }
    .splide__slide__container .img-product {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
/* Add border only on desktop */
@media (min-width: 768px) {
    .border-end-md {
        border-right: 1px solid #dee2e6 !important;
    }
}

.product-name-bottom {
    bottom: 40px;
}

@media (max-width: 768px) {
    .product-name-bottom {
        bottom: 10px;
    }
}

figure.table table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

@media (max-width: 768px) {
    figure.table table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
/* -----------Ck editor ---------*/
.ck-table-resized {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

@media (max-width: 768px) {
    .ck-table-resized {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Ensure long URLs in CKEditor content break properly */
.ck-table-resized a {
    word-break: break-all;
    overflow-wrap: anywhere;
}

.content-body a {
    word-break: break-all;
    overflow-wrap: anywhere;
}