:root {
    --green: #176b45;
    --green-2: #245e47;
    --green-3: #dff2e7;
    --cream: #f7f5ef;
    --surface: #fff;
    --ink: #173b2e;
    --text: #45594f;
    --muted: #718078;
    --line: #dfe7e1;
    --orange: #e98544;
    --gold: #d8ad50;
    --red: #b64b44;
    --shadow: 0 12px 36px rgba(27, 65, 48, 0.08);
    --radius: 22px;
    --radius-sm: 14px;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: "DM Sans", sans-serif;
    color: var(--text);
    background: #fcfcfa;
    line-height: 1.55;
}
h1,
h2,
h3,
h4 {
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    line-height: 1.12;
    margin: 0;
}
h1 {
    font-size: clamp(2.6rem, 5vw, 5.2rem);
    letter-spacing: -0.055em;
}
h2 {
    font-size: clamp(2rem, 3vw, 3.4rem);
    letter-spacing: -0.045em;
}
h3 {
    font-size: 1.12rem;
    letter-spacing: -0.02em;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
select,
textarea {
    font: inherit;
}
.shell {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}
.topbar {
    height: 76px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(223, 231, 225, 0.8);
    position: sticky;
    top: 0;
    z-index: 50;
}
.nav-wrap {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 34px;
}
.brand img {
    width: 178px;
    display: block;
}
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
}
.desktop-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #41544a;
    font-weight: 600;
    font-size: 0.94rem;
}
.desktop-nav a:hover,
.desktop-nav a.active {
    background: #edf7f1;
    color: var(--green);
}
.nav-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 9px;
}
.icon-btn {
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f4f7f4;
    color: var(--ink);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    position: relative;
}
.icon-btn:hover {
    background: #e7f2eb;
}
.tiny-dot {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
    right: 7px;
    top: 7px;
    border: 2px solid #fff;
}
.text-link {
    font-weight: 700;
    color: var(--ink);
    padding: 8px;
}
.btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.18s ease;
}
.btn-sm {
    padding: 10px 16px;
    font-size: 0.92rem;
}
.btn-primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 8px 20px rgba(23, 107, 69, 0.18);
}
.btn-primary:hover {
    background: #12583a;
    transform: translateY(-1px);
}
.btn-tonal {
    background: var(--green-3);
    color: var(--green);
}
.btn-outline {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
}
.menu-btn {
    display: none;
    border: 0;
    background: transparent;
}
.mobile-nav {
    display: none;
}
.hero {
    padding: 62px 0 52px;
    background:
        radial-gradient(circle at 80% 20%, #e2f1e8 0, transparent 34%),
        linear-gradient(180deg, #fbfcf8 0, #f4f7f1 100%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 48px;
    align-items: center;
}
.eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    color: var(--green);
    font-weight: 800;
    text-transform: uppercase;
}
.hero h1 {
    margin: 14px 0 22px;
}
.hero p {
    font-size: 1.12rem;
    max-width: 650px;
    color: #52645b;
}
.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}
.trust-row {
    display: flex;
    gap: 28px;
    margin-top: 34px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.9rem;
    color: #586b61;
}
.trust-item .material-symbols-rounded {
    color: var(--green);
}
.hero-visual {
    position: relative;
    min-height: 510px;
}
.hero-photo {
    width: 88%;
    height: 470px;
    object-fit: cover;
    border-radius: 40px 12px 40px 12px;
    box-shadow: 0 24px 60px rgba(32, 75, 54, 0.16);
    margin-left: auto;
    background: #e6efe9;
}
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e8eee9;
    box-shadow: var(--shadow);
    border-radius: 18px;
    padding: 16px;
}
.floating-card.market {
    left: 0;
    bottom: 58px;
    width: 230px;
}
.floating-card.stock {
    right: -10px;
    top: 30px;
    width: 195px;
}
.floating-card strong {
    display: block;
    color: var(--ink);
    font-family: "Manrope";
    margin: 4px 0;
}
.floating-card small {
    color: var(--muted);
}
.section {
    padding: 82px 0;
}
.section.alt {
    background: var(--cream);
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 34px;
}
.section-head p {
    max-width: 560px;
    margin: 10px 0 0;
    color: var(--muted);
}
.see-all {
    font-weight: 800;
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 4px;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
.category-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.18s;
}
.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: #c8dccc;
}
.category-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #edf7f1;
    color: var(--green);
    display: grid;
    place-items: center;
}
.category-card span:last-child {
    font-size: 0.82rem;
    color: var(--muted);
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.product-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    transition: 0.2s;
    box-shadow: 0 2px 5px rgba(34, 62, 49, 0.02);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.product-media {
    height: 210px;
    display: block;
    position: relative;
    background: #eff4ef;
}
.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.heart {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #537064;
    display: grid;
    place-items: center;
}
.product-body {
    padding: 16px;
}
.product-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
    color: var(--muted);
    margin-bottom: 8px;
}
.stock-dot {
    color: var(--green);
    font-weight: 700;
}
.stock-dot:before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #54a874;
    border-radius: 50%;
    margin-right: 6px;
}
.product-card h3 {
    margin-bottom: 8px;
}
.farmer-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
    color: #6f7f76;
    margin: 0;
}
.farmer-line .material-symbols-rounded {
    font-size: 18px;
}
.price-row {
    display: flex;
    align-items: baseline;
    margin-top: 14px;
    color: var(--ink);
}
.price-row strong {
    font-family: "Manrope";
    font-size: 1.08rem;
}
.price-row > span {
    font-size: 0.78rem;
    color: var(--muted);
    margin-left: 4px;
}
.round-add {
    margin-left: auto;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: grid;
    place-items: center;
}
.market-grid,
.farmer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.market-card,
.farmer-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 20px;
}
.market-card .cover {
    height: 180px;
    margin: -20px -20px 18px;
    border-radius: 22px 22px 0 0;
    object-fit: cover;
    width: calc(100% + 40px);
    background: #eef4ef;
}
.market-card p,
.farmer-card p {
    color: var(--muted);
}
.meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.meta-chip {
    background: #f2f6f3;
    color: #53675c;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 0.78rem;
}
.farmer-head {
    display: flex;
    gap: 14px;
    align-items: center;
}
.farmer-avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    object-fit: cover;
    background: #e8f0ea;
}
.rating {
    color: #9d7220;
    font-size: 0.85rem;
}
.feature-band {
    background: var(--ink);
    color: #dce9e2;
    border-radius: 34px;
    padding: 42px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.feature-band h2 {
    color: #fff;
}
.feature-band p {
    color: #c4d5cc;
}
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.step {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
}
.step b {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #2f7055;
    color: #fff;
    margin-bottom: 14px;
}
.page-hero {
    padding: 54px 0 34px;
    background: linear-gradient(180deg, #f7faf6, #fff);
}
.page-hero h1 {
    font-size: clamp(2.35rem, 4vw, 4rem);
    margin-top: 10px;
}
.page-hero p {
    font-size: 1.05rem;
    max-width: 680px;
    color: var(--muted);
}
.filterbar {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    margin-bottom: 26px;
    position: sticky;
    top: 92px;
    z-index: 20;
    box-shadow: 0 8px 24px rgba(26, 58, 44, 0.05);
}
.searchbox {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f7f5;
    border-radius: 12px;
    padding: 0 12px;
}
.searchbox input {
    border: 0;
    background: transparent;
    width: 100%;
    padding: 12px 0;
    outline: 0;
}
.select {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px 12px;
    background: #fff;
    color: var(--text);
}
.pagination {
    margin-top: 30px;
}
.pagination nav {
    display: flex;
    justify-content: center;
}
.pagination svg {
    width: 18px;
}
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}
.detail-image {
    width: 100%;
    height: 520px;
    border-radius: 30px;
    object-fit: cover;
    background: #edf4ef;
}
.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 0.86rem;
    margin-bottom: 18px;
}
.product-title {
    font-size: clamp(2.3rem, 4vw, 4rem);
}
.detail-price {
    font-family: "Manrope";
    font-size: 1.65rem;
    color: var(--green);
    margin: 14px 0;
}
.detail-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    margin: 22px 0;
    background: #fbfcfa;
}
.qty-row {
    display: flex;
    gap: 12px;
}
.qty {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    align-items: center;
    padding: 0 8px;
}
.qty button {
    border: 0;
    background: transparent;
    width: 32px;
    height: 42px;
}
.qty span {
    min-width: 36px;
    text-align: center;
}
.info-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 24px;
}
.info-box {
    background: #f5f8f5;
    border-radius: 16px;
    padding: 14px;
}
.info-box span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
}
.map-box {
    height: 330px;
    border-radius: 24px;
    background: linear-gradient(135deg, #e5ede7, #d5e4d9);
    position: relative;
    overflow: hidden;
}
.map-box:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(45deg, rgba(35, 105, 72, 0.1) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(35, 105, 72, 0.08) 1px, transparent 1px);
    background-size: 44px 44px;
}
.map-pin {
    position: absolute;
    left: 48%;
    top: 44%;
    width: 54px;
    height: 54px;
    border-radius: 50% 50% 50% 0;
    background: var(--green);
    transform: rotate(-45deg);
    display: grid;
    place-items: center;
    box-shadow: 0 10px 25px rgba(23, 107, 69, 0.24);
}
.map-pin span {
    transform: rotate(45deg);
    color: #fff;
}
.auth-wrap {
    min-height: calc(100vh - 76px);
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.auth-art {
    background: linear-gradient(135deg, #123f2d, #2b7958);
    padding: 64px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-art h2 {
    color: #fff;
    max-width: 600px;
}
.auth-art p {
    color: #d6e6dd;
    max-width: 520px;
}
.auth-form-wrap {
    display: grid;
    place-items: center;
    padding: 50px;
}
.auth-form {
    width: min(480px, 100%);
}
.auth-form h1 {
    font-size: 2.5rem;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 15px 0;
}
.field label {
    font-weight: 700;
    color: var(--ink);
    font-size: 0.9rem;
}
.field input,
.field select,
.field textarea {
    border: 1px solid #ccd8d0;
    border-radius: 13px;
    padding: 13px 14px;
    outline: none;
    background: #fff;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(23, 107, 69, 0.09);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.alert {
    padding: 13px 16px;
    border-radius: 12px;
    margin: 16px auto;
}
.alert.error {
    background: #fae8e7;
    color: #8f3832;
}
.alert.success {
    background: #e6f4eb;
    color: #236646;
}
.footer {
    background: #102f24;
    color: #b8ccc1;
    padding: 58px 0 22px;
    margin-top: 70px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 0.7fr 1.4fr;
    gap: 42px;
}
.footer h4 {
    color: #fff;
    margin-bottom: 14px;
}
.footer a {
    display: block;
    margin: 8px 0;
}
.footer-logo {
    filter: brightness(0) invert(1);
    width: 178px;
    margin-bottom: 14px;
}
.footer p {
    max-width: 360px;
}
.input-row {
    display: flex;
    gap: 8px;
}
.input-row input {
    border: 1px solid #466357;
    background: #173d2f;
    color: #fff;
    border-radius: 999px;
    padding: 11px 15px;
    min-width: 0;
}
.footer-bottom {
    border-top: 1px solid #315145;
    margin-top: 38px;
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
}
.dashboard-body {
    background: #f5f7f5;
}
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: #fff;
    border-right: 1px solid var(--line);
    padding: 24px 18px;
    z-index: 60;
}
.sidebar-brand img {
    width: 174px;
}
.role-chip {
    margin: 24px 6px 12px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #edf7f1;
    color: var(--green);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.side-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.side-nav a,
.sidebar-bottom a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border-radius: 12px;
    font-weight: 600;
    color: #56685e;
}
.side-nav a:hover,
.side-nav a.active {
    background: #edf7f1;
    color: var(--green);
}
.side-nav .material-symbols-rounded {
    font-size: 21px;
}
.sidebar-bottom {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 20px;
}
.dash-main {
    margin-left: 260px;
    min-height: 100vh;
}
.dash-top {
    height: 102px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 34px;
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(16px);
}
.dash-top h1 {
    font-size: 1.7rem;
    letter-spacing: -0.03em;
    margin-top: 4px;
}
.dash-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--green);
    color: #fff;
    font-weight: 800;
    display: grid;
    place-items: center;
}
.dash-content {
    padding: 28px 34px 60px;
}
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.metric-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
}
.metric-top {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.84rem;
}
.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #edf7f1;
    color: var(--green);
    display: grid;
    place-items: center;
}
.metric-card strong {
    display: block;
    font-family: "Manrope";
    font-size: 1.75rem;
    color: var(--ink);
    margin: 10px 0 2px;
}
.metric-card small {
    color: var(--muted);
}
.dash-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 18px;
    margin-top: 18px;
}
.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px;
}
.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.panel-head h3 {
    font-size: 1rem;
}
.table-wrap {
    overflow: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th {
    text-align: left;
    padding: 10px 12px;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7b8a82;
    border-bottom: 1px solid var(--line);
}
td {
    padding: 13px 12px;
    border-bottom: 1px solid #edf1ee;
    font-size: 0.9rem;
}
tr:last-child td {
    border-bottom: 0;
}
.status {
    font-size: 0.76rem;
    font-weight: 800;
    padding: 6px 9px;
    border-radius: 999px;
    display: inline-flex;
}
.status-placed,
.status-pending {
    background: #fff3d5;
    color: #87631d;
}
.status-accepted,
.status-active,
.status-approved {
    background: #e2f2e8;
    color: #246b45;
}
.status-ready_for_pickup {
    background: #e1eff8;
    color: #2f6382;
}
.status-completed {
    background: #edf2f0;
    color: #455d52;
}
.status-cancelled,
.status-declined,
.status-inactive {
    background: #fae5e4;
    color: #9a4039;
}
.mini-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mini-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #edf1ee;
    border-radius: 14px;
}
.mini-thumb {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: cover;
    background: #edf3ef;
}
.mini-item strong {
    color: var(--ink);
    font-size: 0.9rem;
}
.mini-item small {
    display: block;
    color: var(--muted);
}
.chart-placeholder {
    height: 210px;
    display: flex;
    align-items: end;
    gap: 12px;
    padding-top: 26px;
}
.bar {
    flex: 1;
    background: linear-gradient(180deg, #65a985, #226a49);
    border-radius: 8px 8px 3px 3px;
    min-height: 20px;
}
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.toolbar .searchbox {
    max-width: 420px;
}
.empty-state {
    text-align: center;
    padding: 55px 20px;
    color: var(--muted);
}
.empty-state .material-symbols-rounded {
    font-size: 48px;
    color: #aac6b5;
}
.split-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.review-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
}
.review-stars {
    color: #c19336;
}
.assistant-shell {
    max-width: 820px;
    margin: auto;
}
.assistant-window {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.assistant-head {
    padding: 18px 20px;
    background: #173b2e;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}
.assistant-bot {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #2e7656;
    display: grid;
    place-items: center;
}
.assistant-chat {
    padding: 28px;
    min-height: 380px;
    background: #f8faf7;
}
.bubble {
    max-width: 72%;
    padding: 13px 15px;
    border-radius: 17px;
    margin-bottom: 12px;
}
.bubble.bot {
    background: #fff;
    border: 1px solid var(--line);
    border-bottom-left-radius: 5px;
}
.bubble.user {
    background: var(--green);
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}
.quick-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.quick-prompts button {
    border: 1px solid #cfe0d5;
    background: #fff;
    border-radius: 999px;
    padding: 9px 12px;
    color: var(--green);
    font-weight: 700;
}
.assistant-input {
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--line);
    padding: 14px;
}
.assistant-input input {
    flex: 1;
    border: 0;
    background: #f3f6f3;
    border-radius: 999px;
    padding: 12px 16px;
    outline: none;
}
@media (max-width: 1000px) {
    .desktop-nav {
        display: none;
    }
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .market-grid,
    .farmer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-grid,
    .detail-grid,
    .feature-band,
    .auth-wrap {
        grid-template-columns: 1fr;
    }
    .hero-visual {
        min-height: 430px;
    }
    .hero-photo {
        height: 400px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dash-grid {
        grid-template-columns: 1fr;
    }
    .sidebar {
        transform: translateX(-100%);
        transition: 0.2s;
    }
    .dash-menu-open .sidebar {
        transform: none;
    }
    .dash-main {
        margin-left: 0;
    }
    .dash-top .menu-btn {
        display: inline-grid;
        vertical-align: middle;
        margin-right: 10px;
    }
    .auth-art {
        min-height: 340px;
    }
    .info-strip {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 700px) {
    .shell {
        width: min(100% - 24px, 1180px);
    }
    .topbar {
        height: 68px;
    }
    .brand img {
        width: 148px;
    }
    .nav-actions > .text-link,
    .nav-actions > .btn-sm {
        display: none;
    }
    .menu-btn {
        display: grid;
        place-items: center;
    }
    .menu-open .mobile-nav {
        display: flex;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 14px 20px;
        flex-direction: column;
        gap: 6px;
    }
    .mobile-nav a {
        padding: 10px;
    }
    .hero {
        padding-top: 40px;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero-grid {
        gap: 24px;
    }
    .hero-visual {
        min-height: 340px;
    }
    .hero-photo {
        height: 320px;
        width: 94%;
    }
    .floating-card.stock {
        right: 0;
    }
    .floating-card.market {
        bottom: 10px;
    }
    .section {
        padding: 58px 0;
    }
    .section-head {
        align-items: start;
        flex-direction: column;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-grid,
    .market-grid,
    .farmer-grid,
    .split-cards {
        grid-template-columns: 1fr;
    }
    .feature-band {
        padding: 26px;
        border-radius: 24px;
    }
    .steps {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
    .filterbar {
        flex-wrap: wrap;
        top: 80px;
    }
    .filterbar .searchbox {
        flex-basis: 100%;
    }
    .detail-image {
        height: 370px;
    }
    .info-strip {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .auth-form-wrap {
        padding: 30px 22px;
    }
    .auth-art {
        padding: 36px 24px;
    }
    .sidebar {
        width: 240px;
    }
    .dash-top {
        padding: 14px 16px;
        height: 90px;
    }
    .dash-content {
        padding: 18px 14px 44px;
    }
    .metric-grid {
        grid-template-columns: 1fr;
    }
    .toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    .toolbar .searchbox {
        max-width: none;
    }
}

.grow {
    flex: 1;
}
.lead-copy {
    font-size: 1.04rem;
    max-width: 620px;
}
.detail-media {
    position: relative;
}
.fresh-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 9px 13px;
    border-radius: 999px;
    display: flex;
    gap: 7px;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--green);
}
.avatar-letter {
    display: grid !important;
    place-items: center;
    background: linear-gradient(135deg, #dbeee3, #bcdac8);
    color: var(--green);
    font-family: "Manrope";
    font-weight: 800;
}
.farmer-link {
    display: block;
}
.farmer-link:hover {
    border-color: #bcd9c8;
}
.purchase-box {
    margin: 20px 0;
    padding: 16px;
    border-radius: 18px;
    background: #f6f9f6;
    border: 1px solid var(--line);
}
.compact-field {
    margin: 0;
    min-width: 130px;
}
.compact-field input {
    height: 48px;
}
.soldout-callout,
.cart-note,
.pay-note,
.approval-banner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f2f6f3;
    border: 1px solid var(--line);
    margin: 18px 0;
}
.soldout-callout strong,
.cart-note strong,
.pay-note strong,
.approval-banner strong {
    display: block;
    color: var(--ink);
}
.soldout-callout small,
.cart-note small,
.pay-note small {
    display: block;
    color: var(--muted);
}
.approval-banner {
    background: #fff8e8;
    border-color: #efdca8;
}
.approval-banner .material-symbols-rounded {
    color: #a77712;
}
.approval-banner p {
    margin: 3px 0 0;
}
.narrow {
    max-width: 950px;
}
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.review-card small {
    display: block;
    color: var(--muted);
    margin-top: 7px;
}
.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
    gap: 18px;
    margin-bottom: 20px;
}
.checkout-panel {
    align-self: start;
}
.cart-line {
    display: grid;
    grid-template-columns: 52px 1fr auto auto 42px;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #edf1ee;
}
.cart-line:last-child {
    border-bottom: 0;
}
.cart-product small {
    display: block;
    color: var(--muted);
}
.inline-qty {
    display: flex;
    gap: 5px;
    align-items: center;
}
.inline-qty input {
    width: 82px;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 9px;
}
.danger-icon {
    color: var(--red);
}
.total-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin: 18px 0;
}
.total-row strong {
    font-size: 1.35rem;
    color: var(--ink);
}
.form-hint {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    font-size: 0.79rem;
}
.card-hint {
    margin-top: 18px;
    padding: 12px;
    border-radius: 13px;
    background: #f4f7f4;
    display: flex;
    gap: 8px;
}
.order-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.order-card {
    padding: 22px;
}
.order-card-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}
.order-card-head h3 {
    margin: 5px 0;
}
.order-card-head small {
    color: var(--muted);
}
.muted-arrow {
    color: #9aaba1;
}
.order-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 18px 0;
}
.order-meta > div {
    padding: 13px;
    border: 1px solid #edf1ee;
    border-radius: 14px;
    background: #fbfcfb;
}
.order-meta span,
.order-meta small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
}
.order-progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin: 22px 0;
    position: relative;
}
.progress-step {
    text-align: center;
    position: relative;
}
.progress-step:before {
    content: "";
    position: absolute;
    top: 15px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: #e2e8e3;
    z-index: 0;
}
.progress-step:first-child:before {
    display: none;
}
.progress-step span {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: auto;
    background: #e7ece8;
    color: #7d8b83;
    font-size: 0.75rem;
    font-weight: 800;
}
.progress-step.done span {
    background: var(--green);
    color: #fff;
}
.progress-step.done:before {
    background: #7db598;
}
.progress-step small {
    display: block;
    margin-top: 5px;
}
.order-actions,
.order-status-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.review-details {
    margin-top: 14px;
    border-top: 1px solid var(--line);
    padding-top: 13px;
}
.review-details summary {
    cursor: pointer;
    color: var(--green);
    font-weight: 800;
}
.review-forms {
    display: grid;
    gap: 9px;
    margin-top: 12px;
}
.micro-form {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 140px minmax(220px, 2fr) auto;
    gap: 8px;
    align-items: center;
}
.micro-form input,
.micro-form select {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px;
}
.saved-section {
    margin-bottom: 18px;
}
.saved-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.saved-card {
    display: grid;
    grid-template-columns: 72px 1fr 42px;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    padding: 12px;
    border-radius: 15px;
}
.saved-card img {
    width: 72px;
    height: 72px;
    border-radius: 13px;
    object-fit: cover;
}
.small-avatar {
    width: 46px;
    height: 46px;
    border-radius: 12px;
}
.action-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
}
.sticky-panel {
    position: sticky;
    top: 120px;
    align-self: start;
}
.table-product {
    display: flex;
    gap: 10px;
    align-items: center;
}
.table-product small {
    display: block;
    color: var(--muted);
}
.row-menu {
    position: relative;
}
.row-menu > summary {
    list-style: none;
    cursor: pointer;
}
.row-menu > summary::-webkit-details-marker {
    display: none;
}
.row-popover {
    position: absolute;
    right: 0;
    top: 45px;
    z-index: 20;
    width: 330px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(23, 59, 46, 0.16);
}
.admin-popover {
    width: 360px;
}
.row-popover hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 13px 0;
}
.text-danger-button {
    border: 0;
    background: transparent;
    color: var(--red);
    font-weight: 800;
    cursor: pointer;
    padding: 6px 0;
}
.schedule-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.schedule-days {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.schedule-days span,
.soft-chip,
.profile-tags span {
    padding: 7px 10px;
    background: #eff6f1;
    border-radius: 999px;
    color: var(--green);
    font-size: 0.77rem;
    font-weight: 800;
}
.sub-head {
    margin-top: 20px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}
.slot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.slot-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
}
.slot-card span,
.slot-card small {
    display: block;
    color: var(--muted);
}
.profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 18px;
}
.profile-hero {
    display: flex;
    gap: 18px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
}
.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 25px;
    font-size: 2rem;
    flex: 0 0 auto;
}
.profile-tags {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}
.farmer-reply {
    margin-top: 12px;
    padding: 10px 12px;
    background: #f3f7f4;
    border-radius: 12px;
}
.farmer-reply p {
    margin: 4px 0;
}
.reply-form {
    display: flex;
    gap: 7px;
    margin-top: 12px;
}
.reply-form input {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px;
}
.edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 12px 0;
}
.edit-grid .field {
    margin: 0;
}
.edit-grid .full {
    grid-column: 1/-1;
}
.schedule-form {
    display: grid;
    grid-template-columns: 110px 1fr 1fr auto auto;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}
