/* Saporitoohs block refinements. Global values are defined in theme.json. */

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
}

.site-header a,
.site-footer a,
.wp-block-button__link {
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

:where(.site-header a, .site-header button, .site-header input, .site-header select, .site-footer a, .site-footer button, .wp-block-button__link, .wp-block-woocommerce-product-collection .wp-block-woocommerce-product-button button):focus-visible {
	outline: 2px solid var(--wp--preset--color--olive);
	outline-offset: 3px;
}

.wp-block-button__link {
	font-weight: 500;
	letter-spacing: 0.01em;
	text-decoration: none;
}

.wp-block-button__link:hover,
.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-button button:hover {
	background-color: var(--wp--preset--color--charcoal);
	color: var(--wp--preset--color--paper);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border: 1px solid var(--wp--preset--color--olive);
	border-radius: var(--wp--custom--radius--subtle);
	color: var(--wp--preset--color--olive);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--olive);
	color: var(--wp--preset--color--paper);
}

.site-header {
	position: relative;
	z-index: 5;
	border-bottom: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--cream);
}

.site-header__inner {
	display: grid;
	grid-template-areas: "brand navigation search account cart";
	grid-template-columns: auto minmax(0, 1fr) auto auto auto;
	align-items: center;
	min-height: 5.5rem;
	gap: clamp(0.75rem, 1.5vw, 1.5rem);
}

.site-header .wp-block-site-title a {
	text-decoration: none;
}

.site-header .wp-block-site-title {
	grid-area: brand;
	flex-shrink: 0;
	font-size: clamp(1.25rem, 1.7vw, 1.5rem);
}

.site-header .site-header__navigation {
	grid-area: navigation;
	justify-self: center;
}

.site-header .wp-block-navigation__container {
	gap: clamp(1rem, 2vw, 2rem);
}

.site-header .wp-block-navigation-item__content,
.site-footer .wp-block-navigation-item__content {
	color: var(--wp--preset--color--charcoal);
	text-decoration: none;
}

.site-header .wp-block-navigation-item__content:hover,
.site-footer .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--olive);
}

.site-header__search {
	grid-area: search;
}

.site-header__search .wp-block-search__input {
	width: clamp(7rem, 10vw, 9rem);
	min-height: var(--wp--custom--control--min-height);
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	border-radius: 0;
	background: transparent;
}

.site-header__account {
	grid-area: account;
}

.site-header__cart {
	grid-area: cart;
}

.home-hero {
	padding: clamp(3rem, 7vw, 7rem) var(--wp--custom--layout--content-gutter);
}

.home-hero__columns {
	gap: clamp(2rem, 5vw, 5rem);
}

.home-hero h1 {
	max-width: 16ch;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.home-hero__copy > .has-medium-font-size {
	max-width: 38rem;
}

.home-hero .wp-block-button__link {
	min-height: var(--wp--custom--control--min-height);
	display: inline-flex;
	align-items: center;
}

.home-hero__copy > :last-child {
	margin-bottom: 0;
}

.image-placeholder {
	display: grid;
	min-height: clamp(22rem, 48vw, 42rem);
	place-items: center;
	padding: 2rem;
	border: 1px solid var(--wp--preset--color--line);
	background-color: var(--wp--preset--color--cream);
}

.image-placeholder--story {
	min-height: clamp(20rem, 42vw, 34rem);
}

.image-placeholder__label {
	max-width: 18rem;
	text-align: center;
	font-size: var(--wp--preset--font-size--small);
}

.eyebrow {
	margin-bottom: 0.9rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
}

.home-section {
	padding: var(--wp--custom--layout--section-space) var(--wp--custom--layout--content-gutter);
}

.home-section--products {
	padding-right: 0;
	padding-left: 0;
}

.section-heading {
	margin-bottom: 2.5rem;
	gap: 1.5rem;
}

.section-heading h2 {
	margin-top: 0;
	margin-bottom: 0;
}

.section-heading > p {
	margin-bottom: 0.25rem;
}

.section-heading > p a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
}

.home-section--products .wc-block-product-template {
	--woocommerce-product-collection-gap: clamp(0.75rem, 2vw, 1.5rem);
}

.home-section--products .wc-block-product-template > .wc-block-product {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
	padding: 0.875rem;
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--paper);
}

/* Use the product permalink to keep blend frames consistent in the homepage grid.
   Pair and herb products retain the neutral default frame. */
.home-section--products .wc-block-product:has(a[href*="/saporitoohs-balanced-herb-spice-blend-"]) {
	border: 2px solid var(--wp--preset--color--olive);
}

