/*
Theme Name: Artsy Maki
Theme URI: https://artsymaki.com
Author: Artsy Maki
Author URI: https://artsymaki.com
Description: A custom WordPress block theme (FSE) for the Artsy Maki crochet & knitting pattern shop. Cream and rose editorial design with Playfair Display and DM Sans, full WooCommerce block support, dynamic product specification table, and reusable brand patterns.
Version: 1.5.3
Requires at least: 6.6
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: artsymaki
Tags: block-theme, full-site-editing, e-commerce, blog, two-columns, custom-colors, custom-logo, editor-style
*/

/* =========================================================
   0. Base helpers
   ========================================================= */

:root {
	--am-border: var(--wp--custom--color--border, #E7DFD6);
	--am-border-soft: var(--wp--custom--color--border-soft, #EFE8E0);
	--am-border-dark: var(--wp--custom--color--border-dark, #463736);
	--am-radius-card: var(--wp--custom--radius--card, 14px);
	--am-radius-band: var(--wp--custom--radius--band, 20px);
	--am-radius-input: var(--wp--custom--radius--input, 10px);
	--am-shadow-card: var(--wp--custom--shadow--card);
	--am-shadow-card-hover: var(--wp--custom--shadow--card-hover);
	--am-shadow-cta: var(--wp--custom--shadow--cta);
}

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

/* Italic accents inside headings render in Rosewood (brand rule) */
h1 em,
h2 em,
.wp-block-heading em {
	color: var(--wp--preset--color--rosewood);
	font-style: italic;
}

/* Eyebrow label — "MODERN CROCHET & KNITTING PATTERNS" */
.am-eyebrow {
	font-size: 0.6875rem !important;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--rose);
}

/* Muted body copy (design "Cocoa") */
.am-muted {
	color: var(--wp--preset--color--cocoa);
}
.am-caption {
	font-size: 0.75rem;
	color: var(--wp--preset--color--linen);
	letter-spacing: 0.04em;
}

/* Arrow links — "View all patterns →" with growing underline */
.am-arrow-link a,
a.am-arrow-link {
	position: relative;
	text-decoration: none;
	font-size: 0.875rem;
}
.am-arrow-link a::after,
a.am-arrow-link::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -3px;
	width: 0;
	height: 1px;
	background: currentColor;
	transition: width 0.3s ease;
}
.am-arrow-link a:hover::after,
a.am-arrow-link:hover::after {
	width: 100%;
}

/* =========================================================
   1. Buttons
   ========================================================= */

.wp-block-button__link,
.wc-block-components-button,
.wc-block-cart__submit-button,
.single_add_to_cart_button,
.wc-block-components-checkout-place-order-button {
	padding: 0.9375rem 2rem;
	transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.wp-block-button__link:hover {
	transform: translateY(-2px);
}

/* Outline style — "View all" secondary button */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--rosewood);
	border: 1.5px solid var(--wp--preset--color--rosewood);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--rosewood);
	color: var(--wp--preset--color--cream);
}

/* =========================================================
   2. Header
   ========================================================= */

.am-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(249, 246, 241, 0.9);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--am-border-soft);
}
.admin-bar .am-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}
.am-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--rosewood);
}
.am-header .wp-block-button__link {
	padding: 0.5625rem 1.25rem;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	text-transform: none;
}
.am-header .wc-block-mini-cart__button {
	color: var(--wp--preset--color--espresso);
}

/* =========================================================
   3. Product cards (Product Collection / product templates)
   ========================================================= */

.am-product-grid .wp-block-woocommerce-product-template > li,
.am-product-grid li.wp-block-post {
	text-align: center;
	transition: transform 0.35s ease;
}
.am-product-grid .wp-block-woocommerce-product-template > li:hover,
.am-product-grid li.wp-block-post:hover {
	transform: translateY(-5px);
}

/* Image */
.am-product-grid .wc-block-components-product-image,
.am-product-grid .wp-block-woocommerce-product-image {
	border-radius: var(--am-radius-card);
	overflow: hidden;
	background: var(--wp--preset--color--blush);
	box-shadow: var(--am-shadow-card);
	margin-bottom: 1rem;
}
/* !important: lazy-load plugins (Smush) reserve image space in the photo's
   original ratio via their own !important rules — that made rows jump in
   height as images loaded. Forcing the ratio keeps placeholders and loaded
   photos the exact same size. */
.am-product-grid .wc-block-components-product-image img,
.am-product-grid .wp-block-woocommerce-product-image img {
	aspect-ratio: 4 / 5 !important; /* Instagram portrait — shop grid & related products */
	object-fit: cover;
	width: 100% !important;
	height: auto !important;
	transition: transform 0.6s ease;
}
.am-product-grid li:hover .wc-block-components-product-image img,
.am-product-grid li:hover .wp-block-woocommerce-product-image img {
	transform: scale(1.04);
}

/* Hover swap — second (gallery) image cross-fades in. The extra image is
   injected server-side; products without gallery images just keep the zoom. */
.am-product-grid .wp-block-woocommerce-product-image a,
.am-product-grid .wc-block-components-product-image a {
	position: relative;
	display: block;
}
.am-product-grid .am-hover-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.45s ease;
}
.am-product-grid li:hover .am-hover-image {
	opacity: 1;
}
/* No hover swap on the homepage carousel — shop grid only */
.am-carousel .am-hover-image {
	display: none;
}

/* Breathing room after every row in the shop grid (not the carousel) */
.am-product-grid:not(.am-carousel) ul.wc-block-product-template,
.am-product-grid:not(.am-carousel) .wp-block-woocommerce-product-template {
	row-gap: 2.75rem !important;
}

/* Sale badge — pill, brand colors */
.wc-block-components-product-sale-badge {
	background: var(--wp--preset--color--rosewood);
	color: #fff;
	border: 0;
	border-radius: 999px;
	font-size: 0.5625rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 5px 11px;
}

