:root {
    --bg: #f2f7f3;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-strong: #ffffff;
    --surface-soft: #eef5ef;
    --line: rgba(16, 24, 16, 0.08);
    --text: #143021;
    --text-soft: #4f6558;
    --text-faint: #75877c;
    --green: #0f7a42;
    --green-deep: #0a6335;
    --green-soft: #dff4e7;
    --orange: #ff7b2f;
    --orange-deep: #ea5f07;
    --cream: #fffaf1;
    --shadow-card: 0 18px 50px rgba(20, 48, 33, 0.08);
    --shadow-soft: 0 10px 20px rgba(20, 48, 33, 0.06);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --container: 1240px;
    --font-sans: "Manrope", "Inter", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at top left, rgba(15, 122, 66, 0.18), transparent 35%),
        radial-gradient(circle at top right, rgba(255, 123, 47, 0.12), transparent 30%),
        var(--bg);
}

body {
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.5;
}

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

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

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

button,
a,
input,
textarea {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

button:hover,
a:hover {
    transform: translateY(-1px);
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid rgba(15, 122, 66, 0.5);
    outline-offset: 2px;
}

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

.site-header {
    position: sticky;
    top: 12px;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 14px 18px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft);
}

.site-brand {
    min-width: 0;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    box-shadow: 0 12px 25px rgba(15, 122, 66, 0.18);
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-copy strong {
    font-size: 18px;
    line-height: 1.1;
}

.brand-copy small {
    color: var(--text-faint);
}

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

.site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--text-soft);
}

.site-nav a.active,
.site-nav a:hover {
    background: var(--green-soft);
    color: var(--green-deep);
}

.ghost-pill.active {
    background: var(--green-soft);
    color: var(--green-deep);
    border-color: rgba(15, 122, 66, 0.16);
}

.site-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.app-download-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: -4px 0 18px;
    padding: 12px 16px;
    border: 1px solid rgba(15, 122, 66, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 20px rgba(20, 48, 33, 0.04);
}

.app-download-copy {
    display: grid;
    gap: 2px;
}

.app-download-copy strong {
    color: var(--text);
    font-size: 14px;
}

.app-download-copy span {
    color: var(--text-soft);
    font-size: 12px;
}

.app-download-links {
    display: flex;
    gap: 8px;
}

.app-store-link {
    display: grid;
    min-width: 126px;
    padding: 7px 11px;
    border-radius: 10px;
    background: #102219;
    color: #fff;
    line-height: 1.05;
}

.app-store-link:hover {
    background: var(--green-deep);
}

.app-store-link small {
    font-size: 9px;
    letter-spacing: 0.03em;
    opacity: 0.72;
}

.app-store-link strong {
    font-size: 15px;
}

.ghost-pill,
.auth-pill,
.cart-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    white-space: nowrap;
}

.cart-pill span {
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.auth-pill {
    background: linear-gradient(135deg, var(--green), var(--green-deep));
    color: #fff;
    border-color: transparent;
}

.eyebrow {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    font-weight: 800;
    color: var(--orange-deep);
}

.hero-card h2,
.detail-copy h2,
.site-footer strong {
    margin: 0;
    font-family: "Inter", var(--font-sans);
    letter-spacing: -0.03em;
}

.page-subtitle {
    max-width: 760px;
    margin: 0;
    color: var(--text-soft);
}

.hero-stat strong {
    display: block;
    font-size: 20px;
    line-height: 1.1;
}

.hero-stat span,
.stack-list-item span,
.stack-list-item small,
.detail-meta,
.product-card p,
.cart-row-copy span,
.empty-state p,
.hero-copy p,
.hero-story p {
    color: var(--text-soft);
}

.page-stack {
    display: grid;
    gap: 22px;
    animation: fadeUp 0.5s ease both;
}

.page-stack.narrow {
    max-width: 740px;
    margin: 0 auto;
}

.hero-card,
.detail-card,
.aside-card,
.auth-card,
.notice-banner,
.flash,
.empty-state {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card);
}

