/* Reset & Variabel Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
}

:root {
    --primary-pink: #ffa8b6;
    --primary-blue: #a3cfff;
    --text-dark: #5a4a4a;
    --text-light: #ffffff;
    --bg-color: #fcf9fb;
    --card-bg: #ffffff;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    padding: 0 5%;
    max-width: 1000px;
    margin: 0 auto;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-pink);
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 1px 1px 0px #fff, 2px 2px 0px #f78da0, 3px 3px 1px #f78da0, 4px 4px 5px rgba(0,0,0,0.2);
}

/* UPDATE WARNA KERANJANG BIAR NYALA NGEJRENG */
.cart-icon {
    font-size: 26px; 
    color: #ff4d6d; 
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #ff0000; 
    color: white;
    font-size: 13px;
    padding: 3px 7px;
    border-radius: 50%;
    font-weight: 900;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.hero-mini {
    padding: 30px 5%;
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-blue) 100%);
    color: white;
    text-align: center;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.hero-mini h1 {
    font-size: 2rem;
    margin-bottom: 5px;
    font-weight: 800;
    text-shadow: 2px 2px 0px #ff8fa3, 4px 4px 0px #8cbdff, 6px 6px 6px rgba(0,0,0,0.25);
}

.image-banner-section {
    padding: 30px 0;
    text-align: center;
}

.image-banner-section h2 {
    color: var(--primary-pink);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.operational-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 7px 7px 15px rgba(0,0,0,0.1), -7px -7px 15px rgba(255,255,255,0.7);
    border: 3px solid rgba(255,255,255,0.5);
}

.welcome-banner h2, .welcome-banner p { display: none; }

.categories {
    display: flex;
    overflow-x: auto;
    padding: 20px 5%;
    gap: 10px;
    scrollbar-width: none; 
}
.categories::-webkit-scrollbar { display: none; }

.cat-btn {
    padding: 10px 22px;
    border-radius: 25px;
    border: 2px solid var(--primary-pink);
    background: white;
    color: var(--primary-pink);
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 3px 3px 6px rgba(0,0,0,0.05), -3px -3px 6px rgba(255,255,255,0.8);
}

.cat-btn.active {
    background: var(--primary-pink);
    color: white;
    box-shadow: inset 3px 3px 6px rgba(0,0,0,0.1);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px;
    padding: 0 5% 30px 5%;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.product-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.product-info h3 {
    font-size: 13px;
    margin: 10px 0 5px;
    height: 38px; 
    overflow: hidden;
    color: var(--text-dark);
}

.price {
    color: #ff4d6d; /* Pink cerah yang lebih nyala */
    font-weight: 800; /* Ditebelin dikit biar makin jelas */
    margin-bottom: 10px;
    font-size: 15px; /* Digedein dikit ukurannya */
    text-shadow: 1px 1px 0px rgba(255,255,255,0.8); /* Kasih bayangan putih tipis biar makin kontras */
}

/* TOMBOL BELI 3D MANTAP */
.add-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(180deg, #4facfe 0%, #00f2fe 100%); 
    border: none;
    border-bottom: 4px solid #00a8cc; 
    border-radius: 10px;
    color: white;
    font-weight: 800;
    font-size: 13px;
    margin-top: auto;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    transition: all 0.1s ease-in-out;
}

.add-btn:active {
    transform: translateY(4px); 
    border-bottom: 0px solid #00a8cc; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    overflow-y: auto; /* INI KUNCI 1: Pindahin fitur scroll ke layar hitam pelindungnya */
    padding-bottom: 50px; /* Biar bagian bawahnya nggak mentok banget sama pinggir layar */
}

.modal-content {
    background: white;
    margin: 50px auto; /* INI KUNCI 2: Ganti 15% jadi angka pasti (50px) biar di PC nggak nyungsep ke bawah */
    padding: 20px;
    width: 90%;
    max-width: 420px;
    border-radius: 15px;
    position: relative;
    border-top: 5px solid var(--primary-blue);
    /* max-height dan overflow-y DIBUANG dari sini biar kotak putihnya leluasa ke bawah */
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.cart-total {
    font-size: 18px;
    font-weight: 800;
    color: #ff4d6d; /* Disamain pink-nya */
    text-align: right;
    margin: 15px 0;
    border-top: 2px dashed #eee;
    padding-top: 10px;
}

#orderForm input, #orderForm textarea, #orderForm select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Quicksand', sans-serif;
}

.btn-checkout {
    width: 100%;
    padding: 12px;
    background: #25d366; 
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    margin-top: 10px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.footer-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-pink);
    margin-bottom: 10px;
    text-shadow: 1px 1px 0px #fff, 2px 2px 1px rgba(0,0,0,0.1);
}

/* ANIMASI BARANG TERBANG MASUK KERANJANG */
.fly-item {
    position: fixed;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1); 
    pointer-events: none;
}

@keyframes shakeCart {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.3) rotate(-15deg); }
    50% { transform: scale(1.3) rotate(15deg); }
    75% { transform: scale(1.3) rotate(-15deg); }
    100% { transform: scale(1) rotate(0deg); }
}
.cart-shake {
    animation: shakeCart 0.5s ease-in-out;
}

/* DESAIN KARTU MEMBER VIRTUAL */
.member-card-box {
    width: 100%;
    background: linear-gradient(135deg, #ffa8b6 0%, #a3cfff 100%);
    padding: 20px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(255,168,182,0.3);
}

.member-card-box::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}