/* Category eyebrow above the title */
.am-product-grid .wp-block-post-terms,
.am-card-eyebrow {
	font-size: 0.5625rem !important;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--wp--preset--color--linen);
}
.am-product-grid .wp-block-post-terms a,
.am-card-eyebrow a {
	color: inherit;
	text-decoration: none;
}
.am-product-grid .wp-block-post-terms a:hover {
	color: var(--wp--preset--color--rosewood);
}

/* Product name — Playfair italic rose */
.am-product-grid .wp-block-post-title {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 1.25rem;
	font-style: italic;
	font-weight: 400;
	letter-spacing: 0;
	margin: 0.4rem 0 0.3rem;
}
.am-product-grid .wp-block-post-title a {
	color: var(--wp--preset--color--rosewood);
	text-decoration: none;
}
.am-product-grid .wp-block-post-title a:hover {
	color: var(--wp--preset--color--deep-rose);
}

/* Price — light Espresso */
.am-product-grid .wc-block-components-product-price,
.am-product-grid .wp-block-woocommerce-product-price {
	font-size: 0.875rem;
	font-weight: 300;
	color: var(--wp--preset--color--espresso);
}

/* Card add-to-cart — soft blush pill */
.am-product-grid .wp-block-woocommerce-product-button .wp-block-button__link,
.am-product-grid .wc-block-components-product-button__button {
	background: var(--wp--preset--color--blush);
	color: var(--wp--preset--color--deep-rose);
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0.6875rem 1.5rem;
	width: 100%;
	transition: background 0.3s ease, color 0.3s ease;
}
.am-product-grid .wp-block-woocommerce-product-button .wp-block-button__link:hover,
.am-product-grid .wc-block-components-product-button__button:hover {
	background: var(--wp--preset--color--rosewood);
	color: var(--wp--preset--color--cream);
	transform: none;
}
.am-product-grid .wp-block-woocommerce-product-button {
	margin-top: 0.75rem;
}

/* =========================================================
   4. Shop archive — filter bar, chips, sorting
   ========================================================= */

.am-filter-bar {
	border-top: 1px solid var(--am-border-soft);
	border-bottom: 1px solid var(--am-border-soft);
	padding-top: 1.125rem;
	padding-bottom: 1.125rem;
}

/* Category list blocks inside a chips row: dissolve the inner <ul> so every
   chip (the "All" chip, each category, the search icon) flows in one line
   with uniform gaps — on desktop and mobile alike. */
.am-chips ul.wc-block-product-categories-list,
.am-chips ul {
	display: contents;
}
.am-chips li {
	margin: 0;
	list-style: none;
	display: block;
}
.am-chips .wc-block-product-categories,
.am-chips .wp-block-categories {
	display: contents;
}
.am-chips li a {
	display: inline-block;
	padding: 9px 18px;
	border-radius: 999px;
	border: 1px solid var(--am-border);
	color: var(--wp--preset--color--espresso);
	font-size: 0.75rem;
	text-decoration: none;
	transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.am-chips li a:hover {
	border-color: var(--wp--preset--color--rosewood);
	color: var(--wp--preset--color--rosewood);
}
.am-chips li.current-cat > a,
.am-chips li.current-menu-item > a,
.am-chips a.is-current {
	background: var(--wp--preset--color--rosewood);
	border-color: var(--wp--preset--color--rosewood);
	color: var(--wp--preset--color--cream);
}
/* Standalone "All patterns" / "All posts" chip */
a.am-chip {
	display: inline-block;
	padding: 9px 18px;
	border-radius: 999px;
	border: 1px solid var(--am-border);
	color: var(--wp--preset--color--espresso);
	font-size: 0.75rem;
	text-decoration: none;
	transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
a.am-chip:hover {
	border-color: var(--wp--preset--color--rosewood);
	color: var(--wp--preset--color--rosewood);
}
a.am-chip.is-current {
	background: var(--wp--preset--color--rosewood);
	border-color: var(--wp--preset--color--rosewood);
	color: var(--wp--preset--color--cream);
}
.am-chips .wc-block-product-categories-list-item-count {
	color: var(--wp--preset--color--linen);
	font-size: 0.6875rem;
	margin-left: 4px;
}

/* Results count + sorting */
.woocommerce-result-count,
.wp-block-woocommerce-product-results-count {
	font-size: 0.75rem;
	color: var(--wp--preset--color--linen);
	margin: 0;
}
.wp-block-woocommerce-catalog-sorting select,
.woocommerce-ordering select {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid var(--am-border);
	border-radius: 999px;
	background-color: transparent;
	padding: 9px 36px 9px 16px;
	font-size: 0.75rem;
	font-family: inherit;
	color: var(--wp--preset--color--espresso);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%238A7B74'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	cursor: pointer;
}

/* Pagination — pill numbers */
.wp-block-query-pagination {
	font-size: 0.8125rem;
}
.wp-block-query-pagination .wp-block-query-pagination-numbers .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 8px;
	border-radius: 999px;
	border: 1px solid var(--am-border);
	color: var(--wp--preset--color--espresso);
	text-decoration: none;
	margin: 0 3px;
	transition: border-color 0.25s ease, color 0.25s ease;
}
.wp-block-query-pagination .page-numbers.current {
	background: var(--wp--preset--color--rosewood);
	border-color: var(--wp--preset--color--rosewood);
	color: var(--wp--preset--color--cream);
}
.wp-block-query-pagination .page-numbers:hover:not(.current) {
	border-color: var(--wp--preset--color--rosewood);
	color: var(--wp--preset--color--rosewood);
}
.wp-block-query-pagination-next,
.wp-block-query-pagination-previous {
	color: var(--wp--preset--color--rosewood);
	text-decoration: none;
	font-weight: 500;
}

/* =========================================================
   5. Single product
   ========================================================= */

/* Sticky gallery column */
.am-sticky-gallery {
	position: sticky;
	top: 110px;
	align-self: flex-start;
}

/* Gallery */
.am-sticky-gallery .wp-block-woocommerce-product-image-gallery,
.wp-block-woocommerce-product-image-gallery {
	border-radius: 16px;
	overflow: hidden;
}
.wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery__image,
.wp-block-woocommerce-product-image-gallery img {
	border-radius: 16px;
}
.wp-block-woocommerce-product-image-gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-top: 16px;
}
.wp-block-woocommerce-product-image-gallery .flex-control-thumbs li {
	width: auto !important;
	float: none !important;
}
.wp-block-woocommerce-product-image-gallery .flex-control-thumbs img {
	border-radius: 10px;
	border: 2px solid transparent;
	opacity: 1;
	transition: border-color 0.25s ease, transform 0.25s ease;
}
.wp-block-woocommerce-product-image-gallery .flex-control-thumbs img.flex-active {
	border-color: var(--wp--preset--color--rosewood);
}
.wp-block-woocommerce-product-image-gallery .flex-control-thumbs img:hover {
	transform: translateY(-3px);
}

