:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-main: #ffffff;
    --text-sub: #b3b3b3;
    --accent-green: #4CAF50;
}

body {
    margin: 0 auto; /* Dit centreert de boel! */
    max-width: 600px; /* Zorgt dat de app nooit breder wordt dan een flinke tablet */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    box-shadow: 0 0 20px rgba(0,0,0,0.5); /* Geeft een stoere schaduwrand op je desktop */
    min-height: 100vh;
}

header {
    padding: 15px;
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    border-bottom: 1px solid #333;
    z-index: 10;
}

h1 { margin: 0 0 10px 0; font-size: 22px; }

#search-input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background-color: var(--card-bg);
    color: var(--text-main);
    font-size: 16px;
    box-sizing: border-box;
}

#herb-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    align-items: center;
}

.list-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.list-item-text h3 { margin: 0 0 5px 0; font-size: 16px; }
.list-item-text p { margin: 0; font-size: 13px; color: var(--text-sub); }

/* Detail View */
.hidden { display: none !important; }

.detail-header { display: flex; align-items: center; gap: 15px; }
#back-btn {
    background: none; border: none; color: var(--accent-green);
    font-size: 16px; cursor: pointer; padding: 0;
}

#detail-img { 
    width: 100%; 
    height: 300px; /* Vaste, nette hoogte */
    object-fit: cover; /* Snijdt hem mooi af zonder uit te rekken */
    border-radius: 8px; /* Ronde, moderne hoekjes */
    margin-bottom: 15px;
}

#detail-content { padding: 15px; }
.latin-name { color: var(--text-sub); font-style: italic; margin-top: 0; }

.card {
    background-color: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}
.card h4 { margin: 0 0 10px 0; color: var(--accent-green); }
.card p { margin: 0; line-height: 1.5; font-size: 14px; }
/* Bottom Navigation Bar */
#bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-color);
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 100;
}
.nav-btn {
    background: none;
    border: none;
    color: var(--text-sub);
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}
.nav-btn.active { color: var(--accent-green); font-weight: bold; }
#main-content { padding-bottom: 60px; } /* Ruimte maken voor de balk */
#cart-btn { background-color: var(--accent-green); color: #fff; padding: 5px 10px; border-radius: 5px; text-decoration: none; font-size: 14px; margin-left: auto;}
.buy-button {
    background: linear-gradient(135deg, #d4af37, #aa7c11);
    color: #000000;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.buy-button:hover {
    background: linear-gradient(135deg, #aa7c11, #d4af37);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}
