* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff9f5;
    color: #2d2d2d;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #e74c3c;
    border-radius: 4px;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar .logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar .logo span {
    color: #e74c3c;
    position: relative;
}

.navbar .logo span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #e74c3c;
    border-radius: 2px;
}

.navbar nav a {
    color: white;
    text-decoration: none;
    margin-left: 2rem;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.navbar nav a:hover {
    color: #e74c3c;
}

.navbar nav a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #e74c3c;
    transition: width 0.3s;
}

.navbar nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2c3e50 0%, #e74c3c 100%);
    color: white;
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 600;
    margin: 0.5rem;
}

.btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: #2c3e50;
    transform: translateY(-2px);
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    border-radius: 2px;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.menu-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.menu-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-card:hover .menu-card-img {
    transform: scale(1.05);
}

.img-wrapper {
    overflow: hidden;
    position: relative;
}

.menu-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.menu-card .info {
    padding: 1.5rem;
}

.menu-card .info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #2c3e50;
}

.menu-card .info .price {
    color: #e74c3c;
    font-size: 1.3rem;
    font-weight: bold;
}

.menu-card .info .desc {
    color: #666;
    font-size: 0.85rem;
    margin: 0.75rem 0;
    line-height: 1.5;
}

.btn-small {
    display: inline-block;
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    color: white;
    padding: 0.5rem 1.2rem;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.btn-small:hover {
    background: #e74c3c;
    transform: translateX(5px);
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid #2c3e50;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: #2c3e50;
    text-decoration: none;
}

.filter-btn:hover, .filter-btn.active {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a252f, #2c3e50);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 3rem;
}

.footer p {
    margin: 0.5rem 0;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
    z-index: 1000;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* About Section */
.about-section {
    background: white;
    border-radius: 30px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.about-card {
    padding: 1.5rem;
    background: #fff9f5;
    border-radius: 20px;
    transition: all 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.about-card h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-section {
    text-align: center;
    background: linear-gradient(135deg, #fff5f0, #ffe8e0);
    border-radius: 30px;
    margin-top: 2rem;
}

/* Admin Panel Styles */
.admin-sidebar {
    background: #2c3e50;
    min-height: 100vh;
    padding: 2rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.stat-card .number {
    font-size: 2rem;
    font-weight: bold;
    color: #e74c3c;
}

.table {
    width: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.table th {
    background: #2c3e50;
    color: white;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.table tr:hover {
    background: #f9f9f9;
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
    }
    
    .navbar nav a {
        display: inline-block;
        margin: 0.5rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination .page-item {
    list-style: none;
}

.pagination .page-link {
    display: block;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
}

.pagination .active .page-link {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.whatsapp-float {
    animation: pulse 2s infinite;
}
/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 100;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        flex-direction: row;
        position: relative;
    }
    .navbar .logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}
    .hamburger {
        display: flex;
    }
    nav#nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 0.5rem 0 1rem;
        gap: 0;
    }
    nav#nav-menu.open {
        display: flex;
    }
    nav#nav-menu a {
        padding: 0.6rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    nav#nav-menu a:last-child {
        border-bottom: none;
    }
}
/* Back link */
.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-decoration: none;
}

/* Detail card wrapper */
.detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Gambar */
.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
    display: block;
}

/* Info panel */
.detail-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Badge kategori */
.badge-kategori {
    display: inline-block;
    background: #e74c3c;
    color: white;
    font-size: 0.8rem;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.detail-nama {
    color: #2c3e50;
    font-size: 2rem;
    margin: 0 0 0.5rem;
}

.detail-harga {
    font-size: 2rem;
    color: #e74c3c;
    font-weight: bold;
    margin: 0.5rem 0 1rem;
}

.detail-deskripsi {
    background: #f5f5f5;
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.detail-deskripsi p {
    line-height: 1.8;
    margin-top: 0.5rem;
}

/* Tombol WA */
.btn-wa {
    background-color: #25D366 !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
}

/* Related section */
.related-section {
    margin-top: 3rem;
}

/* Responsive — tablet */
@media (max-width: 768px) {
    .detail-card {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .detail-image img {
        min-height: 280px;
        max-height: 340px;
    }

    .detail-info {
        padding: 1.5rem;
    }

    .detail-nama {
        font-size: 1.5rem;
    }

    .detail-harga {
        font-size: 1.6rem;
    }
}

/* Responsive — mobile */
@media (max-width: 480px) {
    .detail-info {
        padding: 1.25rem;
    }

    .detail-nama {
        font-size: 1.3rem;
    }

    .detail-harga {
        font-size: 1.4rem;
    }

    .btn-wa {
        width: 100%;
        justify-content: center;
    }
}