/* WebMeteors Demo: store pages. Each store sets its palette as --st-* (data/sites/<slug>.json → store.colors);
   spacing, radius, type and buttons follow the shared demo system. */
:root {
	--st-ink: #1f3a26; --st-text: #3b463e; --st-muted: #5a665d; --st-bg: #f7f4ec; --st-sand: #ede6d6;
	--st-primary: #24502f; --st-primary-hover: #1a3d23; --st-accent: #c0623f; --st-accent-ink: #8f3f22;
	--st-leaf: #6fa36f; --st-cream: #fbf8f1; --st-line: rgba(31, 58, 38, .14);
}
body.st-page { background: var(--st-bg); color: var(--st-text); }
.st-page h1, .st-page h2, .st-page h3, .st-page h4, body.st-page h1, body.st-page h2, body.st-page h3 { color: var(--st-ink); }
body.st-page a { color: var(--st-primary); }
body.st-page a:hover { color: var(--st-ink); }
body.st-page :focus-visible { outline-color: var(--st-accent); }

/* ---------- Header ---------- */
.st-header { position: relative; z-index: 900; background: var(--st-cream); border-bottom: 1px solid var(--st-line); }
.st-header__in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.st-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.st-logo__mark { flex: none; }
.st-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.st-logo__name { color: var(--st-ink); font: 800 1.15rem/1.1 var(--display); letter-spacing: -.01em; }
.st-logo__tag { color: var(--st-muted); font: 600 12px/1.3 var(--font); letter-spacing: .02em; }
.st-logo--light .st-logo__name { color: #fff; }
.st-nav { margin-right: auto; }
.st-nav ul { display: flex; gap: 4px; margin: 0; list-style: none; }
.st-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-sm); color: var(--st-ink) !important; font-weight: 600; text-decoration: none; }
.st-nav a:hover { background: var(--st-sand); }
.st-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--st-accent); border-radius: 0; }
.st-actions { display: flex; align-items: center; gap: 4px; }
.st-icon { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--st-ink) !important; }
.st-icon:hover { background: var(--st-sand); }
.st-cart__n { position: absolute; top: 2px; right: 0; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--st-accent); color: #fff; font: 700 11px/1 var(--font); }
.st-cart__n[hidden] { display: none; }
.st-nav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--st-ink); cursor: pointer; }