.schedule-form select,
.schedule-form input {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px;
}
.check-label {
    font-size: 0.8rem;
}
.review-card-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.admin-review-grid {
    grid-template-columns: repeat(2, 1fr);
}
.notification-list {
    display: flex;
    flex-direction: column;
}
.notification-item {
    display: flex;
    gap: 13px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #edf1ee;
}
.notification-item.unread {
    background: linear-gradient(90deg, #f2f9f4, transparent);
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 12px;
}
.notification-item p {
    margin: 3px 0;
}
.notification-item small {
    color: var(--muted);
}
.assistant-head small {
    display: block;
    color: #bcd3c7;
}
.assistant-chat {
    max-height: 520px;
    overflow-y: auto;
}
.assistant-disclaimer {
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
    margin-top: 12px;
}
.round-add {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: var(--green);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.professional-filter {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) repeat(
            3,
            minmax(130px, 0.7fr)
        ) 110px 135px auto auto auto;
    gap: 8px;
    align-items: center;
}
.price-filter {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 13px;
}
.check-filter {
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink);
}
.results-head {
    display: flex;
    justify-content: space-between;
    margin: 18px 0;
}
.results-head small {
    display: block;
    color: var(--muted);
}
.simple-search {
    max-width: 650px;
    margin-bottom: 24px;
}
.market-cover {
    height: 170px;
    border-radius: 16px;
    background: linear-gradient(135deg, #dcefe4, #eef5ed);
    display: grid;
    place-items: center;
    margin-bottom: 15px;
    color: var(--green);
}
.market-cover .material-symbols-rounded {
    font-size: 54px;
}
.map-frame {
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    background: #edf3ef;
}
.map-frame iframe {
    width: 100%;
    height: 410px;
    border: 0;
    display: block;
}
.map-frame > a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 12px;
    background: #fff;
    color: var(--green);
    font-weight: 800;
}
.map-empty {
    height: 410px;
    display: grid;
    place-items: center;
    text-align: center;
}
.hours-panel {
    margin-top: 18px;
}
.hours-list {
    margin-top: 10px;
}
.hours-list > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1ee;
}
.hours-list > div:last-child {
    border: 0;
}
.hours-list span {
    color: var(--muted);
}
.hero-actions .meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.muted {
    color: var(--muted);
}
.empty-cell {
    text-align: center;
    color: var(--muted);
    padding: 28px;
}
.compact-empty {
    padding: 24px;
}
.toolbar-copy small {
    display: block;
    color: var(--muted);
}
.action-field {
    justify-content: flex-end;
}
.report-chart {
    align-items: end;
}
.chart-column {
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 5px;
    text-align: center;
}
.chart-column .bar {
    flex: none;
    width: 100%;
}
.chart-column small {
    color: var(--muted);
    font-size: 0.72rem;
}
@media (max-width: 1200px) {
    .professional-filter {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .professional-filter .searchbox {
        grid-column: 1/-1;
    }
    .action-layout {
        grid-template-columns: 1fr;
    }
    .sticky-panel {
        position: static;
    }
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .profile-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 800px) {
    .review-grid,
    .admin-review-grid,
    .saved-grid,
    .slot-grid {
        grid-template-columns: 1fr;
    }
    .order-meta {
        grid-template-columns: 1fr;
    }
    .micro-form {
        grid-template-columns: 1fr;
    }
    .cart-line {
        grid-template-columns: 50px 1fr auto;
    }
    .cart-line .inline-qty,
    .cart-line > strong {
        grid-column: 2;
    }
    .cart-line form:last-child {
        grid-column: 3;
        grid-row: 1;
    }
    .professional-filter {
        grid-template-columns: 1fr;
    }
    .professional-filter .searchbox {
        grid-column: auto;
    }
    .schedule-form {
        grid-template-columns: 1fr 1fr;
    }
    .edit-grid {
        grid-template-columns: 1fr;
    }
    .edit-grid .full {
        grid-column: auto;
    }
    .order-card-head {
        flex-direction: column;
    }
    .notification-item {
        align-items: flex-start;
    }
    .row-popover {
        position: fixed;
        left: 12px;
        right: 12px;
        top: 18%;
        width: auto;
        max-height: 70vh;
        overflow: auto;
    }
    .profile-hero {
        flex-direction: column;
    }
}
.public-farmer-head {
    align-items: flex-start;
    gap: 22px;
}
.public-farmer-head h1 {
    margin: 7px 0;
}
.compact-market-cover {
    height: 110px;
}
.compact-market-cover .material-symbols-rounded {
    font-size: 42px;
}

.page-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 18px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #f8fbf8, #f0f7f3);
    border: 1px solid var(--line);
    border-radius: 18px;
}
.page-actions-bar > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.page-actions-bar strong {
    font-family: "Manrope";
    color: var(--ink);
    font-size: 1rem;
}
.page-actions-bar small {
    color: var(--muted);
}
.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.market-admin-card {
    display: flex;
    flex-direction: column;
    min-height: 245px;
}
.market-admin-card > p {
    color: var(--muted);
    margin: 14px 0;
}
.card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 18px;
}
.code-pill {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 8px;
    background: #f2f5f3;
    color: #5f7067;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.78rem;
}
.count-badge {
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #eef6f1;
    color: var(--green);
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    font-weight: 800;
}
.app-modal {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    overflow: auto;
}
.app-modal::backdrop {
    background: rgba(11, 35, 25, 0.48);
    backdrop-filter: blur(5px);
}
.modal-card {
    width: min(700px, calc(100vw - 32px));
    margin: 7vh auto;
    background: #fff;
    border: 1px solid rgba(223, 231, 225, 0.9);
    border-radius: 26px;
    box-shadow: 0 30px 90px rgba(10, 40, 27, 0.24);
    overflow: hidden;
    animation: modalIn 0.18s ease;
}
.modal-card.modal-sm {
    width: min(540px, calc(100vw - 32px));
}
.modal-card.modal-wide {
    width: min(820px, calc(100vw - 32px));
}
@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 26px 18px;
    border-bottom: 1px solid #edf1ee;
}
.modal-head h2 {
    font-size: 1.55rem;
    margin: 4px 0 6px;
}
.modal-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
}
.modal-body {
    padding: 22px 26px;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 9px;
    padding: 16px 26px 22px;
    border-top: 1px solid #edf1ee;
}
.modal-actions.inner {
    padding: 18px 0 0;
    margin-top: 14px;
    border-top: 1px solid #edf1ee;
}
.modal-tabs {
    display: flex;
    gap: 6px;
    padding: 12px 26px 0;
    border-bottom: 1px solid #edf1ee;
}
.modal-tabs button {
    border: 0;
    background: transparent;
    padding: 10px 14px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}
