:root {
    --green-950: #003c1b;
    --green-900: #07532d;
    --green-800: #08733c;
    --green-700: #11864b;
    --green-100: #e6f4e9;
    --yellow: #f5cf24;
    --ink: #17251d;
    --muted: #68756e;
    --line: #dfe8e2;
    --page: #f4f8f5;
    --white: #fff;
    --shadow: 0 12px 32px rgba(20, 52, 34, .08);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font: 15px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

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

a:hover {
    text-decoration: underline;
}

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

button {
    cursor: pointer;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    color: var(--ink);
    line-height: 1.2;
}

/* Public website header */

.top {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px max(calc((100vw - 1240px) / 2), 28px);
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.top .brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--green-900);
    font-weight: 850;
}

.top .brand:hover {
    text-decoration: none;
}

.top .brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
}

.top nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.top nav a {
    color: #31483a;
    font-weight: 650;
}

.top nav a:hover {
    color: var(--green-700);
}

/* Page layout */

.public {
    min-height: 100vh;
}

.content {
    width: 100%;
    max-width: 1240px;
    min-height: 60vh;
    margin: 0 auto;
    padding: 30px 28px 56px;
}

.public .content > h1 {
    margin-top: 0;
}

footer {
    padding: 22px max(calc((100vw - 1240px) / 2), 28px);
    border-top: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
}

.alert {
    margin: 12px 0;
    padding: 12px 15px;
    border: 1px solid #bfe5cb;
    border-radius: 9px;
    background: #e6f7eb;
    color: #155b32;
}

.alert.error {
    border-color: #f1c2c0;
    background: #fff0ef;
    color: #a32922;
}

/* Buttons */

.button,
button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 17px;
    border: 0;
    border-radius: 9px;
    background: var(--green-700);
    color: #fff;
    font-weight: 750;
    text-align: center;
    transition: background .15s ease, transform .15s ease;
}

.button:hover,
button:hover {
    background: var(--green-900);
    color: #fff;
    text-decoration: none;
}

.button:active,
button:active {
    transform: translateY(1px);
}

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

.button.secondary:hover {
    background: #dcebe0;
    color: var(--green-950);
}

/* Homepage hero with gunia photo background */

.home-hero {
    position: relative;
    display: flex;
    min-height: 500px;
    align-items: center;
    margin: 4px 0 36px;
    padding: clamp(32px, 6vw, 72px);
    overflow: hidden;
    border: 1px solid rgba(20, 87, 48, .08);
    border-radius: 26px;
    background:
        linear-gradient(
            90deg,
            rgba(0, 48, 24, .92) 0%,
            rgba(0, 48, 24, .78) 48%,
            rgba(0, 48, 24, .25) 100%
        ),
        var(--hero-image) center / cover no-repeat;
    box-shadow: var(--shadow);
    color: #fff;
}

.home-hero-copy {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 700px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--green-700);
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.home-hero .eyebrow {
    color: var(--yellow);
}

.home-hero h1 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(2.6rem, 5.5vw, 4.5rem);
    line-height: 1.04;
    letter-spacing: -.055em;
}

.home-hero h1 span {
    color: #ffdc00;
}

.home-intro {
    max-width: 600px;
    margin: 0 0 24px;
    color: #f0f7f2;
    font-size: 1.06rem;
}

/* Homepage search */

.home-search {
    display: flex;
    width: 100%;
    max-width: 620px;
    min-height: 58px;
    gap: 8px;
    padding: 5px;
    border: 1px solid #d5e2d9;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(25, 64, 39, .12);
}

.home-search input {
    flex: 1;
    min-width: 0;
    min-height: 46px;
    padding: 10px 14px;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
}

.home-search input:focus {
    box-shadow: none;
}

.home-search button {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 10px 17px;
    border-radius: 9px;
    background: var(--yellow);
    color: #203321;
}

.home-search button:hover {
    background: #e9c315;
    color: #203321;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.home-hero .button.secondary {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.home-hero .button.secondary:hover {
    background: rgba(255, 255, 255, .25);
}

/* Homepage steps */

.home-promise {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 64px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.home-promise article {
    display: flex;
    gap: 14px;
    padding: 9px 22px;
}

.home-promise article + article {
    border-left: 1px solid var(--line);
}

.promise-mark {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: #fff3b8;
    color: #735c00;
    font-size: .78rem;
    font-weight: 850;
}

.home-promise strong {
    color: #24392c;
}

.home-promise p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: .9rem;
}