/* Summary column */
.am-product-summary .wp-block-post-title {
	font-size: clamp(2.125rem, 4vw, 2.875rem);
	letter-spacing: -0.02em;
	line-height: 1.05;
	margin-bottom: 0.5rem;
}

/* Category eyebrow above title */
.am-product-summary .am-eyebrow-terms {
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--rose);
}
.am-product-summary .am-eyebrow-terms a {
	color: inherit;
	text-decoration: none;
}

/* Rating stars in Rose */
.am-product-summary .wc-block-components-product-rating .wc-block-components-product-rating__stars span::before,
.am-product-summary .star-rating span::before {
	color: var(--wp--preset--color--rose);
}
.am-product-summary .wp-block-woocommerce-product-rating {
	font-size: 0.9375rem;
	color: var(--wp--preset--color--linen);
}

/* Big light price */
.am-product-summary .wp-block-woocommerce-product-price {
	font-size: 1.875rem;
	font-weight: 300;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--espresso);
}

/* Short description */
.am-product-summary .wp-block-post-excerpt__excerpt {
	font-size: 0.9375rem;
	line-height: 1.8;
	color: var(--wp--preset--color--cocoa);
	max-width: 480px;
}

/* ---- Add-to-cart form: variations ("Language") + button ---- */
.am-product-summary .wp-block-woocommerce-add-to-cart-form form.cart {
	max-width: 480px;
}
.am-product-summary table.variations {
	border: 0;
	margin: 0 0 0.5rem;
}
.am-product-summary table.variations th,
.am-product-summary table.variations td {
	border: 0;
	padding: 0 0 12px;
	display: block;
	text-align: left;
}
.am-product-summary table.variations tr {
	display: block;
	margin-bottom: 1rem;
}
.am-product-summary table.variations label {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--espresso);
	margin-bottom: 2px;
	display: inline-block;
}
.am-product-summary table.variations select {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	max-width: 300px;
	border: 1px solid var(--am-border);
	border-radius: var(--am-radius-input);
	background-color: var(--wp--preset--color--cream);
	padding: 11px 44px 11px 18px;
	font-size: 0.8125rem;
	font-family: inherit;
	color: var(--wp--preset--color--espresso);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23AE5B67'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 18px center;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.am-product-summary table.variations select:hover {
	border-color: var(--wp--preset--color--rosewood);
}
.am-product-summary table.variations select:focus {
	outline: none;
	border-color: var(--wp--preset--color--rosewood);
	background-color: var(--wp--preset--color--blush);
	box-shadow: 0 0 0 3px rgba(201, 120, 128, 0.18);
}
.am-product-summary .reset_variations {
	font-size: 0.75rem;
	color: var(--wp--preset--color--linen);
}
.am-product-summary .woocommerce-variation-description p {
	font-size: 0.875rem;
	color: var(--wp--preset--color--cocoa);
}
.am-product-summary .woocommerce-variation-price .price {
	font-size: 1.25rem;
	font-weight: 300;
	color: var(--wp--preset--color--espresso);
}

/* Quantity + submit */
.am-product-summary form.cart .quantity .qty {
	border: 1px solid var(--am-border);
	border-radius: var(--am-radius-input);
	padding: 11px 8px;
	width: 74px;
	text-align: center;
	font-family: inherit;
	font-size: 0.875rem;
	background: var(--wp--preset--color--cream);
}
.am-product-summary .single_add_to_cart_button {
	background: var(--wp--preset--color--rosewood);
	color: var(--wp--preset--color--cream);
	border: 0;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 1.125rem 2.5rem;
	width: 100%;
	cursor: pointer;
	box-shadow: var(--am-shadow-cta);
	transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.am-product-summary .single_add_to_cart_button:hover {
	background: var(--wp--preset--color--deep-rose);
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(174, 91, 103, 0.42);
}
.am-product-summary .woocommerce-variation-add-to-cart {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
}
.am-product-summary .woocommerce-variation-add-to-cart .single_add_to_cart_button {
	flex: 1;
	min-width: 220px;
}

/* =========================================================
   6. Product specifications block (artsymaki/product-specs)
   ========================================================= */

.wp-block-artsymaki-product-specs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
	gap: 1px;
	background: var(--am-border);
	border: 1px solid var(--am-border);
	border-radius: var(--am-radius-card);
	overflow: hidden;
}
.wp-block-artsymaki-product-specs .am-spec {
	background: var(--wp--preset--color--cream);
	padding: 22px 24px;
}
.wp-block-artsymaki-product-specs .am-spec__label {
	font-size: 0.625rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--linen);
	margin: 0 0 8px;
}
.wp-block-artsymaki-product-specs .am-spec__value {
	font-size: 0.9375rem;
	color: var(--wp--preset--color--espresso);
	margin: 0;
	line-height: 1.5;
}
.wp-block-artsymaki-product-specs .am-spec__note {
	font-size: 0.75rem;
	color: var(--wp--preset--color--linen);
	margin: 4px 0 0;
}

/* "About this pattern" details section (artsymaki/product-description) */
.am-product-details {
	border-top: 2px solid var(--wp--preset--color--petal);
	padding-top: 2rem;
}
.am-product-details__heading {
	margin: 0 0 1.25rem;
}
.am-product-details__content p,
.am-product-details .wp-block-post-content p {
	font-size: 1rem;
	line-height: 1.85;
	color: var(--wp--preset--color--cocoa);
	margin-bottom: 1.25rem;
}
.am-product-details__content h2,
.am-product-details__content h3,
.am-product-details .wp-block-post-content h2,
.am-product-details .wp-block-post-content h3 {
	font-family: var(--wp--preset--font-family--playfair);
	font-weight: 400;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}
