/* ==================== Palet Warna & Variabel: Midnight Navy ==================== */
:root {
    --dark-grey: #0F172A;        /* Deep Navy - Latar Utama */
    --secondary-dark: #1E293B;   /* Slate Blue - Latar Sekunder */
    --accent-color: #38BDF8;     /* Sky Cyan - Aksen/CTA */
    --light-text: #F8FAFC;       /* Off White - Teks Utama */
    --text-faded: rgba(248, 250, 252, 0.6); /* Teks Pudar */
    --success-ui: #0EA5E9;       /* Ocean Blue - UI Elemen */
    --danger-red: #ef4444;       /* Merah Notifikasi untuk Badge */
}

/* ==================== Reset & Global Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-grey);
    color: var(--light-text);
    line-height: 1.6;
    scroll-behavior: smooth;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--light-text);
}

h1, h2, h3 {
    font-family: 'Lora', serif;
    margin-bottom: 1rem;
    color: var(--light-text);
}

section {
    padding: 5rem 10%;
    text-align: center;
}

/* ==================== Header & Navigasi ==================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 10%;
    background-color: rgba(15, 23, 42, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-text);
}

nav a {
    margin-left: 25px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--light-text);
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 5px;
}

nav a:hover {
    color: var(--accent-color) !important;
    border-bottom: 2px solid var(--accent-color);
}

nav .cta-button {
    background-color: var(--accent-color);
    color: var(--dark-grey) !important;
    padding: 6px 15px;
    border-radius: 4px;
    font-weight: 700;
    transition: background-color 0.3s;
    border: none;
}

nav .cta-button:hover {
    background-color: #7dd3fc; 
    border-bottom: none;
}

/* ==================== Slideshow (Carousel) ==================== */
#slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
    height: 90vh;
}

.mySlides {
    display: none;
    height: 100%;
    width: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--light-text);
    text-align: center;
    transition: opacity 1s ease-in-out;
}

.mySlides::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.65); 
    z-index: 1;
}

.slide-content {
    z-index: 2;
    padding: 0 10%;
}

.slide-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 1);
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
}

.next { right: 0; border-radius: 3px 0 0 3px; }
.prev:hover, .next:hover { background-color: rgba(0, 0, 0, 0.8); }

.dot-container {
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 5;
}
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: var(--secondary-dark);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}
.active, .dot:hover { background-color: var(--accent-color); }

/* Tombol CTA Global */
.cta-button {
    background-color: var(--accent-color);
    color: var(--dark-grey);
    padding: 14px 35px;
    border-radius: 5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #7dd3fc; 
    color: var(--dark-grey);
}

/* ==================== Menu Highlight Section ==================== */
#menu-highlight { background-color: var(--secondary-dark); }

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px;
    margin-top: 3rem;
    justify-content: center;
}

.menu-item {
    background-color: var(--dark-grey);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.menu-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* ==================== About Section ==================== */
#about {
    background-color: var(--dark-grey);
    padding: 8rem 15%;
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
}

#about img {
    width: 45%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

#about .text-content { width: 55%; }

/* ==================== Lokasi Section ==================== */
#lokasi { background-color: var(--secondary-dark); }

.lokasi-info {
    margin-top: 2rem;
    display: flex;
    justify-content: space-around;
    text-align: left;
    padding: 0 5%;
}

.lokasi-info div { width: 30%; }
.lokasi-info h3 { color: var(--accent-color); margin-bottom: 0.5rem; }

.map-container {
    margin-top: 3rem;
    height: 400px;
    background-color: #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.map-container iframe {
    width: 100%; height: 100%; border: 0;
    filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

/* ==================== Footer ==================== */
footer {
    background-color: var(--dark-grey);
    padding: 2rem 10%;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== Cart Sidebar ==================== */
.cart-sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 2000;
    top: 0; right: 0;
    background-color: var(--secondary-dark);
    overflow-x: hidden;
    transition: 0.4s;
    padding-top: 20px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 { margin: 0; color: var(--accent-color); }
.closebtn { font-size: 36px; color: var(--light-text); text-decoration: none; }

.cart-body { flex-grow: 1; padding: 20px; overflow-y: auto; }

.cart-item {
    background: var(--dark-grey);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-item {
    background: transparent;
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.cart-footer {
    padding: 20px;
    background: var(--dark-grey);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.checkout-button {
    width: 100%;
    background-color: var(--accent-color);
    color: var(--dark-grey);
    border: none;
    padding: 15px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 5px;
}

.cart-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1999;
}

/* ==================== CART BADGE & FLOATING CART ==================== */
.cart-icon-wrapper {
    position: relative;
    display: inline-block;
}

/* Badge di menu atau floating cart */
.cart-badge {
    position: absolute;
    top: -25px;
    right: -13px;
    background-color: var(--danger-red);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 50%;
    border: 2px solid var(--dark-grey); /* Memberi pemisah agar badge jelas terlihat */
    min-width: 18px;
    text-align: center;
    z-index: 10;
    /* display: none; */ /* Diaktifkan via JS (tambah class .show) */
}

.cart-badge.show {
    display: inline-block;
}

/* ==================== Floating Cart & Scroll Top ==================== */
.floating-cart {
    position: fixed;
    bottom: 20px; left: 20px;
    width: 60px; height: 60px;
    background-color: var(--success-ui);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    transition: transform 0.3s ease, background-color 0.3s;
    color: white;
}

#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 30px; right: 30px;
    z-index: 99;
    font-size: 20px;
    border: none;
    background-color: var(--accent-color);
    color: var(--dark-grey);
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ==================== Burger Menu Mobile ==================== */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--light-text);
}

@media (max-width: 900px) {
    header { padding: 1rem 5%; justify-content: space-between; }
    .menu-toggle { display: block; }
    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background-color: #080C17;
        padding: 20px 0;
        z-index: 1000;
    }
    nav.active { display: flex; }
    nav a { width: 100%; text-align: center; margin: 5px 0; padding: 15px 20px; }
    nav a:hover { background-color: var(--accent-color); color: var(--dark-grey) !important; }
    nav .cta-button { width: 80% !important; margin: 15px auto !important; }
    #about { flex-direction: column; padding: 5rem 5%; text-align: center; }
    #about img, #about .text-content { width: 100%; }
}

/* ==================== Paginasi ==================== */
.pagination-container { width: 100%; margin-top: 50px; }
.pagination-container .pagination {
    display: flex !important;
    width: 100%;
    list-style: none;
    justify-content: space-between;
    align-items: center;
}
.pagination .page-link {
    background-color: var(--secondary-dark);
    color: var(--light-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 5px;
    transition: 0.3s;
    font-size: 0.8rem;
    font-weight: bold;
}
.pagination .page-item.active .page-link {
    background-color: var(--accent-color);
    color: var(--dark-grey);
}

@media (max-width: 576px) {
    .pagination .page-item:not(:first-child):not(:last-child):not(.active) { display: none !important; }
}

/* Animations */
.fade { animation-name: fade; animation-duration: 1.5s; }
@keyframes fade { from {opacity: .4} to {opacity: 1} }
@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}
.cart-animate { animation: shake 0.5s ease-in-out; }

.view-all-container {
    padding-top: 60px; /* Memberikan ruang di atas tombol */
    padding-bottom: 20px;
    display: flex;
    justify-content: center; /* Memastikan tombol tetap di tengah */
}