@font-face {
    font-family: "Gotham";
    src: url("/fonts/GOTHAM-MEDIUM.TTF") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Gotham";
    src: url("/fonts/GOTHAM-BOLD.TTF") format("truetype");
    font-weight: bold;
    font-style: normal;
}

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

main.container > #heroCarousel {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50.5vw;
    margin-right: -50vw;
}

.carousel-img {
    height: 130vh; /* full screen height */
    object-fit: cover;
    object-position: center;
}

/* Tombol carousel warna kuning */
.custom-carousel-btn .carousel-control-prev-icon,
.custom-carousel-btn .carousel-control-next-icon {
    background-color: #ffd700;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-size: 50% 50%;
    background-repeat: no-repeat;
    background-position: center;
}

.custom-carousel-btn {
    opacity: 1;
}

.homepage-intro {
    text-align: center;
    padding: 2rem 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.homepage-intro h1 {
    font-size: 2.5rem;
    font-family: "Gotham", sans-serif;
    font-weight: bold;
    margin-bottom: 1rem;
}

.homepage-intro p {
    text-align: justify;
    font-size: 1.2rem;
    font-family: "Gotham", sans-serif;
    color: #555;
}

.menu-slide-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.menu-card {
    flex: 0 0 auto;
    width: 30%;
    text-align: center;
    scroll-snap-align: center;
}

.menu-img {
    width: 100%;
    border-radius: 12px;
}

.product-label {
    margin-top: 10px;
    font-weight: bold;
    font-size: 1rem;
}
.menu-slide-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.menu-card {
    flex: 0 0 auto;
    width: 30%;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    flex-shrink: 0;
    min-width: 150px;
    max-width: 200px;
    scroll-snap-align: center;
}

.menu-title {
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: #dc2525;
    margin-bottom: 40px;
}

.menu-img {
    width: 100%;
    border-radius: 12px;
    height: auto;
    object-fit: cover;
}

.product-label {
    text-align: center;
    font-size: 16px;
    margin-top: 8px;
    height: 24px; /* atau height: 24px jika kamu ingin benar-benar fix */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2525;
}

.poster-carousel {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.poster-item {
    scroll-snap-align: center;
    width: 80vw;
    max-width: 300px;
    flex: 0 0 auto;
    border-radius: 12px;
    overflow: hidden;
}

.poster-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Desktop Grid */
.poster-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.poster-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Responsive: di layar kecil, font mengecil */
@media (max-width: 768px) {
    .homepage-intro h1 {
        font-size: 1.8rem;
    }

    .homepage-intro p {
        font-size: 1rem;
    }

    .menu-slide-wrapper {
        gap: 2px; /* kurangi jarak antar item */
        padding: 5px 0;
    }

    .menu-card {
        width: 28vw; /* pakai vw biar lebih responsif */
        min-width: unset;
        max-width: unset;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .menu-img {
        width: 100%;
        height: auto;
    }

    .product-label {
        font-size: 0.75rem;
    }

    .poster-grid {
        display: none !important;
    }

    .poster-carousel {
        display: flex !important;
    }

    .carousel-img {
        height: 40vh;
    }
}
