:root {
    --bg-dark: #111215;
    --bg-card: #1a1c23;
    --bg-card-hover: #242731;
    --grey-light: #a0a6b5;
    --grey-border: #2e3340;
    --gold-primary: #ffd700;
    --gold-secondary: #f5c518;
    --gold-glow: rgba(255, 215, 0, 0.6);
    --gold-gradient: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
    --text-white: #ffffff;
    --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-inter);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.5;
    overflow-x: hidden;
}

.gold-text {
    color: var(--gold-primary);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* =========================================
   ANIMASI MENGAMBANG & EFEK GLOW
   ========================================= */
@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.float-element {
    animation: floatAnimation 4s ease-in-out infinite;
}

.floating-badge {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--gold-gradient);
    color: #000;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 25px rgba(245, 197, 24, 0.4);
    z-index: 99;
    cursor: pointer;
    transition: all 0.3s ease;
}

.glow-active {
    box-shadow: 0 0 25px 8px var(--gold-glow) !important;
    border-color: var(--gold-primary) !important;
    transform: scale(0.98);
}

/* =========================================
   NAVBAR & HEADER RESPONSIF (AUTO DESKTOP/MOBILE)
   ========================================= */
.sticky-element {
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 4%;
    background-color: rgba(26, 28, 35, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--grey-border);
    transition: all 0.3s ease;
    gap: 10px;
}

.logo {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 900;
    letter-spacing: 1px;
    white-space: nowrap;
    cursor: pointer;
}

.search-bar {
    flex-grow: 1;
    max-width: 450px;
    margin: 0 10px;
}

.search-bar input {
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: 25px;
    border: 1px solid var(--grey-border);
    background-color: var(--bg-dark);
    color: var(--text-white);
    outline: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px var(--gold-glow);
}

.cart-btn {
    background: var(--gold-gradient);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 0.88rem;
    transition: transform 0.2s ease;
}

.badge {
    background-color: #000;
    color: var(--gold-primary);
    padding: 2px 8px;
    border-radius: 50%;
    font-size: 0.8rem;
}

/* HERO SECTION RESPONSIF */
.hero {
    background: linear-gradient(rgba(17, 18, 21, 0.85), rgba(17, 18, 21, 1)), url('https://images.unsplash.com/photo-1447933601403-0c6688de566e?w=1200&q=80') center/cover;
    padding: clamp(2.5rem, 6vw, 5rem) 4% clamp(2rem, 4vw, 3.5rem);
    text-align: center;
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
    cursor: pointer;
}

.hero .tagline {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-style: italic;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.hero .subtext {
    color: var(--grey-light);
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   CONTAINER, KATEGORI & MENU GRID
   ========================================= */
.container {
    padding: 1.5rem 4%;
}

.categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0.8rem 0;
    margin-bottom: 1.5rem;
    background-color: rgba(17, 18, 21, 0.95);
    backdrop-filter: blur(8px);
}

.cat-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--grey-border);
    color: var(--grey-light);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.85rem;
}

.cat-btn.active, .cat-btn:hover {
    background: var(--gold-gradient);
    color: #000;
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px var(--gold-glow);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background-color: var(--bg-card);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--grey-border);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--gold-primary);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.15);
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.card-desc {
    color: var(--grey-light);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gold-primary);
}

.add-btn {
    background-color: transparent;
    border: 1.5px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 0.4rem 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}

.add-btn:hover {
    background-color: var(--gold-primary);
    color: #000;
}

/* =========================================
   CART SIDEBAR
   ========================================= */
.cart-sidebar {
    position: fixed;
    right: -420px;
    top: 0;
    width: 380px;
    height: 100%;
    background-color: var(--bg-card);
    z-index: 200;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.7);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--grey-border);
    padding-bottom: 1rem;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    background-color: var(--bg-dark);
    padding: 0.8rem;
    border-radius: 10px;
}

.cart-item-title {
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-item-price {
    color: var(--gold-primary);
    font-size: 0.85rem;
}

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

.qty-btn {
    background-color: var(--grey-border);
    border: none;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}

.cart-footer {
    border-top: 1px solid var(--grey-border);
    padding-top: 1rem;
}

.form-group input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.6rem;
    border-radius: 8px;
    border: 1px solid var(--grey-border);
    background: var(--bg-dark);
    color: #fff;
    outline: none;
}

.total-price {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0.8rem 0;
}

.checkout-btn {
    width: 100%;
    padding: 0.8rem;
    background: var(--gold-gradient);
    border: none;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    font-size: 0.95rem;
    color: #000;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    display: none;
    z-index: 150;
}

.overlay.active {
    display: block;
}

.empty-msg {
    color: var(--grey-light);
    text-align: center;
    margin-top: 2rem;
}

/* =========================================
   MEDIA QUERIES KHUSUS HP (Mobile Rules)
   ========================================= */
@media screen and (max-width: 600px) {
    .navbar {
        flex-wrap: wrap;
        padding: 0.8rem 3%;
    }

    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 6px 0 0 0;
    }

    .cart-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
    }

    .floating-badge {
        bottom: 15px;
        right: 15px;
        padding: 8px 14px;
        font-size: 0.78rem;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}