:root {
    --bg-color: #0a0a0a;
    --header-bg: #111111;
    --card-bg: #161616;
    --primary-color: #3b82f6;
    --text-main: #ffffff;
    --text-dim: #a1a1aa;
    --border-color: #262626;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    line-height: 1.5;
}

header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    padding: 4rem 1rem;
    margin-bottom: 3rem;
    display: flex; /* Bikin logo & teks jadi flex */
    flex-direction: column; /* Biar numpuk ke bawah */
    align-items: center; /* Posisikan ke tengah */
}

/* Styling Logo Web */
.web-logo {
    width: 100px; /* Ukuran lebar logo */
    height: 100px; /* Ukuran tinggi logo */
    object-fit: cover; /* Biar gambar gak gepeng */
    border-radius: 50%; /* Bikin logo jadi bulat (opsional, hapus kalau gak mau) */
    margin-bottom: 1rem; /* Jarak ke judul H1 */
    border: 3px solid var(--border-color); /* Garis pinggir logo */
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    text-transform: uppercase;
}

header p {
    color: var(--text-dim);
    margin-top: 0.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    box-shadow: var(--shadow);
}

.card:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
}

.product-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 18px;
    flex-shrink: 0;
    background: #222;
}

.card-info {
    flex-grow: 1;
    text-align: left;
}

.badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: #ef4444;
    color: white;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    z-index: 10;
}

.card h3 {
    margin: 0 0 4px 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.card p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 0 0 15px 0;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    width: fit-content;
    transition: all 0.3s ease;
}

button:hover {
    filter: brightness(1.2);
    padding: 10px 25px;
}

button:active {
    transform: scale(0.95);
}

/* WhatsApp Widget Styling */
.wa-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-button img { width: 35px; }

.chat-popup {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    z-index: 1000;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.chat-header {
    background: #075e54;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-info { display: flex; align-items: center; gap: 10px; }
.admin-info img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; } /* Raiphin avatar widget */
.admin-info strong { display: block; font-size: 14px; color: white; }
.admin-info p { font-size: 11px; margin: 0; opacity: 0.8; color: white; }

.close-btn { background: none; border: none; color: white; font-size: 24px; cursor: pointer; }

.chat-body { padding: 20px; font-size: 14px; color: #444; background: #e5ddd5; }

.chat-footer { padding: 15px; text-align: center; }

.send-btn {
    display: block;
    background: #25d366;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 25px;
    font-weight: bold;
    transition: 0.3s;
}

.send-btn:hover { background: #128c7e; }

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .card { padding: 15px; }
    .product-img { width: 80px; height: 80px; }
    .web-logo { width: 80px; height: 80px; } /* Logo ngecil di HP */
}