:root {
    --color-forest: #1f4d2e;
    --color-forest-dark: #16391f;
    --color-leaf: #4a7c59;
    --color-cream: #f6f4ec;
    --color-text: #1d2a21;
    --color-muted: #52605a;
    --color-border: #d6dccf;
    --color-white: #fff;
    --color-focus: #b45f06;
    --font-body: system-ui, -apple-system, "Segoe UI", roboto, arial, sans-serif;
    --radius: 6px;
    --space: 1rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    color: var(--color-text);
    background-color: var(--color-cream);
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Grows to fill any leftover space so the footer stays pinned to
   the bottom of the viewport on short pages, instead of floating
   up right below the content. */
#main {
    flex: 1 0 auto;
}

h1,
h2,
h3 {
    color: var(--color-forest);
    line-height: 1.25;
}

a {
    color: var(--color-forest);
}

:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

.container {
    width: min(100% - 2rem, 70rem);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    z-index: 100;
    top: -100%;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: var(--color-white);
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    color: var(--color-white);
    /* Forest photo at ~25% strength: a 75%-opaque --color-forest
       overlay (rgba equivalent of #1f4d2e) sits between the photo
       and the page so the brand green stays dominant and nav text
       stays readable. The source photo (415x739) is a tall, narrow
       crop; scaling it to "cover" a short, very wide header would
       blow it up ~8x and turn it to mush, so it's scaled to the
       header's height instead and tiled across the width. */
    background-color: var(--color-forest);
    background-image: linear-gradient(rgb(31, 77, 46, 0.75), rgb(31, 77, 46, 0.75)), url("../images/site-header-bg-taS5sxl.jpg");
    background-repeat: repeat-x;
    background-position: left center;
    background-size: auto 100%;
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space);
    padding-block: var(--space);
}

.site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 700;
}

/* The logo's dark green leaves disappear against the header, so it
   sits on a white background. */
.site-header__logo {
    flex-shrink: 0;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    background-color: var(--color-white);
}

.site-header__logo img {
    display: block;
    width: auto;
    height: 3rem;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--color-white);
    border-bottom: 2px solid transparent;
    padding-block: 0.25rem;
}

.nav-link:hover {
    border-bottom-color: var(--color-white);
}

.site-header :focus-visible,
.site-footer :focus-visible {
    outline-color: var(--color-white);
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--color-white);
    border: 2px solid var(--color-forest);
    border-radius: var(--radius);
    background: var(--color-forest);
    font: inherit;
    font-weight: 600;
}

.btn:hover {
    background: var(--color-forest-dark);
}

.btn--outline {
    color: var(--color-forest);
    border-color: var(--color-forest);
    background: transparent;
}

.btn--outline:hover {
    color: var(--color-white);
    background: var(--color-forest);
}

.card {
    padding: var(--space);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-white);
}

.dashboard-card {
    display: block;
    transition: border-color 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.dashboard-card:hover {
    border-color: var(--color-leaf);
}

.dashboard-card h2 {
    margin-block-start: 0;
}

.grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}

.form-control {
    display: block;
    width: 100%;
    margin-block: 0.25rem 1rem;
    padding: 0.6rem;
    border: 1px solid var(--color-muted);
    border-radius: var(--radius);
    font: inherit;
}

/* Symfony's default form theme renders each form_row() as a bare
   <div><label>...</label><input ...></div> with no classes to hook
   into, so these rules target that structure directly. Scoped to
   "form > div" so hand-built forms (e.g. login.html.twig, which
   already applies .form-control itself) are unaffected. */
form > div {
    margin-block-end: 1rem;
}

form > div label {
    display: block;
    margin-block-end: 0.25rem;
    font-weight: 600;
}

form > div input[type="text"],
form > div input[type="email"],
form > div input[type="password"],
form > div input[type="tel"] {
    display: block;
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--color-muted);
    border-radius: var(--radius);
    font: inherit;
}

form > div:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

form > div:has(input[type="checkbox"]) label {
    margin-block-end: 0;
    font-weight: 400;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space);
}

.form-actions p {
    margin: 0;
}

.flash {
    margin-block: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-white);
}