.hero-card {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 22px;
    padding: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(15, 122, 66, 0.18), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.88));
}

.hero-copy h2 {
    font-size: clamp(34px, 5vw, 66px);
    line-height: 0.96;
    margin-bottom: 16px;
}

.hero-copy p {
    max-width: 640px;
    font-size: 17px;
    margin: 0;
}

.hero-actions,
.card-actions,
.detail-actions,
.cart-form-actions,
.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-actions {
    margin-top: 22px;
}

.hero-pills {
    margin-top: 20px;
}

.hero-pills span,
.mini-pill,
.chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-deep);
    font-size: 13px;
    font-weight: 700;
}

.hero-panel {
    display: grid;
    gap: 14px;
    align-content: start;
}

.hero-stat,
.hero-story {
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(15, 122, 66, 0.08), rgba(255,255,255,0.72));
    border: 1px solid rgba(15, 122, 66, 0.12);
}

.hero-story h3 {
    margin: 0 0 8px;
}

.notice-banner {
    padding: 16px 18px;
    display: flex;
    gap: 12px;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 123, 47, 0.15), rgba(255, 255, 255, 0.88));
}

.notice-banner strong {
    color: var(--orange-deep);
}

.notice-banner.compact {
    flex-direction: column;
    align-items: flex-start;
}

.notice-banner.error {
    background: rgba(255, 91, 91, 0.12);
    color: #8a2222;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(290px, 0.9fr);
    gap: 22px;
    align-items: start;
}

.profile-layout {
    grid-template-columns: 1fr;
}

.checkout-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
}

.content-main {
    display: grid;
    gap: 18px;
}

.content-aside {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 112px;
}

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

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 14px;
    margin-bottom: 14px;
}

.section-head h3 {
    margin: 0;
    font-size: 22px;
}

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

.product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}

.product-card {
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card.large {
    min-height: 100%;
}

.featured-grid .product-card {
    border-radius: 20px;
}

.product-image-link {
    display: block;
    aspect-ratio: 1 / 0.92;
    overflow: hidden;
    background: linear-gradient(180deg, #ebf7ee, #ffffff);
}

.featured-grid .product-image-link {
    aspect-ratio: 1 / 0.78;
}

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

.product-card-body {
    padding: 16px;
    display: grid;
    gap: 12px;
    flex: 1;
}

.featured-grid .product-card-body {
    padding: 12px;
    gap: 10px;
    flex: 1;
}

.product-card-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.product-card h4,
.detail-copy h2 {
    font-size: 22px;
    line-height: 1.08;
    margin: 0 0 4px;
}

.featured-grid .product-card h4 {
    font-size: 17px;
    margin-bottom: 2px;
}

.product-card p {
    margin: 0;
    font-size: 14px;
}

.featured-grid .product-card p {
    font-size: 12px;
}

.price-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-stack {
    display: grid;
    gap: 2px;
}

.product-amount {
    font-size: 18px;
    line-height: 1.1;
    color: var(--green-deep);
}

.featured-grid .price-line {
    gap: 8px;
}

.price-line strong {
    font-size: 28px;
    color: var(--green-deep);
}

.featured-grid .price-line strong {
    font-size: 18px;
}

.price-line.large strong {
    font-size: 28px;
}

.price-line del {
    color: var(--text-faint);
}

.product-description,
.detail-text {
    color: var(--text-soft);
}

.product-card .product-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.featured-grid .primary-button.small {
    min-height: 36px;
    padding: 0 12px;
}

.compact-form {
    margin: 0;
}

.card-actions-slim {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

.product-card.is-in-cart {
    border-color: rgba(15, 122, 66, 0.28);
    box-shadow: 0 18px 50px rgba(15, 122, 66, 0.12);
}

.product-stepper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(15, 122, 66, 0.08);
    border: 1px solid var(--line);
}

.featured-grid .product-stepper {
    padding: 3px;
}

.stepper-button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(135deg, var(--green), var(--green-deep));
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.featured-grid .stepper-button {
    width: 30px;
    height: 30px;
    font-size: 18px;
}

.stepper-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.stepper-count {
    min-width: 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--green-deep);
}

.cart-action-count {
    margin-left: 8px;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.22);
    color: inherit;
    font-size: 12px;
    font-weight: 800;
}

