:root {
    --bg: #f8f7f2;
    --surface: #ffffff;
    --surface-soft: #f1f5ea;
    --surface-dark: #1f3320;
    --border: #d9e2d1;
    --text: #253225;
    --text-soft: #5f6d5f;
    --heading: #172217;
    --primary: #6b9d2d;
    --primary-dark: #4d771d;
    --accent: #93bf4b;
    --white: #ffffff;
    --shadow: 0 18px 44px rgba(25, 45, 24, 0.08);
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 34px;
    --container: 1240px;
    --header-height: 112px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul {
    margin: 0;
}

ul {
    padding-left: 1.2rem;
}

.unstyled-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 88px 0;
}

.section-top-offset {
    padding-top: calc(var(--header-height) + 48px);
}

.section-soft {
    background: linear-gradient(180deg, rgba(107, 157, 45, 0.05), rgba(255, 255, 255, 0));
}

.section-dark {
    background: linear-gradient(135deg, #294429, #1c301d);
    color: var(--white);
}

.section-heading {
    display: grid;
    gap: 14px;
    margin-bottom: 34px;
}

.section-heading.with-link {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 20px;
}

.section-heading h1,
.section-heading h2,
.hero-copy h1,
.story-copy h2,
.product-info h1 {
    color: var(--heading);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.section-heading h1,
.hero-copy h1,
.product-info h1 {
    font-size: clamp(2.4rem, 4vw, 4.8rem);
}

.section-heading h2,
.story-copy h2,
.section-dark h2 {
    font-size: clamp(2rem, 3vw, 3.2rem);
}

.section-intro {
    color: var(--text-soft);
    max-width: 760px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-dark);
    font-weight: 700;
}

.eyebrow--light {
    color: #d8f1bc;
}

.card-surface {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(248, 247, 242, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(37, 50, 37, 0.08);
}

.header-inner {
    min-height: var(--header-height);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    width: 170px;
    max-width: 100%;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.site-nav a {
    font-size: 0.98rem;
    color: var(--text-soft);
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--heading);
    border-color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-link,
.cart-pill {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 999px;
    padding: 12px 16px;
    font-size: 0.94rem;
}

.cart-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cart-pill span {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-section {
    padding: 64px 0 88px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
    gap: 34px;
    align-items: center;
}

.hero-copy {
    display: grid;
    gap: 22px;
}

.hero-copy p {
    max-width: 700px;
    color: var(--text-soft);
    font-size: 1.06rem;
}

.hero-media {
    overflow: hidden;
    padding: 18px;
}

.hero-media img {
    width: 100%;
    border-radius: calc(var(--radius-md) - 8px);
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-highlights li {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
}

.button-group,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 999px;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    line-height: 1;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.button--secondary {
    background: transparent;
    color: var(--heading);
    border-color: var(--border);
}

.button--secondary:hover {
    background: var(--surface-soft);
    border-color: var(--accent);
}

.button--small {
    padding: 12px 18px;
    font-size: 0.92rem;
}

.button--light {
    background: var(--white);
    border-color: var(--white);
    color: var(--surface-dark);
}

.button--light:hover {
    background: #eff6e7;
    border-color: #eff6e7;
}

.button--ghost-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.button--ghost-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.45);
}

.section-link {
    color: var(--primary-dark);
    font-weight: 700;
}

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

.feature-card {
    padding: 28px;
    display: grid;
    gap: 10px;
}

.feature-card h3 {
    color: var(--heading);
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-soft);
}

.story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 32px;
    align-items: start;
}

.story-copy {
    display: grid;
    gap: 18px;
}

.story-copy p {
    color: var(--text-soft);
}

.story-media-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
}

.story-media-grid img {
    width: 100%;
    object-fit: cover;
    overflow: hidden;
    padding: 10px;
    border-radius: var(--radius-md);
}

.story-media-grid img:first-child {
    min-height: 100%;
}

.cta-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
}

.cta-panel p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.product-grid--listing {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-grid--related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
    overflow: hidden;
    display: grid;
}

.product-card__media {
    display: block;
    overflow: hidden;
    background: #eef3ea;
}

.product-card__media img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.fixed-square img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-card__content {
    padding: 22px;
    display: grid;
    gap: 14px;
}

.product-card__topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.product-card__category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-dark);
    font-weight: 700;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: #edf6df;
    color: var(--primary-dark);
    font-size: 0.76rem;
    font-weight: 700;
}

.product-card h2,
.product-card h3 {
    color: var(--heading);
    font-size: 1.25rem;
    line-height: 1.2;
}

.product-card p {
    color: var(--text-soft);
    font-size: 0.98rem;
}

.product-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-soft);
}

.product-card__meta strong,
.product-price {
    color: var(--heading);
    font-size: 1.28rem;
}

.button-row--split > * {
    flex: 1 1 0;
}

.filter-bar {
    padding: 20px 22px;
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
}

.filter-label {
    font-weight: 700;
    color: var(--heading);
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-soft);
}

.pill.is-active,
.pill:hover {
    border-color: var(--primary);
    background: #edf6df;
    color: var(--primary-dark);
}

