/********** Template CSS **********/
:root {
    --primary: #161521;
    --secondary: #fb9f38;
    --light: #f5f8f2;
    --dark: #252c30;
}

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

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.fw-medium {
    font-weight: 600;
}

.fw-bold {
    font-weight: 700;
}

.fw-black {
    font-weight: 900;
}

/*** Button ***/
.btn {
    transition: 0.5s;
    font-weight: 500;
    font-size: 2rem;
    padding: 0.5rem 4rem 0.5rem 4rem;
    letter-spacing: 0.1rem;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--dark);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

@media (max-width: 425px) {
    .menu-1 {
        margin-top: 1.5rem;
    }

    .order .btn {
        font-size: 1rem;
        padding: 0.5rem 1.5rem 0.5rem 1.5rem;
        letter-spacing: 0.1rem;
    }
}

.menu img {
    width: 100%;
}

/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    z-index: 1;
}

@media (max-width: 425px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 98px;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        /* height: 100%; */
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(
            rgba(136, 180, 78, 0.7),
            rgba(136, 180, 78, 0.7)
        ),
        url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}

/*** Section Title ***/
.section-title {
    position: relative;
    /* margin-bottom: 3rem;
    padding-bottom: 2rem; */
}

/*** Gallery ***/
.product {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url(../img/bg-gallery1.jpg) left bottom no-repeat;
    background-size: cover;
}

.product-carousel .owl-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.product-carousel .product-item {
    position: relative; /* Membuat posisi relatif untuk mengatur masking dan gambar */
    width: 100%; /* Lebar masking */
    height: 200px; /* Tinggi masking */
    overflow: hidden; /* Mengatur overflow menjadi hidden untuk menciptakan efek masking */
}

.product-carousel .product-item img {
    width: 100%; /* Gambar tetap berukuran penuh di dalam masking */
    height: auto; /* Mempertahankan aspek rasio gambar */
    position: absolute; /* Mengatur posisi absolut untuk gambar di dalam masking */
    /* top: 50%; */
    left: 50%; /* Posisi horizontal di tengah masking */
    transform: translate(
        -50%,
        -50%
    ); /* Membuat gambar tepat di tengah masking */
    object-fit: cover; /* Memastikan gambar di dalam tetap memenuhi dengan object-fit */
    z-index: -1; /* Mengatur gambar di belakang konten lain di dalam .product-item */
}

.product-carousel .owl-nav .owl-prev,
.product-carousel .owl-nav .owl-next {
    margin: 0 10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    background: rgb(255, 255, 255);
    border-radius: 55px;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.15);
    font-size: 12px;
    transition: 0.5s;
}

.product-carousel .owl-nav .owl-prev:hover,
.product-carousel .owl-nav .owl-next:hover {
    background: #ffffff;
    color: var(--primary);
}

/* SplashScreen */
#splash {
    position: absolute;
    top: 0;
    left: 0;
    background: #ffffff !important;
    height: 100vh;
    width: 100%;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 1s;
}

#splash img {
    width: 0px;
    animation: resizeImage 1s forwards; /* 2s adalah durasi animasi */
}

@keyframes resizeImage {
    0% {
        width: 0px;
    }
    100% {
        width: 200px;
    }
}

#splash.fade {
    opacity: 0;
}

.marquee-container {
    background-color: white;
    height: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.marquee {
    white-space: nowrap;
    animation: marquee 15s linear infinite;
    display: inline-block;
    vertical-align: middle;
    font-size: 11px;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}


/* Promo */
.promo {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6)),
        url(../img/bg-gallery.jpg) left bottom no-repeat;
    background-size: cover;
}

.promo-carousel .owl-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.promo-carousel .promo-item {
    position: relative; /* Membuat posisi relatif untuk mengatur masking dan gambar */
    width: 100%; /* Lebar masking */
    height: 38rem; /* Tinggi masking */
    overflow: hidden; /* Mengatur overflow menjadi hidden untuk menciptakan efek masking */
}

.promo-carousel .promo-item img {
    width: 100%; /* Gambar tetap berukuran penuh di dalam masking */
    height: auto; /* Mempertahankan aspek rasio gambar */
    position: absolute; /* Mengatur posisi absolut untuk gambar di dalam masking */
    /* top: 50%; */
    left: 50%; /* Posisi horizontal di tengah masking */
    transform: translate(
        -50%,
        -50%
    ); /* Membuat gambar tepat di tengah masking */
    object-fit: cover; /* Memastikan gambar di dalam tetap memenuhi dengan object-fit */
    z-index: -1; /* Mengatur gambar di belakang konten lain di dalam .product-item */
}

.promo-carousel .owl-nav .owl-prev,
.promo-carousel .owl-nav .owl-next {
    margin: 0 10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    background: rgb(255, 255, 255);
    border-radius: 55px;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.15);
    font-size: 12px;
    transition: 0.5s;
}

.promo-carousel .owl-nav .owl-prev:hover,
.promo-carousel .owl-nav .owl-next:hover {
    background: #ffffff;
    color: var(--primary);
}
