/*
Theme Name: Vesperia
Theme URI: https://webhelpagency.com/vesperia/
Author: Web Help Agency
Author URI: https://webhelpagency.com
Description: Vesperia is a modern, full-site-editing block theme for wineries and small-batch wine shops. Built around an estate-grown aesthetic — deep wine reds, gold foil accents, and a Cormorant Garamond / Inter type pairing — it ships homepage, shop, and product patterns ready for WooCommerce.
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Version: 0.4.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vesperia
Tags: full-site-editing, custom-colors, editor-style, featured-images, wide-blocks, translation-ready, blog
*/

/*
 * Most styling lives in theme.json (global styles, presets) and block markup.
 * This file holds only the theme header (required) plus a small set of helper
 * styles for patterns that core blocks cannot express declaratively, the CSS
 * for the one registered block style ("Outline — hairline" on core/button,
 * registered in functions.php), and the age-gate overlay driven by
 * assets/js/age-gate.js. It loads on the front end and in the editor canvas.
 */

/* Eyebrow: gold uppercase label with a leading rule. */
.vesperia-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.8em;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
}

.vesperia-eyebrow::before {
	content: "";
	width: 34px;
	height: 1px;
	background: currentColor;
}

/* Full-width button helper (avoids the version-dependent width attribute). */
.wp-block-button.vesperia-button-full,
.wp-block-button.vesperia-button-full .wp-block-button__link {
	width: 100%;
}

/* Product / wine card hover lift. */
.vesperia-card {
	transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.vesperia-card:hover {
	transform: translateY(-6px);
	border-color: rgba(201, 162, 39, 0.35);
	box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}

/*
 * Light modifier so the same .vesperia-card markup works on light shop/related
 * surfaces. Done as a helper class (not a registered core/group block style)
 * on purpose: a global block style would leak to every group in the editor.
 */
.vesperia-card.is-estate {
	background: var(--wp--preset--color--bone);
	border-color: var(--wp--preset--color--line);
	color: var(--wp--preset--color--ink);
}

.vesperia-card.is-estate:hover {
	border-color: rgba(168, 132, 30, 0.35);
	box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}

/* Sticky, translucent site header. */
.vesperia-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(8px);
}

/*
 * backdrop-filter makes the header the containing block for fixed-position
 * descendants, which would pin the age-gate overlay (inserted in the header
 * part) inside the header bar instead of the viewport. Drop it while the gate
 * is open; the header background is opaque so nothing visible changes.
 */
html.vesperia-age-gate-open .vesperia-site-header {
	backdrop-filter: none;
}

/*
 * Push the brand to the left so the nav and the WooCommerce-injected
 * mini-cart / account icons cluster on the right with an even gap
 * (instead of space-between spreading them across the bar).
 */
.vesperia-site-header > .wp-block-site-title {
	margin-right: auto;
}

/*
 * WooCommerce mini-cart in the site header: trim Woo's button padding so it
 * sits on the nav baseline, and keep the badge on brand.
 */
.vesperia-site-header .wc-block-mini-cart__button {
	padding: 0.25em 0 0.25em 0.25em;
	color: var(--wp--preset--color--parchment);
}

.vesperia-site-header .wc-block-mini-cart__badge {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--lees);
}

/*
 * Mini-cart drawer — a dark "cellar" panel. WooCommerce paints the contents
 * block with the body background via an inline style and injects button
 * colours from JS, so a few rules below carry !important on purpose.
 */
.wc-block-components-drawer__screen-overlay {
	background-color: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(3px);
}

.wc-block-components-drawer {
	background: var(--wp--preset--color--lees) !important;
	color: var(--wp--preset--color--parchment);
	border-left: 1px solid var(--wp--preset--color--line-dark);
	box-shadow: -24px 0 60px rgba(0, 0, 0, 0.45);
}

.wp-block-woocommerce-mini-cart-contents {
	background-color: var(--wp--preset--color--lees) !important;
	color: var(--wp--preset--color--parchment) !important;
}

.wc-block-components-drawer__close {
	color: var(--wp--preset--color--parchment) !important;
	opacity: 0.7;
	transition: opacity 0.2s ease;
}

.wc-block-components-drawer__close:hover,
.wc-block-components-drawer__close:focus-visible {
	opacity: 1;
}