.modal-tabs button.active {
    color: var(--green);
    border-bottom-color: var(--green);
}
.modal-danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 26px 24px;
    padding: 14px 16px;
    border: 1px solid #f1d5d2;
    background: #fff9f8;
    border-radius: 15px;
}
.modal-danger-zone strong,
.modal-danger-zone small {
    display: block;
}
.modal-danger-zone small {
    color: var(--muted);
    margin-top: 2px;
}
.btn-danger {
    background: #fff0ee;
    color: var(--red);
    border: 1px solid #f0d2ce;
}
.control-section {
    padding: 0 0 18px;
    margin: 0 0 18px;
    border-bottom: 1px solid #edf1ee;
}
.control-section:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}
.control-section > strong {
    display: block;
    color: var(--ink);
    font-family: "Manrope";
}
.control-section > p,
.control-section > small {
    color: var(--muted);
    margin: 4px 0 10px;
}
.modal-schedule-list {
    margin-bottom: 18px;
}
.modal-open {
    overflow: hidden;
}
.toast-stack {
    position: fixed;
    right: 22px;
    top: 92px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(390px, calc(100vw - 28px));
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    display: grid;
    grid-template-columns: 42px 1fr 34px;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 12px 12px 12px 14px;
    box-shadow: 0 18px 50px rgba(21, 58, 41, 0.16);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transition: 0.2s ease;
}
.toast.show {
    opacity: 1;
    transform: none;
}
.toast-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #e9f6ee;
    color: var(--green);
}
.toast-copy {
    min-width: 0;
}
.toast-copy strong,
.toast-copy span {
    display: block;
}
.toast-copy strong {
    color: var(--ink);
    font-family: "Manrope";
    font-size: 0.88rem;
}
.toast-copy span {
    color: var(--text);
    font-size: 0.84rem;
    line-height: 1.35;
    margin-top: 2px;
}
.toast-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #819087;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.toast-close:hover {
    background: #f1f5f2;
}
.toast-error {
    border-color: #efd6d2;
}
.toast-error .toast-icon {
    background: #fff0ee;
    color: var(--red);
}
.toast-warning {
    border-color: #efdfb5;
}
.toast-warning .toast-icon {
    background: #fff7df;
    color: #a37613;
}
.toast-info .toast-icon {
    background: #eef4ff;
    color: #3763a7;
}
.product-media-wrap {
    position: relative;
}
.product-media-wrap .product-media {
    height: 210px;
}
.heart {
    cursor: pointer;
    transition: 0.18s ease;
    z-index: 4;
}
.heart .material-symbols-rounded {
    font-variation-settings: "FILL" 0;
    transition: 0.18s ease;
}
.heart:hover {
    transform: scale(1.06);
    background: #fff;
}
.heart.is-favorite {
    background: #fff0f0;
    color: #cc4b55;
    box-shadow: 0 7px 18px rgba(188, 65, 75, 0.15);
}
.heart.is-favorite .material-symbols-rounded {
    font-variation-settings: "FILL" 1;
}
.heart.is-loading {
    opacity: 0.55;
    pointer-events: none;
}
.favorite-form {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 5;
}
.favorite-form .heart {
    position: static;
}
.favorite-detail-btn.is-favorite {
    border-color: #e7b9bd;
    background: #fff5f5;
    color: #bf4650;
}
.favorite-detail-btn.is-favorite .material-symbols-rounded {
    font-variation-settings: "FILL" 1;
}
.detail-favorite-form .is-loading {
    opacity: 0.6;
    pointer-events: none;
}
.round-add {
    text-decoration: none;
    transition: 0.18s ease;
}
.round-add:hover {
    transform: translateX(2px);
    background: #12583a;
}

