/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* NAVBAR ===============================*/
.nav-hero {
    background-color: #121D23;
    font-family: 'Segoe UI';
    font-weight: 700;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    box-shadow: 0 1px rgba(255, 255, 255, 0.20);
}

/* NAVBAR WRAPPER */
.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: relative;
}

/* LEFT */
.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
}

.judul {
    font-size: 26px;
    color: #E2C9B0;
    font-weight: 600;
}

/* CENTER MENU (DESKTOP) */
.nav-center {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 55px;
}

.nav-center li a {
    text-decoration: none;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    transition: .3s;
}

.nav-center li a:hover {
    color: #E2C9B0;
}

/* RIGHT */
.nav-right {
    display: flex;
    justify-content: flex-end;
}

/* MOBILE MENU BUTTON */
.menu-button {
    display: none;
}

/* CART ICON */
.cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    position: relative;
}

.cart-btn svg {
    width: 28px;
    height: 28px;
    color: #E2C9B0;
    transition: .3s ease;
}

.cart-btn:hover svg {
    transform: scale(1.1);
}

/* CART COUNT */
.cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: red;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 20px;
    text-align: center;
}

/* CART SIDEBAR ============================================*/
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 15px rgba(0,0,0,0.2);
    padding: 20px;
    transition: 0.3s ease;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.cart-sidebar.active {
    right: 0;
}

.cart-close-btn {
    position: absolute;
    left: 15px;
    top: 80px;
    font-size: 35px;
    color: #121D23;
    cursor: pointer;
}

.cart-sidebar h2 {
    margin-top: 80px;
    margin-bottom: 20px;
    font-size: 24px;
    color: #121D23;
    padding-left: 50px;
}

/* CART ITEMS */
#cartItems {
    flex-grow: 1;
    margin-bottom: 15px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.item-controls {
    display: flex;
    gap: 8px;
}

.quantity-btn {
    padding: 4px 8px;
    border: 1px solid #ddd;
    background: #eee;
    border-radius: 4px;
}

.remove-btn {
    color: red;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
}

#cartTotal {
    padding: 15px 0;
    font-size: 18px;
    font-weight: 700;
    border-top: 2px solid #ddd;
}

.btn-whatsapp {
    width: 100%;
    padding: 12px;
    background-color: #25D366;
    color: white;
    border-radius: 8px;
}

/* HAMBURGER ==============================================*/
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: absolute;
    right: 40px;
    z-index: 99999;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ==========================================
   RESPONSIVE (MAX 850PX)
========================================== */
@media (max-width: 850px) {

    /* NAVBAR WRAPPER - DIPERKECIL */
    .navbar {
        padding: 12px 20px;
        grid-template-columns: 1fr auto 1fr;
    }

    /* LOGO DIPERKECIL */
    .logo img {
        width: 40px;
        height: 40px;
    }

    .judul {
        font-size: 20px;
    }

    /* MENU SIDEBAR */
    .nav-center {
        position: fixed;
        top: 0;
        left: -220px;
        width: 200px;
        height: 100vh;
        background-color: #121D23;
        flex-direction: column;
        gap: 18px;
        padding-top: 90px;
        transition: .3s ease;
        border-right: 1px solid #2c3a40;
        z-index: 99990;
        display: flex;
    }

    .nav-center li a {
        font-size: 14px;
    }

    .nav-center.active {
        left: 0;
    }

    /* HAMBURGER DIPERKECIL */
    .hamburger {
        display: flex;
        right: 25px;
        gap: 4px;
    }

    .hamburger span {
        width: 24px;
        height: 2.5px;
    }

    /* CART ICON DIPERKECIL */
    .nav-right {
        display: flex !important;
        position: absolute;
        right: 60px;
        top: 16px;
        z-index: 99999;
    }

    .cart-btn svg {
        width: 24px;
        height: 24px;
    }

    /* MAIN CONTENT - NAVBAR LEBIH KECIL */
    .main-content {
        margin-top: 90px;
        padding: 20px;
    }
}

/* FULLSCREEN CART HP */
@media (max-width: 450px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    .cart-qris {
        width: 90%;
        margin-top: 15px;
}
}

/* MAIN CONTENT SHIFT */
.main-content {
    margin-top: 110px;
    padding: 30px;
}
.cart-qris {
    width: 80%;
    margin: 20px auto 10px auto;
    display: block;
    border-radius: 8px;
}