/* Title: "Your cart" in the display face; the item counter is redundant with the rows. */
.wc-block-mini-cart__title {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 0.2rem 0 1.2rem;
	margin: 0 0 0.4rem;
	border-bottom: 1px solid var(--wp--preset--color--line-dark);
	color: var(--wp--preset--color--bone);
}

.wp-block-woocommerce-mini-cart-title-label-block {
	font-family: var(--wp--preset--font-family--display);
	font-size: 2rem;
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.01em;
}

.wp-block-woocommerce-mini-cart-title-items-counter-block {
	display: none;
}

/*
 * Line items. Woo lays each row out as a 2-column grid with the quantity
 * control under the image; re-grid it: image spans two rows, name + line
 * total on the first row, quantity + remove on the second.
 */
.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-items__row {
	display: grid !important;
	grid-template-columns: 84px minmax(0, 1fr) auto !important;
	column-gap: 1.1rem !important;
	row-gap: 0.85rem;
	align-items: start;
	padding: 1.3rem 0 !important;
	border-bottom: 1px solid var(--wp--preset--color--line-dark) !important;
}

.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-items__row:last-child {
	border-bottom: 0 !important;
}

.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-item__image {
	grid-column: 1 !important;
	grid-row: 1 / span 2 !important;
	padding: 0 !important;
	width: 84px;
}

.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-item__image img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 3px;
	border: 1px solid var(--wp--preset--color--line-dark);
	background: var(--wp--preset--color--card);
}

.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-item__product {
	grid-column: 2 !important;
	grid-row: 1 !important;
	padding: 0 !important;
	min-width: 0;
}

.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-item__wrap {
	gap: 0.3rem !important;
}

.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-components-product-name {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.35rem !important;
	font-weight: 500 !important;
	line-height: 1.15 !important;
	color: var(--wp--preset--color--bone);
	text-decoration: none;
	max-width: none !important;
}

.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-components-product-name:hover,
.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-components-product-name:focus-visible {
	color: var(--wp--preset--color--gold-soft);
}

/* The line total on the right is the price; the per-unit repeat is noise here. */
.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-item__prices {
	display: none !important;
}

.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-components-product-metadata__description,
.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-components-product-metadata__description > p {
	font-size: var(--wp--preset--font-size--small) !important;
	color: var(--wp--preset--color--parchment-faint);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	overflow: hidden;
}

.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-components-product-metadata__variation-data,
.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-components-product-details {
	font-size: var(--wp--preset--font-size--small) !important;
	color: var(--wp--preset--color--parchment-faint);
}

.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-item__total {
	grid-column: 3 !important;
	grid-row: 1 !important;
	padding: 0 !important;
	justify-self: end;
	white-space: nowrap;
}

.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-item__total .wc-block-components-product-price {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.25rem !important;
	font-weight: 500;
	line-height: 1.15;
	color: var(--wp--preset--color--gold-soft);
}