.primary-button,
.secondary-button,
.link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
}

.primary-button {
    background: linear-gradient(135deg, var(--green), var(--green-deep));
    color: #fff;
    box-shadow: 0 14px 26px rgba(15, 122, 66, 0.18);
}

.secondary-button {
    background: #fff;
    color: var(--green-deep);
    border-color: var(--line);
}

.link-button {
    background: transparent;
    color: var(--orange-deep);
    padding: 0;
    min-height: auto;
}

.primary-button.small,
.secondary-button.small {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
}

.primary-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.chip {
    background: #fff;
    color: var(--text-soft);
    border: 1px solid var(--line);
}

.chip.active {
    background: linear-gradient(135deg, var(--green), var(--green-deep));
    color: #fff;
}

.aside-card,
.auth-card,
.detail-card {
    padding: 20px;
}

.stack-list,
.step-list,
.nutrition-grid {
    display: grid;
    gap: 12px;
}

.stack-list-item {
    padding: 14px 15px;
    border-radius: 18px;
    background: rgba(15, 122, 66, 0.06);
}

.stack-list-item strong,
.summary-row strong {
    display: block;
}

.step-list {
    margin: 0;
    padding-left: 18px;
}

.step-list li {
    color: var(--text-soft);
}

.detail-card {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 20px;
}

.detail-media {
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, #eef7ef, #fff);
    min-height: 420px;
}

.detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-media {
    min-height: 320px;
}

.detail-copy {
    display: grid;
    align-content: start;
    gap: 12px;
}

.detail-panels {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-meta {
    margin: 0;
}

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

.detail-actions > label span,
.form-grid span {
    font-size: 13px;
    color: var(--text-faint);
    font-weight: 700;
}

.form-grid input,
.form-grid textarea {
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid var(--line);
    padding: 0 14px;
    background: #fff;
    color: var(--text);
}

.detail-stepper {
    padding: 5px;
}

.detail-stepper .stepper-button {
    width: 38px;
    height: 38px;
}

.detail-stepper .stepper-count {
    min-width: 28px;
    font-size: 16px;
}

.form-grid textarea {
    padding: 12px 14px;
    min-height: 100px;
    resize: vertical;
}

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

.nutrition-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(20, 48, 33, 0.04);
}

.nutrition-card span {
    display: block;
    color: var(--text-faint);
    font-size: 13px;
    margin-bottom: 6px;
}

.nutrition-card strong {
    font-size: 18px;
}

.form-grid {
    display: grid;
    gap: 12px;
}

.auth-card {
    max-width: 100%;
}

.auth-split,
.checkout-columns,
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.address-list {
    display: grid;
    gap: 12px;
}

.address-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 15px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.9);
}

.address-card input {
    margin-top: 4px;
}

.address-card.static {
    grid-template-columns: 1fr;
}

.profile-summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 15px;
    border-radius: 18px;
    background: rgba(15, 122, 66, 0.06);
}

.cart-list {
    display: grid;
    gap: 12px;
}

.cart-row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255,255,255,0.95);
    border: 1px solid var(--line);
}

.cart-row img {
    width: 86px;
    height: 86px;
    border-radius: 16px;
    object-fit: cover;
}

.cart-row-copy {
    display: grid;
    gap: 4px;
}

.cart-row-controls {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.cart-row-controls input {
    width: 82px;
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    padding: 0 12px;
}

.cart-row-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.is-open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 22, 16, 0.52);
}

.modal-panel {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    max-height: min(88vh, 920px);
    overflow: auto;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.28);
    padding: 22px;
}

.auth-modal {
    width: min(520px, 100%);
    padding: 0;
    overflow: hidden;
}

