/* säm · WooCommerce in the wine-red night. Loaded only when WooCommerce is active. */

.woo-page { --ink: var(--paper); --muted: #e3c9cf; --accent: var(--paper); --accent-ink: var(--wine); --accent-step: var(--sky); --focus: var(--sky); background: var(--wine); color: var(--paper); }
.woo-page .entry { padding-top: clamp(24px, 3vw, 48px); }
.woo-page a { color: inherit; }

/* Category links: the type is the control. */
.shop-nav ul { display: flex; flex-wrap: wrap; gap: 4px clamp(20px, 3vw, 48px); margin: 0 0 clamp(40px, 7vh, 88px); padding: 0; list-style: none; }
.shop-nav a {
	display: inline-flex;
	align-items: flex-start;
	gap: 6px;
	font-size: clamp(2rem, 1rem + 3.4vw, 4.75rem);
	font-weight: 700;
	font-stretch: 76%;
	line-height: 1;
	letter-spacing: -0.03em;
	text-transform: lowercase;
	text-decoration: none;
	color: #e3c9cf;
	transition: color 160ms;
}
.shop-nav a span { font-size: 0.35em; font-weight: 650; font-stretch: 100%; letter-spacing: 0; margin-top: 0.3em; }
.shop-nav a:hover,
.shop-nav a[aria-current] { color: var(--paper); }
.shop-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }

/* Shop loop: a grid of square photographs, featured products first. */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(40px, 6vh, 72px) var(--gutter); margin: 0; padding: 0; }
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none; width: auto; margin: 0; padding: 0; }
.woocommerce ul.products li.product .shop-card__text { align-content: start; }

.shop-card__media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--burgundy); }
.shop-card__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 500ms var(--ease-out), transform 1200ms var(--ease-out); }
.shop-card__image--alt { opacity: 0; }
.shop-card__media:hover .shop-card__image { transform: scale(1.03); }
.shop-card__media:hover .shop-card__image--alt { opacity: 1; }
.shop-card__text { display: grid; gap: 10px; justify-items: start; margin-top: 20px; }
.shop-card__name { font-size: clamp(1.5rem, 1rem + 1.2vw, 2.25rem); font-weight: 700; font-stretch: 78%; line-height: 0.92; letter-spacing: -0.03em; }
.shop-card__name a { text-decoration: none; }
.shop-card__name a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.shop-card__price { margin: 0; font-size: var(--step-statement); font-weight: 700; }
.shop-card__price del { opacity: 0.65; margin-right: 8px; }
.shop-card__price ins { text-decoration: none; }
.shop-card__buy { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 4px; }
.shop-card__buy .added_to_cart { font-weight: 700; color: var(--sky); }
.shop-card__more { font-weight: 700; text-decoration: none; }
.shop-card__more:hover { text-decoration: underline; }
.woocommerce ul.products li.product .button { margin: 0; }

/* Availability: plain sentences in the light colours of the field. */
.availability { display: grid; gap: 4px; }
.availability p { margin: 0; }
.availability__label { font-weight: 700; color: var(--sky); }
.availability--outofstock .availability__label,
.availability--coming .availability__label { color: #e3c9cf; }
.availability--single { margin: 4px 0 18px; padding: 16px 18px; background: var(--burgundy); }
.availability--single .availability__label { font-size: var(--step-statement); }
.availability__payment,
.availability__note { font-size: 1rem; }
.shop-soon { margin: 20px 0; font-size: var(--step-statement); }

/* Phone buy bar. */
.buybar { display: none; }
@media (max-width: 899px) {
	.buybar:not([hidden]) {
		position: fixed;
		inset: auto 0 0;
		z-index: 45;
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto auto;
		align-items: center;
		gap: 12px;
		padding: 10px var(--margin) calc(10px + env(safe-area-inset-bottom));
		background: var(--paper);
		color: var(--wine);
	}
	.buybar__name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 700; }
	.buybar__price { font-weight: 700; }
	.buybar__go { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; background: var(--wine); color: var(--paper); font-weight: 700; text-decoration: none; }
	.single-product .finale__legal { padding-bottom: 96px; }
}