/* Homepage sections */

.home-section {
    margin: 0 0 62px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.section-heading .eyebrow {
    margin-bottom: 5px;
}

.section-heading h2 {
    margin: 0;
    color: #174c2e;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    letter-spacing: -.035em;
}

.section-heading > a {
    flex: 0 0 auto;
    padding-bottom: 5px;
    font-weight: 750;
}

.section-heading > a span {
    margin-left: 4px;
}

/* Category tiles */

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

.category-tile {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    gap: 2px 13px;
    min-height: 88px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(20, 52, 34, .04);
}

.category-tile:hover {
    border-color: #a8cfb4;
    text-decoration: none;
    transform: translateY(-1px);
}

.category-icon {
    display: grid;
    grid-row: span 2;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 13px;
    background: var(--green-100);
    color: var(--green-800);
    font-size: .75rem;
    font-weight: 850;
}

.category-tile strong {
    color: #20382a;
}

.category-tile small {
    color: var(--muted);
}

/* Product cards */

.home-product-grid,
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-product-card,
.card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(20, 52, 34, .05);
}

.card {
    padding: 18px;
}

.product-image {
    display: grid;
    height: 205px;
    place-items: center;
    overflow: hidden;
    background: #edf4ef;
}

.product-image img,
.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

.card img {
    height: 170px;
    margin-bottom: 12px;
    border-radius: 10px;
}

.home-product-card:hover .product-image img {
    transform: scale(1.03);
}

.image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 100px;
    place-items: center;
    background: #eaf3ec;
    color: var(--green-700);
    font-size: 1.4rem;
    font-weight: 900;
}

.product-info {
    padding: 17px;
}

.product-info > small,
.card small {
    color: var(--muted);
    font-size: .73rem;
    font-weight: 750;
    letter-spacing: .05em;
}

.product-info h3,
.card h3 {
    margin: 7px 0;
    font-size: 1.05rem;
}

.product-info h3 a,
.card h3 a {
    color: #20382a;
}

.product-info p,
.card p {
    min-height: 42px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: .88rem;
}

.product-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #edf1ee;
}

.product-card-bottom strong {
    color: var(--green-900);
}

.product-card-bottom a {
    font-size: .82rem;
    font-weight: 750;
}

.empty-catalogue {
    display: grid;
    gap: 8px;
    padding: 28px;
    border: 1px dashed #a9cbb3;
    border-radius: 16px;
    background: #fff;
}

.empty-catalogue strong {
    color: var(--green-900);
    font-size: 1.1rem;
}

.empty-catalogue span {
    color: var(--muted);
}

.empty-catalogue a {
    width: fit-content;
    margin-top: 7px;
    padding: 9px 14px;
    border-radius: 8px;
    background: var(--green-700);
    color: #fff;
}

/* Homepage contact strip */

.home-contact-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin: 0 0 10px;
    padding: 28px clamp(22px, 4vw, 42px);
    border-radius: 20px;
    background: #fff4c6;
}

.home-contact-band .eyebrow {
    margin-bottom: 5px;
}

.home-contact-band h2 {
    margin: 0;
    color: #174c2e;
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.home-contact-band p:not(.eyebrow) {
    margin: 6px 0 0;
    color: #657267;
}

.home-contact-band .button {
    flex: 0 0 auto;
}

/* Catalogue page */

.catalogue-hero,
.hero {
    margin: 4px 0 32px;
    padding: clamp(30px, 5vw, 58px);
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(115deg, #064d29, #13874b);
    color: #fff;
}

.catalogue-hero h1,
.hero h1,
.hero h2 {
    color: #fff;
}

.catalogue-hero h1,
.hero h1 {
    max-width: 790px;
    margin: 8px 0 14px;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    letter-spacing: -.04em;
}

.catalogue-hero p:not(.eyebrow),
.hero p {
    max-width: 700px;
    color: #e6f3e9;
}

.catalogue-section {
    margin-bottom: 40px;
}

.catalogue-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 22px;
}

.catalogue-filter input {
    flex: 1;
}

.catalogue-filter select {
    flex: 0 0 220px;
}

.hero.compact {
    padding: 30px;
}

/* Product details */

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 36px;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.product-detail-image {
    display: grid;
    min-height: 340px;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    background: #edf4ef;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: contain;
}

.product-detail-info h1 {
    margin-top: 0;
    color: var(--green-900);
    font-size: clamp(2rem, 4vw, 3rem);
}

.product-price {
    color: var(--green-900);
    font-size: 1.4rem;
    font-weight: 850;
}

/* Contact and order forms */

.contact-page {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 35px;
    align-items: start;
}

.contact-intro h1,
.about-page h1,
.status-page h1 {
    margin-top: 0;
    color: var(--green-900);
    font-size: clamp(2rem, 4vw, 3rem);
}

.contact-intro > p:not(.eyebrow) {
    color: var(--muted);
}

.contact-details {
    display: grid;
    gap: 10px;
    margin-top: 25px;
}

.contact-details p {
    display: grid;
    gap: 3px;
    margin: 0;
}

.contact-details strong {
    color: #304438;
}

.contact-form-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}