.home-section--products .wc-block-product:has(a[href*="/saporitoohs-spicy-herb-spice-blend-"]) {
	border: 2px solid var(--wp--preset--color--spice);
}

.home-section--products .wc-block-components-product-image {
	margin-bottom: 1rem;
	background: var(--wp--preset--color--cream);
}

.home-section--products .wc-block-components-product-image > a {
	display: grid;
	aspect-ratio: 1 / 1;
	place-items: center;
	padding: 0.75rem;
}

.home-section--products .wc-block-components-product-image img {
	width: 100%;
	height: 100%;
}

.home-section--products .wc-block-components-product-sale-badge {
	border: 0;
	border-radius: var(--wp--custom--radius--subtle);
	background: var(--wp--preset--color--spice);
	color: var(--wp--preset--color--paper);
	font-size: 0.75rem;
	font-weight: 500;
	padding: 0.25rem 0.4rem;
}

.home-section--products .wp-block-woocommerce-product-title,
.home-section--products .wp-block-post-title {
	margin: 0 0 0.35rem;
	min-height: 2.8em;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.4;
}

.home-section--products .wp-block-woocommerce-product-title a,
.home-section--products .wp-block-post-title a {
	color: var(--wp--preset--color--charcoal);
	text-decoration: none;
}

.home-section--products .wp-block-woocommerce-product-price {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
}

.home-section--products .wp-block-woocommerce-product-price del {
	color: var(--wp--preset--color--muted);
}

.home-section--products .wp-block-woocommerce-product-price ins {
	color: var(--wp--preset--color--charcoal);
	text-decoration: none;
}

.home-section--products .wp-block-woocommerce-product-button {
	margin-top: auto;
}

.home-section--products .wp-block-woocommerce-product-button .wp-element-button {
	width: 100%;
	min-height: var(--wp--custom--control--min-height);
	justify-content: center;
	border-radius: var(--wp--custom--radius--subtle);
}

.home-story__columns {
	gap: clamp(2rem, 7vw, 7rem);
}

.home-story__copy {
	padding: clamp(0rem, 2vw, 1.5rem);
}

.home-story__copy h2 {
	max-width: 14ch;
}

.video-placeholder {
	display: grid;
	min-height: clamp(12rem, 19vw, 17rem);
	place-items: center;
	padding: 1.5rem;
	border: 1px solid var(--wp--preset--color--line);
	background-color: var(--wp--preset--color--cream);
}

.video-placeholder p {
	font-size: 0.8125rem;
}

.home-community__inner {
	max-width: 52rem;
	text-align: center;
}

.home-community {
	background: var(--wp--preset--color--paper);
}

.home-closing-cta {
	padding: var(--wp--custom--layout--section-space) var(--wp--custom--layout--content-gutter);
}

.home-closing-cta__inner {
	max-width: 56rem;
}

.not-found {
	min-height: 55vh;
	padding-top: clamp(5rem, 12vw, 10rem);
	padding-bottom: clamp(5rem, 12vw, 10rem);
}

.site-footer {
	border-top: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--paper);
}

.site-footer__main {
	padding-top: 4rem;
	padding-bottom: 1.5rem;
}

.site-footer__columns {
	gap: 3rem;
}

.site-footer .wp-block-navigation__container {
	align-items: flex-start;
	gap: 0.65rem;
}

.site-footer .wp-block-heading {
	margin-bottom: 1rem;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 600;
}

.site-footer .wp-block-separator {
	margin-top: 2.5rem;
	margin-bottom: 1.25rem;
	border-color: var(--wp--preset--color--line);
}

.site-footer__bottom {
	gap: 1rem;
}

.site-footer__bottom p {
	margin: 0;
}