@media (max-width: 900px) {
    .admin-card-grid {
        grid-template-columns: 1fr;
    }
    .page-actions-bar {
        align-items: flex-start;
        flex-direction: column;
    }
    .page-actions-bar .btn {
        width: 100%;
    }
    .toast-stack {
        right: 14px;
        top: 84px;
    }
    .modal-card {
        margin: 3vh auto;
    }
    .modal-head,
    .modal-body {
        padding-left: 20px;
        padding-right: 20px;
    }
    .modal-actions {
        padding-left: 20px;
        padding-right: 20px;
    }
}
@media (max-width: 600px) {
    .modal-card {
        width: calc(100vw - 18px) !important;
        border-radius: 20px;
        margin: 10px auto;
    }
    .modal-head {
        padding-top: 18px;
    }
    .modal-head h2 {
        font-size: 1.3rem;
    }
    .modal-actions {
        flex-wrap: wrap;
    }
    .modal-actions .btn {
        flex: 1;
    }
    .modal-danger-zone {
        margin-left: 20px;
        margin-right: 20px;
        align-items: flex-start;
        flex-direction: column;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .toast-stack {
        width: calc(100vw - 20px);
        right: 10px;
        top: 76px;
    }
    .toast {
        grid-template-columns: 36px 1fr 30px;
    }
    .toast-icon {
        width: 34px;
        height: 34px;
    }
}
.footer-logo {
    filter: none;
    width: 188px;
}
.footer-brand p {
    margin: 0 0 18px;
    color: #bdd0c6;
}
.footer-promise {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border: 1px solid rgba(223, 242, 231, 0.16);
    background: rgba(223, 242, 231, 0.07);
    border-radius: 999px;
    color: #dff2e7;
    font-size: 0.82rem;
    font-weight: 700;
}
.footer-promise .material-symbols-rounded {
    font-size: 18px;
}
.footer a {
    transition: 0.18s ease;
}
.footer a:hover {
    color: #fff;
    transform: translateX(2px);
}
.newsletter .btn {
    box-shadow: none;
}
.assistant-section {
    padding-top: 24px;
}
.assistant-pro {
    box-shadow: 0 28px 80px rgba(23, 59, 46, 0.12);
    border: 1px solid #dce7df;
}
.assistant-pro .assistant-head {
    position: relative;
}
.assistant-live {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(223, 242, 231, 0.12);
    color: #dff2e7;
    font-size: 0.75rem;
    font-weight: 800;
}
.assistant-live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #75cf91;
    box-shadow: 0 0 0 4px rgba(117, 207, 145, 0.12);
}
.assistant-pro .assistant-chat {
    min-height: 430px;
    padding: 24px;
    background: linear-gradient(180deg, #fbfcfa, #f4f8f5);
}
.assistant-pro .bubble {
    max-width: min(78%, 680px);
    line-height: 1.55;
}
.assistant-pro .bubble.bot {
    box-shadow: 0 7px 20px rgba(28, 66, 48, 0.05);
}
.assistant-pro .bubble.user {
    box-shadow: 0 7px 18px rgba(23, 107, 69, 0.12);
}
.assistant-followups {
    margin: 3px 0 14px;
}
.assistant-followups button {
    background: #fff;
    border-color: #d8e4dc;
}
.assistant-loading {
    opacity: 0.72;
}
.assistant-loading:after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    margin-left: 8px;
    box-shadow:
        9px 0 currentColor,
        18px 0 currentColor;
    animation: assistantDots 1s infinite ease-in-out;
}
@keyframes assistantDots {
    0%,
    100% {
        opacity: 0.35;
    }
    50% {
        opacity: 1;
    }
}
.product-media img,
.detail-image,
.market-card .cover,
.farmer-avatar,
.saved-card img,
.mini-thumb {
    transition: opacity 0.2s ease;
}
.product-media img[src$=".svg"],
.detail-image[src$=".svg"] {
    object-fit: cover;
}
.hero-photo[src$=".svg"] {
    object-fit: cover;
}
.market-card .cover[src$=".svg"] {
    object-fit: cover;
}
@media (max-width: 700px) {
    .assistant-live {
        display: none;
    }
    .assistant-pro .assistant-chat {
        min-height: 390px;
        padding: 16px;
    }
    .assistant-pro .bubble {
        max-width: 92%;
    }
    .footer-logo {
        width: 174px;
    }
}
.compact-market-image {
    height: 110px;
    margin-bottom: 15px;
}
.profile-avatar {
    object-fit: cover;
}
.small-avatar {
    object-fit: cover;
    background: #e8f0ea;
}