/* My account. */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--gutter) clamp(32px, 5vw, 96px); }
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; }
.woocommerce-MyAccount-navigation ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.woocommerce-MyAccount-navigation a { display: block; padding: 12px 14px; background: var(--burgundy); font-weight: 700; text-decoration: none; }
.woocommerce-MyAccount-navigation .is-active a,
.woocommerce-MyAccount-navigation a:hover { background: var(--paper); color: var(--wine); }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; max-width: 36rem; }
.woocommerce form.login,
.woocommerce form.register { margin: 0; padding: clamp(20px, 3vw, 40px); border: 0; border-radius: 0; background: var(--burgundy); }
.woocommerce form .form-row label { font-weight: 700; }
.woocommerce form .form-row input.input-text { padding: 12px 14px; border: 0; background: var(--paper); color: var(--night); }
.woocommerce-account h2 { font-size: clamp(2rem, 1rem + 3vw, 4rem); font-stretch: 78%; margin-bottom: 18px; }
.woocommerce table.shop_table { border: 0; border-radius: 0; border-collapse: collapse; }
.woocommerce table.shop_table th,
.woocommerce table.shop_table td { padding: 12px 8px; border-color: rgba(241, 240, 237, 0.2); }

@media (max-width: 899px) {
	.woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px var(--gutter); }
	.woocommerce ul.products .shop-card__name { font-size: 1.375rem; }
	.woocommerce ul.products .shop-card__price { font-size: 1.0625rem; }
	.woocommerce ul.products .availability__label,
	.woocommerce ul.products .shop-card__more { font-size: 0.9375rem; }
	.woocommerce ul.products .shop-card__buy .button { min-height: 44px; padding: 0 14px; line-height: 44px; font-size: 0.9375rem; }
	.woocommerce-account .woocommerce { grid-template-columns: minmax(0, 1fr); }
}

