:root {
    --thai-red: #E63946;
    --thai-blue: #1D3557;
    --thai-light-blue: #A8DADC;
    --thai-white: #F1FAEE;
    --text-dark: #1D3557;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', sans-serif;
}

body {
    background-color: var(--thai-white);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Pola Background */
.brand-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--thai-light-blue) 1.5px, transparent 1.5px);
    background-size: 35px 35px;
    opacity: 0.25;
    z-index: -1;
}

.brand-header {
    background: var(--thai-blue);
    padding: 60px 20px 80px;
    text-align: center;
    border-bottom: 10px solid var(--thai-red);
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.brand-logo {
    font-family: 'Fredoka', sans-serif;
    color: white;
    font-size: 5rem;
    letter-spacing: 12px;
    text-shadow: 5px 5px var(--thai-red);
    margin-bottom: 5px;
}

.brand-tagline {
    color: var(--thai-light-blue);
    font-weight: 700;
    letter-spacing: 6px;
    font-size: 1.2rem;
}

.halal-badge-container {
    display: flex;
    justify-content: center;
    margin-top: -45px;
    position: relative;
    z-index: 10;
}

.halal-card {
    background: white;
    padding: 18px 45px;
    border-radius: 50px;
    box-shadow: 0 15px 35px rgba(29, 53, 87, 0.15);
    border: 3px solid var(--thai-red);
    text-align: center;
    animation: slideDown 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.halal-main {
    color: var(--thai-red);
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.halal-sub {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--thai-blue);
    letter-spacing: 1.5px;
    margin-top: 5px;
}

/* Navigasi Kategori Dibuat 1 Baris Penuh Estetik */
.category-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 50px auto;
    max-width: 1300px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 20px;

    /* Menyembunyikan scrollbar agar tetap elegan */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.nav-btn {
    padding: 10px 22px;
    border: 2px solid var(--thai-blue);
    background: transparent;
    color: var(--thai-blue);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    text-transform: uppercase;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-btn.active,
.nav-btn:hover {
    background: var(--thai-blue);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(29, 53, 87, 0.25);
    border-color: var(--thai-blue);
}

.menu-wrapper {
    max-width: 1300px;
    margin: 0 auto 100px;
    padding: 0 40px;
    min-height: 500px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 35px;
}

.menu-card {
    background: white;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease, border-color 0.3s ease;
    opacity: 0;
    transform: scale(0.9) translateY(20px);
}

.menu-card.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.menu-card:hover {
    box-shadow: 15px 15px 0px var(--thai-light-blue);
    transform: translate(-8px, -8px) scale(1.02);
    border-color: var(--thai-blue);
}

.card-img-box {
    height: 260px;
    position: relative;
    background: #f0f0f0;
    overflow: hidden;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.menu-card:hover .card-img-box img {
    transform: scale(1.08);
}

/* Fallback image */
.placeholder-drink {
    background: linear-gradient(135deg, #A8DADC, #1D3557);
}

.placeholder-food {
    background: linear-gradient(135deg, #F1FAEE, #E63946);
}

.card-tag {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--thai-red);
    color: white;
    padding: 10px 22px;
    font-weight: 800;
    font-size: 1.2rem;
    border-bottom-right-radius: 12px;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
}

/* KOREKSI: Padding bawah diperbesar (90px) agar teks deskripsi tidak pernah menyentuh tombol plus */
.card-info {
    padding: 30px 25px 90px 25px;
    position: relative;
}

.info-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.info-top h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--thai-blue);
    text-transform: uppercase;
    line-height: 1.3;
}

.price {
    background: var(--thai-red);
    color: white;
    padding: 6px 14px;
    font-weight: 700;
    border-radius: 6px;
    font-size: 1.1rem;
    box-shadow: 2px 2px 0px var(--thai-blue);
}

.card-info p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
    /* Margin dihapus karena sudah di-cover oleh padding bawah di .card-info */
}

.add-btn {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--thai-blue);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(29, 53, 87, 0.3);
}

.add-btn:hover {
    background: var(--thai-red);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 15px rgba(230, 57, 70, 0.4);
}

/* --- FOOTER STYLES --- */
.integrated-footer {
    background-color: var(--thai-blue);
    color: var(--thai-white);
    padding: 60px 40px 30px;
    margin-top: 50px;
    border-top: 6px solid var(--thai-red);
}

.footer-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.footer-logo {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 5px;
    color: white;
    margin-bottom: 5px;
}

.footer-tagline {
    color: var(--thai-light-blue);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.footer-desc {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.6;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--thai-red);
    padding-bottom: 10px;
    display: inline-block;
}

.footer-list {
    list-style: none;
    color: #ccc;
    line-height: 2;
}

.footer-icon {
    color: var(--thai-red);
    margin-right: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--thai-red);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 0.9rem;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}