.upload-field {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 16px;
    border: 1.5px dashed #c8d9cf;
    border-radius: 18px;
    background: #f8fbf9;
    cursor: pointer;
    transition: 0.18s ease;
}
.upload-field:hover {
    border-color: #8eb6a0;
    background: #f2f8f4;
}
.upload-field input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.upload-field strong,
.upload-field small {
    display: block;
}
.upload-field strong {
    color: var(--ink);
    font-family: "Manrope";
    font-size: 0.92rem;
}
.upload-field small {
    color: var(--muted);
    margin-top: 3px;
}
.upload-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #e1f1e7;
    color: var(--green);
    flex: 0 0 auto;
}
.upload-preview {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 18px;
    margin-top: 12px;
    border: 1px solid var(--line);
    background: #eef4ef;
}
.current-image-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 14px;
    align-items: stretch;
}
.upload-current {
    width: 150px;
    height: 112px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #eef4ef;
}
.profile-upload-current {
    height: 150px;
    border-radius: 22px;
}
.market-upload-current {
    height: 112px;
}
.compact-upload {
    min-height: 112px;
}
.market-admin-image {
    width: calc(100% + 36px);
    height: 150px;
    object-fit: cover;
    margin: -18px -18px 18px;
    border-radius: 22px 22px 14px 14px;
    background: #eef4ef;
}
.market-admin-card {
    overflow: hidden;
}
.farmer-avatar[src$="marketlink-mark.svg"],
.profile-avatar[src$="marketlink-mark.svg"],
.small-avatar[src$="marketlink-mark.svg"] {
    object-fit: contain;
    padding: 12px;
    background: #e7f2eb;
}
.product-media img,
.detail-image,
.saved-card img,
.cart-line img,
.mini-thumb {
    background: #edf3ee;
}
.market-card .cover {
    background: #edf3ee;
}
@media (max-width: 620px) {
    .current-image-row {
        grid-template-columns: 1fr;
    }
    .upload-current {
        width: 100%;
        height: 180px;
    }
    .profile-upload-current {
        height: 220px;
    }
    .compact-upload {
        min-height: 88px;
    }
}

