* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Poppins', serif;
}

body {
    background-color: #f1f1f1;
    transition: background-color 0.3s ease;
}   

.container {
    width: 80%;
    margin-inline: auto;
}

@media (max-width:992px) {
    .container {
        width: 90%;
    }
}

/* =======NAVBAR======= */

.navbar{
    padding: 20px 0 20px 0;
}

.navbar-box{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-box .menu{
    display: flex;
    gap: 40px;
}

.navbar-box .menu li{
    list-style-type: none;
}

.navbar-box .menu li a{
    text-decoration: none;
    color: black;
    font-size: 18px;
}

.navbar-box .menu li a:hover{
    border-bottom: 3px solid rebeccapurple;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.navbar-box .hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.navbar-box .hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: black;
    position: absolute;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.navbar-box .hamburger span:nth-child(1) { top: 0; }
.navbar-box .hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.navbar-box .hamburger span:nth-child(3) { bottom: 0; }

/* Animasi Hamburger menjadi X */
.navbar-box .hamburger.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.navbar-box .hamburger.active span:nth-child(2) {
    opacity: 0;
}
.navbar-box .hamburger.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

@media (max-width:768px){
    .navbar-box .hamburger{
        display: block;
    }

    .navbar-box .menu{
        position: absolute;
        top: -100%;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: column;
        text-align: center;
        background-color: rebeccapurple;
        width: 100%;
        padding: 40px 0 40px 0;
        transition: all .2s ease-in-out;
        opacity: 0;
        z-index: 1000; /* Agar menu menutupi konten hero saat dibuka */
    }

    .navbar-box .menu.menu-active{
        top: 100px;
        opacity: 1;
    }

    .navbar-box .menu li a{
        color: white;
        font-size: 20px;
        text-decoration: underline;
    }
}
/* =======END NAVBAR======= */

/* =======HERO======= */
.hero{
    padding-top: 60px;
}

.hero-box{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.hero-box h1{
    font-size: 54px;
    line-height: 1.5;
    margin-bottom: 10px;
    color: rebeccapurple;
}

.hero-box p{
    line-height: 2;
    margin-bottom: 30px;
    transition: opacity 1s ease-in-out; /* Efek fade halus untuk teks */
}

.hero-box a{
    text-decoration: none;
    background-color: rebeccapurple;
    color: white;
    padding: 10px 20px 10px 20px;
    border-radius: 5px;
    display: inline-block;
    animation: pulse 2s infinite;
}

/* Container Tombol Hero agar sejajar */
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Style Khusus Tombol Shopee di Hero */
.hero-box a.btn-shopee {
    background-color: #EE4D2D; /* Warna Oranye Shopee */
    animation: none; /* Matikan animasi pulse agar tidak terlalu ramai */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-box a.btn-shopee:hover {
    background-color: #d03e1f;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(238, 77, 45, 0.4);
}

.hero-box img{
    width: 100%;
    height: 100%;
    border-radius: 30px;
    object-fit: cover;
    transition: opacity 1s ease-in-out, transform 0.2s ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 51, 153, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(102, 51, 153, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 51, 153, 0);
    }
}

@media (max-width:768px){
    .hero-box{
        grid-template-columns: 1fr;
        text-align: center;
        gap: 70px;
    }
    .hero-buttons {
        justify-content: center; /* Tengahkan tombol di mobile */
    }

    .hero-box h1 {
        font-size: 42px; /* Perkecil ukuran font judul di mobile */
    }
}

/* ======= Hero Image Enhancements ======= */
.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

/* Animasi Blob di Belakang Gambar */
.hero-blob {
    position: absolute;
    width: 90%;
    height: 90%;
    background-color: rgba(102, 51, 153, 0.15); /* Warna ungu transparan */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: -1;
    animation: blob-anim 6s ease-in-out infinite alternate;
    transition: transform 0.2s ease-out;
}

@keyframes blob-anim {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: scale(1) rotate(0deg); }
    100% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; transform: scale(1.05) rotate(5deg); }
}

/* Badge Melayang */
.hero-badge {
    position: absolute;
    bottom: 30px;
    right: 20px;
    background: white;
    padding: 12px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float-badge 3s ease-in-out infinite;
    z-index: 2;
    transition: transform 0.2s ease-out;
}

.hero-badge i {
    font-size: 28px;
    color: #ff5722; /* Warna oranye api */
}

.hero-badge .badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.hero-badge span {
    font-weight: bold;
    font-size: 15px;
    color: #333;
}

.hero-badge small {
    font-size: 12px;
    color: #777;
}

@keyframes float-badge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
/* =======END HERO======= */

/*======layanan======*/
.layanan{
    padding-top: 150px;
    padding-bottom: 150px;
}

.layanan-box{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.layanan-box .box{
    background-color: white;
    padding: 20px;
    border-radius: 10px;
}

.layanan-box .box:hover{
    background-color: rebeccapurple;
}

.layanan-box .box:hover > *{
    color: white;
}

.layanan-box .box i {
    color: rebeccapurple;
}

.layanan-box .box h2{
    margin-top: 20px;
    margin-bottom: 5px;
}

@media (max-width:992px){
    .layanan-box{
        grid-template-columns: repeat(2, 1fr);
    } 
}

@media (max-width:575px){
    .layanan-box{
        grid-template-columns: 1fr;
    } 
}
/*======end layanan======*/

/*======produk======*/
.produk{
    padding-bottom: 150px;
}

.produk-box h1{
    text-align: center;
    margin-bottom: 30px;
}

.produk-box ul{
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.produk-box ul li{
    list-style-type: none;
    background-color: white;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #555;
}

.produk-box ul li:hover {
    border-color: rebeccapurple;
    color: rebeccapurple;
    transform: translateY(-2px);
}

.produk-box ul li.active{
    background-color: rebeccapurple;
    color: white;
    border-color: rebeccapurple;
    box-shadow: 0 5px 15px rgba(102, 51, 153, 0.3);
}

.produk-box .produk-list{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.product-card {
    position: relative;
    width: 260px;
    height: 360px;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.produk-box .produk-list img {
    width: 100%;
    height: 100%;
    background-color: white;
    padding: 0;
    border: 5px solid white;
    border-radius: 15px;
    cursor: pointer;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: block;
    transition: border-color 0.3s;
}

.product-card:hover img {
    border-color: rebeccapurple;
    box-shadow: 0 20px 40px rgba(102, 51, 153, 0.25);
}

/* Badge New Style */
.badge-new {
    position: absolute;
    top: 15px;
    left: 15px;
    background-image: linear-gradient(45deg, #ff8c00, #ff4500); /* Gradasi Oranye-Merah */
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    pointer-events: none; /* Agar klik tembus ke gambar */
    animation: new-pulse 2s infinite;
}

@keyframes new-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.7); /* Warna disesuaikan dengan gradasi */
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 140, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 87, 34, 0);
    }
}

@media (max-width:640px){
    .product-card {
        width: 200px;
        height: 280px;
    }
}

@media (max-width: 475px){
    .product-card {
        width: 160px;
        height: 220px;
    }
}

/*======produk======*/

/*======QnA======*/
.qna {
    padding-bottom: 150px;
}

.qna-box h1 {
    text-align: center;
    margin-bottom: 50px;
}

.qna-search {
    max-width: 800px;
    margin: 0 auto 30px auto;
    position: relative;
}

.qna-search input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.qna-search input:focus {
    border-color: rebeccapurple;
    box-shadow: 0 0 10px rgba(102, 51, 153, 0.1);
}

.qna-search i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 20px;
}

.accordion-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.accordion-item {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.accordion-item summary {
    font-weight: 600;
    font-size: 18px;
    list-style: none;
    color: rebeccapurple;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-item summary::-webkit-details-marker {
    display: none;
}

.accordion-item summary::after {
    content: '+';
    font-size: 24px;
    font-weight: bold;
}

.accordion-item[open] summary::after {
    content: '-';
}

.accordion-item p {
    margin-top: 15px;
    line-height: 1.6;
    color: #555;
    border-top: 1px solid #eee;
    padding-top: 15px;
}
/*======End QnA======*/

/*======footer======*/
.footer{
    background-color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p span {
    font-weight: bold;
    color: rebeccapurple;
}

.footer .box:nth-child(2) {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer .box i{
    cursor: pointer;
}

.footer .box i:hover{
    color: rebeccapurple;
}

/* Footer Shopee Icon Hover */
.footer .box i.shopee-icon:hover {
    color: #EE4D2D;
}

/* Visitor Badge (Base / Light Mode) */
.visitor-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(102, 51, 153, 0.05); /* Ungu sangat muda transparan */
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(102, 51, 153, 0.1);
    backdrop-filter: blur(5px);
    margin-top: 15px;
    transition: all 0.3s ease;
    color: #333;
}
.visitor-badge:hover {
    background: rgba(102, 51, 153, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.visitor-badge i { color: rebeccapurple; }
.visitor-badge span { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.5px; }
.visitor-badge strong { color: rebeccapurple; font-weight: 700; margin-left: 4px; }


@media (max-width:768px){
    .footer{
        flex-direction: column-reverse; /* Ubah urutan: Social Icons di atas, Copyright di bawah */
        gap: 20px;
        text-align: center;
    }

    .footer p{
        font-size: 12px;
    }

    /* Balik urutan di dalam box pertama (Visitor di atas, Copyright di bawah) */
    .footer .box:nth-child(1) {
        flex-direction: column-reverse;
        gap: 15px;
        align-items: center;
    }

    .footer .box:nth-child(1) .visitor-badge {
        margin-top: 0; /* Reset margin karena sudah ada gap */
    }

    .footer .box:nth-child(2){
        gap: 10px;
    }
}

/*====== Chat Widget ======*/
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transition: transform 0.3s ease, opacity 0.3s ease; /* Tambahkan transisi */
}

/* Class Helper untuk Hide Floating Buttons */
.hide-floating {
    transform: translateX(150px) !important; /* Geser ke kanan luar layar */
    opacity: 0 !important;
    pointer-events: none !important; /* Agar tidak bisa diklik saat hidden */
}

.chat-toggle {
    background-color: rebeccapurple;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-box {
    width: 90vw; /* Gunakan lebar viewport */
    max-width: 300px; /* Batasi lebar maksimal */
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    overflow: hidden;
    margin-bottom: 15px;
    display: none; /* Hidden by default */
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.chat-box.active {
    display: flex;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-header {
    background-color: rebeccapurple;
    color: white;
    padding: 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.bot-message {
    margin-top: 10px;
    background-color: #f1f1f1;
    padding: 10px;
    border-radius: 10px;
    color: #333;
}

.chat-footer {
    padding: 10px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

.btn-wa {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
    font-size: 14px;
}

.btn-wa:hover {
    background-color: #128C7E;
}

/* Tombol Shopee di Chat Widget */
.btn-shopee-chat {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background-color: #EE4D2D; /* Warna Shopee */
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
    font-size: 14px;
    margin-top: 10px; /* Jarak dari tombol WA */
}
.btn-shopee-chat:hover {
    background-color: #d03e1f;
}
/*====== End Chat Widget ======*/

/*====== Preloader ======*/
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-slider {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
}

.image-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.image-slider img.active {
    opacity: 1;
}

.preloader-content h2 {
    color: rebeccapurple;
    font-size: 24px;
    margin-bottom: 5px;
    animation: fadeInUp 1s ease;
}

.preloader-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid rebeccapurple;
}
.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.loading-dots span {
    width: 15px;
    height: 15px;
    background-color: rebeccapurple;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/*====== End Preloader ======*/
/*======footer======*/

/*====== Ulasan ======*/
.ulasan {
    padding-bottom: 100px;
}

.ulasan-box h1 {
    text-align: center;
    margin-bottom: 40px;
}

.ulasan-box form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 15px; /* Sudut membulat */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Efek bayangan */
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: rebeccapurple;
}

.char-info {
    text-align: right;
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}

.btn-kirim {
    width: 100%;
    padding: 12px;
    background-color: rebeccapurple;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-kirim:hover {
    background-color: #5a2d82;
}
/*====== End Ulasan ======*/

/*====== Hasil Ulasan (Review Cards) ======*/
.ulasan-container {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin-inline: auto;
}

.ulasan-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid rebeccapurple;
    animation: fadeInUp 0.5s ease;
}

.ulasan-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: rebeccapurple;
}

.text-muted {
    color: #888;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

/*====== Lightbox (Popup) ======*/
.lightbox {
    display: none; /* Tersembunyi secara default */
    position: fixed;
    z-index: 10000; /* Di atas segalanya */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* Latar belakang gelap transparan */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    animation: zoom 0.3s;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover {
    color: rebeccapurple;
}

@keyframes zoom {
    from {transform: scale(0.5)}
    to {transform: scale(1)}
}

@keyframes fadeIn {
    from {opacity: 0}
    to {opacity: 1}
}

/*====== Music Toggle ======*/
.music-toggle {
    position: fixed;
    bottom: 225px; /* Di atas tombol theme */
    right: 20px; /* Pindah ke kanan */
    width: 50px;
    height: 50px;
    background-color: rebeccapurple;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 999;
}
.music-toggle:hover {
    background-color: #5a2d82;
    transform: translateY(-5px);
}
/*====== Theme Toggle ======*/
.theme-toggle {
    position: fixed;
    bottom: 160px; /* Di atas tombol scroll-top */
    right: 20px; /* Pindah ke kanan */
    width: 50px;
    height: 50px;
    background-color: rebeccapurple;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 999;
}

.theme-toggle:hover {
    background-color: #5a2d82;
    transform: translateY(-5px);
}

/*====== Dark Mode Theme ======*/
body.dark-mode {
    background-color: #1a1a1a;
    color: #f1f1f1;
}

/* Components */
body.dark-mode .navbar-box .menu li a,
body.dark-mode .logo h1 {
    color: #f1f1f1;
}
body.dark-mode .navbar-box .menu li a:hover {
    border-bottom-color: #9966cc;
}
body.dark-mode .hero-box h1 { color: #9966cc; }
body.dark-mode .hero-box p { color: #ccc; }
body.dark-mode .hero-badge {
    background-color: #2c2c2c;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}
body.dark-mode .hero-badge span { color: #f1f1f1; }
body.dark-mode .hero-badge small { color: #aaa; }
body.dark-mode .layanan-box .box { background-color: #2c2c2c; }
body.dark-mode .layanan-box .box:hover { background-color: rebeccapurple; }
body.dark-mode .layanan-box .box h2,
body.dark-mode .layanan-box .box p { color: #f1f1f1; }
body.dark-mode .layanan-box .box i { color: #9966cc; }
body.dark-mode .layanan-box .box:hover > * { color: white; }
body.dark-mode .produk-box h1,
body.dark-mode .qna-box h1,
body.dark-mode .ulasan-box h1,
body.dark-mode .lokasi-box h1 {
    color: #f1f1f1;
}
body.dark-mode .produk-box ul li {
    background-color: #2c2c2c;
    color: #f1f1f1;
    border-color: #444;
}
body.dark-mode .produk-box ul li:hover {
    border-color: #9966cc;
    color: #9966cc;
}
body.dark-mode .produk-box ul li.active {
    background-color: rebeccapurple;
    color: white;
    border-color: rebeccapurple;
}
body.dark-mode .produk-box .produk-list img {
    background-color: #2c2c2c;
    border-color: #2c2c2c;
}
body.dark-mode .produk-box .produk-list img:hover {
    border-color: #9966cc;
}
body.dark-mode .qna-search input {
    background-color: #2c2c2c;
    border-color: #444;
    color: #f1f1f1;
}
body.dark-mode .qna-search input:focus { border-color: #9966cc; }
body.dark-mode .accordion-item {
    background-color: #2c2c2c;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
body.dark-mode .accordion-item summary { color: #9966cc; }
body.dark-mode .accordion-item p { color: #ccc; border-top-color: #444; }
body.dark-mode .ulasan-box form { background-color: #2c2c2c; }
body.dark-mode .input-group label { color: #f1f1f1; }
body.dark-mode .input-group input,
body.dark-mode .input-group select,
body.dark-mode .input-group textarea {
    background-color: #1a1a1a;
    border-color: #444;
    color: #f1f1f1;
}
body.dark-mode .input-group input:focus,
body.dark-mode .input-group select:focus,
body.dark-mode .input-group textarea:focus {
    border-color: #9966cc;
}
body.dark-mode .char-info { color: #aaa; }
body.dark-mode .ulasan-card { background: #2c2c2c; border-left-color: #9966cc; }
body.dark-mode .ulasan-header { color: #9966cc; }
body.dark-mode .text-muted { color: #aaa; }
body.dark-mode .map-container { border-color: #2c2c2c; }
body.dark-mode .map-container iframe { filter: invert(90%) grayscale(100%); }
body.dark-mode .map-container:hover iframe { filter: invert(0%) grayscale(0%); }
body.dark-mode .jam-operasional { background-color: #2c2c2c; }
body.dark-mode .jam-operasional h3 { color: #9966cc; border-bottom-color: #444; }
body.dark-mode .jam-operasional ul li { border-bottom-color: #444; }
body.dark-mode .btn-maps { background-color: #2c2c2c; color: #9966cc; border-color: #9966cc; }
body.dark-mode .btn-maps:hover { background-color: #9966cc; color: white; }
body.dark-mode .footer { background-color: #2c2c2c; }
body.dark-mode .footer .box i:hover { color: #9966cc; }
body.dark-mode .chat-box { background-color: #2c2c2c; }
body.dark-mode .chat-body { color: #f1f1f1; }
body.dark-mode .chat-footer { background-color: #1a1a1a; border-top-color: #444; }
body.dark-mode .chat-header { background-color: #333; color: #9966cc; }
body.dark-mode .chat-toggle { background-color: #9966cc; color: white; }
body.dark-mode .bot-message { background-color: #444; color: #f1f1f1; }
/* Visitor Badge Dark Mode */
body.dark-mode .visitor-badge { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.15); color: #f1f1f1; }
body.dark-mode .visitor-badge:hover { background: rgba(255, 255, 255, 0.2); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
body.dark-mode .visitor-badge i { color: #00e5ff; }
body.dark-mode .visitor-badge strong { color: #fff; }


/* Dark Mode Mobile Menu */
@media (max-width: 768px) {
    body.dark-mode .navbar-box .menu { background-color: #2c2c2c; }
    body.dark-mode .navbar-box .hamburger span { background-color: #f1f1f1; }
}

/*====== Purple Mode Theme ======*/
body.purple-mode {
    background-color: #2a0a45; /* Deep Purple Background */
    color: #f3e5f5; /* Light Lavender Text */
}

/* Components Overrides for Purple Mode */
body.purple-mode .navbar-box .menu li a,
body.purple-mode .logo h1 {
    color: #f3e5f5;
}
body.purple-mode .navbar-box .menu li a:hover {
    border-bottom-color: #d68eff;
}

body.purple-mode .hero-box h1 { color: #d68eff; }
body.purple-mode .hero-box p { color: #e1bee7; }
body.purple-mode .hero-box a { background-color: #7b1fa2; }
body.purple-mode .hero-badge {
    background-color: #4a148c;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}
body.purple-mode .hero-badge span { color: #f3e5f5; }
body.purple-mode .hero-badge small { color: #ce93d8; }

body.purple-mode .layanan-box .box { background-color: #4a148c; }
body.purple-mode .layanan-box .box:hover { background-color: #7b1fa2; }
body.purple-mode .layanan-box .box h2,
body.purple-mode .layanan-box .box p { color: #f3e5f5; }
body.purple-mode .layanan-box .box i { color: #d68eff; }
body.purple-mode .layanan-box .box:hover > * { color: white; }

body.purple-mode .produk-box h1,
body.purple-mode .qna-box h1,
body.purple-mode .ulasan-box h1,
body.purple-mode .lokasi-box h1 {
    color: #f3e5f5;
}

body.purple-mode .produk-box ul li {
    background-color: #4a148c;
    color: #f3e5f5;
    border-color: #6a1b9a;
}
body.purple-mode .produk-box ul li:hover {
    border-color: #d68eff;
    color: #d68eff;
}
body.purple-mode .produk-box ul li.active {
    background-color: #d68eff;
    color: #2a0a45;
    border-color: #d68eff;
}

body.purple-mode .produk-box .produk-list img {
    background-color: #4a148c;
    border-color: #4a148c;
}
body.purple-mode .produk-box .produk-list img:hover {
    border-color: #d68eff;
}

body.purple-mode .qna-search input {
    background-color: #4a148c;
    border-color: #6a1b9a;
    color: #f3e5f5;
}
body.purple-mode .qna-search input:focus { border-color: #d68eff; }

body.purple-mode .accordion-item {
    background-color: #4a148c;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
body.purple-mode .accordion-item summary { color: #d68eff; }
body.purple-mode .accordion-item p { color: #e1bee7; border-top-color: #6a1b9a; }

body.purple-mode .ulasan-box form { background-color: #4a148c; }
body.purple-mode .input-group label { color: #f3e5f5; }
body.purple-mode .input-group input,
body.purple-mode .input-group select,
body.purple-mode .input-group textarea {
    background-color: #2a0a45;
    border-color: #6a1b9a;
    color: #f3e5f5;
}
body.purple-mode .input-group input:focus,
body.purple-mode .input-group select:focus,
body.purple-mode .input-group textarea:focus {
    border-color: #d68eff;
}
body.purple-mode .char-info { color: #ce93d8; }
body.purple-mode .btn-kirim { background-color: #7b1fa2; }
body.purple-mode .btn-kirim:hover { background-color: #8e24aa; }

body.purple-mode .ulasan-card { background: #4a148c; border-left-color: #d68eff; }
body.purple-mode .ulasan-header { color: #d68eff; }
body.purple-mode .text-muted { color: #ce93d8; }

body.purple-mode .map-container { border-color: #4a148c; }
body.purple-mode .map-container iframe { filter: invert(90%) sepia(20%) hue-rotate(230deg) saturate(200%); }
body.purple-mode .map-container:hover iframe { filter: none; }

body.purple-mode .jam-operasional { background-color: #4a148c; }
body.purple-mode .jam-operasional h3 { color: #d68eff; border-bottom-color: #6a1b9a; }
body.purple-mode .jam-operasional ul li { border-bottom-color: #6a1b9a; }

body.purple-mode .btn-maps { background-color: #4a148c; color: #d68eff; border-color: #d68eff; }
body.purple-mode .btn-maps:hover { background-color: #d68eff; color: #2a0a45; }

body.purple-mode .footer { background-color: #4a148c; }
body.purple-mode .footer .box i:hover { color: #d68eff; }

body.purple-mode .chat-box { background-color: #4a148c; }
body.purple-mode .chat-body { color: #f3e5f5; }
body.purple-mode .chat-footer { background-color: #2a0a45; border-top-color: #6a1b9a; }
body.purple-mode .chat-header { background-color: #7b1fa2; }
body.purple-mode .chat-toggle { background-color: #7b1fa2; color: #f3e5f5; }
body.purple-mode .bot-message { background-color: #6a1b9a; color: #f3e5f5; }
/* Visitor Badge Purple Mode */
body.purple-mode .visitor-badge { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: #f3e5f5; }
body.purple-mode .visitor-badge:hover { background: rgba(255, 255, 255, 0.2); }
body.purple-mode .visitor-badge i { color: #d68eff; }
body.purple-mode .visitor-badge strong { color: #fff; }

/* Purple Mode Mobile Menu */
@media (max-width: 768px) {
    body.purple-mode .navbar-box .menu { background-color: #4a148c; }
    body.purple-mode .navbar-box .hamburger span { background-color: #f3e5f5; }
}

/*====== Bubu Riri Theme ======*/
@keyframes bubu-slideshow {
    0%, 100% { background-image: url('../../assets/images/bubu-riri.jpg'); }
    33% { background-image: url('../../assets/images/bubu-riri2.jpg'); }
    66% { background-image: url('../../assets/images/bubu-riri3.jpg'); }
}

body.bubu-mode {
    color: #442c2e; /* Dark brown text */
    background-color: #fff0f1; /* Fallback color */
}

/* Animated Background and Overlay */
body.bubu-mode::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    animation: bubu-slideshow 18s ease-in-out infinite;
    z-index: -2;
}

body.bubu-mode::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 240, 241, 0.7); /* Soft pink overlay for readability */
    z-index: -1;
}

/* Override components for Bubu Mode */
body.bubu-mode .navbar-box .menu li a,
body.bubu-mode .logo h1 {
    color: #442c2e;
}
body.bubu-mode .navbar-box .menu li a:hover {
    border-bottom-color: #ff8fab;
}
body.bubu-mode .hero-box h1 { color: #d9534f; } /* A stronger pink/red */
body.bubu-mode .hero-box p { color: #5c4742; }
body.bubu-mode .hero-box a { background-color: #ff8fab; color: white; }

/* Glassmorphism Effect for containers */
body.bubu-mode .layanan-box .box,
body.bubu-mode .produk-box ul li,
body.bubu-mode .accordion-item,
body.bubu-mode .ulasan-box form,
body.bubu-mode .ulasan-card,
body.bubu-mode .jam-operasional,
body.bubu-mode .footer,
body.bubu-mode .chat-box, 
body.bubu-mode .visitor-badge,
body.bubu-mode .hero-badge {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* Safari support */
    border: 1px solid rgba(255, 192, 203, 0.5);
    box-shadow: 0 8px 32px 0 rgba(217, 83, 79, 0.15);
}

body.bubu-mode .layanan-box .box:hover { background-color: #ffc0cb; }
body.bubu-mode .layanan-box .box i { color: #ff8fab; }
body.bubu-mode .layanan-box .box:hover > * { color: #442c2e; }

body.bubu-mode .produk-box h1,
body.bubu-mode .qna-box h1,
body.bubu-mode .ulasan-box h1,
body.bubu-mode .lokasi-box h1 {
    color: #442c2e;
}
body.bubu-mode .produk-box ul li:hover {
    border-color: #ff8fab;
    color: #ff8fab;
    background-color: rgba(255, 255, 255, 0.95);
}
body.bubu-mode .produk-box ul li.active {
    background-color: #ff8fab;
    color: white;
    border-color: #ff8fab;
}

body.bubu-mode .qna-search input, body.bubu-mode .input-group input, body.bubu-mode .input-group select, body.bubu-mode .input-group textarea { background-color: rgba(255, 240, 241, 0.9); border-color: #ffdde1; color: #442c2e; }
body.bubu-mode .qna-search input:focus, body.bubu-mode .input-group input:focus, body.bubu-mode .input-group select:focus, body.bubu-mode .input-group textarea:focus { border-color: #ff8fab; }
body.bubu-mode .accordion-item summary { color: #d9534f; }
body.bubu-mode .accordion-item p { color: #5c4742; border-top-color: #ffdde1; }
body.bubu-mode .btn-kirim { background-color: #ff8fab; }
body.bubu-mode .btn-kirim:hover { background-color: #ff7096; }
body.bubu-mode .ulasan-card { border-left-color: #ff8fab; }
body.bubu-mode .ulasan-header { color: #d9534f; }
body.bubu-mode .text-muted { color: #8c7a75; }
body.bubu-mode .map-container iframe { filter: hue-rotate(-20deg) saturate(0.8); }
body.bubu-mode .map-container:hover iframe { filter: none; }
body.bubu-mode .btn-maps { background-color: transparent; color: #d9534f; border-color: #d9534f; }
body.bubu-mode .btn-maps:hover { background-color: #d9534f; color: white; }
body.bubu-mode .footer .box i:hover { color: #ff8fab; }
body.bubu-mode .chat-header { background-color: #ff8fab; }
body.bubu-mode .chat-footer { background-color: rgba(255, 240, 241, 0.8); border-top-color: #ffdde1; }
body.bubu-mode .chat-body { color: #5c4742; }
body.bubu-mode .chat-toggle { background-color: #ff8fab; color: white; }
body.bubu-mode .bot-message { background-color: rgba(255, 255, 255, 0.6); color: #5c4742; border: 1px solid #ffdde1; }
/* Visitor Badge Bubu Mode */
body.bubu-mode .visitor-badge { border-color: #ff8fab; color: #5c4742; }
body.bubu-mode .visitor-badge:hover { background-color: #ffe6ea; }
body.bubu-mode .visitor-badge i, body.bubu-mode .visitor-badge strong { color: #d9534f; }

/* Bubu Mode Mobile Menu */
@media (max-width: 768px) {
    body.bubu-mode .navbar-box .menu { 
        background-color: rgba(255, 240, 241, 0.95); 
        backdrop-filter: blur(10px);
    }
    body.bubu-mode .navbar-box .menu li a { color: #442c2e; }
    body.bubu-mode .navbar-box .hamburger span { background-color: #442c2e; }
}

/*====== Scroll to Top ======*/
.scroll-top {
    position: fixed;
    bottom: 95px; /* Di atas tombol chat */
    right: 20px; /* Pindah ke kanan */
    width: 50px;
    height: 50px;
    background-color: rebeccapurple;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    animation: pulse-shadow 2s infinite;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background-color: #5a2d82;
    transform: translateY(-5px);
}

/* Animasi Berkedip (Hanya Bayangan) */
@keyframes pulse-shadow {
    0% { box-shadow: 0 0 0 0 rgba(102, 51, 153, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(102, 51, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 51, 153, 0); }
}

/*====== Lokasi ======*/
.lokasi {
    padding-bottom: 100px;
}

.lokasi-box h1 {
    text-align: center;
    margin-bottom: 40px;
}

.lokasi-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: center;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 5px solid white;
    background-color: #eee; /* Fallback color saat map loading */
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.map-container:hover iframe {
    filter: grayscale(0%);
}

.jam-operasional {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.jam-operasional h3 {
    font-size: 22px;
    color: rebeccapurple;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.jam-operasional ul {
    list-style: none;
    margin-bottom: 30px;
}

.jam-operasional ul li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
    font-size: 15px;
}

.jam-operasional ul li:last-child {
    border-bottom: none;
}

.btn-maps {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    color: rebeccapurple;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid rebeccapurple;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.btn-maps:hover {
    background-color: rebeccapurple;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 51, 153, 0.3);
}

@media (max-width: 992px) {
    .lokasi-content {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .lokasi {
        padding-bottom: 60px;
    }

    .lokasi-content {
        gap: 20px;
    }

    .map-container {
        height: 250px;
    }

    .jam-operasional {
        padding: 25px 20px;
        text-align: center;
    }
}

/*====== Falling Particles (Bubu Mode) ======*/
.falling-particle {
    position: fixed;
    top: -50px;
    z-index: 9999;
    user-select: none;
    pointer-events: none;
    animation: fall linear forwards;
    opacity: 0.9;
}

@keyframes fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/*====== Load More Button ======*/
.btn-load-more {
    padding: 12px 35px;
    background-color: rebeccapurple;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 51, 153, 0.2);
}

.btn-load-more:hover {
    background-color: #5a2d82;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 51, 153, 0.3);
}

/* Theme Overrides for Load More */
body.dark-mode .btn-load-more { background-color: #2c2c2c; color: #9966cc; border: 1px solid #9966cc; }
body.dark-mode .btn-load-more:hover { background-color: #9966cc; color: white; }

body.purple-mode .btn-load-more { background-color: #7b1fa2; color: #f3e5f5; }
body.purple-mode .btn-load-more:hover { background-color: #8e24aa; }

body.bubu-mode .btn-load-more { background-color: #ff8fab; color: white; }
body.bubu-mode .btn-load-more:hover { background-color: #ff7096; }


/*====== Animasi Filter Produk ======*/
.produk-box .produk-list .product-card.anim-hide {
    transform: scale(0.5);
    opacity: 0;
    transition: all 0.4s ease; /* Override transisi agar efek keluar lebih halus */
}

/*====== Promo Popup (Iklan) ======*/
.promo-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Latar gelap transparan */
    z-index: 11000; /* Lebih tinggi dari lightbox & chat */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.promo-popup.show {
    opacity: 1;
    visibility: visible;
}

.promo-content {
    position: relative;
    width: 90%;
    max-width: 400px; /* Sedikit diperkecil agar pas dengan frame */
    background: #fff; /* Frame putih */
    padding: 10px; /* Jarak frame ke gambar */
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); /* Bayangan dramatis */
    
    /* Titik poros ayunan di bagian atas tengah */
    transform-origin: top center;
    
    /* Animasi: Jatuh berayun + Goyang perlahan */
    animation: dropSwing 1.5s ease-out forwards, windSway 3s ease-in-out infinite alternate 1.5s;
}

/* Membuat Efek Tali Gantungan */
.promo-content::before,
.promo-content::after {
    content: '';
    position: absolute;
    bottom: 100%; /* Mulai dari atas frame */
    width: 4px;
    height: 100vh; /* Panjang tali sampai atas layar */
    background: linear-gradient(to right, #888, #ccc, #888); /* Efek metal/tali */
    z-index: -1;
}

.promo-content::before {
    left: 30px;
}

.promo-content::after {
    right: 30px;
}

.promo-content img {
    width: 100%;
    border-radius: 5px; /* Radius gambar sedikit lebih kecil dari frame */
    display: block;
}

.close-promo {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 35px;
    height: 35px;
    background-color: rebeccapurple;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.close-promo:hover {
    transform: scale(1.1) rotate(90deg);
    background-color: #ff5722;
}

/* Animasi Jatuh & Berayun (Entrance) */
@keyframes dropSwing {
    0% {
        transform: translateY(-100vh) rotate(10deg);
        opacity: 0;
    }
    40% {
        transform: translateY(20px) rotate(-5deg);
        opacity: 1;
    }
    60% { transform: translateY(-10px) rotate(3deg); }
    80% { transform: translateY(5px) rotate(-1deg); }
    100% { transform: translateY(0) rotate(0deg); opacity: 1; }
}

/* Animasi Goyang Angin (Looping) */
@keyframes windSway {
    0% { transform: rotate(1.5deg); }
    100% { transform: rotate(-1.5deg); }
}