.auth-modal-hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #285f2a, #4e9f3d);
}

.auth-modal-hero img {
    position: relative;
    z-index: 1;
    width: 88px;
    height: 88px;
    border-radius: 25px;
    object-fit: cover;
    box-shadow: 0 20px 42px rgba(8, 45, 17, 0.24);
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.auth-orb-large {
    width: 180px;
    height: 180px;
    top: -74px;
    right: -38px;
}

.auth-orb-small {
    width: 84px;
    height: 84px;
    bottom: -36px;
    left: -16px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-modal-close {
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 16px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

.auth-modal-content {
    padding: 28px 30px 26px;
}

.auth-modal-heading {
    margin-bottom: 22px;
}

.auth-modal-heading h3 {
    margin: 0;
    color: var(--text);
    font-size: clamp(28px, 5vw, 34px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.auth-modal-heading p:last-child {
    max-width: 410px;
    margin: 10px 0 0;
    color: var(--text-soft);
    font-size: 16px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field input {
    min-height: 54px;
    border-radius: 16px;
    border-color: rgba(15, 122, 66, 0.18);
    font-size: 17px;
}

.auth-field input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(15, 122, 66, 0.1);
    outline: none;
}

.auth-helper {
    margin: -2px 0 8px;
    color: var(--text-faint);
    font-size: 13px;
}

.auth-submit {
    width: 100%;
    min-height: 52px;
    border-radius: 26px;
}

.auth-secondary-action {
    display: block;
    margin-top: 18px;
    color: var(--green-deep);
    text-align: center;
    font-size: 14px;
    font-weight: 800;
}

.cart-modal {
    width: min(1080px, 100%);
}

.modal-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.modal-head h3 {
    margin: 0;
    font-size: 26px;
}

.modal-close {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.modal-cart-list {
    margin-bottom: 16px;
}

.modal-checkout {
    margin-top: 8px;
}

.cart-form-actions {
    justify-content: space-between;
    margin-top: 16px;
}

.checkout-summary {
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(15, 122, 66, 0.05), rgba(255,255,255,0.92));
    border: 1px solid var(--line);
}

.checkout-screen {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.checkout-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-strong);
    box-shadow: 0 8px 22px rgba(20, 48, 33, 0.04);
}

.checkout-card h4 {
    margin: 0 0 14px;
    font-size: 17px;
}

.segmented-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.segmented-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.segmented-option input {
    position: absolute;
    opacity: 0;
}

.segmented-option.is-selected {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

.segmented-option.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tip-options {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.custom-tip-input,
.checkout-input,
.checkout-textarea {
    width: 100%;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
    color: var(--text);
}

.custom-tip-input:disabled {
    opacity: 0.5;
}

.checkout-textarea {
    min-height: 100px;
    margin-top: 0;
    resize: vertical;
}

.checkout-summary {
    display: grid;
    gap: 12px;
}

.checkout-summary .summary-row + .summary-row {
    margin-top: 2px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.empty-state {
    display: grid;
    justify-items: center;
    text-align: center;
    padding: 32px;
}

.empty-state.compact {
    justify-items: start;
    text-align: left;
    padding: 20px;
}

.page-heading {
    align-items: center;
}

.page-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.order-list {
    display: grid;
    gap: 16px;
}

.order-card {
    padding: 20px;
}

.order-card-head,
.order-total,
.order-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.order-card-head h3 {
    margin: 0 0 4px;
}

.order-card-head span:not(.mini-pill) {
    color: var(--text-faint);
    font-size: 13px;
}

.order-items {
    display: grid;
    gap: 9px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.order-item {
    color: var(--text-soft);
    font-size: 14px;
}

.order-total {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--text-soft);
}

.order-total strong {
    color: var(--green-deep);
}

.support-card {
    display: grid;
    gap: 20px;
}

.support-empty {
    display: grid;
    justify-items: center;
    padding: 42px 24px 24px;
    text-align: center;
}

.support-empty-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--green-soft);
    color: var(--green-deep);
    font-size: 28px;
    font-weight: 800;
}

.support-empty strong {
    margin-top: 18px;
    font-size: 22px;
}

.support-empty p {
    max-width: 420px;
    margin: 10px 0 0;
    color: var(--text-soft);
}

.support-messages {
    display: grid;
    gap: 12px;
    max-height: 520px;
    overflow-y: auto;
    padding: 4px;
}

.support-message {
    display: grid;
    justify-self: start;
    gap: 5px;
    max-width: min(78%, 560px);
    padding: 12px 14px;
    border-radius: 16px 16px 16px 5px;
    background: var(--surface-soft);
    color: var(--text);
}

.support-message.is-mine {
    justify-self: end;
    border-radius: 16px 16px 5px 16px;
    background: var(--green);
    color: #fff;
}

.support-message small {
    color: var(--text-faint);
    font-size: 11px;
}

.support-message.is-mine small {
    color: rgba(255, 255, 255, 0.72);
}

.support-composer {
    display: grid;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.support-composer textarea {
    width: 100%;
    min-height: 96px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    color: var(--text);
    resize: vertical;
}

.empty-inline {
    padding: 14px 15px;
    border-radius: 16px;
    background: rgba(15, 122, 66, 0.06);
    color: var(--text-soft);
}

.flash {
    margin-bottom: 16px;
    padding: 14px 16px;
}

.flash-success {
    background: rgba(15, 122, 66, 0.12);
    color: var(--green-deep);
}

.flash-error {
    background: rgba(255, 91, 91, 0.12);
    color: #9d2d2d;
}

.site-footer {
    margin-top: 48px;
    padding: 36px 32px 22px;
    border: 1px solid rgba(15, 122, 66, 0.12);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 249, 241, 0.92));
    color: var(--text-soft);
    box-shadow: var(--shadow-soft);
}

.site-footer-main {
    display: flex;
    justify-content: space-between;
    gap: 48px;
}

.site-footer-brand {
    max-width: 290px;
}

.footer-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 10px 22px rgba(15, 122, 66, 0.16);
}

.site-footer strong {
    color: var(--text);
    font-size: 18px;
}

.site-footer p {
    margin: 14px 0 12px;
    line-height: 1.65;
}

.site-footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    gap: 48px;
}

.footer-link-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    min-width: 110px;
    font-size: 14px;
}

.footer-link-group strong {
    margin-bottom: 4px;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-link-group a:hover {
    color: var(--green);
}

.footer-contact span:last-child {
    color: var(--text-faint);
    font-size: 12px;
}

.site-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--text-faint);
    font-size: 12px;
}

