/*
Theme Name: Wick & Wattle
Theme URI: https://fiftysite.com/
Author: Fifty Site
Description: Warm, simple block theme for a small candle and soap maker, with a shop, product pages and a sample basket. Sample site by Fifty Site (Pro plan with the online store add-on).
Version: 1.0.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wick-and-wattle
*/
:root {
	--ww-radius: 20px;
	--ww-pill: 999px;
	--ww-on-primary: #FAF6F0;
	--ww-field: #CFC4B1;
	--ww-cta-btn-bg: #FAF6F0;
	--ww-cta-btn-ink: #2F3A33;
	--ww-cta-btn-hover: #EBD7CB;
	--ww-footer-link: #DDE3DA;
}

/* Layout helpers used by the patterns. Colours, fonts and sizes live in theme.json. */

.ww-header { border-bottom: 1px solid var(--wp--preset--color--line); }

.ww-eyebrow {
	display: inline-block;
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--tint-ink);
	font-weight: 600;
	font-size: 0.875rem;
	padding: 0.5rem 0.875rem;
	border-radius: var(--ww-pill);
}
.ww-kicker { margin: 0; color: #7A4E10; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8125rem; }
.ww-meta { color: var(--wp--preset--color--muted); font-size: 0.9375rem; margin: 0; }
.ww-price { font-size: 1.5rem; font-family: var(--wp--preset--font-family--heading); }

.ww-lead { color: var(--wp--preset--color--muted); font-size: 1.1875rem; line-height: 1.6; max-width: 34rem; }
.wp-block-group > .ww-lead { margin-left: 0 !important; margin-right: auto !important; }
.ww-lead-center { color: var(--wp--preset--color--muted); font-size: 1.1875rem; }

.ww-checks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; font-size: 0.9375rem; }
.ww-checks li { display: flex; align-items: center; gap: 0.5rem; }
.ww-checks li::before {
	content: "";
	width: 18px; height: 18px; flex: none;
	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='%23A9741F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.ww-card {
	border-radius: var(--ww-radius);
	padding: 2.25rem;
	height: 100%;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
}
.ww-card h3 { margin: 0.25rem 0 0; }
.ww-card h3 a { color: inherit; }
.ww-card .wp-block-buttons { margin-top: 0.5rem; }

.ww-step-num {
	width: 48px; height: 48px;
	border-radius: var(--ww-pill);
	background: var(--wp--preset--color--primary);
	color: var(--ww-on-primary);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: 1.25rem;
	display: flex; align-items: center; justify-content: center;
	margin: 0;
}

.ww-review { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: calc(var(--ww-radius) * 0.85); padding: 1.75rem; height: 100%; box-sizing: border-box; }
.ww-stars { color: #A9741F; letter-spacing: 0.15em; margin: 0; }

.ww-chips .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 1.5px solid var(--ww-field);
	font-weight: 500;
	padding: 0.65rem 1.25rem;
}
.ww-chips .wp-block-button__link:hover { border-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary-dark); background: transparent; }

.ww-cta { border-radius: calc(var(--ww-radius) * 1.3); padding: 4rem 2.5rem; text-align: center; }
.ww-cta .wp-block-button__link { background: var(--ww-cta-btn-bg); color: var(--ww-cta-btn-ink); font-weight: 700; }
.ww-cta .wp-block-button__link:hover { background: var(--ww-cta-btn-hover); color: var(--ww-cta-btn-ink); }
.ww-cta .is-style-outline > .wp-block-button__link { background: transparent; color: var(--ww-on-primary); border: 1.5px solid var(--ww-on-primary); }
.ww-cta .ww-lead-center { color: var(--ww-footer-link); }
.ww-cta a:not(.wp-block-button__link) { color: inherit; }
.ww-cta h2 { color: var(--ww-on-primary); }