/* Buttons and fields: square, filled. */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wc-block-components-button:not(.is-link) {
	min-height: 56px;
	padding: 0 28px;
	border-radius: 0;
	background: var(--paper);
	color: var(--wine);
	font: inherit;
	font-weight: 700;
	line-height: 56px;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.wc-block-components-button:not(.is-link):hover { background: var(--sky); color: var(--wine); }
.woocommerce button.button.alt,
.woocommerce a.button.alt { background: var(--paper); color: var(--wine); }
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover { background: var(--sky); color: var(--wine); }
.woocommerce .quantity .qty { min-height: 56px; width: 5em; border: 2px solid var(--paper); border-radius: 0; background: transparent; color: var(--paper); font: inherit; text-align: center; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select { min-height: 48px; border-radius: 0; font: inherit; }
.woocommerce span.onsale { min-height: 0; min-width: 0; padding: 6px 12px; border-radius: 0; background: var(--paper); color: var(--wine); line-height: 1.3; }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notices-wrapper .wc-block-components-notice-banner { border-top-color: var(--paper); background: var(--burgundy); color: var(--paper); }
.woocommerce-message a.button { margin-left: 12px; }
.woocommerce-breadcrumb { margin: 0 0 24px; color: var(--muted); font-size: var(--step-small); }


.woo-page .page-band { background: var(--wine); min-height: 52svh; }
.woo-page .page-band__sky { filter: brightness(0.6) saturate(1.1); }

/* WooCommerce's own disabled-button colours, replaced. */
.woocommerce button.button.disabled,
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled],
.woocommerce button.button.alt.disabled,
.woocommerce button.button.alt.disabled:hover { background: var(--burgundy); color: #e3c9cf; opacity: 1; cursor: not-allowed; }
.woocommerce .woocommerce-shop-loop,
.woocommerce .woocommerce-notices-wrapper:empty { display: none; }
.woocommerce ul.products li.product a.shop-card__media img.shop-card__image { width: 100%; height: 100%; margin: 0; }
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product { float: none; width: auto; margin: 0; clear: none; }
.woocommerce ul.products li.product .button { white-space: nowrap; }

/* Checkout validation on the wine field: readable, not WooCommerce red on burgundy. */
.woo-page .wc-block-components-validation-error,
.woo-page .wc-block-components-validation-error p { color: #ffd3da; font-weight: 650; }
.woo-page .wc-block-components-validation-error svg { fill: #ffd3da; }
.woo-page .wc-block-components-text-input.has-error input,
.woo-page .wc-block-components-text-input.has-error label { border-color: #ffd3da; }
.woo-page .buybar__go { color: var(--paper); }
.woo-page .buybar__go:hover { background: var(--crimson); }

/* ---------- Cart and checkout: the shop's wine-red night ----------
   WooCommerce's blocks, restyled only: headline type for the names and
   totals, fields drawn in paper lines on the wine field, burgundy tiles for
   pictures and choices, the paper button. No success banners or snackbars;
   errors still show. */

.woo-page .wc-block-components-notice-snackbar-list { display: none; }
.woo-page .wp-block-woocommerce-cart,
.woo-page .wp-block-woocommerce-checkout { color: var(--paper); }
.woo-page .wc-block-components-sidebar-layout { margin-top: clamp(16px, 3vh, 40px); }

/* Section titles: headline type. */
.woo-page .wc-block-components-checkout-step__title,
.woo-page .wc-block-components-title.wc-block-components-title,
.woo-page .wc-block-cart__totals-title.wc-block-cart__totals-title,
.woo-page .wc-block-components-checkout-order-summary__title-text {
	color: var(--paper);
	font-size: clamp(1.75rem, 1rem + 1.4vw, 2.5rem);
	font-weight: 700;
	font-stretch: 78%;
	line-height: 1;
	letter-spacing: -0.02em;
	text-transform: none;
}
.woo-page .wc-block-cart__totals-title.wc-block-cart__totals-title { padding: 0 0 12px; text-align: left; }
.woo-page .wc-block-components-checkout-step__description,
.woo-page .wc-block-components-checkout-step__heading-content,
.woo-page .wc-block-checkout__guest-checkout-notice { color: #e3c9cf; }

/* Cart lines. */
.woo-page table.wc-block-cart-items { border: 0; }
.woo-page .wc-block-cart-items__header { color: #e3c9cf; font-size: var(--step-small); font-weight: 700; text-transform: none; }
.woo-page .wc-block-cart-items__header th { padding-bottom: 12px; }
.woo-page .wc-block-cart-items__row { border: 0; }
.woo-page .wc-block-cart-items td,
.woo-page .wc-block-cart-items th { border-color: rgba(241, 240, 237, 0.2); border-top-width: 2px; }
.woo-page .wc-block-cart .wc-block-cart-items td { padding-block: 22px; }
.woo-page .wc-block-cart-item__image { width: clamp(88px, 9vw, 140px); }
.woo-page .wc-block-cart-item__image a,
.woo-page .wc-block-components-order-summary-item__image { display: block; aspect-ratio: 1; overflow: hidden; background: var(--burgundy); }
.woo-page .wc-block-cart-item__image img,
.woo-page .wc-block-components-order-summary-item__image img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.woo-page .wc-block-components-product-name {
	color: var(--paper);
	font-size: clamp(1.375rem, 1rem + 0.9vw, 2rem);
	font-weight: 700;
	font-stretch: 78%;
	line-height: 1;
	letter-spacing: -0.02em;
	text-decoration: none;
}
.woo-page a.wc-block-components-product-name:hover { color: var(--sky); }
.woo-page .wc-block-cart-item__prices,
.woo-page .wc-block-components-product-price { color: var(--paper); font-weight: 700; }
.woo-page .wc-block-components-product-metadata,
.woo-page .wc-block-components-product-details { color: #e3c9cf; font-size: 0.9375rem; }
.woo-page .wc-block-components-product-details__name { font-weight: 700; }
.woo-page .wc-block-cart-item__total .wc-block-components-product-price__value { font-size: var(--step-statement); }
.woo-page .wc-block-components-sale-badge { border: 0; border-radius: 0; background: var(--burgundy); color: var(--paper); font-weight: 700; }
.woo-page .wc-block-components-quantity-selector { border: 2px solid var(--paper); border-radius: 0; }
.woo-page .wc-block-components-quantity-selector::after { display: none; }
.woo-page .wc-block-components-quantity-selector input,
.woo-page .wc-block-components-quantity-selector button { color: var(--paper); font-weight: 700; }
.woo-page .wc-block-components-quantity-selector button:hover { color: var(--sky); }
.woo-page .wc-block-cart-item__remove-link { color: #e3c9cf; }
.woo-page .wc-block-cart-item__remove-link:hover { color: var(--paper); }

/* Totals and summary: a burgundy panel, the total at headline size. */
.woo-page .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block { padding: clamp(18px, 2vw, 28px); border: 0; border-radius: 0; background: var(--burgundy); }
.woo-page .wp-block-woocommerce-checkout-order-summary-block { border: 0; border-radius: 0; background: var(--burgundy); }
.woo-page .wc-block-components-totals-wrapper { border-color: rgba(241, 240, 237, 0.2); border-top-width: 2px; }
.woo-page .wc-block-components-totals-item { color: var(--paper); }
.woo-page .wc-block-components-totals-item__description { color: #e3c9cf; }
.woo-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.woo-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: clamp(1.75rem, 1rem + 1.4vw, 2.5rem);
	font-weight: 700;
	font-stretch: 78%;
	letter-spacing: -0.02em;
}
.woo-page .wc-block-components-panel__button { color: var(--paper); font-weight: 700; }
.woo-page .wc-block-components-order-summary-item__quantity { border: 0; border-radius: 0; background: var(--paper); color: var(--wine); box-shadow: none; font-weight: 700; } /* taste-skill-ignore: removes WooCommerce's shadow */
.woo-page .wc-block-components-order-summary-item__individual-prices { color: #e3c9cf; }

/* Fields: paper lines on the wine field. */
.woo-page .wc-block-components-text-input input[type],
.woo-page .wc-block-components-text-input textarea,
.woo-page .wc-blocks-components-select .wc-blocks-components-select__select,
.woo-page .wc-block-components-textarea {
	border: 2px solid rgba(241, 240, 237, 0.55);
	border-radius: 0;
	background: transparent;
	color: var(--paper);
	font: inherit;
}
.woo-page .wc-block-components-text-input input[type]:focus,
.woo-page .wc-blocks-components-select .wc-blocks-components-select__select:focus,
.woo-page .wc-block-components-textarea:focus { border-color: var(--paper); box-shadow: none; outline: 3px solid var(--sky); outline-offset: 1px; } /* taste-skill-ignore: removes WooCommerce's focus shadow */
.woo-page .wc-block-components-text-input label,
.woo-page .wc-blocks-components-select .wc-blocks-components-select__label { color: #e3c9cf; }
.woo-page .wc-blocks-components-select .wc-blocks-components-select__select option { color: var(--night); }
.woo-page .wc-blocks-components-select .wc-blocks-components-select__expand { fill: var(--paper); }
.woo-page .wc-block-components-address-form__address_2-toggle,
.woo-page .wc-block-components-checkbox label,
.woo-page .wc-block-checkout__terms { color: #e3c9cf; }
.woo-page .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] { border: 2px solid var(--paper); border-radius: 0; background: transparent; }
.woo-page .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { background: var(--paper); }
.woo-page .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--wine); }
.woo-page .wc-block-checkout__terms a,
.woo-page .wc-block-components-address-form__address_2-toggle:hover { color: var(--paper); }

/* Choices (delivery, payment): burgundy tiles, the chosen one outlined. */
.woo-page .wc-block-components-radio-control--highlight-checked { gap: 8px; }
.woo-page .wc-block-components-radio-control--highlight-checked::after,
.woo-page .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option::after { display: none; }
.woo-page .wc-block-components-radio-control__option,
.woo-page .wc-block-components-radio-control-accordion-option { border: 0; border-radius: 0; background: var(--burgundy); color: var(--paper); box-shadow: none; } /* taste-skill-ignore: removes WooCommerce's shadow */
.woo-page .wc-block-components-radio-control__option-checked,
.woo-page .wc-block-components-radio-control-accordion-option--checked-option-highlighted { outline: 2px solid var(--paper); outline-offset: -2px; }
.woo-page .wc-block-components-radio-control__option-layout { font-weight: 700; }
.woo-page .wc-block-components-radio-control__secondary-label,
.woo-page .wc-block-components-radio-control__description,
.woo-page .wc-block-components-payment-method-label + * { color: #e3c9cf; }
.woo-page .wc-block-components-radio-control__input { border: 2px solid var(--paper); background: transparent; }
.woo-page .wc-block-components-radio-control__input:checked { border-color: var(--paper); }
.woo-page .wc-block-components-radio-control__input:checked::before { background: var(--paper); }

/* The order button: the shop's paper button, full width. */
.woo-page .wc-block-components-checkout-place-order-button,
.woo-page .wc-block-cart__submit-button { width: 100%; min-height: 60px; font-size: 1.125rem; }
.woo-page .wc-block-checkout__actions_row .wc-block-components-checkout-return-to-cart-button { color: #e3c9cf; }

/* WooCommerce sets these with longer selectors; matched here. */
.woo-page .wc-block-cart .wc-block-cart-items .wc-block-components-product-name { font-size: clamp(1.375rem, 1rem + 0.9vw, 2rem); }
.woo-page .wc-block-cart .wc-block-cart-items__header,
.woo-page .wc-block-cart .wc-block-cart-items__header th { font-size: var(--step-small); text-transform: none; }
.woo-page .wc-block-checkout p.wc-block-components-checkout-order-summary__title-text { font-size: clamp(1.75rem, 1rem + 1.4vw, 2.5rem); font-weight: 700; font-stretch: 78%; letter-spacing: -0.02em; }
.woo-page .wc-block-components-order-summary .wc-block-components-product-name { font-size: 1.25rem; }
.woo-page .wc-block-components-order-summary .wc-block-components-order-summary-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "img desc" "img total"; gap: 4px 14px; }
.woo-page .wc-block-components-order-summary .wc-block-components-order-summary-item__image { grid-area: img; align-self: start; width: 56px; height: auto; }
.woo-page .wc-block-components-order-summary .wc-block-components-order-summary-item__description { grid-area: desc; padding: 0; }
.woo-page .wc-block-components-order-summary .wc-block-components-order-summary-item__total-price { grid-area: total; margin: 0; text-align: left; font-weight: 700; }
.woo-page .wc-blocks-components-select .wc-blocks-components-select__container { border-radius: 0; background: transparent; }

/* Empty cart: the sentence at headline size, no icon. */
.woo-page .wc-block-cart__empty-cart__title.with-empty-cart-icon::before { display: none; }
.woo-page .wc-block-cart__empty-cart__title {
	margin: clamp(24px, 6vh, 72px) 0 0;
	font-size: clamp(2.5rem, 1rem + 4.6vw, 6rem);
	font-weight: 700;
	font-stretch: 76%;
	line-height: 0.9;
	letter-spacing: -0.035em;
	text-align: left;
}
.woo-page .wp-block-woocommerce-empty-cart-block .wp-block-separator { display: none; }
/* "Uus poes" under an empty cart: the same tiles as the product page's row. */
.woo-page .wc-block-grid__products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: var(--gutter); margin: 0; }
.woo-page .wc-block-grid.wc-block-grid .wc-block-grid__product { display: flex; flex-direction: column; align-items: stretch; width: auto; max-width: none; margin: 0; padding: 0; border: 0; text-align: left; }
.woo-page .wc-block-grid__product-link { display: grid; gap: 6px; width: 100%; color: var(--paper); text-decoration: none; }
.woo-page .wc-block-grid__product-image { display: block; width: 100%; aspect-ratio: 1; margin: 0 0 10px; overflow: hidden; background: var(--burgundy); }
.woo-page .wc-block-grid__product-image img { width: 100%; max-width: none; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out); }
.woo-page .wc-block-cart__empty-cart__title + p { margin: 14px 0 0; text-align: left; font-size: var(--step-statement); font-weight: 700; }
.woo-page .wc-block-grid__product-link:hover img { transform: scale(1.04); }
.woo-page .wc-block-grid__product-title { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); font-weight: 700; font-stretch: 78%; line-height: 1; letter-spacing: -0.02em; }
.woo-page .wc-block-grid__product-price { margin: 6px 0 12px; color: #e3c9cf; font-weight: 700; }
.woo-page .wc-block-grid__product-onsale { display: none; }
.woo-page .wc-block-grid__product-add-to-cart { margin-top: auto; text-align: left; }
.woo-page .wc-block-grid__product-add-to-cart .wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; margin: 0; padding: 0 20px; border-radius: 0; background: var(--paper); color: var(--wine); font-size: 1rem; font-weight: 700; }
.woo-page .wc-block-grid__product-add-to-cart .wp-block-button__link:hover { background: var(--sky); }
.woo-page .wp-block-woocommerce-empty-cart-block > h2:not(.wc-block-cart__empty-cart__title) {
	margin: clamp(56px, 10vh, 120px) 0 24px;
	font-size: clamp(2rem, 1rem + 2.6vw, 3.5rem);
	font-weight: 700;
	font-stretch: 78%;
	text-align: left;
	text-transform: lowercase;
}

/* ---------- Product page: the shop's wine-red night, the reference's logic ----------
   Left: the way back and the list of views. Middle: one tall tile per
   picture, scrolling. Right: the name at headline size, price, a short text,
   sizes as words and one button, held in place while the pictures pass. */

.single-product .entry--product { padding: 0; }
/* The header stays solid in the shop, cart and checkout: content scrolls under it. */
.woo-page .site-header { background: var(--wine); }
.product-page {
	display: grid;
	grid-template-columns: minmax(0, 20fr) minmax(0, 48fr) minmax(0, 28fr);
	gap: 0 clamp(20px, 3vw, 56px);
	padding: 0 var(--margin);
}
.product-page a { color: inherit; }

.product-page__aside,
.product-page__summary { position: sticky; top: 0; height: 100svh; grid-row: 1 / span 2; }
.product-page__aside { grid-column: 1; }
.product-page__gallery { grid-column: 2; grid-row: 1; }
.product-page__summary { grid-column: 3; }
/* WooCommerce's own stock line repeats the availability line above it. */
.product-page p.stock { display: none; }
/* The full description, under the pictures. */
.product-page__description { grid-column: 2; grid-row: 2; max-width: 62ch; padding: clamp(32px, 6vh, 72px) 0 clamp(48px, 10vh, 120px); font-size: 1.125rem; line-height: 1.6; }
.product-page__description > * + * { margin-top: 1em; }
.product-page__description h2,
.product-page__description h3 { font-size: clamp(1.75rem, 1rem + 1.4vw, 2.5rem); font-weight: 700; font-stretch: 78%; line-height: 1; letter-spacing: -0.02em; }
.product-page__description ul,
.product-page__description ol { padding-left: 1.2em; }
.product-page__description a { text-decoration: underline; text-decoration-thickness: 2px; }
.product-page__aside { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto auto 1fr; gap: 32px 20px; }
.product-page__back { grid-column: 1; grid-row: 2 / span 2; display: inline-flex; align-items: center; gap: 10px; justify-self: start; font-weight: 700; text-decoration: none; }
.product-page__back span { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid currentColor; border-radius: 50%; font-size: 0.875rem; transition: transform 220ms var(--ease-out); }
.product-page__back:hover { color: var(--sky); }
.product-page__back:hover span { transform: translateX(-3px); }
.product-page__thumbs { grid-column: 2; grid-row: 1 / -1; position: relative; display: grid; align-content: end; gap: 10px; height: 100svh; padding: calc(var(--header-h) + 24px) 18px 24px 0; }
.product-page__thumbs a { display: block; width: 64px; aspect-ratio: 1; overflow: hidden; background: var(--burgundy); opacity: 0.5; transition: opacity 160ms; }
.product-page__thumbs a[aria-current],
.product-page__thumbs a:hover { opacity: 1; }
.product-page__thumbs img { width: 100%; height: 100%; object-fit: cover; }
/* The rail: where in the pictures you are. */
.product-page__rail { position: absolute; top: calc(var(--header-h) + 24px); right: 0; bottom: 24px; width: 3px; background: var(--burgundy); }
.product-page__rail span { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% / var(--n, 1)); background: var(--sky); transform: translateY(calc(var(--i, 0) * 100%)); transition: transform 300ms var(--ease-out); }

.product-page__gallery { display: grid; gap: 14px; padding-block: calc(var(--header-h) + 8px) 14px; }
.product-page__shot { aspect-ratio: 1; margin: 0; overflow: hidden; background: var(--burgundy); scroll-margin-top: calc(var(--header-h) + 8px); }
.product-page__shot img { width: 100%; height: 100%; object-fit: cover; }

.product-page__summary { display: grid; align-content: center; padding-top: var(--header-h); }
.product-page__hold { display: grid; gap: 16px; }
/* WooCommerce's own layout floats the summary at 48% and tints the price. */
.woocommerce div.product.product-page div.summary { float: none; width: auto; margin: 0; }
.product-page .product_title { margin: 0; font-size: clamp(2.5rem, 1rem + 3.2vw, 5rem); font-weight: 700; font-stretch: 76%; line-height: 0.86; letter-spacing: -0.035em; }
.woocommerce div.product.product-page p.price { margin: 0; color: var(--paper); font-size: var(--step-statement); font-weight: 700; }
.woocommerce div.product.product-page p.price del { color: #e3c9cf; opacity: 0.8; }
.woocommerce div.product.product-page p.price ins { text-decoration: none; }
.product-page .availability { gap: 2px; margin: 0; padding: 0; background: none; }
.product-page .availability__label { font-size: 1rem; }
.product-page .availability__payment,
.product-page .availability__note { color: #e3c9cf; font-size: 0.9375rem; }
.product-page .woocommerce-product-details__short-description { font-size: 1.0625rem; line-height: 1.5; }
.product-page .woocommerce-product-details__short-description p { margin: 0 0 6px; }
.product-page .shop-soon { margin: 6px 0 0; font-size: var(--step-statement); font-weight: 700; }

.woocommerce div.product.product-page form.cart { display: grid; gap: 0; margin: 4px 0 0; }
.product-page form.cart .variations { margin-bottom: 18px; }
.product-page form.cart::before,
.product-page form.cart::after { display: none; }
/* The phone buy bar's jump target, kept out of the column's spacing. */
.product-page .shop-anchor { position: absolute; }
.product-page form.cart table.variations { margin-top: 0; border: 0; }
.product-page form.cart .variations tr { display: grid; gap: 6px; }
.product-page form.cart .variations th,
.product-page form.cart .variations td { display: block; padding: 0; text-align: left; }
.product-page form.cart .variations label { color: #e3c9cf; font-weight: 700; }
.product-page form.cart .variations select { min-height: 48px; min-width: 160px; padding: 0 12px; border: 2px solid var(--paper); border-radius: 0; background: transparent; color: var(--paper); font: inherit; }
.product-page form.cart.has-sizes .variations select { position: absolute; width: 1px; height: 1px; min-height: 0; min-width: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.product-page .reset_variations { display: none !important; }
/* Sizes as words: the chosen one underlined in sky, sold-out ones faded. */
.sizes { display: flex; flex-wrap: wrap; gap: 0 22px; }
.sizes button { min-width: 32px; min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--paper); font: inherit; font-size: clamp(1.5rem, 1rem + 1vw, 2rem); font-weight: 700; font-stretch: 78%; cursor: pointer; transition: color 160ms; }
.sizes button:hover { color: var(--sky); }
.sizes button[aria-pressed="true"] { color: var(--sky); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 7px; }
.sizes button:disabled { color: #8a4a58; text-decoration: line-through; text-decoration-thickness: 2px; cursor: not-allowed; }
.product-page .single_variation_wrap .woocommerce-variation-price,
.product-page .woocommerce-variation-availability { display: none; }
.product-page .quantity { display: none !important; }
.product-page .single_variation_wrap,
.product-page .woocommerce-variation-add-to-cart { display: grid; }
.woocommerce .product-page button.single_add_to_cart_button,
.woocommerce .product-page button.single_add_to_cart_button.alt { width: 100%; }
.woocommerce .product-page button.single_add_to_cart_button.disabled,
.woocommerce .product-page button.single_add_to_cart_button:disabled { background: var(--paper); color: var(--wine); opacity: 0.4; }


/* Other products: the shop's own word, then a row of tiles. */
.product-more { padding: clamp(80px, 14vh, 180px) 0 clamp(96px, 14vh, 180px); }
.product-more__title { margin-bottom: clamp(24px, 4vh, 48px); font-size: clamp(4rem, 1rem + 12vw, 14rem); }
.product-more__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--gutter); margin: 0; padding: 0 var(--margin); list-style: none; }
.product-more__item { display: grid; gap: 6px; text-decoration: none; }
.product-more__tile { display: block; aspect-ratio: 1; margin-bottom: 10px; overflow: hidden; background: var(--burgundy); }
.product-more__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out); }
.product-more__item:hover img { transform: scale(1.04); }
.product-more__name { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); font-weight: 700; font-stretch: 78%; line-height: 1; letter-spacing: -0.02em; }
.product-more__item:hover .product-more__name { text-decoration: underline; text-decoration-thickness: 2px; }
.product-more__price { font-weight: 700; color: #e3c9cf; }

@media (max-width: 899px) {
	.product-page { grid-template-columns: minmax(0, 1fr); padding: calc(var(--header-h) + 8px) 0 0; }
	.product-page__aside,
	.product-page__summary,
	.product-page__gallery,
	.product-page__description { grid-column: 1; grid-row: auto; }
	.product-page__aside,
	.product-page__summary { position: static; height: auto; padding-top: 0; }
	.product-page__description { padding: 32px var(--margin) 0; }
	.product-page__aside { display: block; padding: 0 var(--margin) 16px; }
		.product-page__thumbs { display: none; }
	/* Pictures swipe sideways on phones. */
	.product-page__gallery { grid-auto-flow: column; grid-auto-columns: 100%; gap: 8px; padding: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.product-page__shot { scroll-snap-align: start; }
	.product-page__summary { padding: 28px var(--margin) 0; }
	.product-more__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablets: two columns, the pictures stacked on the left, the name, price
   and button held beside them; the description follows the pictures. */
@media (min-width: 600px) and (max-width: 899px) {
	.product-page.product-page { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 24px; padding: calc(var(--header-h) + 8px) var(--margin) 0; }
	.product-page .product-page__aside { grid-column: 1 / -1; grid-row: 1; padding: 0 0 16px; }
	.product-page .product-page__gallery { grid-column: 1; grid-row: 2; grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; gap: 12px; }
	.product-page .product-page__summary { grid-column: 2; grid-row: 2; position: sticky; top: calc(var(--header-h) + 8px); align-self: start; height: auto; padding: 0; }
	.product-page .product-page__description { grid-column: 1; grid-row: 3; padding: 32px 0 0; }
}

/* Order received and account order views: the same headline type as the cart. */
.woo-page .woocommerce-order-details__title,
.woo-page .woocommerce-column__title,
.woo-page .woocommerce-customer-details h2,
.woo-page .woocommerce-order h2 { margin: 1.2em 0 0.4em; font-size: clamp(1.75rem, 1rem + 1.4vw, 2.5rem); font-weight: 700; font-stretch: 78%; line-height: 1; letter-spacing: -0.02em; }
.woo-page .woocommerce-customer-details address { border: 0; padding: 0; font-style: normal; line-height: 1.6; }

/* ---------- MakeCommerce (Maksekeskus) at checkout ----------
   The plugin brings a white Bootstrap panel and a react-select dropdown that
   inherit the page's light text. Matched to the checkout here; the ids and
   class suffixes come from the plugin's block checkout components. */

/* Parcel locker picker (react-select; class names end in -control, -menu, …). */
.woo-page #mc_pickup_point_select [class$="-control"] {
	min-height: 52px;
	border: 2px solid var(--paper);
	border-radius: 0;
	background: transparent;
	box-shadow: none; /* taste-skill-ignore: removes the plugin's shadow */
	cursor: pointer;
}
.woo-page #mc_pickup_point_select [class$="-control"]:hover { border-color: var(--sky); }
.woo-page #mc_pickup_point_select:focus-within [class$="-control"] { border-color: var(--sky); outline: 2px solid var(--sky); outline-offset: 2px; }
.woo-page #mc_pickup_point_select [class$="-singleValue"],
.woo-page #mc_pickup_point_select [class$="-Input"],
.woo-page #mc_pickup_point_select input { color: var(--paper) !important; font-weight: 600; }
.woo-page #mc_pickup_point_select [class$="-placeholder"] { color: #e3c9cf; }
.woo-page #mc_pickup_point_select [class$="-indicatorContainer"] { color: var(--paper); }
.woo-page #mc_pickup_point_select [class$="-indicatorSeparator"] { background-color: rgba(241, 240, 237, 0.4); }
.woo-page #mc_pickup_point_select [class$="-menu"] {
	z-index: 20;
	margin-top: 4px;
	border-radius: 0;
	background: var(--paper);
	color: var(--night);
	box-shadow: 0 12px 32px rgba(9, 11, 17, 0.35); /* taste-skill-ignore: an open dropdown must lift off the page */
}
.woo-page #mc_pickup_point_select [class$="-option"] { color: var(--night); cursor: pointer; }
.woo-page #mc_pickup_point_select [class$="-option"][aria-selected="true"],
.woo-page #mc_pickup_point_select [class$="-option"]:active { background: var(--blue-800); color: var(--paper); }
.woo-page #mc_pickup_point_select [class$="-NoOptionsMessage"],
.woo-page #mc_pickup_point_select [class$="-LoadingMessage"] { color: #4a4f5c; }
.woo-page .mc-block-pickup-point { position: relative; z-index: 30; margin-block: clamp(20px, 3vw, 32px); } /* the open list stays above the payment block */

/* Bank links and cards. */
.woo-page .makecommerce-payment-methods { color: var(--paper); }
.woo-page .makecommerce-payment-methods .makecommerce-picker.bg-white { padding: 4px 0 8px !important; background: transparent !important; }
.woo-page .makecommerce-payment-methods .text-muted { color: #e3c9cf !important; font-size: var(--step-small) !important; font-weight: 700 !important; }
.woo-page .makecommerce-payment-methods .border-top { border-color: rgba(241, 240, 237, 0.25) !important; }
.woo-page .makecommerce-payment-methods .form-select {
	min-height: 48px;
	border: 2px solid var(--paper);
	border-radius: 0;
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f1f0ed' stroke-linecap='square' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
	color: var(--paper);
	font: inherit;
	font-weight: 600;
	box-shadow: none; /* taste-skill-ignore: removes the plugin's shadow */
}
.woo-page .makecommerce-payment-methods .form-select:focus { border-color: var(--sky); outline: 2px solid var(--sky); outline-offset: 2px; }
.woo-page .makecommerce-payment-methods .form-select option { color: var(--night); }
/* Bank logos need a light tile; paper instead of white, square, flat. */
.woo-page .makecommerce-payment-methods .payment-method {
	border: 2px solid transparent;
	border-radius: 0 !important;
	background: var(--paper);
	box-shadow: none !important; /* taste-skill-ignore: removes the plugin's shadow */
	transition: border-color 160ms, transform 160ms var(--ease-out);
}
.woo-page .makecommerce-payment-methods .payment-method:hover { border-color: var(--sky); }
.woo-page .makecommerce-payment-methods .payment-method:active { transform: scale(0.98); }
.woo-page .makecommerce-payment-methods .payment-method-selected,
.woo-page .makecommerce-payment-methods .payment-method:has(input:checked) { outline: 3px solid var(--sky); outline-offset: 2px; }
.woo-page .makecommerce-payment-methods .payment-method-selected > .check {
	top: -12px;
	right: -12px;
	width: 22px;
	height: 22px;
	background: var(--sky) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23090b11' stroke-width='2.5' d='m3.5 8.5 3 3 6-7'/%3e%3c/svg%3e") center / 14px no-repeat;
}
.woo-page .makecommerce-payment-methods .payment-method:has(input:focus-visible) { outline: 2px solid var(--sky); outline-offset: 2px; }