.flash-success {
    color: #14532d;
    border-color: #2f9e59;
    background: #e7f6ec;
}

.flash-notice,
.flash-info {
    color: var(--color-forest-dark);
    border-color: var(--color-leaf);
    background: #eaf3ec;
}

.flash-warning {
    color: #6b4e00;
    border-color: #c9970a;
    background: #fff6e0;
}

.flash-error,
.flash-danger {
    color: #7a1f1f;
    border-color: #c0392b;
    background: #fbe9e9;
}

.schedule-employee {
    color: var(--color-muted);
    font-size: 1.1rem;
}

.schedule-week-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-block: 1.25rem;
}

.schedule-week-range {
    color: var(--color-forest);
    font-weight: 600;
}

.schedule-empty {
    text-align: center;
    color: var(--color-muted);
}

.schedule-card {
    overflow: hidden;
    padding: 0;
}

.schedule-shift {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-left: 4px solid var(--color-border);
}

.schedule-shift--published {
    border-left-color: var(--color-leaf);
}

.schedule-shift--draft {
    border-left-color: #c9970a;
}

.schedule-shift--open {
    border-left-color: var(--color-focus);
}

.schedule-shift--accepted {
    border-left-color: var(--color-leaf);
}

.schedule-shift--pending {
    border-left-color: #c9970a;
}

.schedule-shift--approved {
    border-left-color: var(--color-leaf);
}

.schedule-shift--denied {
    border-left-color: #c0392b;
}

.schedule-shift + .schedule-shift {
    border-top: 1px solid var(--color-border);
}

.schedule-shift__details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.schedule-shift__date {
    color: var(--color-forest);
    font-weight: 700;
}

.schedule-shift__label {
    font-size: 1.1rem;
}

.schedule-shift__time {
    color: var(--color-muted);
}

.status-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    white-space: nowrap;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.status-badge--published {
    color: #14532d;
    background: #e7f6ec;
}

.status-badge--draft {
    color: #6b4e00;
    background: #fff6e0;
}

.status-badge--open {
    color: #7a3e00;
    background: #fdecd2;
}

.status-badge--accepted {
    color: #14532d;
    background: #e7f6ec;
}

.status-badge--pending {
    color: #6b4e00;
    background: #fff6e0;
}

.status-badge--approved {
    color: #14532d;
    background: #e7f6ec;
}

.status-badge--denied {
    color: #7a1f1f;
    background: #fbe9e9;
}

.schedule-offer {
    margin-block-end: 1.5rem;
}

.schedule-offer h2,
.schedule-offer h3 {
    margin-block-start: 0;
}

.schedule-section-divider {
    margin-block: 2rem;
    border: none;
    border-top: 1px solid var(--color-border);
}

.schedule-balances {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-block-end: 1.5rem;
}

.schedule-balances__stat {
    display: flex;
    flex-direction: column;
}

.schedule-balances__value {
    color: var(--color-forest);
    font-size: 2rem;
    font-weight: 700;
}

.schedule-balances__label {
    color: var(--color-muted);
}

.schedule-view-toggle {
    display: inline-flex;
    gap: 0.25rem;
    margin-block: 0.5rem 1.25rem;
    padding: 0.25rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-white);
}

.schedule-view-toggle__link {
    padding: 0.4rem 1.1rem;
    text-decoration: none;
    color: var(--color-forest);
    border-radius: 999px;
    font-weight: 600;
}

.schedule-view-toggle__link.is-active {
    color: var(--color-white);
    background: var(--color-forest);
}

.schedule-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.4rem;
}

.schedule-calendar__weekday {
    text-align: center;
    color: var(--color-muted);
    font-weight: 700;
    padding-block: 0.5rem;
}

.schedule-calendar__day {
    position: relative;
    aspect-ratio: 1;
    padding: 0;
    cursor: pointer;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-white);
    font: inherit;
    font-weight: 600;
}

.schedule-calendar__day:hover {
    border-color: var(--color-leaf);
}

.schedule-calendar__day.is-outside-month {
    color: var(--color-muted);
    background: var(--color-cream);
}

