/* Hearty Eats Commerce: storefront.
 * Colours and font come from design tokens. The neutral defaults below match the theme;
 * Settings → Storefront → Store look "Hearty Eats brand" overrides them inline (1.3.0-dev.2). */
:root {
	--he-primary: #1d2327; --he-primary-hover: #343c42; --he-on-primary: #fff;
	--he-accent: #1d2327; --he-on-accent: #fff; --he-surface: #f4f5f3;
	--he-heading: inherit; --he-price: inherit; --he-card-radius: 12px; --he-btn-radius: 999px;
}
.he-shop, .he-product { --he-gap: 1rem; --he-radius: 8px; --he-border: rgba(0,0,0,.12); --he-muted: rgba(0,0,0,.62); --he-ok: #1e7b34; --he-warn: #9a5b00; --he-bad: #a12622; }
.he-shop__filters { display: flex; flex-wrap: wrap; gap: var(--he-gap); align-items: flex-end; margin: 0 0 1.25rem; }
.he-field { display: flex; flex-direction: column; gap: .25rem; min-width: 12rem; flex: 1 1 12rem; }
.he-field__label { font-size: .875rem; font-weight: 600; }
.he-field input, .he-field select { padding: .6rem .7rem; border: 1px solid var(--he-border); border-radius: var(--he-radius); font: inherit; min-height: 44px; }
.he-button { display: inline-block; padding: .65rem 1.1rem; border-radius: var(--he-radius); border: 1px solid currentColor; background: transparent; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; text-decoration: none; }
.he-button:focus-visible, .he-card__link:focus-visible, .he-option:focus-within { outline: 3px solid currentColor; outline-offset: 2px; }
.he-shop__count { color: var(--he-muted); font-size: .9rem; margin: 0 0 .75rem; }
.he-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.he-card { display: flex; flex-direction: column; gap: .35rem; }
.he-card.is-out-of-stock .he-card__media { opacity: .55; }
.he-card__link { display: flex; flex-direction: column; gap: .5rem; text-decoration: none; color: inherit; }
.he-card__media, .he-product__image { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--he-radius); background: rgba(0,0,0,.05); }
.he-card__media img, .he-product__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.he-img-placeholder { display: block; width: 100%; height: 100%; }
.he-card__name { font-weight: 600; line-height: 1.3; }
.he-card__price, .he-product__price { font-weight: 700; }
.he-card__unit { color: var(--he-muted); font-size: .875rem; }
del { opacity: .6; font-weight: 400; margin-right: .25rem; }
ins { text-decoration: none; }
.he-badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; align-self: flex-start; }
.he-badge--out { background: #fbeaea; color: var(--he-bad); }
.he-pagination { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.he-pagination a, .he-pagination span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--he-border); border-radius: var(--he-radius); text-decoration: none; }
.he-pagination [aria-current] { font-weight: 700; border-color: currentColor; }
.he-product__layout { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .he-product__layout { grid-template-columns: 1fr 1fr; } }
.he-product__thumbs { list-style: none; padding: 0; margin: .75rem 0 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.he-product__thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.he-product__title { margin: 0 0 .5rem; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.2; }
.he-options { border: 1px solid var(--he-border); border-radius: var(--he-radius); padding: .75rem 1rem; margin: 1rem 0; }
.he-options legend { font-weight: 600; padding: 0 .25rem; }
.he-option { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: .5rem 0; min-height: 44px; }
.he-option + .he-option { border-top: 1px solid var(--he-border); }
.he-option__name { font-weight: 600; flex: 1 1 8rem; }
.he-option__meta { color: var(--he-muted); font-size: .875rem; }
.he-option.is-unavailable { opacity: .6; }
.he-stock { font-size: .85rem; font-weight: 600; }
.he-stock--in_stock { color: var(--he-ok); }
.he-stock--low_stock, .he-stock--backorder { color: var(--he-warn); }
.he-stock--out_of_stock { color: var(--he-bad); }
.he-notice { border-left: 4px solid currentColor; padding: .75rem 1rem; background: rgba(0,0,0,.04); border-radius: 4px; }
.he-product__cats { color: var(--he-muted); font-size: .9rem; }
.he-product__section { margin-top: 2rem; }

/* Shop page layout (1.0.0-rc.5): centred heading, search bar, roomier grid, space above the footer. */
.he-product__back { margin: 0 0 1rem; }
.he-shop--page, .he-product { margin-bottom: clamp(3rem, 2rem + 5vw, 6rem); }
.he-shop__header { text-align: center; max-width: 42rem; margin: 0 auto clamp(1.75rem, 1rem + 3vw, 3rem); }
.he-shop__title { margin: 0; font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.he-shop__subtitle { margin: .9rem auto 0; max-width: 34rem; color: var(--he-muted); font-size: clamp(1rem, .95rem + .3vw, 1.2rem); line-height: 1.55; text-wrap: pretty; }
.he-shop__header::after { content: ""; display: block; width: 3rem; height: 3px; margin: 1.5rem auto 0; border-radius: 3px; background: currentColor; opacity: .18; }
.he-shop--page .he-shop__filters { max-width: 46rem; margin: 0 auto 2.5rem; padding: .5rem; gap: .5rem; align-items: stretch; border: 1px solid var(--he-border); border-radius: 999px; background: rgba(0,0,0,.02); }
.he-shop--page .he-field__label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.he-shop--page .he-field { min-width: 0; }
.he-shop--page .he-field--search { flex: 3 1 14rem; }
.he-shop--page .he-field--category { flex: 1 1 10rem; }
.he-shop--page .he-field input, .he-shop--page .he-field select { border: 0; border-radius: 999px; background: transparent; padding-inline: 1rem; }
.he-shop--page .he-field--category select { border-left: 1px solid var(--he-border); border-radius: 0; }
.he-shop--page .he-field input:focus-visible, .he-shop--page .he-field select:focus-visible { outline: 2px solid currentColor; outline-offset: 0; }
.he-shop--page .he-shop__filters .he-button { border-radius: 999px; padding-inline: 1.5rem; flex: 0 0 auto; }
@media (max-width: 599px) {
	.he-shop--page .he-shop__filters { border-radius: 16px; }
	.he-shop--page .he-field--category select { border-left: 0; border-top: 1px solid var(--he-border); }
	.he-shop--page .he-shop__filters .he-button { flex: 1 1 100%; }
}
.he-shop--page .he-shop__count { text-align: center; margin-bottom: 1.25rem; letter-spacing: .02em; }
.he-shop--page .he-grid { gap: clamp(1rem, .5rem + 2vw, 2rem) clamp(.75rem, .25rem + 1.5vw, 1.5rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .he-shop--page .he-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 290px)); justify-content: center; } }
.he-shop--page .he-card__media { border-radius: 14px; transition: transform .25s ease, box-shadow .25s ease; }
.he-shop--page .he-card__media img { transition: transform .4s ease; }
.he-shop--page .he-card__link:hover .he-card__media { box-shadow: 0 10px 28px rgba(0,0,0,.10); transform: translateY(-2px); }
.he-shop--page .he-card__link:hover .he-card__media img { transform: scale(1.04); }
.he-shop--page .he-card__link:hover .he-card__name { text-decoration: underline; text-underline-offset: .2em; }
.he-shop--page .he-card__name { font-size: 1.05rem; margin-top: .25rem; }
.he-shop--page .he-card__price { font-size: 1rem; }
@media (prefers-reduced-motion: reduce) { .he-shop--page .he-card__media, .he-shop--page .he-card__media img { transition: none; } .he-shop--page .he-card__link:hover .he-card__media, .he-shop--page .he-card__link:hover .he-card__media img { transform: none; } }
.he-img-placeholder { background: linear-gradient(135deg, rgba(0,0,0,.035), rgba(0,0,0,.075)); position: relative; }
.he-img-placeholder::after { content: ""; position: absolute; inset: 0; margin: auto; width: 28%; height: 28%; opacity: .22; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-4.5-4.5L6 21'/%3E%3C/svg%3E"); }
.he-shop--page .he-pagination { justify-content: center; margin-top: 2.5rem; }
.he-shop--page .he-shop__empty { text-align: center; color: var(--he-muted); padding: 2rem 0; }
/* Classic themes: hide the emptied theme page title on the Shop page. */
.he-shop-page .entry-title:empty, .he-shop-page .page-title:empty, .he-shop-page .entry-header:not(:has(*)), .he-shop-page .page-header:not(:has(*)) { display: none; }

/* Account area and forms (Phase 4) */
.he-account { --he-gap: 1rem; --he-radius: 8px; --he-border: rgba(0,0,0,.14); --he-muted: rgba(0,0,0,.62); --he-ok: #1e7b34; --he-warn: #9a5b00; --he-bad: #a12622; }
.he-account { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .he-account--individual, .he-account--organization { grid-template-columns: 200px 1fr; align-items: start; } }
.he-account__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
@media (min-width: 860px) { .he-account__nav ul { flex-direction: column; } }
.he-account__nav a { display: block; padding: .55rem .75rem; border-radius: var(--he-radius); text-decoration: none; min-height: 44px; box-sizing: border-box; }
.he-account__nav a[aria-current] { font-weight: 700; background: rgba(0,0,0,.06); }
.he-account__body { min-width: 0; }
.he-columns-2 { display: grid; gap: 2rem; }
@media (min-width: 760px) { .he-columns-2 { grid-template-columns: 1fr 1fr; } }
.he-form fieldset { border: 1px solid var(--he-border); border-radius: var(--he-radius); padding: .75rem 1rem 1rem; margin: 0 0 1rem; }
.he-form legend { font-weight: 700; padding: 0 .35rem; }
.he-form-row { display: flex; flex-direction: column; gap: .3rem; margin: 0 0 .9rem; }
.he-form-row label { font-weight: 600; font-size: .95rem; }
.he-form-row input[type=text], .he-form-row input[type=email], .he-form-row input[type=tel], .he-form-row input[type=password], .he-form-row select, .he-form-row textarea,
#loginform input[type=text], #loginform input[type=password] { width: 100%; box-sizing: border-box; padding: .65rem .75rem; border: 1px solid var(--he-border); border-radius: var(--he-radius); font: inherit; min-height: 44px; }
.he-form-row.has-error input, .he-form-row.has-error select { border-color: var(--he-bad); }
.he-check { flex-direction: row; }
.he-check label { font-weight: 400; display: flex; gap: .5rem; align-items: flex-start; }
.he-form-grid { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.he-help { color: var(--he-muted); font-size: .875rem; }
.he-error { color: var(--he-bad); font-size: .875rem; font-weight: 600; }
.he-req { color: var(--he-bad); }
.he-choice { display: grid; gap: .5rem; }
.he-choice__option { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem 1rem; border: 1px solid var(--he-border); border-radius: var(--he-radius); cursor: pointer; min-height: 44px; }
.he-choice__option:has(input:checked) { border-color: currentColor; box-shadow: 0 0 0 1px currentColor; }
.he-choice.has-error .he-choice__option { border-color: var(--he-bad); }
.he-register.has-js .he-noscript-hint, .he-form.has-js .he-noscript-hint { display: none; }
.he-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.he-button--primary { background: var(--he-primary); color: var(--he-on-primary); border-color: var(--he-primary); }
.he-link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; min-height: 32px; }
.he-inline { display: inline; }
.he-actions { display: flex; gap: 1rem; align-items: center; margin-top: .5rem; }
.he-alert { border-left: 4px solid currentColor; border-radius: 4px; padding: .5rem 1rem; margin: 0 0 1rem; background: rgba(0,0,0,.04); }
.he-alert:focus { outline: 3px solid currentColor; outline-offset: 2px; }
.he-alert--error { color: var(--he-bad); background: #fbeaea; }
.he-alert--success { color: var(--he-ok); background: #eaf6ec; }
.he-alert ul { margin: .25rem 0 .5rem 1.25rem; }
.he-pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: .1rem .55rem; border-radius: 999px; background: rgba(0,0,0,.07); vertical-align: middle; }
.he-pill--verified { background: #eaf6ec; color: var(--he-ok); }
.he-pill--pending { background: #fff4df; color: var(--he-warn); }
.he-pill--rejected { background: #fbeaea; color: var(--he-bad); }
.he-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.he-panel { border: 1px solid var(--he-border); border-radius: var(--he-radius); padding: .75rem 1rem; margin: 0 0 1rem; }
.he-panel h3 { margin-top: .25rem; }
.he-address-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.he-address-list address { font-style: normal; margin: .35rem 0; }
.he-empty { color: var(--he-muted); }
.he-table { width: 100%; border-collapse: collapse; }
.he-table th, .he-table td { text-align: left; padding: .5rem; border-bottom: 1px solid var(--he-border); }
@media (max-width: 600px) {
	.he-table thead { position: absolute; left: -10000px; }
	.he-table tr { display: block; border-bottom: 1px solid var(--he-border); padding: .5rem 0; }
	.he-table td { display: flex; justify-content: space-between; border: 0; padding: .2rem 0; }
	.he-table td::before { content: attr(data-label); font-weight: 600; margin-right: 1rem; }
}
.he-privileges { list-style: none; padding: 0; }
.he-privileges li { padding: .5rem 0; border-bottom: 1px solid var(--he-border); }
.he-dl dt { font-weight: 600; } .he-dl dd { margin: 0 0 .5rem; }
details > summary { cursor: pointer; font-weight: 600; min-height: 32px; }

/* Cart, checkout and orders (Phase 5) */
.he-cart, .he-checkout, .he-order { --he-gap: 1rem; --he-radius: 8px; --he-border: rgba(0,0,0,.14); --he-muted: rgba(0,0,0,.62); --he-ok: #1e7b34; --he-warn: #9a5b00; --he-bad: #a12622; }
.he-buy { margin: 1rem 0; }
.he-buy__row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.he-buy__row label { font-weight: 600; }
.he-qty { width: 5.5rem; min-height: 44px; padding: .4rem .5rem; border: 1px solid var(--he-border); border-radius: var(--he-radius); font: inherit; }
.he-cart__item { display: flex; gap: .75rem; align-items: center; }
.he-cart__thumb { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 6px; overflow: hidden; background: rgba(0,0,0,.05); }
.he-cart__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.he-cart__table tr.has-problem { opacity: .75; }
.he-totals { margin: 0; }
.he-totals > div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; }
.he-totals dt { font-weight: 400; } .he-totals dd { margin: 0; font-weight: 600; text-align: right; }
.he-totals__grand { border-top: 1px solid var(--he-border); margin-top: .35rem; padding-top: .6rem !important; font-size: 1.1em; }
.he-button--block { display: block; width: 100%; text-align: center; box-sizing: border-box; }
.he-checkout__layout { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .he-checkout__layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .he-checkout__summary { position: sticky; top: 1rem; } }
.he-summary-lines { list-style: none; margin: 0 0 .75rem; padding: 0; }
.he-summary-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px solid var(--he-border); font-size: .95rem; }
.he-steps { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 0; margin: 0 0 1rem; color: var(--he-muted); }
.he-steps [aria-current] { color: inherit; font-weight: 700; }
.he-form.has-js .he-noscript-hint { display: none; }
.he-timeline { margin: 0; padding-left: 1.25rem; }
.he-timeline li { padding: .2rem 0; }
.he-received .he-alert--success p { margin: .25rem 0; }
.he-cart-link__count { display: inline-block; min-width: 1.5em; padding: 0 .4em; border-radius: 999px; background: currentColor; text-align: center; }
.he-cart-link__count { color: inherit; background: rgba(0,0,0,.08); }
.he-alert--info { color: inherit; }
button[disabled][aria-busy="true"] { opacity: .6; cursor: progress; }

/* Payment panel (1.0.0-dev.5) */
.he-paybox form { margin: .75rem 0 .5rem; }
.he-paybox__ok { color: var(--he-ok); font-weight: 600; }
.he-paybox [aria-busy="true"] { opacity: .7; cursor: progress; }

/* Order progress (1.0.0-dev.6) */
.he-progress__steps { display: flex; gap: .25rem; list-style: none; margin: 0 0 1rem; padding: 0; counter-reset: he-step; }
.he-progress__steps li { flex: 1 1 0; position: relative; padding-top: 1.75rem; font-size: .8125rem; line-height: 1.25; text-align: center; color: #6b6b6b; counter-increment: he-step; }
.he-progress__steps li::before { content: counter(he-step); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid #c9c9c9; background: #fff; line-height: 1.25rem; font-weight: 600; font-size: .75rem; }
.he-progress__steps li::after { content: ""; position: absolute; top: .7rem; left: calc(50% + .9rem); right: calc(-50% + .9rem); height: 2px; background: #c9c9c9; }
.he-progress__steps li:last-child::after { display: none; }
.he-progress__steps li.is-done, .he-progress__steps li.is-current { color: inherit; }
.he-progress__steps li.is-done::before { content: "✓"; border-color: var(--he-ok); background: var(--he-ok); color: #fff; }
.he-progress__steps li.is-done::after { background: var(--he-ok); }
.he-progress__steps li.is-current::before { border-color: var(--he-ok); color: var(--he-ok); }
.he-progress__steps li.is-current span { font-weight: 600; }
.he-progress__tracking { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .5rem 1rem; margin: 0 0 .75rem; }
.he-progress__tracking dt { font-size: .8125rem; color: #6b6b6b; }
.he-progress__tracking dd { margin: 0; font-weight: 600; word-break: break-word; }
.he-checkout [hidden], .he-account [hidden] { display: none !important; }
.he-fx-switch a { margin-left: .6em; white-space: nowrap; }
.he-fx-switch a[aria-current] { font-weight: 600; text-decoration: none; }
.he-fx { font-weight: 500; }

/* ------------------------------------------------------------------
 * Cart, checkout and My Account refresh (1.2.0).
 * One quiet ink colour for actions and selections, a soft tinted
 * "receipt" panel for money, roomier fields and touch targets.
 * Fonts still come from the theme.
 * ------------------------------------------------------------------ */
.he-cart, .he-checkout, .he-order, .he-account {
	--he-ink: var(--he-primary); --he-line: rgba(0,0,0,.11); --he-field-line: rgba(0,0,0,.2); --he-wash: var(--he-surface); --he-wash-strong: #eceeea;
	--he-radius: 10px; --he-radius-lg: 16px; --he-border: var(--he-line);
	font-variant-numeric: tabular-nums;
}

/* Wider than the theme's text column on desktop (body class he-wide-page). */
body.he-wide-page .wp-block-post-title,
body.he-wide-page :where(.is-layout-constrained) > :is(.he-cart, .he-checkout, .he-account, .he-order) {
	max-width: min(var(--wp--style--global--wide-size, 1120px), 1120px);
}
.he-cart, .he-checkout, .he-account, .he-order { margin-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem); }

/* Headings inside the pages: calm and consistent. */
:is(.he-cart, .he-checkout, .he-account, .he-order) :is(.he-panel, fieldset) h3,
:is(.he-cart, .he-checkout, .he-account, .he-order) .he-panel > h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; margin: 0 0 .85rem; letter-spacing: 0; }
.he-account__body > h2, .he-login h2, .he-order h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 1.25rem; }
.he-account__body h3 { font-size: 1.125rem; font-weight: 600; }

/* Fields */
:is(.he-cart, .he-checkout, .he-account, .he-order) :is(.he-form-row input[type=text], .he-form-row input[type=email], .he-form-row input[type=tel], .he-form-row input[type=password], .he-form-row input[type=number], .he-form-row select, .he-form-row textarea),
.he-account #loginform input[type=text], .he-account #loginform input[type=password], .he-cart .he-qty {
	min-height: 48px; padding: .7rem .85rem; border: 1px solid var(--he-field-line); border-radius: var(--he-radius); background-color: #fff; color: inherit; font: inherit; box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease;
}
:is(.he-cart, .he-checkout, .he-account, .he-order) .he-form-row select {
	appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
	background: #fff no-repeat right .9rem center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%231d2327' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
}
:is(.he-cart, .he-checkout, .he-account, .he-order) :is(input, select, textarea):hover { border-color: rgba(0,0,0,.35); }
:is(.he-cart, .he-checkout, .he-account, .he-order) :is(input:not([type=radio]):not([type=checkbox]), select, textarea):focus-visible {
	outline: none; border-color: var(--he-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--he-primary) 20%, transparent);
}
:is(.he-cart, .he-checkout, .he-account, .he-order) :is(input[type=radio], input[type=checkbox]) { accent-color: var(--he-ink); width: 1.15rem; height: 1.15rem; flex: 0 0 auto; margin: .2rem 0 0; }
:is(.he-checkout, .he-account, .he-order) .he-form-row { gap: .4rem; margin-bottom: 1rem; }
:is(.he-checkout, .he-account, .he-order) .he-form-row label, .he-account #loginform label { font-size: .9rem; font-weight: 600; }
:is(.he-checkout, .he-account, .he-order) .he-form-row.has-error :is(input, select, textarea) { border-color: var(--he-bad); }
:is(.he-checkout, .he-account, .he-order) .he-help { line-height: 1.45; }
:is(.he-checkout, .he-account, .he-order) .he-form-grid { gap: 0 1rem; }

@media (min-width: 600px) { .he-checkout .he-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sections of a form: open sections with a heading, not boxes inside boxes. */
:is(.he-checkout, .he-account) .he-form fieldset { border: 0; border-top: 1px solid var(--he-line); border-radius: 0; padding: 1.5rem 0 .5rem; margin: 0; min-width: 0; }
:is(.he-checkout, .he-account) .he-form > fieldset:first-of-type, .he-checkout .he-form > input + fieldset { border-top: 0; padding-top: 0; }
:is(.he-checkout, .he-account) .he-form legend { float: left; width: 100%; padding: 0; margin: 0 0 1rem; font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
:is(.he-checkout, .he-account) .he-form legend + * { clear: both; }
.he-checkout .he-form fieldset > .he-help:first-of-type { margin-top: 0; }

/* Radio choices (delivery or pickup, delivery options, partners, who pays) */
:is(.he-checkout, .he-account, .he-order) .he-choice { gap: .6rem; }
:is(.he-checkout, .he-account, .he-order) .he-choice__option {
	gap: .85rem; padding: 1rem 1.1rem; border: 1px solid var(--he-field-line); border-radius: var(--he-radius); background: #fff; font-size: 1rem; line-height: 1.45; transition: border-color .15s ease, background-color .15s ease;
}
:is(.he-checkout, .he-account, .he-order) .he-choice__option:hover { border-color: rgba(0,0,0,.4); }
:is(.he-checkout, .he-account, .he-order) .he-choice__option:has(input:checked) { border-color: var(--he-ink); box-shadow: inset 0 0 0 1px var(--he-ink); background: var(--he-wash); }
:is(.he-checkout, .he-account, .he-order) .he-choice__option:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--he-primary) 40%, transparent); outline-offset: 2px; }
:is(.he-checkout, .he-account, .he-order) .he-choice__option .he-help { display: inline-block; margin-top: .2rem; font-size: .85rem; }

/* Buttons */
:is(.he-cart, .he-checkout, .he-account, .he-order) .he-button { min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px; border-color: var(--he-field-line); line-height: 1.2; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
:is(.he-cart, .he-checkout, .he-account, .he-order) .he-button:hover { border-color: var(--he-ink); }
:is(.he-cart, .he-checkout, .he-account, .he-order) .he-button--primary,
.he-account #loginform #wp-submit { background: var(--he-ink); border: 1px solid var(--he-ink); color: var(--he-on-primary); }
:is(.he-cart, .he-checkout, .he-account, .he-order) .he-button--primary:hover,
.he-account #loginform #wp-submit:hover { background: var(--he-primary-hover); border-color: var(--he-primary-hover); color: var(--he-on-primary); }
:is(.he-cart, .he-checkout, .he-order) .he-button--block { min-height: 54px; font-size: 1.05rem; }
:is(.he-cart, .he-checkout, .he-account, .he-order) .he-button:focus-visible, .he-account #loginform #wp-submit:focus-visible { outline: 3px solid var(--he-ink); outline-offset: 3px; }
:is(.he-cart, .he-checkout, .he-account, .he-order) .he-link-button { text-underline-offset: .2em; }

/* Panels and alerts */
:is(.he-cart, .he-checkout, .he-account, .he-order) .he-panel { border: 1px solid var(--he-line); border-radius: var(--he-radius-lg); padding: 1.25rem 1.4rem; margin: 0 0 1.25rem; background: #fff; }
:is(.he-cart, .he-checkout, .he-account, .he-order) details.he-panel > summary { padding: .1rem 0; }
:is(.he-cart, .he-checkout, .he-account, .he-order) details.he-panel[open] > summary { margin-bottom: .75rem; }
:is(.he-cart, .he-checkout, .he-account, .he-order) .he-alert { border-radius: var(--he-radius); padding: .75rem 1rem; }
:is(.he-cart, .he-checkout, .he-account, .he-order) .he-alert p { margin: .2rem 0; }
:is(.he-cart, .he-checkout, .he-account, .he-order) .he-alert--info { background: var(--he-wash); }
:is(.he-cart, .he-checkout, .he-account, .he-order) .he-pill { padding: .15rem .6rem; }

/* Money: the tinted receipt panel used on the cart and both checkout steps. */
.he-cart .he-cart__totals, .he-checkout .he-checkout__summary { background: var(--he-wash); border: 0; border-radius: var(--he-radius-lg); padding: 1.5rem; }
.he-checkout .he-checkout__summary > h3 { margin-bottom: 1rem; }
.he-checkout .he-summary-lines { margin: 0 0 1rem; }
.he-checkout .he-summary-lines li { padding: .55rem 0; border-bottom: 1px solid var(--he-line); align-items: baseline; }
.he-checkout .he-summary-lines li > span:last-child { white-space: nowrap; }
.he-totals dl { margin: 0; }
.he-totals > div, .he-totals dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .4rem 0; }
.he-totals dt { font-weight: 400; color: var(--he-muted); white-space: nowrap; }
:is(.he-cart, .he-checkout) .he-totals { font-size: .95rem; }
.he-totals dd { margin: 0; font-weight: 600; text-align: right; }
:is(.he-cart, .he-checkout) .he-totals__grand { border-top: 1px solid rgba(0,0,0,.16); margin-top: .5rem; padding-top: .9rem !important; font-size: 1em; }
:is(.he-cart, .he-checkout) .he-totals__grand dt { color: inherit; font-weight: 600; }
:is(.he-cart, .he-checkout) .he-totals__grand dd { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; }
.he-cart .he-cart__totals p { margin: 1rem 0 0; }
.he-cart .he-cart__more { text-align: center; font-size: .95rem; }

/* Two-step indicator: a real sequence, shown as a segmented bar. */
.he-checkout .he-steps { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 0 0 1.75rem; font-size: .95rem; }
.he-checkout .he-steps li { padding-top: .7rem; border-top: 3px solid var(--he-line); }
.he-checkout .he-steps li[aria-current] { border-top-color: var(--he-ink); }
.he-checkout .he-steps li:has(a) { border-top-color: var(--he-ink); }
.he-checkout .he-steps a { color: inherit; text-underline-offset: .2em; }

/* Checkout layout */
.he-checkout .he-checkout__layout { gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
@media (min-width: 900px) {
	.he-checkout .he-checkout__layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); }
	.he-checkout .he-checkout__summary { top: calc(1.5rem + var(--wp-admin--admin-bar--height, 0px)); }
}
@media (max-width: 899px) {
	.he-checkout .he-checkout__summary { order: -1; padding: 1.15rem 1.25rem; }
}
.he-checkout .he-checkout__who address { font-style: normal; line-height: 1.5; margin: 0 0 .75rem; }
.he-checkout .he-contact-line { display: flex; flex-direction: column; color: var(--he-muted); line-height: 1.5; }
.he-checkout .he-contact-line span:first-child { color: inherit; }
.he-checkout .he-checkout__who p:last-child { margin-bottom: 0; }
.he-checkout .he-form > p:last-child { margin-bottom: 0; }

/* Cart layout: items beside the receipt on desktop. */
.he-cart .he-cart__layout { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
@media (min-width: 900px) {
	.he-cart .he-cart__layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); align-items: start; }
	.he-cart .he-cart__totals { position: sticky; top: calc(1.5rem + var(--wp-admin--admin-bar--height, 0px)); }
}
.he-cart .he-cart__table th { font-size: .85rem; font-weight: 600; color: var(--he-muted); padding: 0 .75rem .6rem 0; border-bottom: 1px solid var(--he-line); }
.he-cart .he-cart__table td { padding: 1.1rem .75rem 1.1rem 0; border-bottom: 1px solid var(--he-line); vertical-align: middle; }
.he-cart .he-cart__table :is(th, td):last-child { text-align: right; padding-right: 0; }
.he-cart .he-cart__cell--total { font-weight: 600; white-space: nowrap; }
.he-cart .he-cart__cell--price { white-space: nowrap; color: var(--he-muted); }
.he-cart .he-cart__item { gap: 1rem; }
.he-cart .he-cart__thumb { width: 72px; height: 72px; flex-basis: 72px; border-radius: 12px; }
.he-cart .he-cart__name a { color: inherit; font-weight: 600; text-decoration: none; line-height: 1.35; }
.he-cart .he-cart__name a:hover { text-decoration: underline; text-underline-offset: .2em; }
.he-cart .he-cart__cell--qty { white-space: nowrap; }
.he-cart .he-qty { width: 5rem; text-align: center; padding-inline: .5rem; }
.he-cart .he-cart__cell--qty .he-link-button { display: inline-flex; align-items: center; min-height: 44px; margin-left: .75rem; font-size: .9rem; color: var(--he-muted); }
.he-cart .he-cart__cell--qty .he-link-button:hover { color: var(--he-bad); }
.he-cart .he-cart__update { margin: 1.25rem 0 0; }
.he-cart .he-cart__empty { text-align: center; padding: clamp(2rem, 1rem + 5vw, 4.5rem) 1rem; border: 1px dashed var(--he-field-line); border-radius: var(--he-radius-lg); }
.he-cart .he-cart__empty .he-empty { font-size: 1.15rem; margin: 0 0 1.25rem; }
.he-cart .he-cart__empty p:last-child { margin: 0; }

/* Cart on phones: each line is a compact row, no column labels. */
@media (max-width: 600px) {
	.he-cart .he-cart__table tr { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "product product" "price price" "qty total"; column-gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--he-line); }
	.he-cart .he-cart__table td { display: block; padding: 0; border: 0; text-align: left; }
	.he-cart .he-cart__table td::before { content: none; }
	.he-cart .he-cart__cell--product { grid-area: product; }
	.he-cart .he-cart__table td.he-cart__cell--price { grid-area: price; padding-left: calc(64px + .85rem); margin-top: .1rem; font-size: .9rem; }
	.he-cart .he-cart__cell--qty { grid-area: qty; display: flex; align-items: center; margin-top: .85rem; }
	.he-cart .he-cart__table .he-cart__cell--total { grid-area: total; align-self: center; text-align: right; margin-top: .85rem; }
	.he-cart .he-cart__thumb { width: 64px; height: 64px; flex-basis: 64px; }
	.he-cart .he-cart__item { gap: .85rem; }
	.he-cart .he-cart__item { align-items: flex-start; }
	.he-cart .he-cart__name { padding-top: .1rem; }
	.he-cart .he-qty { width: 4.25rem; min-height: 44px; }
	.he-cart .he-cart__update .he-button { width: 100%; }
}

/* My Account */
.he-account.he-account--individual, .he-account.he-account--organization { gap: clamp(1.25rem, 1rem + 2vw, 3rem); grid-template-columns: minmax(0, 1fr); }
.he-account .he-account__nav, .he-cart .he-cart__layout > *, .he-checkout .he-checkout__layout > * { min-width: 0; }
@media (min-width: 860px) {
	.he-account.he-account--individual, .he-account.he-account--organization { grid-template-columns: 220px minmax(0, 1fr); }
	.he-account .he-account__nav { position: sticky; top: calc(1.5rem + var(--wp-admin--admin-bar--height, 0px)); }
	.he-account .he-account__nav ul { gap: .15rem; }
	.he-account .he-account__nav a { position: relative; display: flex; align-items: center; padding: .6rem .9rem; border-radius: var(--he-radius); color: inherit; }
	.he-account .he-account__nav a:hover { background: var(--he-wash); }
	.he-account .he-account__nav a[aria-current] { background: var(--he-wash); font-weight: 600; }
	.he-account .he-account__nav a[aria-current]::before { content: ""; position: absolute; left: 0; top: .55rem; bottom: .55rem; width: 3px; border-radius: 3px; background: var(--he-ink); }
	.he-account .he-account__nav li:last-child { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--he-line); }
}
@media (max-width: 859px) {
	.he-account .he-account__nav { margin: 0 -1px; }
	.he-account .he-account__nav ul { flex-wrap: nowrap; overflow-x: auto; gap: .5rem; padding: .15rem .1rem .6rem; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
	.he-account .he-account__nav li { flex: 0 0 auto; }
	.he-account .he-account__nav a { display: flex; align-items: center; padding: .55rem 1rem; border: 1px solid var(--he-field-line); border-radius: 999px; white-space: nowrap; color: inherit; font-size: .95rem; }
	.he-account .he-account__nav a[aria-current] { background: var(--he-ink); border-color: var(--he-ink); color: var(--he-on-primary); font-weight: 600; }
}
.he-account .he-account__nav a:focus-visible { outline: 3px solid var(--he-ink); outline-offset: 2px; }
.he-account .he-cards { gap: 1.25rem; }
@media (min-width: 1000px) { .he-account .he-cards { grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); align-items: start; } }
.he-account .he-cards .he-panel { margin: 0; }
.he-account .he-cards .he-panel > p:last-child { margin-bottom: 0; }
.he-account .he-address-list .he-panel { margin: 0; height: 100%; box-sizing: border-box; }

/* Tables in the account and order pages */
:is(.he-account, .he-order) .he-table th { font-size: .85rem; font-weight: 600; color: var(--he-muted); padding: .5rem .75rem .6rem 0; }
:is(.he-account, .he-order) .he-table td { padding: .85rem .75rem .85rem 0; border-bottom: 1px solid var(--he-line); }
:is(.he-account, .he-order) .he-table :is(th, td):last-child { text-align: right; padding-right: 0; white-space: nowrap; }
:is(.he-account, .he-order) .he-table td:first-child a { font-weight: 600; text-underline-offset: .2em; }
@media (min-width: 601px) { :is(.he-account, .he-order) .he-table td:first-child, .he-account .he-table td:nth-child(2) { white-space: nowrap; } }
:is(.he-account, .he-order) .he-table { font-size: .95rem; }
@media (max-width: 600px) {
	:is(.he-account, .he-order) .he-table tr { padding: .75rem 0; }
	:is(.he-account, .he-order) .he-table td { padding: .2rem 0; border: 0; }
	:is(.he-account, .he-order) .he-table td::before { font-weight: 400; color: var(--he-muted); }
}

/* Log in and register */
.he-login .he-columns-2 { gap: 1.25rem; align-items: start; }
.he-login .he-columns-2 > section { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-radius: var(--he-radius-lg); }
.he-login .he-columns-2 > section:first-child { border: 1px solid var(--he-line); }
.he-login .he-columns-2 > section:last-child { background: var(--he-wash); }
.he-login .he-columns-2 > section:last-child:empty { display: none; }
.he-login h2 { margin-top: 0; }
.he-account #loginform p { margin: 0 0 1rem; display: flex; flex-direction: column; gap: .4rem; }
.he-account #loginform .login-remember { flex-direction: row; }
.he-account #loginform .login-remember label { display: flex; align-items: center; gap: .55rem; font-weight: 400; }
.he-account #loginform #wp-submit { width: 100%; min-height: 52px; padding: .75rem 1.4rem; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
.he-login .he-columns-2 > section > p:last-child { margin-bottom: 0; }
.he-login .he-button--primary { display: inline-flex; align-items: center; justify-content: center; text-align: center; }

/* Order pages: received, order view */
.he-received .he-alert--success { padding: 1.1rem 1.25rem; }
.he-order .he-progress__steps { margin-bottom: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
	:is(.he-cart, .he-checkout, .he-account, .he-order) * { transition: none !important; }
}
:is(.he-account, .he-order) .he-cards { margin-bottom: 1.25rem; }
:is(.he-account, .he-order) address { font-style: normal; line-height: 1.5; }
.he-order .he-totals.he-panel { background: var(--he-wash); border: 0; padding: 1.25rem 1.5rem; font-size: .95rem; }
.he-order .he-totals__grand dt { color: inherit; font-weight: 600; }
.he-order .he-totals__grand dd { font-size: 1.35rem; font-weight: 700; }
.he-order .he-order__items { margin-bottom: 1.25rem; }
.he-order .he-timeline { padding-left: 1.25rem; font-size: .95rem; }

/* Newsletter sign-up and back in stock (1.3.0) */
.he-newsletter { --he-ink: var(--he-primary); --he-line: rgba(0,0,0,.11); --he-field-line: rgba(0,0,0,.2); --he-wash: var(--he-surface); --he-bad: #a12622; --he-ok: #1e7b34;
	box-sizing: border-box; max-width: 640px; margin: 0 auto clamp(2rem, 1rem + 3vw, 4rem); padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); background: var(--he-wash); border-radius: 16px; }
