:root {
    --color-bg: #f7f7f4;
    --color-surface: #ffffff;
    --color-text: #171717;
    --color-muted: #6b7280;
    --color-border: #deded8;
    --color-primary: #16845b;
    --color-primary-pressed: #106a49;
    --bottom-nav-height: 64px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.app-shell {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 16px 16px calc(var(--bottom-nav-height) + 24px);
    background: var(--color-surface);
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
}

.app-header__title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
}

.section-title {
    margin: 24px 0 12px;
    font-size: 18px;
    font-weight: 800;
}

.product-list {
    display: grid;
    gap: 12px;
}

.product-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    min-height: 112px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
}

.product-card__image {
    width: 96px;
    height: 88px;
    border-radius: 8px;
    background: #e6ece8;
}

.product-card__title {
    margin: 0;
    font-size: 16px;
    font-weight: 750;
}

.product-card__price {
    margin: 8px 0 0;
    color: var(--color-primary);
    font-size: 15px;
    font-weight: 800;
}

.product-card__meta {
    margin: 6px 0 0;
    color: var(--color-muted);
    font-size: 13px;
}

.bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    height: var(--bottom-nav-height);
    border-top: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.96);
}

.bottom-nav__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 480px;
    height: 100%;
    margin: 0 auto;
}

.bottom-nav__item {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 700;
}

.bottom-nav__item--active {
    color: var(--color-primary);
}

.toast {
    position: fixed;
    right: 16px;
    bottom: calc(var(--bottom-nav-height) + 16px);
    left: 16px;
    z-index: 20;
    max-width: 448px;
    margin: 0 auto;
    padding: 14px 16px;
    border-radius: 8px;
    background: #1f2937;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
}

.toast[data-visible="true"] {
    opacity: 1;
    transform: translateY(0);
}