.am-product-details__content h2 {
	font-size: 1.375rem;
}
.am-product-details__content h3,
.am-product-details__content h4,
.am-product-details__content h5,
.am-product-details__content h6 {
	font-size: 1.1875rem;
}
.am-product-details__content ul {
	margin: 0 0 1.25rem 1.25rem;
	color: var(--wp--preset--color--cocoa);
}

/* =========================================================
   7. Blog — cards, featured post, single post prose
   ========================================================= */

.am-post-grid .wp-block-post {
	transition: transform 0.35s ease;
}
.am-post-grid .wp-block-post:hover {
	transform: translateY(-5px);
}
.am-post-grid .wp-block-post-featured-image {
	border-radius: var(--am-radius-card);
	overflow: hidden;
	background: var(--wp--preset--color--blush);
	margin-bottom: 1.25rem;
}
.am-post-grid .wp-block-post-featured-image img {
	aspect-ratio: 3 / 2 !important;
	object-fit: cover;
	width: 100% !important;
	height: auto !important;
	transition: transform 0.6s ease;
}
.am-post-grid .wp-block-post:hover .wp-block-post-featured-image img {
	transform: scale(1.04);
}
.am-post-grid .wp-block-post-terms {
	font-size: 0.625rem;
	text-transform: uppercase;
	letter-spacing: 0.13em;
	color: var(--wp--preset--color--rose);
}
.am-post-grid .wp-block-post-terms a {
	color: inherit;
	text-decoration: none;
}
.am-post-grid .wp-block-post-title {
	font-size: 1.4375rem;
	line-height: 1.25;
	letter-spacing: -0.01em;
	margin: 0.6rem 0;
}
.am-post-grid .wp-block-post-excerpt__excerpt {
	font-size: 0.875rem;
	line-height: 1.7;
	color: var(--wp--preset--color--cocoa);
}
.am-post-grid .wp-block-post-date {
	font-size: 0.75rem;
	color: var(--wp--preset--color--linen);
}
.am-post-grid .wp-block-read-more {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--rosewood);
	text-decoration: none;
	position: relative;
}
.am-post-grid .wp-block-read-more::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -3px;
	width: 0;
	height: 1px;
	background: currentColor;
	transition: width 0.3s ease;
}
.am-post-grid .wp-block-read-more:hover::after {
	width: 100%;
}

/* Featured post card (blog home) */
.am-featured-post {
	background: var(--wp--preset--color--blush);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 6px 26px rgba(46, 33, 32, 0.08);
}
.am-featured-post .wp-block-post-featured-image,
.am-featured-post .wp-block-post-featured-image img {
	border-radius: 0;
	height: 100%;
	object-fit: cover;
	margin: 0;
}

/* Single post prose */
.am-prose .wp-block-post-content > p {
	font-size: 1.0625rem;
	line-height: 1.85;
	color: #4A3E3A;
}
.am-prose .wp-block-post-content h2 {
	font-size: 1.75rem;
	margin: 2.75rem 0 1.125rem;
	letter-spacing: -0.015em;
}
.am-prose .wp-block-post-content h3 {
	font-size: 1.3125rem;
	margin: 2rem 0 0.75rem;
}
.am-prose .wp-block-post-content ul:not([class]) {
	list-style: none;
	padding-left: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.am-prose .wp-block-post-content ul:not([class]) > li {
	position: relative;
	padding-left: 26px;
	font-size: 1.0625rem;
	line-height: 1.7;
	color: #4A3E3A;
}
.am-prose .wp-block-post-content ul:not([class]) > li::before {
	content: "✦";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--wp--preset--color--rosewood);
	font-size: 0.875rem;
}
.am-prose .wp-block-post-content a {
	text-underline-offset: 3px;
}
.am-prose .wp-block-post-content strong {
	color: var(--wp--preset--color--espresso);
	font-weight: 600;
}

/* Pull quote inside posts */
.am-prose .wp-block-quote,
.wp-block-quote.is-style-am-pull {
	border-left: 3px solid var(--wp--preset--color--rosewood);
	background: var(--wp--preset--color--blush);
	border-radius: 0 12px 12px 0;
	padding: 28px 32px;
	margin: 2.75rem 0;
}
.am-prose .wp-block-quote p {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.5;
	color: var(--wp--preset--color--espresso);
	margin: 0;
}
.am-prose .wp-block-quote cite {
	font-family: var(--wp--preset--font-family--dm-sans);
	font-size: 0.8125rem;
	font-style: normal;
	color: var(--wp--preset--color--linen);
}

/* Tag chips */
.am-tag-chips a {
	display: inline-block;
	padding: 7px 15px;
	border-radius: 999px;
	background: var(--wp--preset--color--blush);
	color: var(--wp--preset--color--deep-rose);
	font-size: 0.75rem;
	text-decoration: none;
	transition: background 0.25s ease, color 0.25s ease;
}
.am-tag-chips a:hover {
	background: var(--wp--preset--color--rosewood);
	color: var(--wp--preset--color--cream);
}
.am-tag-chips .wp-block-post-terms__separator {
	display: none;
}
.am-tag-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Share icons — circles */
.am-share .wp-block-social-links .wp-social-link {
	border: 1px solid var(--am-border);
	border-radius: 50%;
	transition: background 0.25s ease, border-color 0.25s ease;
}
.am-share .wp-block-social-links .wp-social-link:hover {
	background: var(--wp--preset--color--rosewood) !important;
	border-color: var(--wp--preset--color--rosewood);
}
.am-share .wp-block-social-links .wp-social-link svg {
	color: var(--wp--preset--color--cocoa);
}
.am-share .wp-block-social-links .wp-social-link:hover svg {
	color: var(--wp--preset--color--cream);
}

