:root {
    --ink: #17352c;
    --forest: #075e45;
    --leaf: #b9ed55;
    --mist: #f3f7f1;
    --line: #dfe9df;
    --shadow: 0 18px 45px rgba(16, 65, 45, 0.1);
}

body {
    font-family: 'Trebuchet MS', sans-serif;
}

h1,
h2,
h3,
h4,
button,
a {
    font-family: 'Trebuchet MS', sans-serif;
}

.cart-badge {
    font-size: 0.75rem;
    top: -6px;
    right: -8px;
}

#map {
    height: 190px;
    width: 100%;
    border-radius: 0.75rem;
    z-index: 10;
}

/* Storefront */
.storefront-home,
.storefront-menu {
    background-color: var(--mist) !important;
    background-image: radial-gradient(circle at 8% 20%, rgba(185, 237, 85, 0.14), transparent 25rem),
        radial-gradient(circle at 92% 68%, rgba(43, 132, 92, 0.1), transparent 28rem);
}

.storefront-home header,
.storefront-menu header {
    box-shadow: 0 8px 24px rgba(2, 55, 39, 0.2);
}

.storefront-home section:first-of-type {
    position: relative;
    isolation: isolate;
    background-image: linear-gradient(115deg, rgba(3, 73, 52, 0.98), rgba(11, 126, 90, 0.92)),
        radial-gradient(circle at 80% 10%, rgba(185, 237, 85, 0.3), transparent 18rem);
}

.storefront-home section:first-of-type::after {
    content: '';
    position: absolute;
    width: 20rem;
    height: 20rem;
    right: -7rem;
    bottom: -12rem;
    border: 1px solid rgba(185, 237, 85, 0.28);
    border-radius: 50%;
    z-index: -1;
}

.storefront-home main,
.storefront-menu main {
    animation: page-rise 0.55s ease-out both;
}

.storefront-home main .grid > div,
.storefront-menu main .grid > div {
    border-color: var(--line) !important;
    box-shadow: 0 8px 24px rgba(16, 65, 45, 0.06) !important;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.storefront-home main .grid > div:hover,
.storefront-menu main .grid > div:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow) !important;
}

.storefront-home main .grid > div img,
.storefront-menu main .grid > div img {
    transition: transform 350ms ease;
}

.storefront-home main .grid > div:hover img,
.storefront-menu main .grid > div:hover img {
    transform: scale(1.045);
}

.storefront-home footer,
.storefront-menu footer {
    background: #102c25 !important;
}

.storefront-menu main > .text-center h1 {
    color: var(--ink) !important;
    letter-spacing: -0.03em;
}

.storefront-menu main > .flex a {
    border-color: var(--line) !important;
}

/* Admin */
.admin-page {
    background: #f1f5f1 !important;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.75), transparent 45%),
        radial-gradient(circle at 100% 0%, rgba(185, 237, 85, 0.13), transparent 24rem);
}

.admin-page nav {
    background: #123d31 !important;
    box-shadow: 0 8px 24px rgba(16, 65, 45, 0.18) !important;
}

.admin-page main {
    animation: page-rise 0.45s ease-out both;
}

.admin-page main h1 {
    color: var(--ink) !important;
    letter-spacing: -0.025em;
}

.admin-page main > div.bg-white,
.admin-page main > div > div.bg-white {
    border-color: var(--line) !important;
    box-shadow: 0 8px 24px rgba(16, 65, 45, 0.06) !important;
}

.admin-page table thead {
    background: #e6f0e5 !important;
    color: #315447 !important;
    letter-spacing: 0.04em;
}

.admin-page table tbody tr {
    transition: background-color 150ms ease;
}

.admin-page table tbody tr:hover {
    background: #f2f8ef !important;
}

.admin-page input,
.admin-page select,
.admin-page textarea,
.admin-login input {
    border-color: #cbdacf !important;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.admin-page input:focus,
.admin-page select:focus,
.admin-page textarea:focus,
.admin-login input:focus {
    border-color: #4b9b72 !important;
    box-shadow: 0 0 0 3px rgba(75, 155, 114, 0.16) !important;
}

.admin-login {
    background: #eaf2e9 !important;
    background-image: radial-gradient(circle at 15% 15%, rgba(185, 237, 85, 0.35), transparent 19rem),
        radial-gradient(circle at 90% 85%, rgba(9, 105, 74, 0.17), transparent 24rem);
}

.admin-login > div {
    border-color: var(--line) !important;
    box-shadow: 0 24px 60px rgba(16, 65, 45, 0.15) !important;
}

.admin-login h1 {
    color: var(--ink) !important;
}

@keyframes page-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .admin-page nav > div {
        align-items: flex-start;
        gap: 0.75rem;
    }

    .admin-page nav .flex.items-center.space-x-6,
    .admin-page nav .flex.items-center.space-x-3 {
        flex-wrap: wrap;
        gap: 0.55rem;
    }

    .admin-page main > div:has(table) {
        overflow-x: auto;
    }

    .admin-page table {
        min-width: 980px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
