body {
    margin: 0;
    padding: 0;
}

/* Shared header and theme styles are applied by main.css */

nav a {
    color: white;
    text-decoration: none;
    margin-right: 1rem;
}

#cart-count {
    background-color: var(--section-accent);
    padding: 0.5rem;
    border-radius: 4px;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

#products, #cart {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.product-card {
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.product-card img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

button {
    background-color: var(--section-accent);
    color: var(--text);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin: 0.5rem;
    transition: opacity 0.2s ease, color 0.2s ease;
}

button:hover {
    opacity: 0.95;
}

#cart-items {
    margin-bottom: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
}

#cart-total {
    font-weight: bold;
    font-size: 1.2rem;
    text-align: right;
}