.post-preview,
.search-result {
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.post-preview .wp-block-post-featured-image img {
	width: 100%;
	object-fit: cover;
}

@media (max-width: 900px) {
	.site-header__inner {
		grid-template-areas: "brand navigation account cart" "search search search search";
		grid-template-columns: minmax(0, 1fr) auto auto auto;
		gap: 0.75rem 1rem;
		min-height: 4.75rem;
		padding-top: 0.75rem;
		padding-bottom: 0.75rem;
	}

	.site-header__search .wp-block-search__input {
		width: 100%;
	}

	.site-header__search .wp-block-search__inside-wrapper {
		width: 100%;
	}

	.home-hero__columns,
	.home-story__columns {
		gap: 2.5rem;
	}

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

@media (max-width: 600px) {
	.site-header__inner {
		column-gap: 0.65rem;
	}

	.site-header .wp-block-site-title {
		font-size: 1.2rem;
	}

	.home-hero {
		padding-top: 2.75rem;
		padding-bottom: 3.5rem;
	}

	.home-hero h1 {
		max-width: 16ch;
	}

	.image-placeholder {
		min-height: 20rem;
	}

	.home-section--products {
		padding-right: var(--wp--custom--layout--content-gutter);
		padding-left: var(--wp--custom--layout--content-gutter);
	}

	.section-heading {
		align-items: flex-start;
		margin-bottom: 1.5rem;
	}

	.home-section--products .wc-block-product-template > .wc-block-product {
		padding: 0.5rem;
	}

	.home-section--products .wc-block-components-product-image > a {
		padding: 0.375rem;
	}

	.home-section--products .wp-block-woocommerce-product-button .wp-element-button {
		padding: 0.65rem 0.35rem;
		font-size: 0.875rem;
	}

	.usage-placeholders {
		grid-template-columns: 1fr;
	}

	.video-placeholder {
		min-height: 13rem;
	}

	.site-footer__main {
		padding-top: 3rem;
	}

	.site-footer__columns {
		gap: 1.5rem;
	}

}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* Compact catalogue cards with unbroken weights and full-width controls. */
.home-section--products .range-group { margin-block: 2rem; }
.home-section--products .range-group > h3 { font-size: 1.3rem; line-height: 1.3; margin: 0 0 1rem; }
.home-section--products .range-group > p { font-size: .95rem; margin: 0 0 1rem; }
.range-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.range-grid--herbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.range-grid--pairs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-section--products .range-card { display: flex; flex-direction: column; gap: .65rem; min-width: 0; padding: 1.25rem; border: 1px solid #e5e2d9; border-radius: 22px; background: #fff; box-shadow: 0 4px 18px rgba(37,41,35,.045); box-sizing: border-box; }
.home-section--products .range-card > * { margin: 0; }
.home-section--products .range-card--balanced { border-color: rgba(82,99,68,.36); }
.home-section--products .range-card--spicy { border-color: rgba(163,77,61,.36); }
.range-card__image { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 100%; height: clamp(170px, 22vw, 280px); background: #fff; overflow: hidden; }
.range-card__image img { display: block; width: 100%; height: 100%; max-height: 100%; object-fit: contain; margin: 0; padding: 0; }
.range-card__image--duo img { width: 50%; min-width: 0; }
.home-section--products .range-card h4 { font-size: 1.05rem; font-weight: 500; line-height: 1.4; overflow-wrap: normal; word-break: normal; }
.range-card h4 a { text-decoration: none; color: inherit; }
.home-section--products .range-card__weight { font-size: .85rem; white-space: nowrap; color: var(--wp--preset--color--muted); }
.home-section--products .range-card__detail { font-size: .85rem; line-height: 1.4; }
.home-section--products .range-card__price { font-size: 1rem; margin-top: auto; padding-top: .3rem; }
.home-section--products a.range-card__button { display: flex; align-items: center; justify-content: center; align-self: stretch; width: 100%; min-height: 44px; box-sizing: border-box; padding: .65rem .4rem; font-size: .9rem; line-height: 1.2; white-space: nowrap; text-decoration: none; }
.home-section--products .range-card__status { margin-top: auto; font-size: .9rem; color: var(--wp--preset--color--olive); }
@media (max-width: 900px) {
 .range-grid--herbs { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
 .range-grid, .range-grid--pairs { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; }
 .home-section--products .range-card { padding: .75rem; gap: .5rem; border-radius: 18px; }
 .range-card__image { height: clamp(115px, 36vw, 175px); }
 .home-section--products .range-card h4 { font-size: .875rem; line-height: 1.4; }
 .home-section--products .range-card__price { font-size: .95rem; }
 .home-section--products a.range-card__button { font-size: .8rem; }
 .home-section--products .range-card__weight, .home-section--products .range-card__detail, .home-section--products .range-card__status { font-size: .8rem; }
 .home-section--products .range-group { margin-block: 1.5rem; }
 .site-header svg { width: 22px; height: 22px; }
 .site-header button { min-width: 44px; min-height: 44px; }
}
@media (max-width: 300px) { .range-grid, .range-grid--pairs { grid-template-columns: 1fr; } }

/* Keep product photography and details together, without square-canvas gaps. */
.home-section--products .range-card__image { height: 230px; min-height: 0; aspect-ratio: auto; padding: 0; }
.home-section--products .range-grid--herbs .range-card__image { height: 180px; }
.home-section--products .range-grid--pairs .range-card__image { height: 190px; }
.home-section--products .range-card__image--duo { gap: 0; }
.home-section--products .range-card__image--duo img { width: 55%; flex: 0 0 55%; }
.home-section--products .range-card__image--duo img + img { margin-left: -10%; }
.home-section--products .range-card h4 { margin-top: .2rem; }
.home-section--products .range-card__price { margin-top: .35rem; padding-top: 0; }
.home-section--products a.range-card__button { margin-top: auto; }
.home-section--products .range-card__status { margin-top: .35rem; }
@media (max-width: 600px) {
 .home-section--products .range-card__image, .home-section--products .range-grid--herbs .range-card__image { height: 140px; }
 .home-section--products .range-grid--pairs .range-card__image { height: 110px; }
}

/* Both pair sizes use two square source photos with identical, undistorted sizing. */
.home-section--products .range-grid--pairs .range-card__image--duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; height: auto; aspect-ratio: 2 / 1; overflow: visible; }
.home-section--products .range-card__image--duo img,
.home-section--products .range-card__image--duo img + img { display: block; width: 100%; height: auto; aspect-ratio: 1; max-height: none; min-width: 0; margin: 0; object-fit: contain; }

.home-section--products .range-grid--pairs .range-card__image--pair-photo { display: flex; height: auto; aspect-ratio: 1; }
.home-section--products .range-card__image--pair-photo > img { width: 100%; height: 100%; object-fit: contain; }
.range-card__pair-fallback { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
.range-card__pair-fallback img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }

/* Quiet olive-branch accents sit behind content, away from product photography. */
.home-hero,
.home-section--products,
.home-story,
.home-closing-cta { position: relative; isolation: isolate; }
.home-hero::before,
.home-section--products::before,
.home-story::before,
.home-closing-cta::before {
 content: ""; position: absolute; z-index: -1; pointer-events: none;
 width: clamp(100px, 15vw, 215px); height: clamp(200px, 28vw, 375px);
 background: url('../images/olive-branch.svg') center / contain no-repeat;
 opacity: .105;
}
.home-hero::before { right: 0; top: 1rem; transform: rotate(-18deg); }
.home-section--products::before { left: -3rem; top: -1rem; transform: rotate(22deg); opacity: .075; }
.home-story::before { right: 0; bottom: 0; transform: rotate(165deg); }
.home-closing-cta::before { left: 0; bottom: 0; transform: rotate(15deg); }
@media (max-width: 600px) {
 .home-hero::before,
 .home-section--products::before,
 .home-story::before,
 .home-closing-cta::before { width: 90px; height: 170px; opacity: .065; }
 .home-section--products::before { left: -.6rem; top: -1rem; }
}
.home-hero, .home-section--products, .home-story, .home-closing-cta { overflow: clip; }

.home-hero .home-hero__photo { margin: 0; width: 100%; }
.home-hero .home-hero__photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 4px; }
.home-hero h1.has-display-font-size { font-size: clamp(2rem, 3.5vw, 3.25rem); line-height: 1.12; max-width: 17ch; }

/* Four calm serving moments: a desktop gallery and a user-controlled mobile carousel. */
.home-hero.home-hero--four-ways { padding: clamp(2rem, 5vw, 4rem) var(--wp--custom--layout--content-gutter); }
.home-hero--four-ways .four-ways { max-width: 1240px; margin-inline: auto; }
.four-ways__intro { text-align: center; max-width: 900px; margin: clamp(2rem,4vw,3rem) auto 0; }
.home-hero--four-ways h1 { max-width: none; margin: .6rem 0 1rem; font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.12; letter-spacing: -.04em; }
.four-ways__summary { font-size: clamp(1.1rem, 2vw, 1.4rem); margin: 0 0 1.5rem; }
.four-ways__description { color: var(--wp--preset--color--muted); font-size: 1rem; line-height: 1.6; margin: 0 auto 1.3rem; max-width: 48ch; }
.four-ways__shop { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; text-decoration: none; padding: .75rem 1.25rem; font-size: .95rem; }
.four-ways__track { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.15rem; position: relative; }
.use-card { min-width: 0; }
.use-card__image { overflow: hidden; aspect-ratio: 1; border-radius: 8px; }
.use-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.use-card__copy { padding: 1rem .15rem .5rem; }
.use-card__category { color: var(--wp--preset--color--olive); font-size: .75rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; margin: 0 0 .45rem; }
.home-hero--four-ways .use-card h2 { font-size: 1.05rem; line-height: 1.35; font-weight: 600; margin: 0 0 .65rem; }
.use-card__description { color: var(--wp--preset--color--muted); font-size: .9rem; line-height: 1.6; margin: 0; }
.four-ways__controls, .four-ways__swipe-hint { display: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .use-card:hover .use-card__image img { transform: scale(1.045); } }
@media (max-width: 781px) {
 .four-ways__intro { margin-top: 1.6rem; margin-bottom: 0; }
 .home-hero--four-ways .eyebrow { font-size: .65rem; line-height: 1.6; }
 .four-ways__description { font-size: .95rem; }
 .four-ways__track { display: flex; gap: .85rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: .5rem; }
 .four-ways__track::-webkit-scrollbar { display: none; }
 .use-card { flex: 0 0 85%; scroll-snap-align: start; }
 .use-card:last-child { margin-right: 15%; }
 .use-card__copy { padding-top: .85rem; }
 .four-ways__controls { display: flex; justify-content: center; margin-top: .25rem; }
 .four-ways__dot { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
 .four-ways__dot span { display: block; width: 7px; height: 7px; border-radius: 50%; background: #c4c8bd; }
 .four-ways__dot[aria-current="true"] span { background: var(--wp--preset--color--olive); }
 .four-ways__swipe-hint { display: block; text-align: center; font-size: .75rem; color: var(--wp--preset--color--muted); margin: 0; }
}
.four-ways__track:focus-visible, .four-ways__dot:focus-visible { outline: 2px solid var(--wp--preset--color--olive); outline-offset: 3px; }

.home-story__photo { margin: 0; }
.home-story__photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 8px; }

/* Readable supporting product information, subordinate to the main description. */
.single-product .product-information-note { font-size: .9rem; line-height: 1.65; padding: .85rem 1rem; border-left: 2px solid var(--wp--preset--color--line); background: rgba(83,100,71,.035); }
.single-product .product-information-note a { text-decoration: underline; }
.single-product .woocommerce-Tabs-panel--description { max-width: 76ch; }

.single-product .product-intro { max-width: 48ch; font-size: 1rem; line-height: 1.65; }
.single-product .product-intro p { margin: 0 0 .8rem; }
.single-product .product-intro .product-intro__size { font-size: .95rem; }
.single-product .product-intro .product-intro__delivery { font-size: .875rem; color: var(--wp--preset--color--olive); margin-bottom: 1.25rem; }

/* Editorial blog: restrained cover photography and comfortable reading widths. */
.journal-shell { padding-block: clamp(2rem,5vw,4.5rem); padding-inline: var(--wp--custom--layout--content-gutter); }
.journal-shell > h1 { font-size: clamp(2rem,4vw,3rem); line-height: 1.15; margin-block: .75rem 1rem; }
.journal-shell > .wp-block-post-content { max-width: none; }
.journal-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; margin-block: 2rem; max-width: none; }
.journal-card { min-width: 0; display: flex; flex-direction: column; }
.journal-card__image { display: block; overflow: hidden; aspect-ratio: 3/2; border-radius: 8px; }
.journal-card__image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .4s ease; }
.journal-card__copy { padding-top: 1rem; display: flex; flex: 1; flex-direction: column; gap: .7rem; }
.journal-card__copy > * { margin: 0; }
.journal-card h2 { font-size: 1.2rem; line-height: 1.4; font-weight: 600; }
.journal-card h2 a { color: inherit; text-decoration: none; }
.journal-card__copy > p:not(.eyebrow) { font-size: .95rem; line-height: 1.65; color: var(--wp--preset--color--muted); }
.journal-card__read { font-size: .9rem; padding-block: .5rem; margin-top: auto; }
.journal-article { max-width: 900px; padding: clamp(2rem,5vw,4rem) var(--wp--custom--layout--content-gutter); }
.journal-article > h1 { font-size: clamp(1.9rem,3.6vw,2.9rem); line-height: 1.18; letter-spacing: -.025em; margin-block: .75rem 1.75rem; }
.journal-article__cover { margin: 0 0 2rem; }
.journal-article__cover img { display: block; width: 100%; height: auto; border-radius: 8px; }
.journal-article .wp-block-post-content { max-width: 68ch; font-size: 1rem; line-height: 1.8; }
.journal-article .wp-block-post-content h2 { font-size: 1.4rem; line-height: 1.35; margin-top: 2rem; }
.journal-article .article-intro { font-size: 1.15rem; }
.journal-article .wp-block-post-content li { margin-bottom: .6rem; }
.journal-article .article-shop-link { margin-block: 2rem; padding: 1rem; background: rgba(83,100,71,.05); border-left: 2px solid var(--wp--preset--color--olive); }
.journal-back { max-width: 68ch; margin-top: 2.5rem; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) { .journal-card:hover img { transform: scale(1.025); } }
@media (max-width:781px) { .journal-grid { grid-template-columns: 1fr; gap: 2rem; } .journal-card h2 { font-size: 1.15rem; } }
.journal-browser--featured .journal-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.enquiry-notice { padding: 1rem 1.25rem; border-left: 3px solid var(--wp--preset--color--olive); background: rgba(83,100,71,.06); margin-block: 1.5rem; }
.enquiry-notice p { margin-block: .4rem 0; }
.enquiry-form { max-width: 650px; margin-block: 2rem; }
.enquiry-form label { display: block; font-weight: 500; margin-bottom: .4rem; }
.enquiry-form input:not([type=hidden]), .enquiry-form select, .enquiry-form textarea { box-sizing: border-box; width: 100%; max-width: 100%; border: 1px solid #b9beb3; border-radius: 5px; background: white; color: #252a24; font: inherit; padding: .7rem; min-height: 44px; }
.enquiry-form button, .enquiry-link { display: inline-block; background: var(--wp--preset--color--olive); color: white; border: 0; border-radius: 4px; padding: .8rem 1.2rem; font: inherit; text-decoration: none; cursor: pointer; }
.enquiry-form__note { font-size: .85rem; color: var(--wp--preset--color--muted); }
.enquiry-form .enquiry-trap { position: absolute; left: -10000px; }
.home-enquiries { border-top: 1px solid #dedfd6; padding-top: 2rem; }
.information-page > .wp-block-post-content { max-width: 76ch; margin-inline: auto; font-size: 1rem; line-height: 1.8; }
.information-page .wp-block-post-content h2 { font-size: 1.45rem; line-height: 1.35; margin-top: 2rem; }
.information-page .wp-block-post-content li { margin-bottom: .6rem; }
.policy-review-note { border-left: 3px solid #a37b36; padding: 1rem; background: #f1eadc; font-size: .9rem; margin-block: 1.5rem; }
.name-story { text-align: center; padding-block: clamp(2rem,5vw,4rem); border-block: 1px solid rgba(83,100,71,.16); }
.name-story__title { font-size: clamp(2rem,4vw,3.5rem); font-weight: 500; letter-spacing: -.035em; margin-block: .8rem 2.5rem; }
.name-story__ohs { color: var(--wp--preset--color--olive); }
.name-story__meaning { display: grid; grid-template-columns: 1fr auto 2fr; align-items: center; gap: 2rem; max-width: 1000px; margin-inline: auto; }
.name-story__word { font-size: clamp(1.7rem,3vw,2.5rem); font-weight: 500; margin: 0 0 .5rem; }
.name-story__italian p:last-child { color: var(--wp--preset--color--muted); margin: 0; }
.name-story__italian strong { color: var(--wp--preset--color--olive); font-weight: 600; }
.name-story__plus { font-size: 2rem; color: #AB7C29; font-weight: 400; }
.name-story__ingredients { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; margin: 0; }
.name-story__ingredients img { width: 64px; height: 64px; display: block; margin: 0 auto .65rem; }
.name-story__ingredients dt { font-weight: 500; font-size: 1.05rem; }
.name-story__ingredients dt span { display: block; font-size: 1.65rem; margin-bottom: .3rem; color: var(--wp--preset--color--olive); }
.name-story__ingredients dd { margin: .4rem 0 0; font-size: .8rem; color: var(--wp--preset--color--muted); }
.name-story__closing { margin: 2.5rem 0 0; color: var(--wp--preset--color--muted); font-size: .95rem; }
.name-story__replay { margin-top: 1rem; padding: .5rem .8rem; min-height: 44px; font: inherit; font-size: .8rem; color: var(--wp--preset--color--olive); background: transparent; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.name-story__replay[hidden] { display: none; }
.name-story__replay:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.cart-delivery-prompt { margin: .8rem 0 0; text-align: center; font-size: .9rem; line-height: 1.5; color: var(--wp--preset--color--olive); }
@media (max-width:600px) {
 .name-story__meaning { grid-template-columns: 1fr; gap: 1rem; }
 .name-story__title { margin-bottom: 1.5rem; }
 .name-story__ingredients { gap: .6rem; }
 .name-story__ingredients img { width: 48px; height: 48px; }
 .name-story__ingredients dt { font-size: .85rem; }
 .name-story__ingredients dd { font-size: .7rem; }
 .name-story__closing { margin-top: 1.75rem; }
}
.journal-card[hidden], .journal-filters[hidden], .journal-count[hidden] { display: none; }
.journal-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.journal-filters button { border: 1px solid var(--wp--preset--color--olive); border-radius: 999px; background: transparent; color: var(--wp--preset--color--olive); padding: .6rem 1rem; min-height: 44px; font: inherit; font-size: .9rem; cursor: pointer; }
.journal-filters button[aria-pressed="true"] { background: var(--wp--preset--color--olive); color: white; }
.journal-filters button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.journal-count { color: var(--wp--preset--color--muted); font-size: .85rem; margin-block: .75rem 0; }
@media (min-width:601px) and (max-width:1000px) { .journal-browser--featured .journal-grid, .journal-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width:600px) {
 .journal-browser--featured .journal-grid, .journal-grid { grid-template-columns: 1fr; gap: 1.4rem; }
 .journal-card { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: .85rem; align-items: start; }
 .journal-card__image { aspect-ratio: 1; border-radius: 6px; }
 .journal-card__copy { padding-top: 0; gap: .35rem; }
 .journal-card h2 { font-size: 1rem; line-height: 1.35; }
 .journal-card .eyebrow { font-size: .65rem; letter-spacing: .08em; }
 .journal-card__copy > p:not(.eyebrow) { font-size: .85rem; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
 .journal-card__read { font-size: .8rem; padding-block: .4rem; }
}

/* Keep editor-added empty paragraphs from becoming journal grid items. */
.journal-card > p:empty { display: none; }
@media (max-width: 600px) {
 .journal-card__image { grid-column: 1; grid-row: 1; }
 .journal-card__copy { grid-column: 2; grid-row: 1; min-width: 0; }
 .journal-card__copy > p:not(.eyebrow):not(:last-child) { white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
 .journal-card__copy > p:last-child { white-space: normal; overflow: visible; }
 .journal-card__copy > p:last-child { margin-top: .25rem; }
 .journal-card__read { display: inline-block; white-space: normal; }
 .journal-home { box-sizing: border-box; width: 100%; }
 .site-footer__main { box-sizing: border-box; padding-inline: 1.25rem; }
 .site-footer__columns { gap: 2rem; }
 .site-footer a { overflow-wrap: anywhere; }
 .site-footer .wp-block-navigation-item__content { font-size: .9rem; }
 .site-footer__bottom { font-size: .8rem; line-height: 1.6; }
}

/* Shared phone gutters, including WooCommerce order confirmation pages. */
@media (max-width: 600px) {
 .site-header__inner { box-sizing: border-box; width: 100%; padding-inline: 1.25rem; }
 body:not(.home) main:not(.journal-shell):not(.journal-article) { box-sizing: border-box; padding-inline: 1.25rem; }
 .woocommerce-order { min-width: 0; overflow-wrap: anywhere; }
 .woocommerce-order h1, .woocommerce-order h2 { line-height: 1.2; }
 .woocommerce-order ul.order_details { padding-inline: 0; }
 .woocommerce-order table { width: 100%; }
 .woocommerce-order table th, .woocommerce-order table td { padding: .75rem .5rem; }
}

/* Let the mobile cart shrink within its gutter instead of widening the page. */
@media (max-width: 600px) {
 .wc-block-cart.is-mobile table.wc-block-cart-items { display: block; width: 100%; box-sizing: border-box; }
 .wc-block-cart.is-mobile .wc-block-cart-items tbody { display: block; width: 100%; }
 .wc-block-cart.is-mobile .wc-block-cart-items .wc-block-cart-items__row { display: grid; grid-template-columns: 56px minmax(0,1fr) max-content; column-gap: .65rem; width: 100%; box-sizing: border-box; }
 .wc-block-cart.is-mobile .wc-block-cart-items .wc-block-cart-item__image { grid-column: 1; grid-row: 1; width: 56px; padding: 0; }
 .wc-block-cart.is-mobile .wc-block-cart-items .wc-block-cart-item__product { grid-column: 2; grid-row: 1; min-width: 0; width: auto; padding: 0; overflow-wrap: anywhere; }
 .wc-block-cart.is-mobile .wc-block-cart-items .wc-block-cart-item__total { grid-column: 3; grid-row: 1; min-width: 0; width: auto; padding: 0; font-size: .85rem; }
}

/* Override WooCommerce's later mobile colspan rule: keep title and total apart. */
@media (max-width: 600px) {
 .wc-block-cart.is-mobile table.wc-block-cart-items tbody .wc-block-cart-items__row > .wc-block-cart-item__product { grid-column: 2; grid-row: 1; }
 .wc-block-cart.is-mobile table.wc-block-cart-items tbody .wc-block-cart-items__row > .wc-block-cart-item__total { grid-column: 3; grid-row: 1; min-width: max-content; }
 .wc-block-cart.is-mobile table.wc-block-cart-items tbody .wc-block-cart-items__row { grid-template-columns: 56px minmax(0,1fr) max-content; }
}

/* The small cart drawer already shows each pack price below its name. */
@media (max-width: 600px) {
 .wc-block-mini-cart__drawer table.wc-block-cart-items { display: block; width: 100%; }
 .wc-block-mini-cart__drawer table.wc-block-cart-items tbody { display: block; width: 100%; }
 .wc-block-mini-cart__drawer table.wc-block-cart-items tbody .wc-block-cart-items__row { display: grid; grid-template-columns: 64px minmax(0,1fr); column-gap: 1rem; width: 100%; box-sizing: border-box; }
 .wc-block-mini-cart__drawer table.wc-block-cart-items tbody .wc-block-cart-item__image { grid-column: 1; grid-row: 1; width: 64px; padding: 0; }
 .wc-block-mini-cart__drawer table.wc-block-cart-items tbody .wc-block-cart-item__product { grid-column: 2; grid-row: 1; width: auto; min-width: 0; padding: 0; overflow-wrap: anywhere; }
 .wc-block-mini-cart__drawer table.wc-block-cart-items tbody .wc-block-cart-item__total { display: none; }
}

/* Visitor-initiated WhatsApp chat; safe-area spacing for phones. */
.whatsapp-chat { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 20; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-width: 52px; min-height: 52px; padding: 0 1rem; box-sizing: border-box; background: #176b43; color: #fff; border: 2px solid #fff; border-radius: 999px; box-shadow: 0 3px 16px rgba(0,0,0,.16); text-decoration: none; }
.whatsapp-chat:hover { background: #115333; color: #fff; }
.whatsapp-chat:focus-visible { outline: 3px solid #526344; outline-offset: 4px; }
.whatsapp-chat__label { font-size: .85rem; font-weight: 600; }
@media (max-width: 600px) {
 .whatsapp-chat { min-width: 50px; min-height: 50px; padding: 0; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); }
 .whatsapp-chat__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
 body.woocommerce-cart .whatsapp-chat { bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* Soft product presentation, with restrained flavour accents. */
.home-section--products .range-card__image { border-radius: 12px; }
.home-section--products a.range-card__button { border-radius: 999px; }
.wp-block-woocommerce-product-collection .wc-block-product { border: 1px solid #e5e2d9; border-radius: 22px; padding: 1rem; box-sizing: border-box; background: #fff; box-shadow: 0 4px 18px rgba(37,41,35,.045); }
.wp-block-woocommerce-product-collection .wc-block-product .wp-element-button { border-radius: 999px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
 .home-section--products .range-card { transition: transform 180ms ease, box-shadow 180ms ease; }
 .home-section--products .range-card:hover { transform: translateY(-3px); box-shadow: 0 9px 25px rgba(37,41,35,.075); }
}
@media (max-width: 600px) {
 .wp-block-woocommerce-product-collection .wc-block-product { border-radius: 18px; }
}

/* One soft-corner treatment across photography; logos and SVG icons are excluded. */
:root { --saporitoohs-photo-radius: 22px; --saporitoohs-thumb-radius: 12px; }
.use-card__image,
.journal-card__image,
.home-section--products .range-card__image,
.woocommerce-product-gallery .flex-viewport,
.woocommerce-product-gallery__image { border-radius: var(--saporitoohs-photo-radius); overflow: hidden; }
.home-hero .home-hero__photo img,
.home-story__photo img,
.journal-article__cover img,
.wp-block-image img:not([src*=".svg"]),
.wp-block-post-featured-image img,
.wc-block-components-product-image img,
.woocommerce-product-gallery__image img,
.related.products img,
.upsells.products img { border-radius: var(--saporitoohs-photo-radius); }
.woocommerce-product-gallery .flex-control-thumbs img,
.wc-block-cart-item__image img,
.wc-block-components-order-summary-item__image img,
.woocommerce-cart-form .product-thumbnail img,
.woocommerce-mini-cart-item img { border-radius: var(--saporitoohs-thumb-radius); }
@media (max-width: 600px) {
 :root { --saporitoohs-photo-radius: 18px; --saporitoohs-thumb-radius: 10px; }
 .journal-card__image { border-radius: var(--saporitoohs-thumb-radius); }
}

/* Gentle rounding for remaining actions; product pills keep their own shape. */
.wp-element-button,
.wp-block-button__link,
.wp-block-search__button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wp-site-blocks .wc-block-components-button,
.enquiry-form button,
.enquiry-link,
.four-ways__shop { border-radius: 12px; }
