:root {
    color-scheme: light;
    --bg: #fdf3ea;
    --card: #ffffff;
    --accent: #c98a5e;
    --text: #3a2c22;
    --error: #b3261e;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

.page {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.gate-card {
    max-width: 420px;
    margin: 4rem auto;
    background: var(--card);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.gate-icon {
    font-size: 3rem;
}

.gate-card form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    text-align: left;
}

.gate-card input,
.gate-card button {
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
}

.gate-card button,
.shop button {
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
}

.gate-card button:hover,
.shop button:not([disabled]):hover {
    filter: brightness(0.95);
}

.error {
    color: var(--error);
    margin-top: 1rem;
}

.shop header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logout-form button {
    padding: 0.4rem 0.9rem;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.product-card {
    background: var(--card);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.product-placeholder {
    font-size: 2.5rem;
}

.price {
    font-weight: 600;
}

.product-card button {
    width: 100%;
    padding: 0.6rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.product-card button[disabled] {
    background: #ddd;
    color: #777;
    cursor: not-allowed;
}