.he-newsletter__title { margin: 0 0 .5rem; font-size: clamp(1.35rem, 1.15rem + 1vw, 1.85rem); line-height: 1.2; }
.he-newsletter__text { margin: 0 0 1.25rem; color: rgba(0,0,0,.66); }
.he-newsletter__fields { display: grid; gap: .75rem; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 640px) { .he-newsletter__fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; } }
.he-newsletter__field { display: flex; flex-direction: column; gap: .35rem; margin: 0; }
.he-newsletter__field label { font-size: .9rem; font-weight: 600; }
.he-newsletter__field input { min-height: 48px; padding: .7rem .85rem; border: 1px solid var(--he-field-line); border-radius: 10px; background: #fff; font: inherit; box-sizing: border-box; width: 100%; }
.he-newsletter__field input:focus-visible { outline: none; border-color: var(--he-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--he-primary) 20%, transparent); }
.he-newsletter__submit { margin: 0; }
.he-newsletter .he-button { min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px; width: 100%; }
.he-newsletter .he-button--primary { background: var(--he-ink); border-color: var(--he-ink); color: var(--he-on-primary); }
.he-newsletter__fine { margin: .85rem 0 0; font-size: .85rem; color: rgba(0,0,0,.6); }
.he-newsletter .he-alert { border-radius: 10px; }
.he-stock-alert { margin: 1rem 0 0; padding: 1rem 1.15rem; border: 1px dashed rgba(0,0,0,.25); border-radius: 12px; }
.he-stock-alert__title { margin: 0 0 .6rem; }
.he-stock-alert .he-form-row { margin: 0 0 .6rem; display: flex; flex-direction: column; gap: .3rem; }
.he-stock-alert__submit { margin: .75rem 0 0; }
.he-stock-alert input[type=email], .he-stock-alert select { width: 100%; box-sizing: border-box; min-height: 44px; padding: .6rem .75rem; border: 1px solid rgba(0,0,0,.2); border-radius: 10px; font: inherit; }
.he-stock-alert .he-help { margin: .5rem 0 0; }
.he-stock-alert .he-check { margin: .6rem 0 0; }
:is(.he-checkout, .he-account) .he-form-row.he-check label { font-weight: 400; font-size: 1rem; }