.empty-state {
    padding: 40px;
    display: grid;
    gap: 18px;
    text-align: center;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
    gap: 28px;
    align-items: start;
}

.product-gallery {
    display: grid;
    gap: 16px;
}

.product-gallery__main {
    padding: 20px;
}

.product-gallery__main img {
    width: 100%;
    border-radius: calc(var(--radius-md) - 8px);
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

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

.thumb-card {
    padding: 8px;
}

.thumb-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: calc(var(--radius-sm) - 4px);
}

.product-info {
    padding: 30px;
    display: grid;
    gap: 18px;
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.product-tagline {
    font-size: 1.08rem;
    color: var(--primary-dark);
}

.product-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.price-block {
    display: grid;
    gap: 4px;
}

.product-size {
    color: var(--text-soft);
    font-size: 0.95rem;
}

.purchase-box {
    display: grid;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.quantity-selector {
    display: grid;
    gap: 10px;
}

.quantity-selector label {
    font-weight: 700;
    color: var(--heading);
}

.qty-input {
    display: inline-grid;
    grid-template-columns: 44px 90px 44px;
    width: fit-content;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    background: var(--white);
}

.qty-input button,
.qty-input input {
    border: 0;
    background: transparent;
    text-align: center;
    min-height: 46px;
}

.qty-input input {
    appearance: textfield;
    width: 100%;
}

.qty-input input::-webkit-outer-spin-button,
.qty-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.feature-badge-list {
    display: grid;
    gap: 10px;
}

.feature-badge {
    padding: 12px 16px;
    border-radius: 999px;
    background: #edf6df;
    color: var(--primary-dark);
    font-size: 0.92rem;
    font-weight: 700;
}

.section-inner,
.section-inner-grid {
    margin-top: 40px;
}

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

.info-panel {
    padding: 28px;
    display: grid;
    gap: 16px;
}

.info-panel--wide {
    grid-column: 1 / -1;
}

.info-panel h2 {
    color: var(--heading);
    font-size: 1.5rem;
}

.check-list,
.ingredient-list {
    display: grid;
    gap: 10px;
    padding-left: 1.2rem;
}

.check-list li::marker,
.ingredient-list li::marker {
    color: var(--primary-dark);
}

.stock-message {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.stock-message::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
}

.stock-message.green {
    color: #27884f;
}

.stock-message.orange {
    color: #c77d1a;
}

.stock-message.red {
    color: #bf3a3a;
}

.site-footer {
    padding: 42px 0 56px;
    border-top: 1px solid rgba(37, 50, 37, 0.08);
    background: #f3f5ee;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 28px;
}

.footer-logo {
    width: 150px;
    margin-bottom: 14px;
}

.footer-grid p,
.footer-links a {
    color: var(--text-soft);
}

.footer-grid h3 {
    color: var(--heading);
    font-size: 1.06rem;
    margin-bottom: 12px;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a:hover,
.section-link:hover {
    color: var(--primary-dark);
}

.cart-summary,
.cart-drawer,
.cart-drawer__footer,
.cart-item,
.cart-progress,
.cart-totals {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.cart-summary,
.cart-drawer,
.cart-drawer__footer,
.cart-item,
.cart-progress,
.cart-totals {
    padding: 18px;
}

.cart-summary,
.cart-item,
.cart-totals {
    display: grid;
    gap: 12px;
}

.cart-summary__subtotal,
.cart-totals__row,
.cart-item__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.cart-progress__bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e9eee2;
    overflow: hidden;
}

.cart-progress__bar span {
    display: block;
    height: 100%;
    width: 35%;
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

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

    .product-grid--listing,
    .product-grid--related,
    .feature-grid,
    .footer-grid,
    .cta-panel,
    .story-grid,
    .hero-grid,
    .product-layout,
    .section-inner-grid {
        grid-template-columns: 1fr;
    }

    .product-info {
        position: static;
    }
}

@media (max-width: 840px) {
    :root {
        --header-height: 96px;
    }

    .header-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 14px 0 18px;
        gap: 16px;
    }

    .site-nav {
        gap: 18px;
    }

    .section {
        padding: 72px 0;
    }

    .section-heading.with-link {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .product-gallery__thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .container {
        width: min(var(--container), calc(100% - 22px));
    }

    .brand-logo,
    .footer-logo {
        width: 136px;
    }

    .hero-section {
        padding-top: 34px;
    }

    .hero-highlights,
    .button-group,
    .button-row,
    .pill-list {
        gap: 10px;
    }

    .button,
    .button--secondary,
    .button--light,
    .button--ghost-light {
        width: 100%;
    }

    .button-row--stack-mobile > * {
        width: 100%;
    }

    .product-grid,
    .product-grid--listing,
    .product-grid--related,
    .product-gallery__thumbs {
        grid-template-columns: 1fr;
    }

    .fixed-square img {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .site-nav {
        justify-content: center;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .icon-link,
    .cart-pill {
        width: 100%;
        justify-content: center;
    }

    .product-info,
    .feature-card,
    .product-card__content,
    .info-panel,
    .filter-bar,
    .empty-state {
        padding: 20px;
    }
}