/* Author avatar circles */
.am-author .wp-block-avatar img {
	border-radius: 50%;
}
.am-author .wp-block-post-author-name {
	font-size: 0.875rem;
	font-weight: 500;
}
.am-author .wp-block-post-author-name a {
	color: var(--wp--preset--color--espresso);
	text-decoration: none;
}
.am-author .wp-block-post-date {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--linen);
}

/* =========================================================
   8. Newsletter band (pattern) — styles whatever form lands inside
   ========================================================= */

.am-newsletter {
	border-radius: var(--am-radius-band);
	position: relative;
	overflow: hidden;
}
.am-newsletter::before {
	content: "";
	position: absolute;
	top: -60px;
	right: -40px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.10);
	pointer-events: none;
}
.am-newsletter > * {
	position: relative;
	z-index: 1;
}
.am-newsletter h2,
.am-newsletter h3 {
	color: var(--wp--preset--color--cream);
	font-style: italic;
}
.am-newsletter p {
	color: #F2D8D4;
}
/* Any newsletter plugin form dropped into the slot inherits this: */
.am-newsletter form {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
}
.am-newsletter input[type="email"],
.am-newsletter input[type="text"] {
	flex: 1;
	min-width: 200px;
	background: var(--wp--preset--color--cream);
	border: 0;
	border-radius: 999px;
	padding: 15px 24px;
	font-size: 0.875rem;
	font-family: inherit;
	color: var(--wp--preset--color--espresso);
}
.am-newsletter input[type="email"]:focus,
.am-newsletter input[type="text"]:focus {
	outline: 2px solid var(--wp--preset--color--espresso);
	outline-offset: 2px;
}
.am-newsletter input[type="submit"],
.am-newsletter button[type="submit"],
.am-newsletter .wp-block-button__link {
	background: var(--wp--preset--color--espresso);
	color: var(--wp--preset--color--cream);
	border: 0;
	border-radius: 999px;
	padding: 15px 30px;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap;
	transition: transform 0.2s ease, background 0.3s ease;
}
.am-newsletter input[type="submit"]:hover,
.am-newsletter button[type="submit"]:hover,
.am-newsletter .wp-block-button__link:hover {
	background: #1E1514;
	transform: translateY(-2px);
}
.am-newsletter-placeholder {
	border: 1.5px dashed rgba(249, 246, 241, 0.5);
	border-radius: 12px;
	padding: 18px 22px;
	color: #F2D8D4 !important;
	font-size: 0.8125rem !important;
}

/* =========================================================
   9. Footer
   ========================================================= */

.am-footer {
	background: var(--wp--preset--color--espresso);
	color: #C8BDB6;
}
.am-footer .wp-block-site-title a {
	color: var(--wp--preset--color--petal);
}
.am-footer p {
	color: #C8BDB6;
}
.am-footer .am-footer-heading {
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: #D9A9A3;
	font-weight: 400;
}
.am-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.am-footer ul a {
	color: #C0B5AE;
	font-size: 0.8125rem;
	text-decoration: none;
	transition: color 0.2s ease;
}
.am-footer ul a:hover {
	color: var(--wp--preset--color--petal);
}
.am-footer .am-footer-bottom {
	border-top: 1px solid var(--am-border-dark);
	font-size: 0.75rem;
	color: #96887F;
}
.am-footer .am-footer-bottom p {
	color: #96887F;
	font-size: 0.75rem;
}
.am-footer .am-footer-legal a {
	color: #B3A69E;
	font-size: 0.75rem;
	text-decoration: none;
	transition: color 0.2s ease;
}
.am-footer .am-footer-legal a:hover {
	color: var(--wp--preset--color--petal);
}

/* =========================================================
   10. Misc bands & imagery
   ========================================================= */

/* Trust strip */
.am-trust-strip {
	border-top: 1px solid var(--am-border-soft);
	border-bottom: 1px solid var(--am-border-soft);
	background: #F7F2EC;
}
.am-trust-strip p {
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--cocoa);
	margin: 0;
}
.am-trust-dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--wp--preset--color--petal);
	align-self: center;
}

/* Hero / About arch imagery */
.am-arch-top,
.am-arch-top img {
	border-radius: 200px 200px 12px 12px;
	overflow: hidden;
}
.am-arch-bottom,
.am-arch-bottom img {
	border-radius: 12px 12px 200px 200px;
	overflow: hidden;
}
.am-arch-top {
	box-shadow: 0 20px 50px rgba(46, 33, 32, 0.14);
}
.am-arch-bottom {
	box-shadow: 0 16px 40px rgba(46, 33, 32, 0.12);
}

/* Category band cards */
.am-cat-card {
	border-radius: var(--am-radius-card);
	overflow: hidden;
}
.am-cat-card .wp-block-cover__inner-container a {
	color: #fff;
	text-decoration: none;
	font-style: italic;
}

/* Blush section band */
.am-band-blush {
	background: var(--wp--preset--color--blush);
}

/* Help strip */
.am-help-strip {
	border-radius: var(--am-radius-band);
}

/* Breadcrumbs */
.woocommerce-breadcrumb,
.wp-block-woocommerce-breadcrumbs {
	font-size: 0.75rem;
	color: var(--wp--preset--color--linen);
	letter-spacing: 0.04em;
}
.woocommerce-breadcrumb a,
.wp-block-woocommerce-breadcrumbs a {
	color: var(--wp--preset--color--linen);
	text-decoration: none;
}
.woocommerce-breadcrumb a:hover,
.wp-block-woocommerce-breadcrumbs a:hover {
	color: var(--wp--preset--color--rosewood);
}

/* Store notices */
.wc-block-store-notices,
.woocommerce-message,
.woocommerce-info {
	border-radius: var(--am-radius-input);
	font-size: 0.875rem;
}

/* WooCommerce cart & checkout inherit the brand automatically via
   theme.json; small polish: */
.wc-block-components-form .wc-block-components-text-input input,
.wc-block-components-text-input input {
	border-radius: var(--am-radius-input);
	border-color: var(--am-border);
}

