:root {
    --green: #1f7a4d;
    --leaf: #58a96a;
    --gold: #c99425;
    --ink: #1f2a24;
    --muted: #607066;
    --line: #dfe7e1;
    --bg: #f6f8f4;
    --white: #ffffff;
    --danger: #b23b3b;
}

* {
    box-sizing: border-box;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 5vw;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
}

.admin-bar {
    background: #17281d;
    color: var(--white);
    border-bottom: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--green), var(--gold));
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
    font-size: 14px;
}

nav a {
    padding: 8px 0;
}

.nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    color: var(--white);
    background: var(--green);
    font-weight: 700;
    cursor: pointer;
}

.button.secondary {
    color: var(--green);
    background: #e7f1ea;
}

.button.danger {
    background: var(--danger);
}

main {
    min-height: calc(100vh - 150px);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 40px;
    align-items: center;
    min-height: 560px;
    padding: 64px 5vw;
    background:
        linear-gradient(90deg, rgba(246, 248, 244, 0.96), rgba(246, 248, 244, 0.75)),
        url('https://images.unsplash.com/photo-1512621776951-a57141f2eefd?auto=format&fit=crop&w=1400&q=80') center/cover;
}

.hero h1 {
    margin: 0 0 16px;
    max-width: 720px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1;
    letter-spacing: 0;
}

.hero p {
    max-width: 640px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-panel,
.card,
.form-card,
.table-wrap {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(31, 42, 36, 0.06);
}

.hero-panel {
    padding: 26px;
}

.section {
    padding: 48px 5vw;
}

.section h2 {
    margin: 0 0 22px;
    font-size: 32px;
}

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

.card {
    padding: 20px;
}

.product-card {
    display: flex;
    flex-direction: column;
    min-height: 260px;
}

.product-image {
    display: grid;
    place-items: center;
    width: calc(100% + 40px);
    height: 130px;
    margin: -20px -20px 16px;
    border-radius: 8px 8px 0 0;
    color: var(--white);
    background: linear-gradient(135deg, var(--leaf), var(--gold));
    font-size: 44px;
    font-weight: 800;
    object-fit: cover;
    overflow: hidden;
}

img.product-image {
    display: block;
    background: #edf5ef;
}

.price {
    margin-top: auto;
    color: var(--green);
    font-size: 22px;
    font-weight: 800;
}

.form-card {
    width: min(620px, 92vw);
    margin: 42px auto;
    padding: 26px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

textarea {
    min-height: 90px;
}

.full {
    grid-column: 1 / -1;
}

.dashboard {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 24px;
    padding: 28px 5vw;
}

.sidebar {
    align-self: start;
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.sidebar a {
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--muted);
}

.sidebar a:hover {
    background: #edf5ef;
    color: var(--green);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.stat {
    padding: 18px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--line);
}

.stat strong {
    display: block;
    margin-top: 8px;
    font-size: 26px;
}

.level-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.level-tabs a {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
}

.level-tabs a.active {
    color: var(--white);
    background: var(--green);
    border-color: var(--green);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 13px;
}

.status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #edf5ef;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
}

.status.blocked,
.status.rejected,
.status.disapproved {
    color: var(--danger);
    background: #faecec;
}

.status.pending {
    color: #916616;
    background: #fff4d8;
}

.alert {
    width: min(1100px, 90vw);
    margin: 18px auto 0;
    padding: 12px 14px;
    border-radius: 6px;
    font-weight: 700;
}

.alert.success {
    color: var(--green);
    background: #e6f3eb;
}

.alert.error {
    color: var(--danger);
    background: #faecec;
}

.site-footer {
    padding: 26px 5vw;
    color: var(--muted);
    background: var(--white);
    border-top: 1px solid var(--line);
    text-align: center;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inline-form {
    display: inline;
}

.admin-product-preview {
    width: 160px;
    height: 110px;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: cover;
}

td .product-image {
    width: 70px;
    height: 52px;
    margin: 0;
    border-radius: 6px;
    font-size: 20px;
}

@media (max-width: 800px) {
    .site-header,
    .hero,
    .dashboard {
        grid-template-columns: 1fr;
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    nav {
        justify-content: flex-start;
    }

    .hero {
        min-height: auto;
        padding-top: 42px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}