.contact-form-card h2 {
    margin-top: 0;
    color: var(--green-900);
}

.order-products {
    display: grid;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.order-products legend {
    padding: 0 6px;
    color: #26382e;
    font-weight: 700;
}

.order-product {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #edf1ee;
}

.order-product:last-of-type {
    border-bottom: 0;
}

.order-product-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-product-name input[type="checkbox"] {
    width: auto;
}

.order-product-name strong,
.order-product-name small {
    display: block;
}

.order-product-name small {
    color: var(--muted);
    font-weight: 400;
}

.order-quantity {
    width: 90px;
}

/* About, status, legal pages */

.about-page,
.legal-page,
.status-page {
    max-width: 850px;
    margin: 20px auto 40px;
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.about-lead {
    color: var(--green-900);
    font-size: 1.3rem;
    font-weight: 700;
}

.order-status-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px;
    border-radius: 12px;
    background: #f1f7f2;
}

.order-status-card span {
    color: var(--muted);
}

.order-status-label {
    color: var(--green-800);
}

.status-form {
    max-width: 520px;
}

/* Forms */

.form {
    display: grid;
    gap: 15px;
    max-width: 720px;
    margin: 22px 0;
}

.grid-form {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    max-width: none;
}

.form label,
.toolbar label {
    display: grid;
    gap: 6px;
    color: #26382e;
    font-weight: 650;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #cbd8d0;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: var(--ink);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--green-700);
    box-shadow: 0 0 0 3px rgba(16, 131, 74, .12);
}

.toolbar {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.toolbar > input,
.toolbar > select {
    flex: 1 1 220px;
}

.product-choice {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
    font-weight: 400;
}

.product-choice input[type="checkbox"] {
    width: auto;
    min-height: auto;
}

.product-choice input[type="number"] {
    width: 90px;
}

.sale-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px;
    gap: 10px;
    margin-bottom: 8px;
}

/* Tables */

.table-wrap {
    width: 100%;
    margin: 18px 0;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
}

table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

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

th {
    background: #eff4f0;
    color: #1c3728;
    font-size: .82rem;
    font-weight: 800;
}

td {
    color: #35453c;
    font-size: .9rem;
}

tbody tr:last-child td {
    border-bottom: 0;
}

/* Generic stats and login */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.stat {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
}

.stat small {
    color: var(--muted);
}

.stat strong {
    color: var(--green-900);
    font-size: 1.3rem;
}

.login-box {
    max-width: 440px;
    margin: 60px auto;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}

.login-box .form {
    margin-bottom: 0;
}

/* Admin frame and sidebar */

.admin {
    min-height: 100vh;
    margin-left: 255px;
}

.admin .top,
.admin-top,
.admin footer {
    display: none;
}

.admin .content {
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0 30px 32px;
}

.sidebar {
    position: fixed;
    z-index: 20;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 255px;
    padding: 24px 12px;
    overflow: hidden;
    background: linear-gradient(180deg, #00652e 0%, #00431f 100%);
    color: #fff;
}

.sidebar .brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 10px 20px;
    color: #fff;
    font-size: 1.3rem;
    line-height: 1.12;
    text-align: center;
}

.sidebar .brand-logo {
    width: 112px;
    height: 112px;
    object-fit: contain;
    border-radius: 18px;
}

.sidebar nav {
    display: grid;
    gap: 5px;
    overflow: auto;
}

.sidebar nav a {
    padding: 12px 15px;
    border-radius: 13px;
    color: #f2fff6;
    font-weight: 650;
}

.sidebar nav a:hover {
    background: rgba(255, 255, 255, .13);
    color: #fff;
    text-decoration: none;
}

.sidebar nav a[aria-current="page"] {
    background: var(--yellow);
    color: #12351f;
}

.sidebar .muted {
    margin-top: auto;
    padding: 18px 14px 6px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
}

/* Dashboard */

.app-dashboard {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.app-toolbar {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 76px;
    margin: 0 -30px 22px;
    padding: 12px 30px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.menu-toggle {
    padding: 4px 8px;
    background: transparent;
    color: var(--green-900);
    font-size: 1.8rem;
}

.dashboard-search {
    display: flex;
    flex: 1;
    max-width: 760px;
    overflow: hidden;
    border-radius: 999px;
    background: #f0f3f7;
}

.dashboard-search input {
    min-height: 46px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.dashboard-search button {
    width: 54px;
    min-height: 46px;
    border-radius: 0;
    background: transparent;
    color: #657487;
    font-size: 1.5rem;
}

.toolbar-notice {
    position: relative;
    color: var(--green-900);
    font-size: 1.5rem;
}

.toolbar-notice span {
    position: absolute;
    top: -7px;
    right: -9px;
    display: grid;
    min-width: 19px;
    height: 19px;
    place-items: center;
    padding: 0 4px;
    border-radius: 20px;
    background: #e52c37;
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
}

.toolbar-user {
    display: flex;
    align-items: center;
    gap: 9px;
}

.user-avatar {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: var(--green-900);
    color: #fff;
    font-weight: 800;
}

.dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.dashboard-heading h1 {
    margin: 0;
    color: #142033;
    font-size: 2.2rem;
}

.dashboard-heading p {
    margin: 2px 0 0;
    color: #48586b;
}

.dashboard-date {
    padding: 11px 17px;
    border: 1px solid #e3e9ef;
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(20, 40, 60, .06);
    font-weight: 700;
}

.app-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.app-stat {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    min-height: 105px;
    padding: 14px;
    border: 1px solid #e6eaf0;
    border-radius: 17px;
    background: #fff;
    box-shadow: var(--shadow);
}

.app-stat-icon {
    display: grid;
    flex: 0 0 54px;
    height: 54px;
    place-items: center;
    border-radius: 15px;
    font-size: 1.45rem;
}

.icon-green { background: #e1f6e9; color: #07843b; }
.icon-blue { background: #e6eeff; color: #1253d2; }
.icon-orange { background: #fff0df; color: #ef7500; }
.icon-purple { background: #eee6ff; color: #6d31bf; }

.app-stat small {
    display: block;
    color: #455468;
    font-size: .8rem;
}

.app-stat strong {
    display: block;
    margin-top: 3px;
    color: #111b2e;
    font-size: 1.25rem;
    overflow-wrap: anywhere;
}

.dashboard-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 17px;
}

.dashboard-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e3e8ee;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.panel-title {
    display: flex;
    min-height: 60px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 17px;
    background: linear-gradient(100deg, #07552f, #155a3d);
    color: #fff;
}

.panel-title h2 {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
}

.panel-title h2 span {
    margin-right: 8px;
    color: var(--yellow);
}

.yellow-pill {
    flex: 0 0 auto;
    padding: 7px 12px;
    border-radius: 25px;
    background: var(--yellow);
    color: #18291e;
    font-size: .74rem;
    font-weight: 800;
}

.line-chart {
    position: relative;
    min-height: 220px;
    padding: 13px 16px 8px;
}

.line-chart svg {
    display: block;
    width: 100%;
    height: 205px;
}

.line-chart svg line {
    stroke: #e7ecf0;
    stroke-width: 1;
}

.line-chart svg text {
    fill: #48566a;
    font: 12px system-ui, sans-serif;
    text-anchor: middle;
}

.line-chart svg circle {
    fill: #078a3c;
}

.chart-line {
    fill: none;
    stroke: #078a3c;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-area {
    fill: rgba(25, 165, 82, .16);
    stroke: none;
}

.chart-empty {
    margin: -25px 0 0;
    color: #718075;
    font-size: .84rem;
    text-align: center;
}

.product-performance {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    justify-content: center;
    gap: 17px;
    padding: 20px;
}

.product-bar-row {
    display: grid;
    grid-template-columns: minmax(80px, 1fr) 2fr 32px;
    align-items: center;
    gap: 9px;
}

.product-bar-row strong {
    overflow: hidden;
    font-size: .83rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-bar-row small {
    color: #5b6b61;
    text-align: right;
}

.product-bar {
    height: 9px;
    overflow: hidden;
    border-radius: 10px;
    background: #edf2ee;
}

.product-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #128549;
}

.product-empty {
    display: grid;
    justify-items: center;
    gap: 9px;
    color: #172235;
    text-align: center;
}

.product-empty > span {
    font-size: 3rem;
}

.product-empty strong {
    line-height: 1.4;
}

.dashboard-lower {
    grid-template-columns: 1.6fr 1fr;
}

.activity-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 17px 10px;
}

.activity-heading h2 {
    margin: 0;
    color: #152238;
    font-size: 1.05rem;
}

.activity-heading a {
    color: #087b3d;
    font-size: .82rem;
    font-weight: 750;
}

.dashboard-panel .table-wrap {
    margin: 0 12px 13px;
}

.dashboard-panel table {
    min-width: 500px;
}

.dashboard-panel th {
    background: #eff3f8;
}

.status-pill {
    padding: 5px 10px;
    border-radius: 30px;
    background: #c9f4d4;
    color: #14562d;
    font-size: .75rem;
    font-weight: 750;
}

.dashboard-promo {
    min-height: 175px;
    padding: 22px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 100%, #19a958, transparent 40%),
        linear-gradient(120deg, #00552b, #087842);
    color: #fff;
}

.dashboard-promo h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.3rem;
}

.dashboard-promo p {
    color: #e0f4e7;
}

.dashboard-promo .promo-kicker {
    color: var(--yellow);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.dashboard-promo a {
    display: inline-block;
    padding: 9px 13px;
    border-radius: 22px;
    background: var(--yellow);
    color: #17351f;
    font-size: .82rem;
    font-weight: 800;
}

.recent-sales-panel {
    margin-top: 16px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive layouts */

@media (max-width: 1000px) {
    .home-product-grid,
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-lower {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .top {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 13px 18px;
    }

    .top nav {
        flex-wrap: wrap;
        gap: 14px;
    }

    .content {
        padding: 20px 18px 42px;
    }

    .home-hero {
        min-height: 540px;
        padding: 34px 25px;
        background:
            linear-gradient(rgba(0, 48, 24, .82), rgba(0, 48, 24, .72)),
            var(--hero-image) center / cover no-repeat;
    }

    .home-hero h1 {
        font-size: clamp(2.5rem, 11vw, 4rem);
    }

    .home-promise {
        grid-template-columns: 1fr;
        gap: 5px;
        margin-bottom: 46px;
    }

    .home-promise article {
        padding: 12px 8px;
    }

    .home-promise article + article {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .home-contact-band {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-detail,
    .contact-page {
        grid-template-columns: 1fr;
    }

    .product-detail-image {
        min-height: 240px;
    }

    .catalogue-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .catalogue-filter select {
        flex-basis: auto;
    }

    .sidebar {
        z-index: 30;
        transform: translateX(-105%);
        transition: transform .2s ease;
    }

    .menu-open .sidebar {
        transform: translateX(0);
    }

    .admin {
        margin-left: 0;
    }

    .admin .content {
        padding: 0 14px 24px;
    }

    .app-toolbar {
        margin: 0 -14px 18px;
        padding: 10px 14px;
        gap: 10px;
    }

    .toolbar-user strong {
        display: none;
    }

    .dashboard-panels {
        grid-template-columns: 1fr;
    }

    .dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

@media (max-width: 520px) {
    .home-search {
        flex-direction: column;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .home-search input {
        min-height: 50px;
        border: 1px solid #d5e2d9;
        border-radius: 10px;
        background: #fff;
    }

    .home-search button {
        width: 100%;
    }

    .home-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .home-actions .button {
        width: 100%;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .category-grid,
    .home-product-grid,
    .cards {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 190px;
    }

    .app-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .app-stat {
        min-height: 82px;
        gap: 8px;
        padding: 9px;
    }

    .app-stat-icon {
        flex-basis: 39px;
        height: 39px;
        font-size: 1.1rem;
    }

    .app-stat small {
        font-size: .69rem;
    }

    .app-stat strong {
        font-size: .92rem;
    }

    .dashboard-date {
        font-size: .8rem;
    }

    .line-chart {
        min-height: 190px;
        padding: 12px 9px 4px;
    }

    .line-chart svg {
        height: 180px;
    }

    .panel-title {
        padding: 10px 12px;
    }

    .panel-title h2 {
        font-size: .91rem;
    }

    .yellow-pill {
        padding: 6px 8px;
        font-size: .65rem;
    }
}
.pwa-install {
    min-height: 38px;
    padding: 8px 12px;
    white-space: nowrap;
}

#pwaInstallButton[hidden] {
    display: none;
}