/* ---- Classic (shortcode) cart & checkout brand polish ---- */
.woocommerce table.shop_table {
	border: 1px solid var(--am-border);
	border-radius: var(--am-radius-card);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}
.woocommerce table.shop_table th {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--linen);
	background: #F7F2EC;
	border: 0;
	padding: 14px 16px;
}
.woocommerce table.shop_table td {
	border: 0;
	border-top: 1px solid var(--am-border-soft);
	padding: 16px;
	vertical-align: middle;
}
.woocommerce table.shop_table td.product-name a {
	font-family: var(--wp--preset--font-family--playfair);
	font-style: italic;
	font-size: 1.125rem;
	color: var(--wp--preset--color--rosewood);
	text-decoration: none;
}
.woocommerce-cart table.cart img {
	width: 72px;
	border-radius: 10px;
}
.woocommerce a.remove {
	color: var(--wp--preset--color--linen) !important;
	font-weight: 400;
}
.woocommerce a.remove:hover {
	color: var(--wp--preset--color--deep-rose) !important;
	background: transparent;
}
/* Classic buttons (.button) → brand pills */
.woocommerce .button:not(.wp-element-button),
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	background: var(--wp--preset--color--rosewood);
	color: var(--wp--preset--color--cream);
	border: 0;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.875rem 1.75rem;
	transition: background 0.3s ease, transform 0.2s ease;
}
.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: var(--wp--preset--color--deep-rose);
	color: var(--wp--preset--color--cream);
	transform: translateY(-2px);
}
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled] {
	background: var(--wp--preset--color--petal);
	color: var(--wp--preset--color--deep-rose);
	border-radius: 999px;
	padding: 0.875rem 1.75rem;
}
/* Classic form fields (checkout, coupon, login) */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-cart .coupon .input-text,
.woocommerce .select2-container--default .select2-selection--single {
	border: 1px solid var(--am-border);
	border-radius: var(--am-radius-input);
	background: #FBF8F4;
	padding: 12px 16px;
	font-family: inherit;
	font-size: 0.875rem;
	color: var(--wp--preset--color--espresso);
	height: auto;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--rosewood);
	background: var(--wp--preset--color--cream);
}
.woocommerce form .form-row label {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--cocoa);
}
.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 1.5;
	color: var(--wp--preset--color--espresso);
}
.woocommerce #payment {
	background: var(--wp--preset--color--blush);
	border-radius: var(--am-radius-card);
}
.woocommerce #payment div.payment_box {
	background: var(--wp--preset--color--cream);
	border-radius: 10px;
}
.woocommerce #payment div.payment_box::before {
	display: none;
}
.woocommerce-info,
.woocommerce-message {
	border-top-color: var(--wp--preset--color--rosewood);
	background: var(--wp--preset--color--blush);
	color: var(--wp--preset--color--espresso);
}
.woocommerce-info::before,
.woocommerce-message::before {
	color: var(--wp--preset--color--rosewood);
}

/* =========================================================
   11. Utilities used by templates & patterns
   ========================================================= */

.am-center {
	text-align: center;
}
.am-center .wp-block-woocommerce-breadcrumbs,
.am-center .woocommerce-breadcrumb {
	text-align: center;
}

/* Core Categories block used as chip list (the block itself is the <ul>) */
ul.am-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.am-chips-center {
	justify-content: center;
}

/* Blog teaser card on the blush band */
.am-blog-card {
	border-radius: var(--am-radius-card);
	overflow: hidden;
	box-shadow: var(--am-shadow-card);
	height: 100%;
}
.am-blog-card .wp-block-post-featured-image {
	margin: 0;
	border-radius: 0;
}
.am-blog-card .wp-block-post-featured-image img {
	border-radius: 0;
}

/* Author name in the single-post bio */
.am-author-name {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 1.5rem;
	font-style: italic;
}
.am-author-name a {
	color: var(--wp--preset--color--espresso);
	text-decoration: none;
}

/* Search block pill */
.wp-block-search .wp-block-search__input {
	border: 1px solid var(--am-border);
	border-radius: 999px;
	padding: 12px 22px;
	font-family: inherit;
	font-size: 0.875rem;
	background: var(--wp--preset--color--cream);
}
.wp-block-search .wp-block-search__button {
	border-radius: 999px;
	background: var(--wp--preset--color--rosewood);
	color: var(--wp--preset--color--cream);
	border: 0;
	font-size: 0.8125rem;
}

/* =========================================================
   12. Featured patterns carousel (.am-carousel)
   ========================================================= */

.am-carousel {
	position: relative;
}
/* Kill any stray height/margins the Product Collection wrapper brings along
   (this was the big empty gap under the carousel). */
.am-carousel .wp-block-woocommerce-product-collection {
	display: block;
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0 !important;
	height: auto !important;
}
.am-carousel .wp-block-query-pagination,
.am-carousel nav.wc-block-product-template__pagination {
	display: none !important;
}
/* Square (1:1) photos on the homepage carousel — !important beats the
   Smush lazy-load placeholder ratio (the cause of the gap under the row) */
.am-carousel .wp-block-woocommerce-product-image img,
.am-carousel .wc-block-components-product-image img {
	aspect-ratio: 1 / 1 !important;
}
.am-carousel ul {
	display: flex !important;
	flex-wrap: nowrap !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	gap: 1.625rem;
	margin: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	padding-bottom: 8px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.am-carousel ul::-webkit-scrollbar {
	display: none;
}
.am-carousel ul > li {
	flex: 0 0 calc((100% - 3.25rem) / 3) !important;
	width: auto !important;
	max-width: none !important;
	scroll-snap-align: start;
}
@media (max-width: 781px) {
	.am-carousel ul > li {
		flex-basis: 78% !important;
	}
}
.am-carousel-arrow {
	position: absolute;
	top: 38%;
	transform: translateY(-50%);
	z-index: 10;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--wp--preset--color--cream);
	border: 1px solid var(--wp--preset--color--petal);
	box-shadow: 0 6px 20px rgba(46, 33, 32, 0.14);
	color: var(--wp--preset--color--rosewood);
	font-size: 20px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}
