/* 
   SnusHub Minimalist Style 
   Eesmärk: Ülipuhas ja lihtne disain ilma üleliigsete elementideta.
*/

:root {
    --nav-bg: #1a202c; /* Tumesinine nav-riba */
    --nav-text: #ffffff;
    --text-primary: #2d3748;
    --bg-color: #ffffff;
    --accent: #3182ce;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
}

/* Navbar */
.top-nav {
    background-color: var(--nav-bg);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.brand-link {
    color: var(--nav-text);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--nav-text);
    text-decoration: none;
    font-size: 1rem;
}

.nav-link:hover {
    text-decoration: underline;
}

/* Content Layout */
main {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 2rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #1a202c;
}

.description {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* Forms & Tables (Admin) */
form {
    margin-bottom: 2rem;
}

input, textarea {
    display: block;
    width: 100%;
    max-width: 400px;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #cbd5e1;
}

button, .btn {
    background-color: var(--nav-bg);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    text-align: left;
}

th {
    background-color: #f7fafc;
}

/* Product & Gallery Grids */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.item {
    margin-bottom: 1rem;
}

.item img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0.5rem;
}

.price {
    font-weight: bold;
    color: var(--nav-bg);
}

.btn-delete {
    color: #e53e3e;
    text-decoration: underline;
    font-size: 0.875rem;
    cursor: pointer;
    background: none;
    border: none;
}

@media (max-width: 640px) {
    .top-nav {
        flex-direction: column;
        gap: 1rem;
    }
}