/* ---------- Buttons ---------- */
/* !important on colours and box: WooCommerce's own button styles are more specific (and purple). */
.st-btn, body.st-page .button, body.st-page button.button, body.st-page .button.alt, body.st-page .wp-element-button, body.st-page .wc-block-components-button:not(.is-link) {
	display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px !important;
	border: 1.5px solid var(--st-primary) !important; border-radius: var(--r-sm) !important; background: var(--st-primary) !important; color: #fff !important;
	font: 700 var(--fs-s)/1.2 var(--font) !important; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s;
}
.st-btn:hover, body.st-page .button:hover, body.st-page .button.alt:hover, body.st-page .wp-element-button:hover, body.st-page .wc-block-components-button:not(.is-link):hover { background: var(--st-primary-hover) !important; border-color: var(--st-primary-hover) !important; color: #fff !important; }
body.st-page .button.disabled, body.st-page .button:disabled { opacity: .55; cursor: not-allowed; }
/* WebMeteors buttons used on store pages (404, empty states) take the store's colours. */
body.st-page a.btn { color: var(--st-ink); border-color: var(--st-line); }
body.st-page a.btn--primary { background: var(--st-primary); border-color: var(--st-primary); color: #fff; box-shadow: none; }
body.st-page a.btn--primary:hover { background: var(--st-primary-hover); color: #fff; }
body.st-page .empty .eyebrow { background: var(--st-sand); color: var(--st-accent-ink); }
.st-btn.st-btn--ghost { background: rgba(255, 255, 255, .12) !important; border-color: rgba(255, 255, 255, .75) !important; }
.st-btn.st-btn--ghost:hover { background: rgba(255, 255, 255, .24) !important; border-color: #fff !important; }

/* ---------- Store home ---------- */
.st-hero { position: relative; display: grid; min-height: clamp(440px, 62vh, 640px); align-items: end; overflow: hidden; background: var(--st-ink); color: #fff; }
.st-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 30, 18, .15) 0%, rgba(14, 30, 18, .35) 40%, rgba(14, 30, 18, .86) 100%); }
.st-hero__in { position: relative; z-index: 1; padding-top: 96px; padding-bottom: clamp(36px, 6vw, 72px); }
.st-hero h1 { max-width: 760px; margin-bottom: 14px; color: #fff !important; font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4rem); }
.st-hero__lead { max-width: 640px; margin-bottom: 24px; font-size: var(--fs-lead); color: rgba(255, 255, 255, .92); }
.st-eyebrow { display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--st-accent); color: #fff; font: 700 var(--fs-xs)/1.3 var(--font); letter-spacing: .04em; text-transform: uppercase; }
.st-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.st-hero .st-btn.st-btn--primary { background: #fff !important; border-color: #fff !important; color: var(--st-ink) !important; }
.st-hero .st-btn.st-btn--primary:hover { background: var(--st-cream) !important; color: var(--st-ink) !important; }

.st-feature { padding: var(--sec) 0; background: var(--st-cream); }
.st-feature__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.st-kicker { margin: 0 0 8px; color: var(--st-accent-ink); font: 700 var(--fs-xs)/1.3 var(--font); letter-spacing: .06em; text-transform: uppercase; }
.st-feature__img { width: 100%; margin-top: 20px; border-radius: var(--r-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.st-feature__form { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--st-line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); }

.st-feature__price { margin: 0 0 16px; color: var(--st-ink); font: 800 1.6rem/1.2 var(--display); }
.st-text { max-width: 760px; }
.st-text p { font-size: var(--fs-lead); color: var(--st-muted); }
.st-sec { padding: var(--sec) 0; }
.st-sec--tint { background: var(--st-sand); }
.st-sec__head { max-width: 680px; margin-bottom: 28px; }
.st-sec__head p { color: var(--st-muted); font-size: var(--fs-lead); }
.st-camps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; margin: 0; list-style: none; }
.st-camp { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--st-line); border-radius: var(--r-lg); background: #fff; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.st-camp:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.st-camp__img { position: relative; aspect-ratio: 4 / 3; background: var(--st-sand); }
.st-camp__img img { width: 100%; height: 100%; object-fit: cover; }
.st-camp h3 { margin: 18px 20px 6px; font-size: 1.15rem; }
.st-camp h3 a { color: var(--st-ink) !important; text-decoration: none; }
.st-camp p { margin: 0 20px 16px; color: var(--st-muted); font-size: var(--fs-s); }
.st-camp__go { display: inline-flex; align-items: center; gap: 6px; margin: auto 20px 20px; color: var(--st-primary); font-weight: 700; font-size: var(--fs-s); }
.st-camp.is-closed .st-camp__img img { filter: grayscale(.4); }
.st-badge { position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--st-ink); color: #fff; font: 700 12px/1.3 var(--font); }
.st-impact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; margin: 0; list-style: none; }
.st-impact li { padding: 24px; border-radius: var(--r-lg); background: var(--st-cream); border: 1px solid var(--st-line); }
.st-impact strong { display: block; color: var(--st-ink); font: 800 clamp(2rem, 1.6rem + 1.4vw, 2.75rem)/1 var(--display); letter-spacing: -.02em; }
.st-impact span { display: block; margin-top: 8px; color: var(--st-muted); }

/* ---------- Product grid (WooCommerce loop) ---------- */
body.st-page ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; margin: 0 !important; padding: 0; list-style: none; }
body.st-page ul.products::before, body.st-page ul.products::after { display: none !important; }
body.st-page ul.products li.product { position: relative; display: flex; flex-direction: column; width: auto !important; margin: 0 !important; padding: 0 0 20px !important; float: none !important; overflow: hidden; border: 1px solid var(--st-line); border-radius: var(--r-lg); background: #fff; text-align: left; }
body.st-page ul.products li.product a img { margin: 0 0 14px !important; aspect-ratio: 1; object-fit: cover; background: var(--st-sand); }
body.st-page ul.products li.product .woocommerce-loop-product__title { padding: 0 20px !important; color: var(--st-ink); font: 700 1.05rem/1.3 var(--display) !important; }
body.st-page ul.products li.product .price { display: block; padding: 0 20px; color: var(--st-text) !important; font-weight: 700; }
body.st-page ul.products li.product .button { margin: auto 20px 0 !important; min-height: 46px; line-height: 1.2 !important; }
body.st-page ul.products li.product .price { margin-bottom: 16px; }
body.st-page ul.products li.product .hpb-price-text, body.st-page ul.products li.product > .qo-price-text { display: block; padding: 0 20px 16px; color: var(--st-text); font-weight: 600; }
body.st-page ul.products li.product .hpb-price-text a { font-weight: 700; }
body.st-page .woocommerce-ordering select { min-height: 44px; padding: 0 12px; border: 1.5px solid var(--st-line); border-radius: var(--r-sm); background: #fff; color: var(--st-ink); font: inherit; }
body.st-page .woocommerce-result-count { color: var(--st-muted); }
body.st-page ul.products li.product .woocommerce-loop-product__link { display: block; text-decoration: none; }
body.st-page .added_to_cart { display: inline-block; margin: 8px 20px 0; font-weight: 600; }

/* ---------- Pages ---------- */
.st-main { padding: clamp(28px, 4vw, 56px) 0 var(--sec); }
.st-title { margin-bottom: 20px; font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); }
.st-content > * { max-width: 100%; }
.st-page .st-content > p, .st-page .st-content > h2, .st-page .st-content > h3, .st-page .st-content > ul { max-width: 720px; }
.st-note { max-width: none !important; margin: 0 0 24px; padding: 14px 18px; border-radius: var(--r); background: var(--butter-bg); color: var(--butter-ink); font-weight: 600; }
.st-main .wp-block-image img { border-radius: var(--r-lg); }

/* ---------- Single product ---------- */
body.st-page div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
body.st-page div.product::before, body.st-page div.product::after { display: none; }
body.st-page div.product .woocommerce-product-gallery, body.st-page div.product .summary { float: none !important; width: auto !important; margin: 0 !important; }
body.st-page div.product .woocommerce-product-gallery { align-self: start; }
body.st-page div.product .woocommerce-product-gallery img { border-radius: var(--r-lg); }
body.st-page div.product .woocommerce-product-gallery__trigger { z-index: 2; }
body.st-page div.product .product_title { margin-bottom: 10px; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); }
body.st-page div.product p.price { color: var(--st-ink) !important; font: 800 1.5rem/1.2 var(--display) !important; }
body.st-page div.product .woocommerce-product-details__short-description { font-size: var(--fs-lead); color: var(--st-text); margin-bottom: 20px; }
body.st-page div.product .woocommerce-tabs, body.st-page div.product .related, body.st-page div.product .upsells { grid-column: 1 / -1; }
body.st-page div.product .woocommerce-tabs ul.tabs { display: none; }
body.st-page div.product .woocommerce-tabs .panel { max-width: 760px; margin: 0; padding: 32px 0 0; border-top: 1px solid var(--st-line); }
body.st-page div.product .woocommerce-tabs .panel h2 { margin-top: 1.2em; font-size: 1.5rem; }
body.st-page div.product .woocommerce-tabs .panel h2:first-child { margin-top: 0; }
body.st-page div.product .related > h2 { font-size: 1.6rem; margin: 32px 0 20px; }
body.st-page div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
body.st-page .quantity .qty { min-height: 48px; width: 80px; border: 1.5px solid var(--st-line); border-radius: var(--r-sm); font: inherit; text-align: center; }

/* ---------- Donation form (Donations & Fundraising): the store's colours ---------- */
body.st-page .wcdf-donation-container {
	--wcdf-accent: var(--st-primary); --wcdf-accent-text: #fff; --wcdf-border: var(--st-line);
	--wcdf-muted: var(--st-muted); --wcdf-surface: var(--st-sand); --wcdf-radius: 10px;
	color: var(--st-text); font-size: 1rem;
}
body.st-page .wcdf-donation-container label, body.st-page .wcdf-donation-container legend { color: var(--st-ink); font-weight: 600; }
body.st-page .wcdf-fixed-donation-inner.wcdf-display-buttons label { min-width: 76px; min-height: 48px; border-width: 1.5px; font-weight: 700; background: #fff; }
body.st-page .wcdf-fixed-donation-inner.wcdf-display-buttons label:has(input:checked), body.st-page .wcdf-fixed-donation-inner.wcdf-display-buttons .wcdf-active { background: var(--st-primary); border-color: var(--st-primary); color: #fff; }
body.st-page .wcdf-donation-container input[type="number"], body.st-page .wcdf-donation-container input[type="text"], body.st-page .wcdf-donation-container select, body.st-page .wcdf-donation-container textarea { min-height: 48px; padding: 8px 12px; border: 1.5px solid var(--st-line); border-radius: var(--r-sm); background: #fff; color: var(--st-ink); font: inherit; }
body.st-page .wcdf-donation-container textarea { min-height: 96px; }
body.st-page .wcdf-progress { max-width: none; padding: 16px; border-radius: var(--r); background: var(--st-cream); border: 1px solid var(--st-line); }
body.st-page .wcdf-progress-labels { color: var(--st-text) !important; font-weight: 600; }
body.st-page .wcdf-progress-bar { height: 12px !important; border-radius: 6px !important; background: var(--st-sand) !important; }
body.st-page .wcdf-progress-fill { background: linear-gradient(90deg, var(--st-primary), var(--st-leaf)) !important; border-radius: 6px; }
body.st-page .wcdf-donation-button { width: 100%; min-height: 52px; font-size: 1rem; }
body.st-page .wcdf-campaign-closed { padding: 18px 20px; border-radius: var(--r); background: var(--st-cream); border: 1px solid var(--st-line); color: var(--st-ink); font-weight: 600; }
body.st-page .wcdf-tribute-fields { border-inline-start-color: var(--st-accent); background: var(--st-cream); border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* ---------- Cart, checkout, account (blocks + classic) ---------- */
.st-main--flow .st-title { margin-bottom: 12px; }
body.st-page .wp-block-woocommerce-cart, body.st-page .wp-block-woocommerce-checkout { margin-top: 8px; }
body.st-page .wc-block-components-sidebar-layout .wc-block-components-main, body.st-page .wc-block-components-sidebar { padding-top: 8px; }
body.st-page .wc-block-components-sidebar .wc-block-components-panel, body.st-page .wp-block-woocommerce-cart-order-summary-block, body.st-page .wp-block-woocommerce-checkout-order-summary-block { border-radius: var(--r); }
body.st-page .wc-block-components-text-input input, body.st-page .wc-block-components-combobox .wc-block-components-combobox-control input, body.st-page .wc-blocks-components-select__select { border-radius: var(--r-sm) !important; }
body.st-page .wc-block-cart-items__row .wc-block-components-product-name { color: var(--st-ink); font-weight: 700; }
body.st-page .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; list-style: none; }
body.st-page .woocommerce-MyAccount-navigation a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--st-line); text-decoration: none; font-weight: 600; }
body.st-page .woocommerce-MyAccount-navigation .is-active a { background: var(--st-ink); border-color: var(--st-ink); color: #fff !important; }
body.st-page .woocommerce-account .woocommerce-MyAccount-navigation, body.st-page .woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; }
body.st-page table.shop_table { border-radius: var(--r); background: #fff; border-collapse: separate; }
body.st-page .woocommerce-message, body.st-page .woocommerce-info, body.st-page .woocommerce-error, body.st-page .wc-block-components-notice-banner { border-radius: var(--r); }
body.st-page .woocommerce-message, body.st-page .woocommerce-info { border-top-color: var(--st-primary); }
body.st-page .woocommerce-message::before, body.st-page .woocommerce-info::before { color: var(--st-primary); }
body.st-page .woocommerce-order-overview { padding: 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--st-line); }

.st-next { margin: 0 0 28px; padding: 20px 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--st-line); box-shadow: var(--shadow-sm); }
.st-next__t { margin: 0 0 4px; color: var(--st-ink); font: 800 1.25rem/1.3 var(--display); }
.st-next__a { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 12px 0 0; }
.st-next__l { font-weight: 700; }

/* WooCommerce's "show password" eye: a 24 px target at least (WCAG 2.2 target size). */
body.st-page .show-password-input { min-width: 32px; min-height: 32px; }

/* Plugin lists that print full-size product photos (quote list, enquiries). */
body.st-page .qo-quote-page img, body.st-page .qo-quote-page .attachment-woocommerce_thumbnail { width: 72px !important; height: 72px !important; max-width: 72px; object-fit: cover; border-radius: var(--r-sm); }
body.st-page .qo-quote-page table { width: 100%; background: #fff; border-radius: var(--r); }

/* ---------- Footer ---------- */
.st-footer { background: var(--st-ink); color: rgba(255, 255, 255, .82); }
.st-footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 40px; }
.st-footer__brand { max-width: 420px; }
.st-footer__brand p { margin: 14px 0 0; }
.st-footer__nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; list-style: none; }
.st-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; color: #fff !important; text-decoration: none; font-weight: 600; }
.st-footer__nav a:hover { text-decoration: underline; }
.st-logo--light .st-logo__mark circle { fill: rgba(255, 255, 255, .1); }
body.st-page .wpk-footer { background: #0d1a11; }
body.st-page .wpk-footer a { color: #fff !important; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.st-nav-toggle { display: inline-grid; place-items: center; order: 3; margin-left: 0; }
	.st-actions { margin-left: auto; }
	.st-header__in { flex-wrap: wrap; gap: 8px; min-height: 64px; }
	.st-nav { display: none; order: 9; width: 100%; margin: 0; padding: 4px 0 12px; }
	.st-nav.is-open { display: block; }
	.st-nav ul { flex-direction: column; }
	.st-feature__in, body.st-page div.product { grid-template-columns: 1fr; }
	body.st-page div.product .woocommerce-product-gallery { position: static; }
}
@media (max-width: 480px) {
	.st-logo__tag { display: none; }
	.st-logo__mark { width: 34px; height: 34px; }
	.st-logo__name { font-size: 1.02rem; }
	.st-ctas .st-btn { width: 100%; }
}