.am-carousel-arrow--prev {
	left: -22px;
}
.am-carousel-arrow--next {
	right: -22px;
}
.am-carousel-arrow:hover {
	background: var(--wp--preset--color--rosewood);
	color: var(--wp--preset--color--cream);
	border-color: var(--wp--preset--color--rosewood);
}
.am-carousel-arrow[disabled] {
	opacity: 0.3;
	pointer-events: none;
}
@media (max-width: 781px) {
	.am-carousel-arrow--prev {
		left: 4px;
	}
	.am-carousel-arrow--next {
		right: 4px;
	}
}

/* =========================================================
   13. Category band — expandable grid, fully clickable cards
   ========================================================= */

.am-cat-band .am-cat-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}
@media (max-width: 781px) {
	.am-cat-band .am-cat-grid {
		grid-template-columns: 1fr;
	}
}
.am-cat-band:not(.is-expanded) .am-cat-extra {
	display: none;
}
.am-cat-card {
	position: relative;
	aspect-ratio: 16 / 10;
	border-radius: var(--am-radius-card);
	overflow: hidden;
	background-color: var(--wp--preset--color--blush);
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: flex-end;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.am-cat-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--am-shadow-card-hover);
}
/* Fade so the name stays readable over any photo */
.am-cat-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(46, 33, 32, 0.55), rgba(236, 200, 194, 0.25) 60%, rgba(236, 200, 194, 0.15));
	pointer-events: none;
}
.am-cat-card__name {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 18px 20px;
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 1.375rem;
	font-style: italic;
	font-weight: 400;
	line-height: 1.2;
}
.am-cat-card__name a {
	color: #fff;
	text-decoration: none;
}
/* Stretch the name link over the whole card */
.am-cat-card__name a::after,
.am-cat-card h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}
.am-cat-band .am-cat-actions {
	display: flex;
	justify-content: center;
	margin-top: 2.75rem;
}

/* =========================================================
   14. Single product layout hardening
   =========================================================
   WooCommerce wraps single-product block templates in div.product and its
   classic layout CSS floats the gallery/summary — neutralise that so the
   Columns block controls the layout. */

div.product .wp-block-woocommerce-product-image-gallery,
div.product .woocommerce-product-gallery,
.wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
}
div.product .am-product-summary,
div.product div.summary {
	float: none !important;
	width: auto !important;
}
/* Enforce the two-column product layout even if the core Columns CSS is
   overridden by plugin styles. */
.am-product-cols {
	display: flex !important;
	flex-wrap: wrap;
	gap: 3.5rem;
	align-items: flex-start;
	width: 100%;
}
.am-product-cols > .am-sticky-gallery {
	flex: 0 1 400px;
	min-width: 300px;
	max-width: 420px;
}
.am-product-cols > .am-product-summary {
	flex: 1 1 480px;
	min-width: 320px;
}
/* WooCommerce hides the gallery (inline opacity:0) until its slider script
   initialises — if that script is blocked or fails, the photos stay
   invisible. Force them visible; the slider still works when it loads. */
.woocommerce-product-gallery {
	opacity: 1 !important;
}
/* Belt & braces against the classic-hook duplicate gallery: the classic one
   is rendered as a direct child of div.product; ours lives inside the
   gallery block wrapper, so it is unaffected. */
div.product > .woocommerce-product-gallery {
	display: none !important;
}

/* Gallery slider prev/next arrows — brand circles over the main photo */
.woocommerce-product-gallery .flex-direction-nav {
	list-style: none;
	margin: 0;
	padding: 0;
}
.woocommerce-product-gallery .flex-direction-nav a {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 20;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(249, 246, 241, 0.92);
	border: 1px solid var(--wp--preset--color--petal);
	box-shadow: 0 6px 20px rgba(46, 33, 32, 0.16);
	color: var(--wp--preset--color--rosewood);
	font-size: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	opacity: 0;
	transition: opacity 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.woocommerce-product-gallery:hover .flex-direction-nav a {
	opacity: 1;
}
.woocommerce-product-gallery .flex-direction-nav a::before {
	font-size: 18px;
	line-height: 1;
}
.woocommerce-product-gallery .flex-direction-nav .flex-prev {
	left: 14px;
}
.woocommerce-product-gallery .flex-direction-nav .flex-prev::before {
	content: "←";
}
.woocommerce-product-gallery .flex-direction-nav .flex-next {
	right: 14px;
}
.woocommerce-product-gallery .flex-direction-nav .flex-next::before {
	content: "→";
}
.woocommerce-product-gallery .flex-direction-nav a:hover {
	background: var(--wp--preset--color--rosewood);
	color: var(--wp--preset--color--cream);
	border-color: var(--wp--preset--color--rosewood);
}
.woocommerce-product-gallery .flex-direction-nav .flex-disabled {
	opacity: 0 !important;
	pointer-events: none;
}

/* Hide WooCommerce's built-in "click to enlarge" magnifying-glass icon.
   No admin setting for this — it's added by wc-single-product.js whenever
   the lightbox is enabled. Clicking the photo still opens the lightbox;
   only the little icon overlay is removed. */
.woocommerce-product-gallery__trigger,
.woocommerce-product-gallery__icon {
	display: none !important;
}
.wp-block-woocommerce-product-image-gallery img {
	width: 100%;
	height: auto;
}
/* If the gallery slider script has not initialised (no .flex-viewport
   wrapper), show only the first image instead of a giant stack. */
.woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:not(:first-child) {
	display: none;
}

/* =========================================================
   15. FAQ accordion (core Details block)
   ========================================================= */

.wp-block-details {
	border-bottom: 1px solid var(--am-border-soft);
	padding: 0;
	margin: 0;
}
.wp-block-details summary {
	list-style: none;
	cursor: pointer;
	padding: 22px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 22px;
	font-size: 1.0625rem;
	font-weight: 500;
	color: var(--wp--preset--color--espresso);
	transition: color 0.2s ease;
}
.wp-block-details summary::-webkit-details-marker {
	display: none;
}
.wp-block-details summary:hover {
	color: var(--wp--preset--color--rosewood);
}
.wp-block-details summary::after {
	content: "+";
	color: var(--wp--preset--color--rosewood);
	font-size: 22px;
	line-height: 1;
	flex-shrink: 0;
	transition: transform 0.3s ease;
}
.wp-block-details[open] summary::after {
	transform: rotate(45deg);
}
.wp-block-details > :not(summary) {
	padding-bottom: 22px;
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.8;
	color: var(--wp--preset--color--cocoa);
}
.am-faq-group .wp-block-details:last-child {
	border-bottom: none;
}

/* =========================================================
   16. Cards & forms (Contact / About pages)
   ========================================================= */

.am-card-blush {
	background: var(--wp--preset--color--blush);
	border-radius: 16px;
}
.am-card-line {
	background: var(--wp--preset--color--cream);
	border: 1px solid var(--am-border);
	border-radius: 16px;
}
.am-form-card {
	background: var(--wp--preset--color--cream);
	border: 1px solid var(--am-border);
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(46, 33, 32, 0.05);
}
/* Any form plugin dropped into the card (WPForms, CF7…) inherits the brand */
.am-form-card label {
	font-size: 0.75rem !important;
	font-weight: 500 !important;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--cocoa) !important;
	margin-bottom: 8px;
}
.am-form-card input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.am-form-card textarea,
.am-form-card select {
	width: 100%;
	padding: 13px 16px !important;
	border: 1px solid var(--am-border) !important;
	border-radius: var(--am-radius-input) !important;
	font-size: 0.875rem !important;
	font-family: inherit !important;
	background: #FBF8F4 !important;
	color: var(--wp--preset--color--espresso) !important;
	transition: border-color 0.2s ease, background 0.2s ease;
}
.am-form-card input:focus,
.am-form-card textarea:focus {
	outline: none !important;
	border-color: var(--wp--preset--color--rosewood) !important;
	background: var(--wp--preset--color--cream) !important;
}
.am-form-card input[type="submit"],
.am-form-card button[type="submit"] {
	width: 100%;
	background: var(--wp--preset--color--rosewood) !important;
	color: var(--wp--preset--color--cream) !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 16px !important;
	font-size: 0.8125rem !important;
	font-weight: 500 !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-family: inherit !important;
	cursor: pointer;
	box-shadow: var(--am-shadow-cta);
	transition: background 0.3s ease, transform 0.2s ease;
}
.am-form-card input[type="submit"]:hover,
.am-form-card button[type="submit"]:hover {
	background: var(--wp--preset--color--deep-rose) !important;
	transform: translateY(-2px);
}

