:root {
    --ink: #1d2733;
    --muted: #667085;
    --line: #d7dee8;
    --surface: #ffffff;
    --soft: #f4f7fb;
    --brand: #18756c;
    --brand-dark: #105d56;
    --accent: #f2a541;
    --danger: #b42318;
}

body {
    background: var(--soft);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    color: var(--brand-dark);
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-shell {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    min-height: 72px;
}

.brand {
    align-items: center;
    color: var(--ink);
    display: flex;
    font-size: 1.2rem;
    font-weight: 700;
    gap: 10px;
}

.brand:hover {
    color: var(--ink);
}

.brand-mark {
    align-items: center;
    background: var(--brand);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-size: 0.85rem;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.nav-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.nav-links a {
    border-radius: 6px;
    color: var(--ink);
    font-weight: 600;
    padding: 9px 12px;
}

.nav-links a:hover {
    background: #e9f5f3;
    color: var(--brand-dark);
}

.page-shell {
    min-height: calc(100vh - 138px);
    padding: 34px 0;
}

.hero-band {
    background: linear-gradient(135deg, #eef9f6 0%, #fff7ea 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 28px;
    padding: 30px;
}

.hero-band h1 {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 14px;
}

.hero-band p,
.muted {
    color: var(--muted);
}

.toolbar,
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.category-strip {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.category-card,
.product-card,
.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    height: 100%;
}

.category-card {
    display: block;
    padding: 16px;
}

.category-card img {
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    object-fit: cover;
    width: 100%;
}

.category-card h3 {
    color: var(--ink);
    font-size: 1.05rem;
    margin-top: 12px;
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-image {
    aspect-ratio: 4 / 3;
    background: #edf2f7;
    object-fit: cover;
    width: 100%;
}

.product-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.product-title {
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.price {
    color: var(--brand-dark);
    font-size: 1.1rem;
    font-weight: 800;
}

.stock-pill,
.status-pill {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 9px;
    width: fit-content;
}

.stock-pill {
    background: #e9f5f3;
    color: var(--brand-dark);
}

.status-pill {
    background: #eef2ff;
    color: #344054;
}

.status-pill.inactive,
.status-pill.cancelled {
    background: #fff1f0;
    color: var(--danger);
}

.btn-brand {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 700;
}

.btn-brand:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.btn-outline-brand {
    border-color: var(--brand);
    color: var(--brand);
    font-weight: 700;
}

.btn-outline-brand:hover {
    background: var(--brand);
    color: #fff;
}

.table-shell {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table th {
    background: #f8fafc;
    color: #344054;
    font-size: 0.85rem;
}

.form-control,
.form-select {
    border-color: #cbd5e1;
}

.admin-layout {
    display: grid;
    gap: 18px;
    grid-template-columns: 230px 1fr;
}

.admin-menu {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    height: fit-content;
    padding: 10px;
}

.admin-menu a {
    border-radius: 6px;
    color: var(--ink);
    display: block;
    font-weight: 700;
    padding: 10px 12px;
}

.admin-menu a:hover {
    background: #e9f5f3;
    color: var(--brand-dark);
}

.stat-card {
    padding: 18px;
}

.stat-card strong {
    display: block;
    font-size: 1.7rem;
}

.footer {
    background: #111827;
    color: #d1d5db;
}

.footer-inner {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-height: 66px;
}

@media (max-width: 768px) {
    .nav-shell,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding-bottom: 14px;
        padding-top: 14px;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .hero-band {
        padding: 22px;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }
}
