:root {
    --primary-color: #0d2c54; /* Biru korporat yang dalam */
    --secondary-color: #0d2c54; /* Merah aksen yang kuat */
    --secondary-color-light: #d0000e; /* Merah aksen yang lebih terang */
    --text-color: #333333;
    --text-color-light: #5f5f5f;
    --background-color: #f9fafb;
    --card-background: #ffffff;
    --font-family: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.main-header {
    background: var(--card-background);
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.header-nav-left { display: flex; align-items: center; gap: 15px; } /* Mengurangi gap untuk mobile */
.nav-link { color: var(--text-color-light); text-decoration: none; font-weight: 600; font-size: 0.85rem; display: flex; align-items: center; gap: 5px; transition: color 0.3s ease; } /* Ukuran font lebih kecil untuk mobile */
.nav-link:hover { color: var(--primary-color); }
.nav-link .fas { font-size: 1rem; }
.search-icon { font-size: 1.1rem; }
.basket-link { display: none; } /* Sembunyikan teks "BASKET" di mobile, hanya ikon jika ada */
.emmi-group-logo { height: 40px; width: auto; }
.main-footer { background: var(--primary-color); color: white; text-align: center; padding: 25px 0; margin-top: 40px; }

/* --- Hero Section & Flavor Gallery --- */
#product-hero { text-align: center; padding: 30px 0; }
.product-image { width: 100%; max-width: 350px; height: auto; border-radius: 12px; margin: 0 auto 20px auto; transition: opacity 0.4s ease; }
.product-title { font-size: 2rem; font-weight: 700; color: var(--primary-color); line-height: 1.2; }
.product-variant { font-size: 1.3rem; font-weight: 400; color: var(--secondary-color); }
.flavor-gallery { display: flex; justify-content: center; gap: 15px; margin-top: 30px; overflow-x: auto; padding: 0 10px; scrollbar-width: none; -ms-overflow-style: none; /* IE and Edge */ }
.flavor-gallery::-webkit-scrollbar { display: none; } /* Hide scrollbar for Chrome, Safari and Opera */
.flavor-item { flex: 0 0 auto; cursor: pointer; text-align: center; border: 2px solid transparent; padding: 8px; border-radius: 10px; transition: all 0.3s ease; }
.flavor-item:hover { transform: translateY(-3px); border-color: #ddd; }
.flavor-item.active { border-color: var(--secondary-color); background-color: #fef0f1; }
.flavor-item img { width: 50px; height: 50px; object-fit: contain; }
.flavor-item span { display: block; margin-top: 5px; font-weight: 600; font-size: 0.8rem; color: var(--text-color); }

/* --- General Content Styling --- */
.content-section { padding: 40px 0; border-bottom: 1px solid #e5e7eb; }
.content-section:last-of-type { border-bottom: none; }
h2 { font-size: 1.6rem; font-weight: 700; color: var(--primary-color); text-align: center; margin-bottom: 10px; }
.section-subtitle { text-align: center; max-width: 600px; margin: 0 auto 30px auto; color: var(--text-color-light); font-size: 0.95rem; }
.details-subsection { margin-bottom: 30px; }
h3 { font-size: 1.2rem; font-weight: 600; color: var(--primary-color); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid var(--secondary-color); display: inline-block; }

/* --- Provenance & Map --- */
.provenance-grid { display: flex; flex-direction: column; gap: 20px; }
.provenance-item { background: var(--card-background); padding: 15px; border-radius: 8px; border-left: 3px solid var(--primary-color); display: flex; flex-direction: column; }
.provenance-item h4 { margin-bottom: 5px; color: var(--primary-color); font-size: 1rem; }
.provenance-item p { font-size: 0.9rem; }
#map { height: 150px; width: 100%; border-radius: 8px; margin-top: 10px; z-index: 1; flex-grow: 1; }

/* --- Detail Grid & Tabel Nutrisi --- */
.details-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.details-subsection p { margin-bottom: 10px; font-size: 0.9rem; }
.nutrition-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.9rem; }
.nutrition-table td { padding: 10px 6px; border-bottom: 1px solid #e5e7eb; }
.nutrition-table td:last-child { text-align: right; font-weight: 600; }
.nutrition-table .indent-item { padding-left: 20px; color: var(--text-color-light); }
/* PENAMBAHAN: Transisi untuk perubahan konten dinamis */
#product-details .details-grid, #serving-suggestion .serving-suggestion-content {
    transition: opacity 0.4s ease-in-out;
}

/* --- PENAMBAHAN BARU: Styling untuk Saran Penyajian --- */
#serving-suggestion {
    background-color: var(--card-background); /* Latar belakang berbeda untuk menonjol */
}
.serving-suggestion-content {
    display: flex;
    flex-direction: column; /* Default untuk mobile */
    align-items: center;
    gap: 20px;
    padding: 20px;
}
.serving-suggestion-content img {
    width: 80%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.serving-text {
    text-align: center; /* Default untuk mobile */
}
.serving-text h2 {
    text-align: center; /* Override default h2 style */
    font-size: 1.4rem;
    margin-bottom: 15px;
}
.serving-text p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cta-button-secondary {
    display: inline-block;
    padding: 10px 15px;
    background-color: var(--secondary-color-light);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button-secondary:hover {
    background-color: #010023;
}

/* --- Product Slider --- */
.product-slider-container { display: flex; gap: 15px; overflow-x: auto; padding: 10px 5px 20px 5px; scrollbar-width: thin; scrollbar-color: #ccc var(--background-color); }
.product-slider-container::-webkit-scrollbar { height: 6px; }
.product-slider-container::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.product-slider-container::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
.product-slider-container::-webkit-scrollbar-thumb:hover { background: #aaa; }
.product-card { flex: 0 0 200px; background: var(--card-background); border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.07); text-align: center; padding: 15px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.product-card img { width: 100%; height: 120px; object-fit: contain; margin-bottom: 10px; }
.product-card h4 { color: var(--primary-color); font-size: 0.9rem; margin-bottom: 5px; }
.product-card p { font-size: 0.8rem; color: var(--text-color-light); line-height: 1.4; margin-bottom: 15px; min-height: 50px; }
.cta-button-small { display: inline-block; padding: 8px 15px; background-color: var(--primary-color); color: white; text-decoration: none; border-radius: 8px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: background-color 0.3s ease; }
.cta-button-small:hover { background-color: #1a4a8a; }

/* --- Galeri #EmmiMoment --- */
#emmi-moment-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; }
.moment-card { background: var(--card-background); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.07); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.moment-card:hover { transform: translateY(-5px); box-shadow: 0 4px 15px rgba(0,0,0,0.12); }
.moment-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; display: block; background-color: #f0f0f0; }
.moment-caption { padding: 15px; flex-grow: 1; }
.moment-caption h4 { color: var(--primary-color); font-size: 0.9rem; margin: 0 0 5px 0; padding-bottom: 0; border-bottom: none; display: block; }
.moment-caption p { font-size: 0.85rem; color: var(--text-color-light); line-height: 1.5; }

/* --- Animasi Scroll --- */
.fade-in-element { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in-element.visible { opacity: 1; transform: translateY(0); }

/* --- CTA Campaign --- */
.cta-campaign-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 40px;
    padding: 30px 20px;
    background-color: #f0f4fa;
    border-radius: 12px;
    border: 2px dashed var(--primary-color);
}

.campaign-visual {
    width: 80%;
    max-width: 300px;
    margin-bottom: 20px;
}

.campaign-visual img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.campaign-text h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 0 0 10px 0;
    border-bottom: none;
    display: block;
}

.campaign-text p {
    font-size: 0.95rem;
    color: var(--text-color-light);
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button-instagram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(25, 0, 72, 0.3);
}

.cta-button-instagram:hover {
    background-color: #0e0432;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(255, 255, 255);
}

.cta-button-instagram .fab {
    font-size: 1.1rem;
}

/* --- Desktop Styles --- */
@media (min-width: 768px) {
    .container { padding: 0 40px; }
    h2 { font-size: 1.8rem; }
    .section-subtitle { font-size: 1.1rem; }
    .header-nav-left { gap: 25px; }
    .nav-link { font-size: 0.9rem; gap: 6px; }
    .nav-link span { display: inline; }
    .search-icon { font-size: 1.2rem; }
    .basket-link { display: inline; }
    .emmi-group-logo { height: 50px; }
    .provenance-grid { flex-direction: row; align-items: stretch; gap: 30px; }
    .provenance-item { padding: 20px; border-left-width: 4px; }
    .provenance-item h4 { font-size: 1.1rem; }
    .provenance-item p { font-size: 1rem; }
    #map { height: 200px; margin-top: 15px; }
    .details-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .details-subsection h3 { font-size: 1.3rem; margin-bottom: 15px; padding-bottom: 8px; }
    .details-subsection p { font-size: 1rem; margin-bottom: 15px; }
    .nutrition-table { font-size: 1rem; }
    .nutrition-table td { padding: 12px 8px; }

    /* PENAMBAHAN: Layout desktop untuk saran penyajian */
    #serving-suggestion .serving-suggestion-content {
        flex-direction: row;
        gap: 40px;
        padding: 40px;
    }
    #serving-suggestion .serving-suggestion-content img {
        width: 40%;
        max-width: none;
    }
    #serving-suggestion .serving-text {
        width: 60%;
        text-align: left;
    }
    #serving-suggestion .serving-text h2 {
        text-align: left;
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    #serving-suggestion .serving-text p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .cta-button-secondary {
        font-size: 0.9rem;
        padding: 12px 20px;
    }

    .product-slider-container { gap: 20px; padding: 10px 20px 20px 20px; }
    .product-card { flex: 0 0 240px; padding: 20px; }
    .product-card img { height: 150px; margin-bottom: 15px; }
    .product-card h4 { font-size: 1.1rem; margin-bottom: 8px; }
    .product-card p { font-size: 0.9rem; margin-bottom: 20px; min-height: 60px; }
    .cta-button-small { font-size: 0.9rem; padding: 10px 20px; }

    #emmi-moment-gallery { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
    .moment-card { box-shadow: 0 4px 15px rgba(0,0,0,0.07); }
    .moment-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
    .moment-caption h4 { font-size: 1.1rem; margin-bottom: 8px; }
    .moment-caption p { font-size: 0.95rem; }

    .cta-campaign-container {
        flex-direction: row;
        justify-content: space-around;
        text-align: left;
        padding: 40px;
    }

    .campaign-visual {
        width: 40%;
        max-width: 400px;
        margin-bottom: 0;
    }

    .campaign-text {
        width: 55%;
    }

    .campaign-text h3 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .campaign-text p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    .cta-button-instagram {
        font-size: 1.1rem;
        padding: 15px 30px;
    }
}

/* Pastikan .moment-card memiliki position: relative agar label bisa diposisikan di dalamnya */
.moment-card {
    position: relative;
    /* ...gaya yang sudah ada sebelumnya... */
}

/* Gaya untuk label pemenang */
.winner-label {
    position: absolute;
    top: 12px;
    left: -35px;
    padding: 5px 35px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    transform: rotate(-45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 2; /* Memastikan label berada di atas gambar */
}

/* Warna spesifik untuk setiap peringkat */
.winner-label.winner-1st {
    background-color: #ffd700; /* Emas */
}

.winner-label.winner-2nd {
    background-color: #c0c0c0; /* Perak */
}

.winner-label.winner-3rd {
    background-color: #cd7f32; /* Perunggu */
    color: white; /* Teks putih agar lebih kontras di atas warna perunggu */
}