.ww-footer a { color: var(--ww-footer-link); }
.ww-footer a:hover, .ww-footer a:focus-visible { color: #fff; }
.ww-foot-brand { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 1.25rem; color: #fff; margin: 0; }
.ww-sample-note { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 2.5rem !important; padding-top: 1.5rem; font-size: 0.8125rem; opacity: 0.85; }

.is-style-outline > .wp-block-button__link { border: 1.5px solid var(--ww-field); color: var(--wp--preset--color--ink); background: #fff; }
.is-style-outline > .wp-block-button__link:hover { border-color: var(--wp--preset--color--primary); background: #fff; color: var(--wp--preset--color--ink); }
.wp-block-button__link { min-height: 44px; display: inline-flex; align-items: center; }
.wp-block-button__link[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

/* Links: one hover style everywhere. Underline, 2px. */
a:where(:not(.wp-element-button)) { text-decoration: none; }
a:where(:not(.wp-element-button)):hover,
a:where(:not(.wp-element-button)):focus-visible,
.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation .wp-block-navigation-item__content:focus-visible,
.wp-block-site-title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}
.wp-element-button, .wp-block-button__link { text-decoration: none !important; }

/* Inline sample notes and owner placeholders */
.ww-inline-note { color: var(--wp--preset--color--muted); font-size: 0.9375rem; margin: 0; }
.ww-note { background: var(--wp--preset--color--soft); border-left: 4px solid var(--wp--preset--color--primary); padding: 0.9rem 1.1rem; border-radius: 0 calc(var(--ww-radius) * 0.5) calc(var(--ww-radius) * 0.5) 0; font-size: 0.9375rem; color: var(--wp--preset--color--muted); }

/* Image placeholders: swap for the owner's photos */
.ww-ph { margin: 0; display: flex; align-items: center; justify-content: center; border-radius: calc(var(--ww-radius) * 0.85); color: var(--wp--preset--color--primary); }
.ww-ph--candle { background: linear-gradient(160deg, #F1E3C8, #E7D2A8); }
.ww-ph--soap { background: linear-gradient(160deg, #E5EBE2, #CFDACB); }
.ww-ph--card { height: 200px; margin-bottom: 0.5rem; }
.ww-ph--wide { height: 220px; margin-bottom: 0.5rem; }
.ww-ph--hero { height: 460px; border-radius: calc(var(--ww-radius) * 1.15); }
.ww-ph--hero svg { width: 140px; height: 140px; }
.ww-ph--product { height: 520px; }
.ww-ph--product svg { width: 140px; height: 140px; }
.ww-ph--inline { height: 360px; }

/* Product grid and detail */
.ww-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.25rem; }
.ww-grid > * { margin: 0 !important; }
.ww-facts { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9375rem; }
.ww-facts th, .ww-facts td { text-align: left; padding: 0.65rem 0; border-bottom: 1px solid var(--wp--preset--color--line); vertical-align: top; }
.ww-facts th { width: 8rem; font-weight: 600; }

/* Basket */
.ww-basket { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--ww-radius); overflow: hidden; }
.ww-basket th, .ww-basket td { text-align: left; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--wp--preset--color--line); }
.ww-basket th:last-child, .ww-basket td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.ww-basket .ww-total td { font-weight: 700; border-bottom: 0; }

/* FAQ */
.wp-block-details { border-bottom: 1px solid var(--wp--preset--color--line); padding: 0.9rem 0; }
.wp-block-details summary { font-weight: 600; cursor: pointer; }

.wp-block-site-title { font-weight: 700; }
.ww-head-row { align-items: baseline; }

/* Standard pages: same 1200px frame as the hub pages; text keeps a readable line length, aligned to the left edge */
.ww-page .wp-block-post-content > :is(p, ul, ol, h2, h3, .wp-block-details, .wp-block-buttons, .ww-note) { max-width: 800px; margin-left: 0 !important; }
.ww-page .wp-block-post-content > .ww-lead { max-width: 800px; }
.ww-page .wp-block-post-title { margin-bottom: 1.5rem; }

@media (max-width: 781px) {
	.ww-card { padding: 1.5rem; }
	.ww-cta { padding: 2.5rem 1.5rem; }
	.ww-ph--hero { height: 280px; }
	.ww-ph--product { height: 320px; }
	.ww-ph--inline { height: 240px; }
}

/* Mobile header: logo, button and menu on one row */
@media (max-width: 600px) {
	.ww-header > .wp-block-group { flex-wrap: nowrap; gap: 0.6rem; }
}