.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-item__quantity {
	grid-column: 2 / span 2 !important;
	grid-row: 2 !important;
	display: flex !important;
	align-items: center;
	gap: 1rem;
	padding: 0 !important;
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector {
	width: 104px;
	height: 38px;
	margin: 0;
	border: 1px solid var(--wp--preset--color--line-dark-strong);
	border-radius: 2px;
	background: transparent;
	box-shadow: none;
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector:after {
	display: none;
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input,
.wc-block-mini-cart__drawer .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	background: transparent;
	color: var(--wp--preset--color--parchment);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	opacity: 1;
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover {
	color: var(--wp--preset--color--gold-soft);
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input:focus,
.wc-block-mini-cart__drawer .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:focus-visible {
	box-shadow: none;
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: -2px;
}

/* Remove: pushed to the right edge under the line total. */
.wc-block-mini-cart__drawer .wc-block-cart-item__remove-link svg,
.wc-block-mini-cart__drawer .wc-block-cart-item__remove-link img {
	width: 20px !important;
	height: 20px !important;
	min-width: 20px;
	fill: currentColor;
}

.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-item__remove-link {
	margin-left: auto;
	display: inline-flex !important;
	align-items: center;
	padding: 0.35rem !important;
	line-height: 0;
	color: var(--wp--preset--color--parchment-faint) !important;
	transition: color 0.2s ease;
}

.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-item__remove-link:hover,
.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-item__remove-link:focus-visible {
	color: var(--wp--preset--color--gold-soft) !important;
}

/* Footer: subtotal + the theme's outline / filled button pair. */
.wc-block-mini-cart__footer {
	border-top: 1px solid var(--wp--preset--color--line-dark) !important;
	background: var(--wp--preset--color--lees);
}

.wc-block-mini-cart__footer .wc-block-components-totals-item {
	align-items: baseline;
	color: var(--wp--preset--color--bone);
}

.wc-block-mini-cart__footer .wc-block-components-totals-item__label {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
}

.wc-block-mini-cart__footer .wc-block-components-totals-item__value {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	color: var(--wp--preset--color--bone);
}

.wc-block-mini-cart__footer .wc-block-components-totals-item__description {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--parchment-faint);
}

.wc-block-mini-cart__footer-actions .wc-block-components-button {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 0.95rem 1.4rem;
	border-radius: 2px;
	border: 1px solid transparent;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-cart {
	background: transparent !important;
	color: var(--wp--preset--color--parchment) !important;
	border-color: var(--wp--preset--color--line-dark-strong) !important;
}

.wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-cart:hover,
.wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-cart:focus-visible {
	border-color: var(--wp--preset--color--parchment) !important;
}

.wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-checkout,
.wc-block-mini-cart__shopping-button {
	background: var(--wp--preset--color--burgundy) !important;
	color: var(--wp--preset--color--bone) !important;
	border-color: var(--wp--preset--color--burgundy) !important;
}

.wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-checkout:hover,
.wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-checkout:focus-visible,
.wc-block-mini-cart__shopping-button:hover {
	background: var(--wp--preset--color--oxblood) !important;
	border-color: var(--wp--preset--color--oxblood) !important;
}

/* Empty state. */
.wp-block-woocommerce-empty-mini-cart-contents-block {
	color: var(--wp--preset--color--parchment);
}

.wp-block-woocommerce-empty-mini-cart-contents-block .wc-block-mini-cart__empty-cart-wrapper {
	color: var(--wp--preset--color--bone);
}

.wp-block-woocommerce-empty-mini-cart-contents-block strong,
.wp-block-woocommerce-empty-mini-cart-contents-block .wc-block-mini-cart__empty-cart-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
}

/*
 * Links on light surfaces. theme.json paints links gold, which reads well on
 * the dark cellar but fails contrast on bone (2.2:1), where WooCommerce
 * product titles, breadcrumbs and the mini-cart drawer render them. Use the
 * ink-weight gold there instead (same value the light variation uses).
 */
.has-bone-background-color a:where(:not(.wp-element-button)),
.has-estate-light-gradient-background a:where(:not(.wp-element-button)),
.wc-block-components-drawer a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--gold-ink);
}

.has-bone-background-color a:where(:not(.wp-element-button)):hover,
.has-estate-light-gradient-background a:where(:not(.wp-element-button)):hover,
.wc-block-components-drawer a:where(:not(.wp-element-button)):hover {
	color: var(--wp--preset--color--oxblood);
}

/*
 * WooCommerce notice banners (added to cart, errors, info) on the light shop
 * surfaces: parchment card, hairline border, status colour only on the rule.
 */
.wc-block-components-notice-banner {
	background: var(--wp--preset--color--bone);
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--line);
	border-left-width: 3px;
	border-radius: 3px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.wc-block-components-notice-banner.is-success {
	border-left-color: var(--wp--preset--color--in-stock);
}

.wc-block-components-notice-banner.is-error {
	border-left-color: var(--wp--preset--color--burgundy);
}

.wc-block-components-notice-banner.is-info,
.wc-block-components-notice-banner.is-warning {
	border-left-color: var(--wp--preset--color--gold-ink);
}

.wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward,
.wc-block-components-notice-banner a {
	color: var(--wp--preset--color--gold-ink);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.wc-block-components-notice-banner:focus-visible {
	outline-offset: 0;
}

/*
 * Cart and checkout pages (light surface): display-face product names and
 * totals, eyebrow-style table headers, hairline controls. Mirrors the drawer.
 */
.wc-block-cart .wc-block-cart-items__header th,
.wc-block-cart .wc-block-cart__totals-title,
.wc-block-checkout .wc-block-components-checkout-step__title,
.wc-block-components-checkout-order-summary__title {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small) !important;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold-ink);
}