/* About page values strip (1px sand grid like the specs table) */
.am-values {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--am-border);
	border: 1px solid var(--am-border);
	border-radius: 16px;
	overflow: hidden;
}
@media (max-width: 781px) {
	.am-values {
		grid-template-columns: 1fr;
	}
}
.am-values > div {
	background: var(--wp--preset--color--cream);
	padding: 40px 36px;
}
.am-values .am-value-name {
	font-family: var(--wp--preset--font-family--playfair);
	font-size: 1.875rem;
	font-style: italic;
	color: var(--wp--preset--color--rosewood);
	margin: 0 0 0.875rem;
}

/* Header / filter-bar expandable search icon */
.am-search-icon .wp-block-search__button {
	background: transparent;
	color: var(--wp--preset--color--espresso);
	border: 0;
	padding: 6px;
	box-shadow: none;
}
.am-search-icon .wp-block-search__button:hover {
	color: var(--wp--preset--color--rosewood);
	transform: none;
}
.am-search-icon .wp-block-search__input {
	border: 1px solid var(--am-border);
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 0.8125rem;
	background: var(--wp--preset--color--cream);
}

/* =========================================================
   17. Responsive
   ========================================================= */

@media (max-width: 781px) {
	.am-sticky-gallery {
		position: static;
	}
	.am-newsletter {
		padding-left: 28px !important;
		padding-right: 28px !important;
	}

	/* --- Mobile header: logo left; search, account, burger right on row 1;
	       cart + Shop Patterns right on row 2. backdrop-filter must go —
	       it traps the fixed fullscreen menu overlay inside the header. --- */
	.am-header {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background: rgba(249, 246, 241, 0.98);
	}
	.am-header > .wp-block-group {
		flex-wrap: wrap;
		row-gap: 0.875rem;
		align-items: center;
	}
	.am-header > .wp-block-group > .wp-block-group {
		display: contents;
	}
	.am-header .wp-block-site-title {
		order: 1;
		margin-right: auto;
	}
	.am-header .wp-block-search {
		order: 2;
	}
	.am-header .wp-block-woocommerce-customer-account,
	.am-header .wc-block-customer-account {
		order: 3;
	}
	.am-header .wp-block-navigation {
		order: 4;
		font-size: 0.875rem;
	}
	.am-header > .wp-block-group::after {
		content: "";
		order: 5;
		flex-basis: 100%;
		height: 0;
	}
	.am-header .wp-block-woocommerce-mini-cart,
	.am-header .wc-block-mini-cart {
		order: 6;
		margin-left: auto;
	}
	.am-header .wp-block-buttons {
		order: 7;
	}

	/* Open burger menu: proper fullscreen overlay with all items visible */
	.wp-block-navigation__responsive-container.is-menu-open {
		z-index: 100000;
		padding: 4.5rem 2rem 2rem;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		gap: 1.25rem;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
		font-family: var(--wp--preset--font-family--playfair);
		font-size: 1.5rem;
	}

	/* --- Tighter mobile spacing --- */
	.am-hero {
		padding-top: 1.75rem !important;
		padding-bottom: 2rem !important;
	}
	.am-hero .wp-block-columns {
		gap: 2rem;
	}
	.am-section {
		padding-top: 3rem !important;
		padding-bottom: 3rem !important;
	}
	.am-band-blush.am-section {
		margin-top: 2.5rem !important;
	}

	/* Trust strip: stack the four promises neatly */
	.am-trust-strip .wp-block-group {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.625rem;
	}
}
