@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap');

/* Reset & Basic Styling */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    color: #333;
}

main {
    flex-grow: 1;
}

h1, h2, h3, p, ul, li, a, section, header, footer {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: #007BFF;
}

a:hover {
    text-decoration: underline;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.site-header {
    background-color: #5C4033; /* Dark Brown */
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 2px solid #4a3528;
}

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

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.site-header .logo {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.nav-menu ul {
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.nav-menu a:hover {
    border-color: #fff;
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    /* Menambahkan overlay gelap agar tulisan lebih mudah dibaca */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/logo.jpg');
    
    /* Tinggi 100% viewport dikurangi tinggi header (sekitar 74px) */
    height: calc(100vh - 74px);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    
    /* Mengatur posisi tulisan di tengah */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-section h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin: 0;
}

.hero-section p {
    font-size: 1.25rem;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    margin-top: 10px;
    max-width: 600px;
}

.btn {
    display: inline-block;
    background-color: #CD853F; /* Cokelat Muda */
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #A0522D; /* Cokelat lebih tua untuk hover */
    text-decoration: none;
}

/* Featured Products & Menu */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force 3 equal columns */
    gap: 30px;
    padding: 40px 0;
}

.product-card, .menu-item-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover, .menu-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-card img, .menu-item-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3, .menu-item-card h3 {
    font-size: 20px;
    margin: 15px 0;
}

.product-card .price, .menu-item-card .price {
    font-size: 18px;
    font-weight: bold;
    color: #e67e22;
    margin-bottom: 15px;
}

.product-card .btn, .menu-item-card .btn {
    margin-bottom: 20px;
}

/* Footer */
.site-footer {
    background-color: #5C4033; /* Dark Brown */
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}

.site-footer p {
    color: #fff;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: left;
    padding: 0 20px 30px 20px;
    gap: 20px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.footer-column h4 {
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 1px solid #777;
    padding-bottom: 10px;
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid #777;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.about-us-image {
    display: block;
    max-width: 800px;
    width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Checkout Product Summary */
.checkout-product-summary {
    max-width: 600px;
    margin: 20px auto 30px auto;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.checkout-product-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.checkout-product-details h3 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
}

.checkout-product-details .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e67e22;
}

/* --- Contact Page Styles --- */
.contact-main-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}

.contact-form-section, .contact-map-section {
    flex: 1;
    min-width: 300px;
}

.contact-form-section h3, .contact-map-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #5C4033;
}

.map-wrapper {
    width: 100%;
    height: 400px; /* Sesuaikan tinggi peta */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.form-success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 5px;
}

/* Social Media Section */
.social-media-section {
    background-color: #f8f9fa;
    padding: 50px 0;
    text-align: center;
}

.social-media-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    display: inline-block;
    color: #5C4033;
    transition: transform 0.3s, opacity 0.3s;
}

.social-link:hover {
    transform: scale(1.1);
    opacity: 0.8;
    text-decoration: none;
}

/* --- Responsive Design --- */

/* Style untuk tombol hamburger */
.hamburger-menu {
    display: none; /* Sembunyikan di desktop */
    cursor: pointer;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: 0.4s;
}

/* Terapkan style ini untuk layar dengan lebar maksimal 768px (tablet dan mobile) */
@media (max-width: 768px) {
    /* Tampilkan tombol hamburger, sembunyikan menu biasa */
    .hamburger-menu {
        display: block;
    }
    .nav-menu ul {
        display: none; /* Sembunyikan menu utama */
        position: absolute;
        top: 72px; /* Tepat di bawah header */
        left: 0;
        right: 0;
        background-color: #5C4033;
        flex-direction: column; /* Susun menu ke bawah */
        width: 100%;
        border-top: 1px solid #4a3528;
    }

    /* Style untuk menu yang aktif (setelah hamburger diklik) */
    .nav-menu ul.active {
        display: flex;
    }

    .nav-menu li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid #6b4a3a; /* Garis pemisah antar menu */
    }
    .nav-menu a:hover {
        background-color: #6b4a3a;
        border-color: transparent;
    }

    /* Sesuaikan ukuran font di halaman beranda */
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1.1rem;
    }

    /* Pastikan kolom footer tersusun ke bawah */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Menu grid adjustment for smaller screens */
    .product-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}



/* Login & Form */
.form-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.form-container h1 {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1.1rem;
}

/* Receipt Styles */
.receipt-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 30px;
    border: 2px dashed #5C4033;
    background: #fdfaf6;
    text-align: center;
}
.receipt-container h2 {
    font-family: 'Poppins', sans-serif;
    color: #5C4033;
}
.receipt-container .order-id {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    background-color: #A0522D;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
    letter-spacing: 1px;
}
.receipt-container .info {
    text-align: left;
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}
.receipt-container .info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Admin Layout */
.admin-wrapper {
    display: flex;
}

.admin-sidebar {
    width: 250px;
    background-color: #5C4033;
    color: #fff;
    min-height: 100vh;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
}

.admin-sidebar h2 {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 30px;
    border-bottom: 1px solid #7a5c4b;
    padding-bottom: 20px;
}

.admin-sidebar ul {
    list-style: none;
    padding: 0;
}

.admin-sidebar ul li {
    margin: 5px 0;
}

.admin-sidebar ul li a {
    display: block;
    color: #f0e5de;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 8px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.admin-sidebar ul li a:hover {
    background-color: #4a3528;
    color: #fff;
}

.admin-sidebar ul li a.active {
    background-color: #CD853F;
    color: #fff;
    font-weight: bold;
}

.admin-content {
    flex-grow: 1;
    padding: 40px;
}

/* Admin Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th, .data-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.data-table thead {
    background-color: #f2f2f2;
}

.data-table .actions a {
    margin-right: 10px;
}