.market-profile-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 42px;
    align-items: center;
}
.market-profile-visual img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 30px 12px 30px 12px;
    box-shadow: 0 22px 54px rgba(25, 61, 45, 0.14);
    border: 1px solid rgba(223, 231, 225, 0.7);
}
@media (max-width: 860px) {
    .market-profile-grid {
        grid-template-columns: 1fr;
    }
    .market-profile-visual img {
        height: 250px;
    }
    .market-profile-visual {
        order: -1;
    }
}
.motion-ready .motion-reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition:
        opacity 0.68s cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 0.68s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--motion-delay, 0ms);
    will-change: opacity, transform;
}
.motion-ready .motion-reveal.motion-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
.motion-ready .motion-reveal.motion-soft {
    transform: translate3d(0, 14px, 0);
}
.motion-ready .motion-reveal.motion-scale {
    transform: translate3d(0, 14px, 0) scale(0.985);
}
.motion-ready .motion-reveal.motion-scale.motion-visible {
    transform: translate3d(0, 0, 0) scale(1);
}
.topbar {
    transition:
        box-shadow 0.28s ease,
        border-color 0.28s ease,
        background-color 0.28s ease;
}
.topbar.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: rgba(214, 225, 218, 0.95);
    box-shadow: 0 10px 30px rgba(24, 58, 43, 0.07);
}
.brand img {
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.brand:hover img {
    transform: translateY(-1px) scale(1.015);
}
.desktop-nav a {
    position: relative;
    transition:
        color 0.22s ease,
        background-color 0.22s ease,
        transform 0.22s ease;
}
.desktop-nav a:hover {
    transform: translateY(-1px);
}
.desktop-nav a.active:after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 4px;
    height: 2px;
    border-radius: 999px;
    background: var(--green);
    transform-origin: center;
    animation: navLineIn 0.38s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes navLineIn {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}
.hero .eyebrow,
.hero h1,
.hero p,
.hero-actions,
.trust-row {
    opacity: 0;
    transform: translateY(18px);
    animation: heroCopyIn 0.72s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero .eyebrow {
    animation-delay: 0.08s;
}
.hero h1 {
    animation-delay: 0.16s;
}
.hero p {
    animation-delay: 0.24s;
}
.hero-actions {
    animation-delay: 0.32s;
}
.trust-row {
    animation-delay: 0.4s;
}
@keyframes heroCopyIn {
    to {
        opacity: 1;
        transform: none;
    }
}
.hero-visual {
    opacity: 0;
    transform: translate3d(18px, 12px, 0) scale(0.985);
    animation: heroVisualIn 0.9s 0.18s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
@keyframes heroVisualIn {
    to {
        opacity: 1;
        transform: none;
    }
}
.hero-photo {
    transition:
        transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 0.65s ease;
}
.hero-visual:hover .hero-photo {
    transform: translateY(-4px) scale(1.006);
    box-shadow: 0 30px 70px rgba(32, 75, 54, 0.2);
}
.floating-card {
    animation: floatingCardIn 0.62s 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    transition:
        transform 0.32s ease,
        box-shadow 0.32s ease;
}
.floating-card.stock {
    animation-delay: 0.76s;
}
.floating-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(27, 65, 48, 0.13);
}
@keyframes floatingCardIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.category-card,
.product-card,
.market-card,
.farmer-card,
.metric-card,
.panel,
.detail-card,
.saved-card,
.review-card {
    transition:
        transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 0.28s ease,
        border-color 0.28s ease,
        background-color 0.28s ease;
}
.category-card:hover,
.product-card:hover,
.market-card:hover,
.farmer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(26, 65, 47, 0.11);
    border-color: #cdded3;
}
.metric-card:hover,
.panel:hover {
    border-color: #d3e1d8;
    box-shadow: 0 16px 42px rgba(27, 65, 48, 0.07);
}
.category-icon,
.metric-icon {
    transition:
        transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1),
        background-color 0.3s ease;
}
.category-card:hover .category-icon,
.metric-card:hover .metric-icon {
    transform: translateY(-2px) rotate(-3deg) scale(1.04);
}
.product-media,
.market-card {
    overflow: hidden;
}
.product-media img,
.market-card .cover,
.saved-card img {
    transition:
        transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1),
        opacity 0.32s ease;
}
.product-card:hover .product-media img,
.market-card:hover .cover,
.saved-card:hover img {
    transform: scale(1.035);
}
.farmer-avatar,
.profile-avatar,
.small-avatar {
    transition:
        transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 0.32s ease;
}
.farmer-card:hover .farmer-avatar {
    transform: scale(1.045);
    box-shadow: 0 8px 22px rgba(26, 65, 47, 0.12);
}
.see-all .material-symbols-rounded,
.footer-cta .material-symbols-rounded,
.btn .material-symbols-rounded {
    transition: transform 0.24s ease;
}
.see-all:hover .material-symbols-rounded,
.footer-cta:hover .material-symbols-rounded,
.btn:hover .material-symbols-rounded {
    transform: translateX(3px);
}
.icon-btn {
    transition:
        transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1),
        background-color 0.22s ease,
        box-shadow 0.22s ease;
}
.icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(25, 62, 44, 0.08);
}
.heart:hover .material-symbols-rounded {
    transform: scale(1.08);
}
.heart.is-favorite .material-symbols-rounded {
    animation: heartPop 0.36s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes heartPop {
    0% {
        transform: scale(0.82);
    }
    55% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}
.btn {
    position: relative;
    overflow: hidden;
}
.btn:active {
    transform: translateY(0) scale(0.985);
}
.side-nav a {
    transition:
        transform 0.22s ease,
        background-color 0.22s ease,
        color 0.22s ease;
}
.side-nav a:hover {
    transform: translateX(3px);
}
.dash-top {
    transition:
        box-shadow 0.28s ease,
        background-color 0.28s ease;
}
.dash-main.is-scrolled .dash-top {
    box-shadow: 0 8px 28px rgba(24, 58, 43, 0.055);
}
.metric-card strong.motion-counting {
    font-variant-numeric: tabular-nums;
}
.table-wrap tbody tr {
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}
.table-wrap tbody tr:hover {
    background: #f7faf8;
}
.status {
    transition: transform 0.2s ease;
}
.status:hover {
    transform: translateY(-1px);
}
.footer {
    overflow: hidden;
}
.footer-logo {
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.footer-brand:hover .footer-logo {
    transform: translateY(-2px);
}
.upload-field {
    transition:
        border-color 0.22s ease,
        background-color 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease;
}
.upload-field:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(26, 65, 47, 0.055);
}
.app-modal[open] .modal-card {
    animation: modalIn 0.26s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.toast.show {
    animation: toastSettle 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes toastSettle {
    0% {
        transform: translateY(-10px) scale(0.97);
    }
    70% {
        transform: translateY(1px) scale(1.005);
    }
    100% {
        transform: none;
    }
}
.image-ready {
    animation: imageReveal 0.42s ease both;
}
@keyframes imageReveal {
    from {
        opacity: 0.35;
    }
    to {
        opacity: 1;
    }
}
.assistant-pro .bubble {
    animation: chatBubbleIn 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes chatBubbleIn {
    from {
        opacity: 0;
        transform: translateY(7px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .motion-ready .motion-reveal,
    .motion-ready .motion-reveal.motion-soft,
    .motion-ready .motion-reveal.motion-scale {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .hero .eyebrow,
    .hero h1,
    .hero p,
    .hero-actions,
    .trust-row,
    .hero-visual,
    .floating-card,
    .heart.is-favorite .material-symbols-rounded,
    .toast.show,
    .image-ready,
    .assistant-pro .bubble {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .category-card,
    .product-card,
    .market-card,
    .farmer-card,
    .metric-card,
    .panel,
    .detail-card,
    .saved-card,
    .review-card,
    .hero-photo,
    .floating-card,
    .icon-btn,
    .side-nav a,
    .btn {
        transition: none !important;
    }
}

.footer-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    line-height: 1;
}

.footer-cta .material-symbols-rounded {
    font-size: 25px;
    line-height: 1;
    display: block;
}