.page-stack main,
.site-shell main {
    min-width: 0;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1080px) {
    .site-header,
    .site-footer,
    .content-grid,
    .detail-card,
    .hero-card,
    .auth-split,
    .checkout-columns,
    .grid-2 {
        grid-template-columns: 1fr;
        display: grid;
    }

    .site-header {
        gap: 14px;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .site-actions {
        justify-content: flex-start;
    }

    .content-aside {
        position: static;
    }
}

@media (max-width: 820px) {
    .site-shell {
        width: min(100% - 20px, var(--container));
        padding-top: 12px;
    }

    .hero-actions,
    .card-actions,
    .cart-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .product-row,
    .product-grid,
    .nutrition-grid {
        grid-template-columns: 1fr;
    }

    .cart-row {
        grid-template-columns: 1fr;
    }

    .cart-row-controls {
        justify-items: start;
    }

    .site-header {
        top: 8px;
        padding: 14px;
    }

    .app-download-bar {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .app-download-links {
        width: 100%;
    }

    .app-store-link {
        flex: 1;
    }

    .site-footer {
        padding: 28px 22px 20px;
    }

    .site-footer-main {
        flex-direction: column;
        gap: 30px;
    }

    .site-footer-links {
        gap: 24px;
    }

    .site-footer-bottom {
        flex-direction: column;
        gap: 6px;
    }

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