.wc-block-cart .wc-block-cart-items__header,
.wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row {
	border-color: var(--wp--preset--color--line) !important;
}

.wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row {
	padding: 1.6rem 0 !important;
}

.wc-block-cart table.wc-block-cart-items .wc-block-cart-items__header-image {
	width: 112px !important;
}

.wc-block-cart table.wc-block-cart-items .wc-block-cart-item__image {
	width: 112px;
}

.wc-block-cart table.wc-block-cart-items .wc-block-cart-item__image img,
.wc-block-checkout .wc-block-components-order-summary-item__image img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 3px;
	border: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--card);
}

.wc-block-cart table.wc-block-cart-items .wc-block-components-product-name,
.wc-block-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-name {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.4rem !important;
	font-weight: 500 !important;
	line-height: 1.15 !important;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	max-width: none !important;
}

.wc-block-cart table.wc-block-cart-items .wc-block-components-product-name:hover {
	color: var(--wp--preset--color--oxblood);
}

.wc-block-cart table.wc-block-cart-items .wc-block-cart-item__prices,
.wc-block-cart table.wc-block-cart-items .wc-block-components-product-metadata,
.wc-block-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-metadata {
	color: var(--wp--preset--color--ink-soft);
}

.wc-block-cart table.wc-block-cart-items .wc-block-cart-item__total .wc-block-components-product-price,
.wc-block-checkout .wc-block-components-order-summary-item__total-price {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.3rem !important;
	font-weight: 500;
	color: var(--wp--preset--color--ink);
}

.wc-block-cart .wc-block-components-quantity-selector,
.wc-block-checkout .wc-block-components-quantity-selector {
	border-color: color-mix(in srgb, currentColor 35%, transparent);
	border-radius: 2px;
}

.wc-block-cart .wc-block-components-quantity-selector:after {
	display: none;
}

.wc-block-cart .wc-block-cart-item__remove-link {
	color: var(--wp--preset--color--ink-soft) !important;
}

.wc-block-cart .wc-block-cart-item__remove-link:hover {
	color: var(--wp--preset--color--oxblood) !important;
}

/* Totals column. */
.wc-block-cart .wc-block-components-totals-item,
.wc-block-checkout .wc-block-components-totals-item {
	border-color: var(--wp--preset--color--line);
}

.wc-block-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	color: var(--wp--preset--color--ink);
}

.wc-block-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 500;
	line-height: 1;
	color: var(--wp--preset--color--ink);
}

.wc-block-cart .wc-block-components-totals-wrapper,
.wc-block-checkout .wc-block-components-totals-wrapper {
	border-color: var(--wp--preset--color--line);
}

.wc-block-cart .wc-block-cart__totals-title {
	border-color: var(--wp--preset--color--line);
}

/* Buttons inside Woo blocks follow the theme button. */
.wc-block-cart .wc-block-components-button,
.wc-block-checkout .wc-block-components-button,
.wc-block-components-notice-banner .wc-block-components-button {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	border-radius: 2px;
}

.wc-block-cart .wc-block-components-button:not(.outlined),
.wc-block-checkout .wc-block-components-button:not(.outlined) {
	background: var(--wp--preset--color--burgundy);
	color: var(--wp--preset--color--bone);
}

.wc-block-cart .wc-block-components-button:not(.outlined):hover,
.wc-block-checkout .wc-block-components-button:not(.outlined):hover {
	background: var(--wp--preset--color--oxblood);
}

/* Form fields on checkout: hairline inputs, gold focus. */
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-country-input select,
.wc-block-checkout .wc-block-components-state-input select,
.wc-block-checkout .wc-block-components-combobox .components-combobox-control__input,
.wc-block-checkout .wc-block-components-select .components-custom-select-control__button {
	border-color: var(--wp--preset--color--line-dark-strong);
	border-radius: 2px;
	background: var(--wp--preset--color--bone);
	color: var(--wp--preset--color--ink);
}

.wc-block-checkout .wc-block-components-text-input.is-active input,
.wc-block-checkout .wc-block-components-text-input input:focus {
	border-color: var(--wp--preset--color--gold-ink);
	box-shadow: 0 0 0 1px var(--wp--preset--color--gold-ink);
}

.wc-block-checkout .wc-block-components-radio-control__option,
.wc-block-checkout .wc-block-components-radio-control-accordion-option {
	border-color: var(--wp--preset--color--line);
}

