:root {
    --primary: #111111; /* TokoGD Black */
    --secondary: #333333; /* Dark Gray */
    --accent: #ca8a04; /* Gold/Dark Yellow */
    --bg: #f8fafc; /* Very light slate/gray background */
    --card-bg: #ffffff;
    --text: #0f172a; /* Slate 900 */
    --text-light: #64748b; /* Slate 500 */
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 480px; /* Mobile width */
    background-color: var(--bg);
    min-height: 100vh;
    position: relative;
    padding-bottom: 70px; /* Space for navbar */
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Header */
header {
    padding: 15px 20px;
    background: var(--card-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 800;
}

/* Forms */
.form-container {
    padding: 20px;
    background: var(--card-bg);
    margin: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

button.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: background 0.2s;
}

button.btn-primary:hover {
    background: #047857;
}

/* Product Feed */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 8px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.product-card:active {
    transform: scale(0.98);
}

.product-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #f1f5f9;
}

.product-info {
    padding: 6px;
}

.product-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.8rem;
}

.product-name {
    font-size: 0.75rem;
    margin: 2px 0;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seller-name {
    font-size: 0.6rem;
    color: var(--text-light);
    margin-top: 2px;
}

.product-desc {
    font-size: 0.65rem;
    color: #64748b;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* autoprefixer: ignore next */
    -webkit-box-orient: vertical; 
    overflow: hidden;
    line-height: 1.2em;
    height: 2.4em; /* 2 lines * 1.2em */
}

/* Navbar */
.navbar {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background: var(--card-bg);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
}

.nav-item {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item span {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

/* Misc */
.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fee2e2; }
.alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #dcfce7; }