.schedule-calendar__day.is-today {
    color: var(--color-white);
    border-color: var(--color-forest);
    background: var(--color-forest);
}

.schedule-calendar__dot {
    position: absolute;
    bottom: 0.4rem;
    left: 50%;
    width: 0.4rem;
    height: 0.4rem;
    transform: translateX(-50%);
    border-radius: 50%;
    background: var(--color-focus);
}

.schedule-calendar__day.is-today .schedule-calendar__dot {
    background: var(--color-white);
}

.schedule-day-dialog {
    width: min(100% - 2rem, 28rem);
    padding: 1.5rem;
    border: none;
    border-radius: var(--radius);
}

.schedule-day-dialog::backdrop {
    background: rgb(0, 0, 0, 0.5);
}

.schedule-day-dialog h2 {
    margin-block-start: 0;
}

.schedule-day-dialog .schedule-shift {
    border-left-width: 3px;
}

.schedule-day-dialog .btn--outline {
    margin-block-start: 1rem;
}

.site-footer {
    margin-top: 3rem;
    color: var(--color-white);
    background: var(--color-forest-dark);
    padding-block: 2rem 1rem;
}

.site-footer h2 {
    color: var(--color-white);
    font-size: 1.125rem;
}

.site-footer__inner {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.site-footer__legal {
    font-size: 0.875rem;
}

/* Product Details Page Styles */
.product-page {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    color: var(--color-muted);
    border-radius: var(--radius);
    background: var(--color-cream);
}

.product-info h1 {
    margin-bottom: 15px;
    font-size: 32px;
}

.product-price {
    margin-bottom: 20px;
    font-size: 26px;
}

.product-quantity {
    margin: 15px 0;
}

.product-quantity input {
    width: 70px;
    padding: 8px;
}

.stock {
    margin-bottom: 20px;
    color: var(--color-forest);
}

.cart-button {
    padding: 12px 25px;
    cursor: pointer;
    color: var(--color-white);
    border: none;
    border-radius: var(--radius);
    background: var(--color-forest);
}

.product-description {
    margin-top: 45px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

@media (max-width: 700px) {
    .product-page {
        margin: 15px auto;
        padding: 15px;
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-image {
        min-height: 250px;
    }

    .product-info h1 {
        font-size: 26px;
    }

    .product-description {
        margin-top: 25px;
    }
}
.product-image img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--radius);
}

.product-botanical {
    color: var(--color-muted);
    font-style: italic;
}

.product-facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.5rem 1.5rem;
}

.product-facts dt {
    font-weight: 700;
}

.product-facts dd {
    margin: 0;
}

/* Products Page Styles */

.products-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.products-page h1 {
    margin-bottom: 30px;
    text-align: center;
}

.products-search {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.products-search input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.products-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    padding: 15px;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.product-card-image {
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    height: 180px;
    margin-bottom: 15px;
    background: var(--color-cream);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card h2 {
    margin-bottom: 10px;
    font-size: 18px;
}

.product-card p {
    margin-bottom: 15px;
    font-size: 18px;
}

.product-card a {
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--color-white);
    border-radius: var(--radius);
    background: var(--color-forest);
}

.categories {
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.categories h2 {
    margin-bottom: 15px;
}

.categories ul {
    padding: 0;
    list-style: none;
}

.categories li {
    margin-bottom: 12px;
}

@media (max-width: 800px) {
    .products-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 500px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.filter-button {
    padding: 12px 20px;
    cursor: pointer;
    white-space: nowrap;
    color: var(--color-white);
    border: none;
    border-radius: var(--radius);
    background: var(--color-forest);
}

.filter-button:hover {
    background: var(--color-forest-dark);
}

.site-footer a {
    text-decoration: underline;
    color: var(--color-white);
}

.site-footer a:hover {
    text-decoration: none;
}

.product-card[hidden] {
    display: none;
}

.category-link {
    padding: 4px 0;
    cursor: pointer;
    text-align: left;
    color: var(--color-forest);
    border: none;
    background: none;
    font: inherit;
}

.category-link:hover {
    text-decoration: underline;
}

.products-search select {
    padding: 12px;
    cursor: pointer;
    border-radius: var(--radius);
}