/* ------------------------------------------------------------------
 * Store look, product cards and header pieces (1.3.0-dev.2).
 * Colours come from the tokens at the top of this file; Settings →
 * Storefront → Store look "Hearty Eats brand" sets them to the brand.
 * ------------------------------------------------------------------ */
.he-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.he-shop .he-button, .he-product .he-button { border-radius: var(--he-btn-radius); transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.he-button--primary:hover { background: var(--he-primary-hover); border-color: var(--he-primary-hover); color: var(--he-on-primary); }
.he-button--small { min-height: 36px; padding: .4rem 1rem; font-size: .875rem; }
.he-shop__title, .he-product__title { color: var(--he-heading); }

/* Product cards */
.he-grid { gap: clamp(.75rem, .5rem + 1vw, 1.25rem); }
.he-card {
	position: relative; gap: .15rem; padding: .75rem .75rem 1rem; text-align: center; min-width: 0;
	background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: var(--he-card-radius);
	box-shadow: 0 1px 2px rgba(0,0,0,.03); transition: box-shadow .2s ease, transform .2s ease;
}
.he-card:hover { box-shadow: 0 12px 28px rgba(0,0,0,.08); transform: translateY(-2px); }
.he-card__link { gap: .55rem; }
.he-card .he-card__media { aspect-ratio: 4 / 3; border-radius: calc(var(--he-card-radius) - 6px); background: #fff; }
.he-card .he-card__media img { object-fit: contain; }
.he-card__name { font-weight: 700; font-size: .975rem; line-height: 1.3; }
.he-card__link:hover .he-card__name { color: var(--he-primary); }
.he-card__unit { font-size: .85rem; }
.he-card__price { color: var(--he-price); font-weight: 800; font-size: 1.05rem; margin-top: .3rem; }
.he-card__price del { color: var(--he-muted); font-weight: 400; font-size: .85em; }
.he-card__action { display: flex; justify-content: center; margin-top: auto; padding-top: .7rem; }
.he-card__buy { margin: 0; width: 100%; display: flex; justify-content: center; }
.he-card .he-card__button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: .5rem 1.2rem; font-size: .9rem; font-weight: 700; line-height: 1.1; white-space: nowrap; border-radius: var(--he-btn-radius); }
.he-card .he-card__button--choose { background: transparent; color: var(--he-primary); border: 1.5px solid var(--he-primary); }
.he-card .he-card__button--choose:hover { background: var(--he-primary); color: var(--he-on-primary); }
.he-card .he-badge--out { align-self: center; padding: .45rem .9rem; font-size: .8rem; }
.he-card.is-out-of-stock .he-card__price { color: var(--he-muted); }
@media (max-width: 599px) {
	.he-card { padding: .6rem .6rem .8rem; }
	.he-card .he-card__button { width: 100%; padding-inline: .6rem; }
}
@media (prefers-reduced-motion: reduce) { .he-card, .he-card:hover { transition: none; transform: none; } }

/* Shop page: the cards carry their own frame, so the image no longer lifts on its own. */
.he-shop--page .he-card__link:hover .he-card__media { box-shadow: none; transform: none; }
.he-shop--page .he-card__link:hover .he-card__name { text-decoration: none; }
.he-shop--page .he-card__media { border-radius: calc(var(--he-card-radius) - 6px); }
.he-shop--page .he-shop__filters .he-button { background: var(--he-primary); border-color: var(--he-primary); color: var(--he-on-primary); }
.he-shop--page .he-shop__header::after { background: var(--he-accent); opacity: 1; }
.he-pagination [aria-current] { background: var(--he-primary); border-color: var(--he-primary); color: var(--he-on-primary); }
.he-pagination a:hover { border-color: var(--he-primary); color: var(--he-primary); }

/* Cards per row: [hearty_products columns="2…6"] */
.he-shop .he-grid[class*="he-grid--cols-"] { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
@media (min-width: 700px) {
	.he-shop .he-grid.he-grid--cols-3, .he-shop .he-grid.he-grid--cols-4, .he-shop .he-grid.he-grid--cols-5, .he-shop .he-grid.he-grid--cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.he-shop .he-grid.he-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.he-shop .he-grid.he-grid--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.he-shop .he-grid.he-grid--cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* "Added to your cart" above the grid */
.he-shop .he-shop__notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin: 0 0 1rem; padding: .7rem .8rem .7rem 1rem; border-radius: 12px; }
.he-shop .he-shop__notice .he-button { color: var(--he-on-primary); }

/* Product page */
.he-product__back a { color: var(--he-primary); font-weight: 600; text-decoration: none; }
.he-product__back a:hover { text-decoration: underline; text-underline-offset: .2em; }
.he-product__image { border-radius: var(--he-card-radius); }
.he-product__price { color: var(--he-price); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
.he-product .he-options { border-radius: var(--he-card-radius); }
.he-product .he-option:has(input:checked) .he-option__name { color: var(--he-primary); }
.he-product .he-option input[type=radio] { accent-color: var(--he-primary); width: 1.1rem; height: 1.1rem; }
.he-product .he-buy__row .he-button--primary { min-height: 48px; padding: .7rem 1.8rem; font-weight: 700; }
.he-product .he-qty { min-height: 48px; border-radius: var(--he-btn-radius); text-align: center; }
.he-product .he-alert--success, .he-product .he-notice { border-radius: 12px; }
.he-product__cats a { display: inline-block; padding: .15rem .65rem; border-radius: 999px; background: var(--he-surface); color: var(--he-primary); text-decoration: none; font-weight: 600; font-size: .85rem; }
.he-product__cats a:hover { background: var(--he-primary); color: var(--he-on-primary); }
.he-product__section h3 { color: var(--he-heading); }

/* Cart link: [hearty_cart_link style="icon"] */
.he-cart-link--icon { position: relative; display: inline-flex; align-items: center; padding: 4px; color: inherit; text-decoration: none; line-height: 1; }
.he-cart-link--icon:hover { color: var(--he-primary); }
.he-cart-link--icon .he-cart-link__icon { display: block; }
.he-cart-link--icon .he-cart-link__count { position: absolute; top: -5px; right: -9px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: #E3261B; color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }

/* Newsletter: layout="inline" (one row) and tone="dark" (on coloured bands) */
.he-newsletter--inline { max-width: none; margin: 0; padding: 0; background: none; border-radius: 0; }
.he-newsletter--inline .he-newsletter__title { font-size: 1.1rem; margin-bottom: .35rem; }
.he-newsletter--inline .he-newsletter__fields { display: flex; align-items: stretch; gap: 0; padding: 4px; background: #fff; border-radius: 999px; }
.he-newsletter--inline .he-newsletter__field { flex: 1 1 auto; min-width: 0; }
.he-newsletter--inline .he-newsletter__field label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.he-newsletter--inline .he-newsletter__field input { min-height: 44px; border: 0; border-radius: 999px; background: transparent; padding: .6rem 1rem; color: #1B1B1B; }
.he-newsletter--inline .he-newsletter__field input:focus-visible { box-shadow: none; outline: 2px solid var(--he-primary); outline-offset: -2px; }
.he-newsletter--inline .he-newsletter__submit { flex: 0 0 auto; }
.he-newsletter--inline .he-button { width: auto; min-height: 44px; padding: .65rem 1.6rem; font-weight: 800; }
.he-newsletter--inline .he-button--primary { background: var(--he-accent); border-color: var(--he-accent); color: var(--he-on-accent); }
.he-newsletter--inline .he-button--primary:hover { background: color-mix(in srgb, var(--he-accent) 85%, #000); border-color: color-mix(in srgb, var(--he-accent) 85%, #000); color: var(--he-on-accent); }
.he-newsletter--inline .he-newsletter__fine { margin-top: .5rem; font-size: .75rem; line-height: 1.4; }
.he-newsletter--dark { color: #fff; }
.he-newsletter--dark .he-newsletter__title { color: #fff; }
.he-newsletter--dark :is(.he-newsletter__text, .he-newsletter__fine, p) { color: rgba(255,255,255,.82); }
.he-newsletter--dark .he-alert { background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 420px) { .he-newsletter--inline .he-button { padding-inline: 1rem; } }

/* Links and secondary buttons follow the brand colour (Hearty Eats brand look only). */
.he-style-brand :is(.he-shop, .he-product, .he-cart, .he-checkout, .he-order, .he-account) a:not(.he-button):not(.he-card__link) { color: var(--he-primary); }
.he-style-brand :is(.he-product, .he-cart, .he-checkout, .he-order, .he-account) .he-button:not(.he-button--primary) { color: var(--he-primary); border-color: var(--he-primary); background: transparent; }
.he-style-brand :is(.he-product, .he-cart, .he-checkout, .he-order, .he-account) .he-button:not(.he-button--primary):hover { background: var(--he-primary); color: var(--he-on-primary); }
.he-style-brand .he-cart .he-cart__cell--qty .he-link-button:hover { color: var(--he-bad); }
.he-shop { scroll-margin-top: 7rem; }