/* Sticky product gallery on single-product (light surface). */
.vesperia-gallery-sticky {
	position: sticky;
	top: 90px;
}

@media (max-width: 860px) {
	.vesperia-gallery-sticky {
		position: static;
	}
}

/*
 * Hero: a core/cover with no image on the "cellar" gradient. The cover's own
 * contentPosition ("bottom left") and blockGap attributes handle placement;
 * CSS only caps the measure of the content and colours the accent.
 */
.vesperia-hero.wp-block-cover .wp-block-cover__inner-container > *,
.vesperia-hero:not(.wp-block-cover) > * {
	max-width: 680px;
}

/* Hero accent: italic gold on the highlighted words of the headline. */
.vesperia-hero-title em {
	font-style: italic;
	color: var(--wp--preset--color--gold-soft);
}

/*
 * Tasting-notes flavor meters. Rendered via a core/html block (so the
 * percentage-width fills validate in the editor); styled here.
 */
.vesperia-flavors {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.vesperia-flavor__head {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.4rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.vesperia-flavor__track {
	height: 6px;
	border-radius: 3px;
	background: color-mix(in srgb, currentColor 12%, transparent);
	overflow: hidden;
}

.vesperia-flavor__fill {
	height: 100%;
	border-radius: 3px;
	background: var(--wp--preset--gradient--flavor);
}

/* Terroir columns: stretch the left rules to equal height. */
.vesperia-terroir .wp-block-column {
	display: flex;
}

.vesperia-terroir .wp-block-column > .wp-block-group {
	flex: 1;
}

/* Upcoming events: align the date and event columns across rows. */
.vesperia-event > .wp-block-group:nth-child(1) {
	min-width: 5rem;
}

.vesperia-event > .wp-block-group:nth-child(2) {
	flex: 1 1 320px;
}

/* Guides teaser: fixed label column, growing guide column, quiet links (mirrors .vesperia-event). */
.vesperia-guide > .wp-block-group:nth-child(1) {
	min-width: 7rem;
}

.vesperia-guide > .wp-block-group:nth-child(2) {
	flex: 1 1 360px;
}

.vesperia-guide h3 a,
.vesperia-guide__more a {
	color: inherit;
	transition: color 0.2s ease;
}

.vesperia-guide h3 a:hover,
.vesperia-guide h3 a:focus-visible,
.vesperia-guide__more a:hover,
.vesperia-guide__more a:focus-visible {
	color: var(--wp--preset--color--gold-soft);
}

/* Trust and delivery: hairline icons + the "As seen in" row. */
.vesperia-trust__icon {
	width: 32px;
	height: 32px;
	color: var(--wp--preset--color--gold-ink);
	margin-bottom: 0.6rem;
}

.vesperia-trust__press > .vesperia-eyebrow {
	flex: 0 0 auto;
}

/*
 * Wine finder (patterns/wine-finder.php + assets/js/wine-finder.js). Without
 * JS all four questions show and the form submits to the filtered shop; the
 * script adds .is-enhanced and reveals one question at a time.
 */
.vesperia-finder {
	display: flex;
	flex-direction: column;
	gap: 2.4rem;
}

.vesperia-finder.is-enhanced[hidden],
.vesperia-finder.is-enhanced [hidden] {
	display: none;
}

.vesperia-finder__step {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.vesperia-finder__step > legend {
	margin-bottom: 1rem;
	padding: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.15;
	color: var(--wp--preset--color--bone);
	transition: color 0.2s ease;
}

.vesperia-finder__num {
	margin-right: 0.4em;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: 0.22em;
	color: var(--wp--preset--color--gold);
}

.vesperia-finder__step.is-invalid > legend {
	color: var(--wp--preset--color--gold-soft);
}

.vesperia-finder__options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.8rem;
}

.vesperia-finder__option {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.9rem 1.1rem;
	border: 1px solid var(--wp--preset--color--line-dark-strong);
	border-radius: 2px;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.vesperia-finder__option:hover {
	border-color: var(--wp--preset--color--parchment-faint);
}

.vesperia-finder__option:has(input:checked) {
	border-color: var(--wp--preset--color--gold);
	background: color-mix(in srgb, var(--wp--preset--color--gold) 12%, transparent);
}

.vesperia-finder__option input {
	flex: none;
	margin: 0;
	accent-color: var(--wp--preset--color--gold);
}

.vesperia-finder__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
}

.vesperia-finder__progress {
	margin: 0 0 0 auto;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
}

.vesperia-finder__back,
.vesperia-finder__restart {
	padding: 0.95rem 1.9rem;
	border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
	border-radius: 2px;
	background: transparent;
	color: inherit;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.vesperia-finder__back:hover,
.vesperia-finder__restart:hover {
	border-color: color-mix(in srgb, currentColor 70%, transparent);
}

.vesperia-finder__result {
	padding: var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--preset--color--line-dark);
	border-radius: 3px;
	background: var(--wp--preset--color--card);
}

.vesperia-finder__result > * + * {
	margin-top: 1rem;
}

.vesperia-finder__result > h3 {
	font-size: var(--wp--preset--font-size--x-large);
}

/* FAQ accordion (light surface): ruled rows, display-font summary, +/– marker. */
.vesperia-faq .wp-block-details {
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.vesperia-faq .wp-block-details:first-child {
	border-top: 1px solid var(--wp--preset--color--line);
}

.vesperia-faq .wp-block-details > summary {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	list-style: none;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	line-height: 1.15;
}

.vesperia-faq .wp-block-details > summary::-webkit-details-marker {
	display: none;
}

.vesperia-faq .wp-block-details > summary::after {
	content: "+";
	color: var(--wp--preset--color--gold-ink);
}

.vesperia-faq .wp-block-details[open] > summary::after {
	content: "–";
}

.vesperia-faq .wp-block-details[open] > summary {
	margin-bottom: 0.8rem;
}

/*
 * Keyboard focus: a gold ring on every focusable element. theme.json cannot
 * express :focus-visible, so it lives here (front end + editor canvas).
 */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 3px;
}

/*
 * Registered block style: core/button "Outline — hairline"
 * (is-style-vesperia-outline, see functions.php). Transparent, with a
 * translucent hairline derived from the current text colour, so one style
 * reads correctly on dark and light surfaces without per-button border colours.
 */
.wp-block-button.is-style-vesperia-outline .wp-block-button__link {
	background: transparent;
	color: inherit;
	border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
	transition: border-color 0.2s ease;
}

.wp-block-button.is-style-vesperia-outline .wp-block-button__link:hover,
.wp-block-button.is-style-vesperia-outline .wp-block-button__link:focus-visible {
	border-color: color-mix(in srgb, currentColor 70%, transparent);
}

/*
 * Age gate (patterns/age-gate.php + assets/js/age-gate.js). Progressive
 * enhancement: the wrapper is hidden on the front end until the script finds
 * no stored confirmation and adds .is-open — with JavaScript off there is no
 * gate and nothing is blocked. The editor canvas keeps it visible for editing.
 */
.vesperia-age-gate {
	display: none;
}

.editor-styles-wrapper .vesperia-age-gate {
	display: block;
}

.vesperia-age-gate.is-open {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: center;
	padding: var(--wp--preset--spacing--40);
	background: rgba(0, 0, 0, 0.6);
	overflow: auto;
	animation: vesperia-age-gate-fade 0.25s ease;
}

/* The panel keeps its own lees background; the wrapper only paints the scrim. */
.vesperia-age-gate > .wp-block-group {
	width: 100%;
	max-width: calc(560px + 2 * var(--wp--preset--spacing--50));
	border: 1px solid var(--wp--preset--color--line-dark);
	border-radius: 3px;
}

.vesperia-age-gate.is-open > .wp-block-group {
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

html.vesperia-age-gate-open {
	overflow: hidden;
}

@keyframes vesperia-age-gate-fade {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
	.vesperia-card,
	.wp-block-button.is-style-vesperia-outline .wp-block-button__link,
	.wc-block-components-drawer__close,
	.wc-block-mini-cart__drawer table.wc-block-cart-items .wc-block-cart-item__remove-link,
	.wc-block-mini-cart__footer-actions .wc-block-components-button,
	.vesperia-guide h3 a,
	.vesperia-guide__more a,
	.vesperia-finder__step > legend,
	.vesperia-finder__option,
	.vesperia-finder__back,
	.vesperia-finder__restart {
		transition: none;
	}

	.vesperia-age-gate.is-open {
		animation: none;
	}
}
