/**
 * Foliora: WooCommerce (inc/woocommerce.php).
 *
 * WooCommerce's own stylesheets are not loaded; this file styles the whole
 * shop with the theme's colour variables, fonts, corners and buttons, so it
 * follows the colour schemes, dark mode and right-to-left by itself.
 *
 * 1. Shared pieces: buttons, fields, notices, stars, prices, badges
 * 2. Header cart button and the slide-in cart
 * 3. Shop lists: heading, toolbar, product grid and cards, sidebar
 * 4. Product page: gallery, summary, options, tabs, reviews, related
 * 5. Cart, checkout and account pages (WooCommerce blocks and classic)
 *
 * @package Foliora
 */

:root {
	--foliora-shop-radius: calc(12px * var(--foliora-corner-scale, 1));
	--foliora-shop-ok: #1e7f4f;
	--foliora-shop-bad: #b3261e;
	--foliora-shop-star: #e0a100;
}

.foliora-dark {
	--foliora-shop-ok: #6fd3a0;
	--foliora-shop-bad: #ff8a80;
	--foliora-shop-star: #f2c14e;
}

/* ===========================================================================
   1. Shared pieces
   ======================================================================== */

/* ---------- Buttons ----------
   The theme's main button: accent, the Customizer's button corners. Also
   in a Single Product block placed in a post or page. */
:is(.woocommerce, .woocommerce-page, .foliora-shop, .foliora-panel--cart, .wp-block-woocommerce-single-product) :is(a.button, button.button, input.button, input[type="submit"].button),
.foliora-shop .wc-block-components-button:not(.is-link),
.foliora-shop .wp-element-button.wc-block-components-button:not(.is-link) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	margin: 0;
	padding: 0 24px;
	border: 1.5px solid var(--foliora-accent);
	border-radius: var(--foliora-btn-radius, 999px);
	background: var(--foliora-accent);
	background-image: none;
	box-shadow: none;
	color: var(--foliora-on-accent);
	font-family: var(--foliora-font-heading);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	white-space: normal;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

:is(.woocommerce, .woocommerce-page, .foliora-shop, .foliora-panel--cart, .wp-block-woocommerce-single-product) :is(a.button, button.button, input.button):hover,
.foliora-shop .wc-block-components-button:not(.is-link):hover {
	border-color: var(--foliora-accent-hover);
	background: var(--foliora-accent-hover);
	color: var(--foliora-on-accent);
	text-decoration: none;
}

:is(.woocommerce, .woocommerce-page, .foliora-shop, .foliora-panel--cart, .wp-block-woocommerce-single-product) :is(a.button, button.button, input.button):focus-visible,
.foliora-shop .wc-block-components-button:not(.is-link):focus-visible {
	outline: 3px solid var(--foliora-link);
	outline-offset: 3px;
}

:is(.woocommerce, .woocommerce-page, .foliora-shop, .foliora-panel--cart, .wp-block-woocommerce-single-product) :is(a.button, button.button, input.button):is(:disabled, .disabled) {
	border-color: var(--foliora-line);
	background: var(--foliora-surface);
	color: var(--foliora-muted);
	cursor: not-allowed;
}

/* Quiet buttons: outlined. */
:is(.woocommerce, .woocommerce-page, .foliora-shop, .foliora-panel--cart, .wp-block-woocommerce-single-product) :is(a.button, button.button):is(.wc-backward, .woocommerce-mini-cart__buttons .wc-forward:not(.checkout), [name="update_cart"], [name="apply_coupon"], .woocommerce-Button--previous, .woocommerce-button--previous) {
	border-color: var(--foliora-line-strong);
	background: transparent;
	color: var(--foliora-text);
}

:is(.woocommerce, .woocommerce-page, .foliora-shop, .foliora-panel--cart, .wp-block-woocommerce-single-product) :is(a.button, button.button):is(.wc-backward, .woocommerce-mini-cart__buttons .wc-forward:not(.checkout), [name="update_cart"], [name="apply_coupon"]):hover {
	border-color: var(--foliora-text);
	background: transparent;
	color: var(--foliora-text);
}

/* Busy (adding to cart): a spinner in place of the label. */
:is(.woocommerce, .foliora-shop) .button.loading {
	position: relative;
	color: transparent !important;
	pointer-events: none;
}

:is(.woocommerce, .foliora-shop) .button.loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid currentColor;
	border-color: var(--foliora-on-accent) var(--foliora-on-accent) transparent transparent;
	border-radius: 50%;
	animation: foliora-shop-spin 0.7s linear infinite;
}

@keyframes foliora-shop-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---------- Fields ---------- */
:is(.woocommerce, .woocommerce-page, .foliora-shop) :is(.input-text, input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="number"], input[type="search"], select, textarea):where(:not(.qty, .foliora-search-form__input, :is(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout, .wc-block-components-form, .wc-block-components-quantity-selector) *)) {
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 12px 16px;
	border: 1.5px solid var(--foliora-field);
	border-radius: var(--foliora-shop-radius);
	background-color: var(--foliora-bg);
	box-shadow: none;
	color: var(--foliora-text);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

:is(.woocommerce, .woocommerce-page, .foliora-shop) textarea:where(:not(:is(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout) *)) {
	min-height: 140px;
	resize: vertical;
}

:is(.woocommerce, .woocommerce-page, .foliora-shop) select:where(:not(.foliora-swatches__select, :is(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout) *)) {
	padding-inline-end: 44px;
	-webkit-appearance: none;
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--foliora-muted) 50%), linear-gradient(135deg, var(--foliora-muted) 50%, transparent 50%);
	background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	cursor: pointer;
}

[dir="rtl"] :is(.woocommerce, .woocommerce-page, .foliora-shop) select:where(:not(.foliora-swatches__select, :is(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout) *)) {
	background-position: 17px 50%, 22px 50%;
}

:is(.woocommerce, .woocommerce-page, .foliora-shop) :is(.input-text, input, select, textarea):where(:not([type="checkbox"], [type="radio"], :is(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout) *)):focus {
	border-color: var(--foliora-accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--foliora-accent) 14%, transparent);
	outline: none;
}

:is(.woocommerce, .woocommerce-page, .foliora-shop) :is(.input-text, input, select, textarea):focus-visible {
	outline: 2px solid var(--foliora-link);
	outline-offset: 1px;
}

:is(.woocommerce, .woocommerce-page) .form-row {
	margin: 0 0 18px;
	padding: 0;
}

:is(.woocommerce, .woocommerce-page) .form-row label,
:is(.woocommerce, .woocommerce-page) .woocommerce-form-row label {
	display: block;
	margin: 0 0 8px;
	color: var(--foliora-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

:is(.woocommerce, .woocommerce-page) .required {
	border: 0;
	color: var(--foliora-shop-bad);
	text-decoration: none;
}

:is(.woocommerce, .woocommerce-page) :is(input[type="checkbox"], input[type="radio"]) {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--foliora-accent);
	vertical-align: -3px;
}

:is(.woocommerce, .woocommerce-page) label.woocommerce-form__label-for-checkbox,
:is(.woocommerce, .woocommerce-page) .form-row label.checkbox {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
	cursor: pointer;
}

/* ---------- Notices ----------
   A card with a coloured edge and an icon; links inside are underlined. */
.woocommerce-notices-wrapper:empty {
	display: none;
}

/* p.no-comments stays outside :is(): inside it, the element would raise the
   whole list's specificity above the success and error colours below. */
:is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews),
p.no-comments,
.foliora-shop .wc-block-components-notice-banner {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin: 0 0 24px;
	padding: 16px 20px;
	padding-inline-start: 52px;
	border: 1px solid var(--foliora-line);
	border-inline-start: 4px solid var(--foliora-accent);
	border-radius: var(--foliora-shop-radius);
	background: var(--foliora-surface);
	color: var(--foliora-text);
	font-size: 15px;
	line-height: 1.5;
	list-style: none;
}

.woocommerce-message {
	border-inline-start-color: var(--foliora-shop-ok);
}

.woocommerce-error {
	border-inline-start-color: var(--foliora-shop-bad);
}

:is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews)::before,
p.no-comments::before {
	content: "";
	position: absolute;
	top: 18px;
	inset-inline-start: 18px;
	width: 20px;
	height: 20px;
	background: var(--foliora-accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 11v6M12 7.5v.01'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 11v6M12 7.5v.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.woocommerce-message::before {
	background: var(--foliora-shop-ok);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 9.5'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 9.5'/%3E%3C/svg%3E");
}

.woocommerce-error::before {
	background: var(--foliora-shop-bad);
}

.woocommerce-error li {
	margin: 0;
	padding: 0;
	flex-basis: 100%;
}

:is(.woocommerce-message, .woocommerce-info, .woocommerce-error) a:not(.button) {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* The notice's own button ("View cart") goes to the end. */
:is(.woocommerce-message, .woocommerce-info, .woocommerce-error) .button {
	order: 2;
	min-height: 40px !important;
	margin-inline-start: auto !important;
	padding: 0 18px !important;
	font-size: 14px !important;
}

/* With a button, the row is as tall as the button and the text is centred in
   it, so the icon is centred too. From 768px: text and button share one row
   (the text wraps beside the button). Below that the button always starts
   its own row, so the icon stays on the first line of text. */
@media (min-width: 768px) {
	:is(.woocommerce-message, .woocommerce-info, .woocommerce-error):has(> .button) {
		flex-wrap: nowrap;
	}

	:is(.woocommerce-message, .woocommerce-info, .woocommerce-error) > .button {
		flex: none;
		white-space: nowrap;
	}

	:is(.woocommerce-message, .woocommerce-info, .woocommerce-error):has(> .button)::before {
		top: 50%;
		transform: translateY(-50%);
	}
}

@media (max-width: 767px) {
	:is(.woocommerce-message, .woocommerce-info, .woocommerce-error):has(> .button)::after {
		content: "";
		order: 1;
		flex-basis: 100%;
		height: 0;
	}
}

/* WooCommerce's block notices (cart, checkout). */
.foliora-shop .wc-block-components-notice-banner {
	padding-inline-start: 20px;
}

.foliora-shop .wc-block-components-notice-banner > svg {
	flex: none;
	border-radius: 50%;
	background: var(--foliora-accent);
	fill: var(--foliora-on-accent);
}

.foliora-shop .wc-block-components-notice-banner.is-error {
	border-inline-start-color: var(--foliora-shop-bad);
}

.foliora-shop .wc-block-components-notice-banner.is-error > svg {
	background: var(--foliora-shop-bad);
}

.foliora-shop .wc-block-components-notice-banner.is-success {
	border-inline-start-color: var(--foliora-shop-ok);
}

.foliora-shop .wc-block-components-notice-banner.is-success > svg {
	background: var(--foliora-shop-ok);
}

/* ---------- Star ratings ----------
   Five stars drawn with a mask in the theme's gold; the filled part is the
   inner span's width (WooCommerce sets it). */
.star-rating,
.wc-block-components-product-rating__stars {
	position: relative;
	display: inline-block;
	flex: none;
	width: 5.6em;
	height: 1em;
	overflow: hidden;
	font-size: 14px;
	line-height: 1;
	vertical-align: middle;
}

.star-rating::before,
.star-rating > span::before,
.wc-block-components-product-rating__stars::before,
.wc-block-components-product-rating__stars > span::before {
	content: "" !important;
	font-family: inherit !important;
	position: absolute;
	inset: 0;
	width: 5.6em;
	background: var(--foliora-line-strong);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 24'%3E%3Cpath d='M12 1.8l3.1 6.4 7 1-5.1 4.9 1.2 7L12 17.8l-6.2 3.3 1.2-7L1.9 9.2l7-1z'/%3E%3C/svg%3E") 0 0 / 1.12em 1em repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 24'%3E%3Cpath d='M12 1.8l3.1 6.4 7 1-5.1 4.9 1.2 7L12 17.8l-6.2 3.3 1.2-7L1.9 9.2l7-1z'/%3E%3C/svg%3E") 0 0 / 1.12em 1em repeat-x;
}

.star-rating > span,
.wc-block-components-product-rating__stars > span {
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	height: 100%;
	overflow: hidden;
	color: transparent;
	white-space: nowrap;
}

.star-rating > span::before,
.wc-block-components-product-rating__stars > span::before {
	background: var(--foliora-shop-star);
}

.wc-block-components-product-rating__stars {
	margin: 0 !important;
	font-size: 14px !important;
	letter-spacing: 0 !important;
}

.wc-block-components-product-rating__stars > span {
	padding: 0 !important;
}

[dir="rtl"] .star-rating > span::before {
	inset-inline-start: 0;
	right: 0;
	left: auto;
	-webkit-mask-position: 100% 0;
	mask-position: 100% 0;
}

/* Choosing stars in the review form (WooCommerce turns the select into
   links). */
.comment-form-rating p.stars {
	margin: 0;
	line-height: 1;
}

.comment-form-rating p.stars > span {
	display: inline-flex;
	gap: 4px;
}

.comment-form-rating p.stars a {
	position: relative;
	display: inline-block;
	width: 28px;
	height: 28px;
	overflow: hidden;
	background: var(--foliora-line-strong);
	text-indent: -999em;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3.1 6.4 7 1-5.1 4.9 1.2 7L12 17.8l-6.2 3.3 1.2-7L1.9 9.2l7-1z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3.1 6.4 7 1-5.1 4.9 1.2 7L12 17.8l-6.2 3.3 1.2-7L1.9 9.2l7-1z'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: background-color 0.15s ease;
}

.comment-form-rating p.stars.selected a,
.comment-form-rating p.stars > span:hover a {
	background: var(--foliora-shop-star);
}

.comment-form-rating p.stars.selected a.active ~ a,
.comment-form-rating p.stars > span a:hover ~ a {
	background: var(--foliora-line-strong);
}

.comment-form-rating p.stars a:focus-visible {
	outline: none;
	background: var(--foliora-accent);
}

/* ---------- Prices ---------- */
.price,
.woocommerce-Price-amount {
	font-variant-numeric: tabular-nums;
}

.price del {
	color: var(--foliora-muted);
	font-weight: 400;
	text-decoration-thickness: 1px;
	opacity: 1;
}

.price ins {
	background: none;
	color: inherit;
	text-decoration: none;
}

/* ---------- Badges ---------- */
.foliora-badge {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 10px;
	border-radius: 999px;
	background: var(--foliora-accent);
	color: var(--foliora-on-accent);
	font-family: var(--foliora-font-heading);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
}

.foliora-badge--stock {
	background: var(--foliora-text);
	color: var(--foliora-bg);
}

/* ---------- Stock ---------- */
.stock {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	color: var(--foliora-shop-ok);
	font-size: 14px;
	font-weight: 600;
}

.stock::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.stock.out-of-stock {
	color: var(--foliora-shop-bad);
}

/* ---------- Tables (orders, account, attributes) ---------- */
:is(.woocommerce, .woocommerce-page) table.shop_table,
:is(.woocommerce, .woocommerce-page) table.woocommerce-table {
	width: 100%;
	margin: 0 0 32px;
	border: 1px solid var(--foliora-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--foliora-shop-radius);
	overflow: hidden;
	font-size: 15px;
}

:is(.woocommerce, .woocommerce-page) table.shop_table :is(th, td) {
	padding: 14px 18px;
	border: 0;
	border-top: 1px solid var(--foliora-line);
	text-align: start;
	vertical-align: middle;
}

:is(.woocommerce, .woocommerce-page) table.shop_table thead th {
	border-top: 0;
	background: var(--foliora-surface);
	color: var(--foliora-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

:is(.woocommerce, .woocommerce-page) table.shop_table tfoot :is(th, td) {
	font-weight: 600;
}

:is(.woocommerce, .woocommerce-page) table.shop_table a:not(.button) {
	color: var(--foliora-text);
	font-weight: 600;
}

/* ===========================================================================
   2. Header cart button and the slide-in cart
   ======================================================================== */

/* The bag never flips (the panel icon does, panel.css). */
.foliora-cart-open .foliora-icon,
[dir="rtl"] .foliora-cart-open .foliora-icon {
	scale: 1 1;
}

.foliora-cart-open {
	position: relative;
}

.foliora-cart-open .foliora-cart-count__number {
	position: absolute;
	top: 4px;
	inset-inline-end: 2px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--foliora-accent);
	box-shadow: 0 0 0 2px var(--foliora-bg);
	color: var(--foliora-on-accent);
	font-family: var(--foliora-font-heading);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.foliora-cart-count[data-count="0"] .foliora-cart-count__number {
	display: none;
}

/* On the coloured bars: the bar's colours, swapped. */
:is(.foliora-topbar--bar, .foliora-header--topnav .navbar) .foliora-cart-open .foliora-cart-count__number {
	background: var(--foliora-bar-text);
	box-shadow: 0 0 0 2px var(--foliora-bar-bg, var(--foliora-accent));
	color: var(--foliora-bar-bg, var(--foliora-accent));
}

.foliora-topbar--bar .foliora-cart-open .foliora-cart-count__number {
	top: 2px;
}

/* Classic, wide screens: a menu item after search. */
#inner-navigation .nav.navbar-nav > li.menu-item-cart > a.foliora-panel-open {
	display: inline-flex;
	width: 36px;
	height: 36px;
	padding: 0;
	font-size: 16px;
	vertical-align: middle;
}

#inner-navigation .nav.navbar-nav > li.menu-item-cart > a.foliora-panel-open .foliora-cart-count__number {
	top: -4px;
	inset-inline-end: -6px;
}

#inner-navigation .nav.navbar-nav > li.menu-item-cart > a.foliora-panel-open:focus-visible {
	outline: 2px solid var(--foliora-link);
	outline-offset: 0;
}

@media (min-width: 992px) {
	#inner-navigation .nav.navbar-nav > li.menu-item-cart {
		margin-inline-start: 12px;
	}
}

@media (max-width: 991px) {
	#inner-navigation #navbar .nav.navbar-nav > li.menu-item-cart {
		display: none;
	}

	html:not(.foliora-js) #inner-navigation #navbar .nav.navbar-nav > li.menu-item-cart {
		display: block;
	}
}

@media (min-width: 992px) {
	html.foliora-nav-compact #inner-navigation #navbar .nav.navbar-nav > li.menu-item-cart {
		display: none;
	}
}

/* The count in the cart's heading. */
.foliora-panel__title .foliora-cart-count__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	margin-inline-start: 6px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--foliora-surface);
	color: var(--foliora-text);
	font-size: 14px;
	font-weight: 700;
	vertical-align: 3px;
}

/* ---------- The slide-in cart ----------
   The list scrolls; the subtotal and the buttons stay at the bottom. */
.foliora-panel--cart .foliora-panel__body.foliora-minicart {
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
}

.foliora-minicart .widget_shopping_cart_content {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
}

.foliora-minicart .woocommerce-mini-cart {
	flex: 1 1 auto;
	min-height: 0;
	margin: 0;
	padding: 8px 24px;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
	scrollbar-width: thin;
}

.foliora-minicart .woocommerce-mini-cart-item {
	position: relative;
	display: block;
	min-height: 96px;
	margin: 0;
	padding: 16px 0;
	padding-inline: 96px 40px;
	border-bottom: 1px solid var(--foliora-line);
	color: var(--foliora-muted);
	font-size: 14px;
	line-height: 1.5;
}

.foliora-minicart .woocommerce-mini-cart-item:last-child {
	border-bottom: 0;
}

.foliora-minicart .woocommerce-mini-cart-item > a:not(.remove) {
	display: block;
	margin-bottom: 4px;
	background-image: none;
	color: var(--foliora-text);
	font-family: var(--foliora-font-heading);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.foliora-minicart .woocommerce-mini-cart-item > a:not(.remove):hover {
	color: var(--foliora-link);
}

.foliora-minicart .woocommerce-mini-cart-item img {
	position: absolute;
	top: 16px;
	inset-inline-start: 0;
	width: 80px;
	height: 80px;
	margin: 0;
	border-radius: var(--foliora-shop-radius);
	background: var(--foliora-media);
	object-fit: cover;
}

.foliora-minicart .woocommerce-mini-cart-item .quantity {
	display: block;
	color: var(--foliora-muted);
	font-variant-numeric: tabular-nums;
}

.foliora-minicart .woocommerce-mini-cart-item .quantity .amount {
	color: var(--foliora-text);
	font-weight: 600;
}

.foliora-minicart .woocommerce-mini-cart-item dl.variation {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0 6px;
	margin: 0 0 4px;
	font-size: 13px;
}

.foliora-minicart .woocommerce-mini-cart-item dl.variation :is(dt, dd, p) {
	margin: 0;
	font-weight: 400;
}

.foliora-minicart a.remove {
	position: absolute;
	top: 14px;
	inset-inline-end: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: none;
	color: var(--foliora-muted) !important;
	font-size: 22px;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.foliora-minicart a.remove:hover {
	background: var(--foliora-surface);
	color: var(--foliora-shop-bad) !important;
}

.foliora-minicart a.remove:focus-visible {
	outline: 2px solid var(--foliora-link);
	outline-offset: 0;
}

/* WooCommerce dims the list while it updates. */
.foliora-minicart .blockUI.blockOverlay {
	background: var(--foliora-bg) !important;
}

.foliora-minicart .woocommerce-mini-cart__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 0;
	padding: 20px 24px 4px;
	border-top: 1px solid var(--foliora-line);
	color: var(--foliora-text);
	font-size: 16px;
}

.foliora-minicart .woocommerce-mini-cart__total strong {
	font-weight: 600;
}

.foliora-minicart .woocommerce-mini-cart__total .amount {
	font-family: var(--foliora-font-heading);
	font-size: 20px;
	font-weight: 700;
}

.foliora-minicart .woocommerce-mini-cart__total::after {
	content: none;
}

.foliora-minicart .woocommerce-mini-cart__buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin: 0;
	padding: 16px 24px 24px;
}

.foliora-minicart .woocommerce-mini-cart__buttons .button {
	width: 100%;
	min-height: 52px;
}

.foliora-minicart .woocommerce-mini-cart__buttons .checkout {
	order: 2;
}

/* Empty: a bag, the message and a way to the shop. */
.foliora-minicart .woocommerce-mini-cart__empty-message {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	margin: auto 0 0;
	padding: 48px 24px 0;
	color: var(--foliora-muted);
	font-size: 16px;
	text-align: center;
}

.foliora-minicart .woocommerce-mini-cart__empty-message::before {
	content: "";
	width: 48px;
	height: 48px;
	background: var(--foliora-faint, var(--foliora-muted));
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a2.5 2.5 0 0 1 2.5 2.5V4h-5v-.5A2.5 2.5 0 0 1 8 1m3.5 3v-.5a3.5 3.5 0 1 0-7 0V4H1v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4zM2 5h12v9a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a2.5 2.5 0 0 1 2.5 2.5V4h-5v-.5A2.5 2.5 0 0 1 8 1m3.5 3v-.5a3.5 3.5 0 1 0-7 0V4H1v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4zM2 5h12v9a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.foliora-minicart .foliora-minicart__shop {
	margin: 20px 0 auto;
	padding: 0 24px 48px;
	text-align: center;
}

.foliora-minicart__shop .button {
	min-width: 200px;
}

/* ===========================================================================
   3. Shop lists
   ======================================================================== */

.foliora-shop .foliora-posts {
	padding-bottom: 96px;
}

.foliora-shop__header {
	margin-bottom: 32px;
}

.foliora-shop__header .foliora-list-header__description :is(.page-description, .term-description) > :last-child {
	margin-bottom: 0;
}

/* The shortcuts keep to one line on phones and scroll sideways. */
@media (max-width: 767px) {
	.foliora-shop__chips {
		flex-wrap: nowrap;
		width: calc(100% + 12px);
		margin-inline-end: -12px;
		padding-bottom: 4px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.foliora-shop__chips .foliora-chip {
		flex: none;
	}
}

/* ---------- Toolbar ---------- */
.foliora-shop__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin: 0 0 32px;
	padding: 0 0 20px;
	border-bottom: 1px solid var(--foliora-line);
}

.foliora-shop__toolbar .woocommerce-result-count {
	margin: 0;
	color: var(--foliora-muted);
	font-size: 15px;
}

.foliora-shop__toolbar .woocommerce-ordering {
	position: relative;
	margin: 0 0 0 auto;
	margin-inline-start: auto;
}

[dir="rtl"] .foliora-shop__toolbar .woocommerce-ordering {
	margin-left: 0;
}

.foliora-shop .foliora-shop__toolbar .woocommerce-ordering select.orderby {
	width: auto;
	min-width: 220px;
	min-height: 44px;
	padding-block: 8px;
	border-radius: var(--foliora-btn-radius, 999px);
	font-size: 15px;
	font-weight: 500;
}

.foliora-shop__filter-open {
	display: none;
}

@media (max-width: 991px) {
	.foliora-shop__filter-open {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		height: 44px;
		padding: 0 18px;
		border: 1.5px solid var(--foliora-line-strong);
		border-radius: var(--foliora-btn-radius, 999px);
		background: var(--foliora-bg);
		background-image: none;
		color: var(--foliora-text);
		font-size: 15px;
		font-weight: 600;
		text-decoration: none;
	}

	.foliora-shop__filter-open:hover {
		border-color: var(--foliora-text);
		color: var(--foliora-text);
	}

	.foliora-shop__filter-open:focus-visible {
		outline: 3px solid var(--foliora-link);
		outline-offset: 2px;
	}

	.foliora-shop__toolbar .woocommerce-result-count {
		order: 3;
		width: 100%;
	}
}

@media (max-width: 575px) {
	.foliora-shop .foliora-shop__toolbar .woocommerce-ordering select.orderby {
		min-width: 0;
		max-width: 60vw;
	}
}

/* ---------- Product grid ---------- */
ul.products {
	--foliora-shop-cols: 4;
	display: grid;
	grid-template-columns: repeat(var(--foliora-shop-cols), minmax(0, 1fr));
	gap: 48px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.products.columns-2 { --foliora-shop-cols: 2; }
ul.products.columns-3 { --foliora-shop-cols: 3; }
ul.products.columns-5,
ul.products.columns-6 { --foliora-shop-cols: 4; }

ul.products::before,
ul.products::after {
	content: none;
}

/* Beside a sidebar: one column fewer. */
@media (min-width: 992px) {
	.foliora-shop__layout ul.products.columns-4 { --foliora-shop-cols: 3; }
}

@media (max-width: 1199px) {
	ul.products { gap: 40px 24px; }
}

@media (max-width: 991px) {
	ul.products:is(.columns-3, .columns-4, .columns-5, .columns-6) { --foliora-shop-cols: 3; }
}

@media (max-width: 767px) {
	ul.products,
	ul.products:is(.columns-3, .columns-4, .columns-5, .columns-6) {
		--foliora-shop-cols: 2;
		gap: 32px 14px;
	}
}

/* ---------- Product card ----------
   Photo, then category, title, rating and price. The title's link covers
   the whole card; the add-to-cart button sits above it: on screens with a
   mouse it rises over the bottom of the photo on hover or focus, on touch
   screens it sits under the price. */
ul.products li.product {
	position: relative;
	display: grid;
	grid-template-areas: "media" "body" "cta" "extra";
	grid-template-rows: auto 1fr auto auto;
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	float: none;
	text-align: start;
}

.foliora-product__media {
	position: relative;
	grid-area: media;
	aspect-ratio: 1 / 1;
	border-radius: var(--foliora-card-radius, 20px);
	background: var(--foliora-media);
	overflow: hidden;
	isolation: isolate;
}

.foliora-product__photo {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0 !important;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s ease;
}

.foliora-product__photo--hover {
	position: absolute;
	inset: 0;
	opacity: 0;
}

@media (hover: hover) {
	ul.products li.product:hover .foliora-product__media:not(.has-hover) .foliora-product__photo {
		transform: scale(1.04);
	}

	.foliora-shop-hover ul.products li.product:hover .foliora-product__media.has-hover .foliora-product__photo--hover {
		opacity: 1;
	}
}

ul.products li.product.outofstock .foliora-product__photo {
	opacity: 0.6;
}

.foliora-product__badges {
	position: absolute;
	top: 14px;
	inset-inline-start: 14px;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	pointer-events: none;
}

.foliora-product__body {
	grid-area: body;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding-top: 18px;
}

.foliora-product__cat {
	color: var(--foliora-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
}

ul.products li.product .foliora-product__title {
	margin: 0;
	padding: 0;
	font-family: var(--foliora-font-heading);
	font-size: calc(17px * var(--foliora-heading-scale, 1));
	font-weight: 600;
	line-height: 1.35;
	color: var(--foliora-text);
}

.foliora-product__title a {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	background-image: none;
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

/* The title's link covers the card. */
.foliora-product__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--foliora-card-radius, 20px);
}

.foliora-product__title a:focus-visible {
	outline: none;
}

.foliora-product__title a:focus-visible::after {
	outline: 3px solid var(--foliora-link);
	outline-offset: 6px;
}

ul.products li.product:hover .foliora-product__title a {
	color: var(--foliora-link);
}

.foliora-product__rating {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--foliora-muted);
	font-size: 13px;
}

.foliora-product__rating .star-rating {
	font-size: 13px;
}

ul.products li.product .price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 8px;
	margin-top: 2px;
	color: var(--foliora-text);
	font-family: var(--foliora-font-heading);
	font-size: 16px;
	font-weight: 700;
}

ul.products li.product .price del {
	order: 2;
	font-size: 14px;
}

/* The button. */
ul.products li.product .button {
	position: relative;
	z-index: 2;
	grid-area: cta;
	align-self: start;
	width: 100%;
	min-height: 44px;
	margin-top: 14px;
	padding: 0 16px;
	border-color: var(--foliora-line-strong);
	background: var(--foliora-bg);
	color: var(--foliora-text);
	font-size: 14px;
}

ul.products li.product .button:hover {
	border-color: var(--foliora-accent);
	background: var(--foliora-accent);
	color: var(--foliora-on-accent);
}

ul.products li.product .button.loading::after {
	border-color: var(--foliora-text) var(--foliora-text) transparent transparent;
}

/* Added: a check before the label. */
ul.products li.product .button.added::before {
	content: "";
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* WooCommerce's "View cart" link after adding (when the cart doesn't open). */
ul.products li.product .added_to_cart {
	position: relative;
	z-index: 2;
	grid-area: extra;
	justify-self: start;
	margin-top: 10px;
	color: var(--foliora-text);
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.foliora-opens-cart ul.products li.product .added_to_cart {
	display: none;
}

/* With a mouse: the button rises over the photo on hover or focus. */
@media (hover: hover) and (min-width: 768px) {
	ul.products li.product .button {
		grid-area: media;
		align-self: end;
		width: auto;
		margin: 0 12px 12px;
		border-color: transparent;
		background: color-mix(in srgb, var(--foliora-bg) 90%, transparent);
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
		box-shadow: 0 8px 24px color-mix(in srgb, var(--foliora-shade) 16%, transparent);
		opacity: 0;
		transform: translateY(10px);
		transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
	}

	ul.products li.product:is(:hover, :focus-within) .button,
	ul.products li.product .button:is(.loading, .added) {
		opacity: 1;
		transform: none;
	}

	ul.products li.product .button:hover {
		background: var(--foliora-accent);
		color: var(--foliora-on-accent);
	}
}

@media (prefers-reduced-motion: reduce) {
	.foliora-product__photo,
	ul.products li.product .button {
		transition: none;
	}

	ul.products li.product:hover .foliora-product__media .foliora-product__photo {
		transform: none;
	}
}

@media (max-width: 767px) {
	ul.products li.product .foliora-product__title {
		font-size: calc(15px * var(--foliora-heading-scale, 1));
	}

	.foliora-product__body {
		padding-top: 14px;
	}

	.foliora-product__badges {
		top: 10px;
		inset-inline-start: 10px;
	}

	ul.products li.product .button {
		min-height: 40px;
		font-size: 13px;
	}
}

/* Product category tiles (shop page set to show categories). */
ul.products li.product-category a {
	display: block;
	color: var(--foliora-text);
	text-decoration: none;
}

ul.products li.product-category img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	border-radius: var(--foliora-card-radius, 20px);
	object-fit: cover;
}

ul.products li.product-category .woocommerce-loop-category__title {
	margin: 16px 0 0;
	font-size: 17px;
	font-weight: 600;
}

ul.products li.product-category mark.count {
	background: none;
	color: var(--foliora-muted);
	font-weight: 400;
}

/* ---------- Pagination ---------- */
.foliora-shop__pagination {
	margin-top: 64px;
}

/* ---------- No products ---------- */
.foliora-shop__empty .button {
	margin-top: 8px;
}

/* ---------- Sidebar ----------
   Wide screens: beside the products (posts.css lays it out). Below 992px:
   a drawer behind the "Filters" button (panel.js). */
.foliora-shop__filters .foliora-panel__backdrop,
.foliora-shop__filters .foliora-panel__head {
	display: none;
}

.foliora-shop__layout .foliora-shop__filters {
	min-width: 0;
}

@media (min-width: 992px) {
	.foliora-shop__layout.has-sidebar-left .foliora-shop__filters {
		grid-row: 1;
		grid-column: 1;
	}

	.foliora-shop__layout .foliora-shop__sidebar {
		position: sticky;
		top: calc(var(--foliora-sticky-h, 0px) + 24px);
	}

	body.admin-bar .foliora-shop__layout .foliora-shop__sidebar {
		top: calc(var(--foliora-sticky-h, 0px) + 56px);
	}
}

@media (max-width: 991px) {
	.foliora-shop__filters {
		position: fixed;
		inset: 0;
		z-index: 100000;
		overflow: hidden;
		visibility: hidden;
		pointer-events: none;
		transition: visibility 0s linear 0.3s;
	}

	.foliora-shop__filters.is-open,
	.foliora-shop__filters:target {
		visibility: visible;
		pointer-events: auto;
		transition: none;
	}

	.foliora-shop__filters .foliora-panel__backdrop {
		position: absolute;
		inset: 0;
		display: block;
		background: color-mix(in srgb, var(--foliora-shade) 55%, transparent);
		-webkit-backdrop-filter: blur(4px);
		backdrop-filter: blur(4px);
		opacity: 0;
		transition: opacity 0.3s ease;
	}

	.foliora-shop__filters:is(.is-open, :target) .foliora-panel__backdrop {
		opacity: 1;
	}

	.foliora-shop__filters-box {
		position: absolute;
		top: 0;
		bottom: 0;
		inset-inline-start: 0;
		display: flex;
		flex-direction: column;
		width: min(400px, calc(100% - 48px));
		background: var(--foliora-bg);
		box-shadow: 0 0 64px color-mix(in srgb, var(--foliora-shade) 25%, transparent);
		transform: translateX(-100%);
		transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
	}

	[dir="rtl"] .foliora-shop__filters-box {
		transform: translateX(100%);
	}

	.foliora-shop__filters:is(.is-open, :target) .foliora-shop__filters-box {
		transform: none;
	}

	.foliora-shop__filters .foliora-panel__head {
		display: flex;
	}

	.foliora-posts__layout .foliora-shop__sidebar.foliora-sidebar {
		--foliora-widget-pad: 20px;
		flex: 1;
		min-height: 0;
		max-width: none;
		margin: 0;
		padding: 20px;
		border: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.foliora-shop__sidebar .widget + .widget {
		margin-top: 20px;
	}
}

@media (max-width: 991px) and (prefers-reduced-motion: reduce) {
	.foliora-shop__filters,
	.foliora-shop__filters .foliora-panel__backdrop,
	.foliora-shop__filters-box {
		transition: none;
	}
}

/* Filter blocks (WooCommerce's filter widgets): their heading is the
   card's title band, like other widget titles (sidebar.css); an empty one
   (Active filters with nothing chosen) takes no room. */
.foliora-sidebar .wc-blocks-filter-wrapper > .wp-block-heading:first-child {
	display: block;
	margin: 0 calc(var(--foliora-widget-pad) * -1) 24px;
	padding: 18px var(--foliora-widget-pad) 17px;
	border-bottom: 1px solid var(--foliora-line);
	color: var(--foliora-text);
	font-family: var(--foliora-font-heading);
	font-size: 12px !important;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-align: center;
	text-transform: uppercase;
}

.foliora-sidebar .widget:has(> .wp-block-woocommerce-filter-wrapper):not(:has(.wc-blocks-filter-wrapper:not([hidden]))) {
	display: none;
}

.foliora-sidebar .widget:has(> .wp-block-woocommerce-filter-wrapper) {
	padding-top: 0;
}

.foliora-sidebar .wc-block-components-price-slider__amount,
.foliora-sidebar .wc-block-price-filter__amount {
	min-height: 44px;
	padding: 0 10px;
	border: 1.5px solid var(--foliora-field) !important;
	border-radius: var(--foliora-shop-radius) !important;
	background: var(--foliora-bg) !important;
	color: var(--foliora-text) !important;
	font-size: 15px !important;
	text-align: center;
}

.foliora-sidebar .wc-block-components-price-slider__range-input-progress {
	--range-color: var(--foliora-accent) !important;
}

.foliora-sidebar :is(.wc-block-components-filter-reset-button, .wc-block-components-filter-submit-button, .wc-block-active-filters__clear-all) {
	color: var(--foliora-text) !important;
	font-size: 14px !important;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.foliora-sidebar .wc-block-active-filters__list li {
	padding: 6px 0 !important;
	border: 0 !important;
}

.foliora-sidebar .wc-block-active-filters__list-item-remove {
	color: var(--foliora-muted);
}

/* Filter widgets: the price slider (classic widget). */
.price_slider_wrapper .price_slider {
	position: relative;
	height: 4px;
	margin: 12px 8px 24px;
	border-radius: 999px;
	background: var(--foliora-line);
}

.price_slider_wrapper .ui-slider-range {
	position: absolute;
	top: 0;
	height: 100%;
	border-radius: 999px;
	background: var(--foliora-accent);
}

.price_slider_wrapper .ui-slider-handle {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid var(--foliora-bg);
	border-radius: 50%;
	background: var(--foliora-accent);
	box-shadow: 0 1px 4px color-mix(in srgb, var(--foliora-shade) 30%, transparent);
	cursor: grab;
}

.price_slider_amount {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
}

.price_slider_amount .button {
	min-height: 40px !important;
	padding: 0 16px !important;
	font-size: 14px !important;
}

.price_slider_amount input {
	display: none;
}

/* ===========================================================================
   4. Product page
   ======================================================================== */

.foliora-shop--product .foliora-posts {
	padding-top: 40px;
}

.foliora-product__crumbs {
	margin-bottom: 28px;
}

/* The photos and the summary side by side; the tabs and related products
   follow at full width. The summary keeps in view only beside the photos. */
.foliora-product__top {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
	align-items: start;
	gap: 0 72px;
}

.foliora-product__top > * {
	grid-column: 1 / -1;
	min-width: 0;
}

.foliora-product__top > .woocommerce-product-gallery {
	grid-column: 1;
	grid-row: 1;
}

.foliora-product__top > .summary {
	grid-column: 2;
	grid-row: 1;
}

/* The badges on the photos (sale, sold out). */
.foliora-product__top > .foliora-product__badges {
	top: 20px;
	left: 20px;
	z-index: 5;
	grid-column: 1;
	grid-row: 1;
}

[dir="rtl"] .foliora-product__top > .foliora-product__badges {
	right: 20px;
	left: auto;
}

.foliora-product__top > .foliora-product__badges .foliora-badge {
	height: 30px;
	padding: 0 14px;
	font-size: 13px;
}

@media (max-width: 991px) {
	.foliora-product__top {
		grid-template-columns: minmax(0, 1fr);
	}

	.foliora-product__top > .summary {
		grid-column: 1;
		grid-row: 2;
		margin-top: 32px;
	}
}

/* ---------- Gallery ---------- */
.woocommerce-product-gallery {
	position: relative;
	margin: 0;
}

.woocommerce-product-gallery .flex-viewport,
.woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
	border-radius: var(--foliora-card-radius, 20px);
	background: var(--foliora-media);
	overflow: hidden;
}

.woocommerce-product-gallery__wrapper {
	margin: 0;
}

.woocommerce-product-gallery__image a {
	display: block;
}

.woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}

/* Without the slider (no JavaScript): the first photo large, the rest as
   small tiles. */
.woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	background: none;
	border-radius: 0;
}

.woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image {
	border-radius: var(--foliora-shop-radius);
	background: var(--foliora-media);
	overflow: hidden;
}

.woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child {
	grid-column: 1 / -1;
	border-radius: var(--foliora-card-radius, 20px);
}

/* The thumbnails under the slider. */
.woocommerce-product-gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.woocommerce-product-gallery .flex-control-thumbs li {
	margin: 0;
	border-radius: var(--foliora-shop-radius);
	background: var(--foliora-media);
	overflow: hidden;
	cursor: pointer;
}

.woocommerce-product-gallery .flex-control-thumbs img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	opacity: 0.55;
	transition: opacity 0.2s ease;
}

.woocommerce-product-gallery .flex-control-thumbs img:hover,
.woocommerce-product-gallery .flex-control-thumbs img.flex-active {
	opacity: 1;
}

.woocommerce-product-gallery .flex-control-thumbs li:has(img.flex-active) {
	box-shadow: inset 0 0 0 2px var(--foliora-accent);
}

.woocommerce-product-gallery .flex-control-thumbs li:has(img.flex-active) img {
	padding: 3px;
	border-radius: calc(var(--foliora-shop-radius) + 1px);
}

/* Previous / next arrows over the photo. */
.woocommerce-product-gallery .flex-direction-nav {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-product-gallery .flex-direction-nav a {
	position: absolute;
	top: calc(50% - 22px);
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--foliora-bg) 88%, transparent);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: 0 6px 18px color-mix(in srgb, var(--foliora-shade) 16%, transparent);
	color: var(--foliora-text);
	font-size: 0;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.woocommerce-product-gallery:is(:hover, :focus-within) .flex-direction-nav a {
	opacity: 1;
}

.woocommerce-product-gallery .flex-direction-nav a.flex-disabled {
	opacity: 0 !important;
	pointer-events: none;
}

.woocommerce-product-gallery .flex-direction-nav a::before {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.woocommerce-product-gallery .flex-direction-nav .flex-prev {
	left: 16px;
}

.woocommerce-product-gallery .flex-direction-nav .flex-next {
	right: 16px;
}

.woocommerce-product-gallery .flex-direction-nav .flex-next::before,
[dir="rtl"] .woocommerce-product-gallery .flex-direction-nav .flex-prev::before {
	scale: -1 1;
}

[dir="rtl"] .woocommerce-product-gallery .flex-direction-nav .flex-next::before {
	scale: 1 1;
}

.woocommerce-product-gallery .flex-direction-nav a:focus-visible {
	opacity: 1;
	outline: 3px solid var(--foliora-link);
	outline-offset: 2px;
}

/* Full-screen button. */
.woocommerce-product-gallery__trigger {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: color-mix(in srgb, var(--foliora-bg) 88%, transparent);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: 0 6px 18px color-mix(in srgb, var(--foliora-shade) 16%, transparent);
	color: var(--foliora-text);
	font-size: 0;
	cursor: zoom-in;
}

[dir="rtl"] .woocommerce-product-gallery__trigger {
	right: auto;
	left: 16px;
}

.woocommerce-product-gallery__trigger > span[aria-hidden="true"] {
	display: none;
}

.woocommerce-product-gallery__trigger::before {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.woocommerce-product-gallery__trigger:focus-visible {
	outline: 3px solid var(--foliora-link);
	outline-offset: 2px;
}

/* ---------- Summary ---------- */
@media (min-width: 992px) {
	.foliora-product__top > .summary {
		position: sticky;
		top: calc(var(--foliora-sticky-h, 0px) + 32px);
	}

	body.admin-bar .foliora-product__top > .summary {
		top: calc(var(--foliora-sticky-h, 0px) + 64px);
	}
}

.foliora-shop--product .summary > :last-child {
	margin-bottom: 0;
}

.foliora-product__eyebrow {
	display: inline-block;
	margin-bottom: 12px;
	background-image: none;
	color: var(--foliora-muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-decoration: none;
	text-transform: uppercase;
}

.foliora-product__eyebrow:hover {
	color: var(--foliora-link);
}

.foliora-shop--product .summary .product_title {
	margin: 0 0 14px;
	color: var(--foliora-text);
	font-size: calc(40px * var(--foliora-heading-scale, 1));
	font-weight: var(--foliora-heading-weight, 700);
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.foliora-shop--product .woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	font-size: 14px;
}

.foliora-shop--product .woocommerce-product-rating .star-rating {
	font-size: 16px;
}

.foliora-shop--product .woocommerce-review-link {
	color: var(--foliora-muted);
	text-decoration: underline;
	text-decoration-color: var(--foliora-line-strong);
	text-underline-offset: 3px;
}

.foliora-shop--product .woocommerce-review-link:hover {
	color: var(--foliora-text);
}

.foliora-shop--product .summary > .price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 12px;
	margin: 0 0 24px;
	color: var(--foliora-text);
	font-family: var(--foliora-font-heading);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
}

.foliora-shop--product .summary > .price del {
	order: 2;
	font-size: 20px;
}

.foliora-shop--product .woocommerce-product-details__short-description {
	margin: 0 0 28px;
	color: var(--foliora-body);
	font-size: calc(17px * var(--foliora-text-scale, 1));
	line-height: calc(1.7 + var(--foliora-leading-adjust, 0));
}

.foliora-shop--product .woocommerce-product-details__short-description > :last-child {
	margin-bottom: 0;
}

/* ---------- Add to cart ---------- */
.foliora-shop--product form.cart {
	margin: 0 0 28px;
	padding-top: 28px;
	border-top: 1px solid var(--foliora-line);
}

.foliora-shop--product form.cart:not(.variations_form):not(.grouped_form),
.foliora-shop--product .woocommerce-variation-add-to-cart,
.foliora-shop--product form.grouped_form {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
}

.foliora-shop--product form.grouped_form > :not(.button) {
	flex-basis: 100%;
}

.foliora-shop--product .single_add_to_cart_button.button {
	flex: 1 1 220px;
	min-height: 56px;
	font-size: 16px;
}

.foliora-shop--product .product-type-external .single_add_to_cart_button.button::before {
	content: none;
}

.foliora-shop--product .single_add_to_cart_button.button::before {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a2.5 2.5 0 0 1 2.5 2.5V4h-5v-.5A2.5 2.5 0 0 1 8 1m3.5 3v-.5a3.5 3.5 0 1 0-7 0V4H1v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4zM2 5h12v9a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a2.5 2.5 0 0 1 2.5 2.5V4h-5v-.5A2.5 2.5 0 0 1 8 1m3.5 3v-.5a3.5 3.5 0 1 0-7 0V4H1v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4zM2 5h12v9a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.foliora-shop--product .single_add_to_cart_button.button.disabled {
	border-color: var(--foliora-line);
	background: var(--foliora-surface);
	color: var(--foliora-muted);
	opacity: 1;
}

/* ---------- Quantity ---------- */
.quantity {
	display: inline-flex;
	align-items: stretch;
}

.quantity input.qty {
	width: 72px;
	min-height: 56px;
	margin: 0;
	padding: 0 8px;
	border: 1.5px solid var(--foliora-field);
	border-radius: var(--foliora-btn-radius, 999px);
	background: var(--foliora-bg);
	color: var(--foliora-text);
	font-family: var(--foliora-font-heading);
	font-size: 17px;
	font-weight: 600;
	text-align: center;
	-moz-appearance: textfield;
}

.quantity input.qty::-webkit-inner-spin-button,
.quantity input.qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* With - and + (shop.js): one pill holds all three. */
.quantity.has-stepper {
	border: 1.5px solid var(--foliora-field);
	border-radius: var(--foliora-btn-radius, 999px);
	background: var(--foliora-bg);
	overflow: hidden;
}

.quantity.has-stepper:focus-within {
	border-color: var(--foliora-accent);
}

.quantity.has-stepper input.qty {
	width: 44px;
	min-height: 53px;
	padding: 0;
	border: 0;
	border-radius: 0;
}

.quantity.has-stepper input.qty:focus {
	box-shadow: none;
}

.foliora-qty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--foliora-text);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.foliora-qty:hover {
	background: var(--foliora-surface);
}

.foliora-qty:focus-visible {
	outline: 2px solid var(--foliora-link);
	outline-offset: -2px;
}

/* ---------- Product options (variations) ---------- */
.foliora-shop--product table.variations {
	width: 100%;
	margin: 0 0 8px;
	border: 0;
}

.foliora-shop--product table.variations :is(tbody, tr, th, td) {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	text-align: start;
}

.foliora-shop--product table.variations tr {
	margin-bottom: 22px;
}

.foliora-shop--product table.variations th label {
	display: block;
	margin: 0 0 10px;
	color: var(--foliora-text);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.foliora-shop--product table.variations td.value {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
}

.foliora-shop--product table.variations select {
	max-width: 320px;
}

/* WooCommerce's select stays for its own script, hidden. */
.foliora-swatches__select {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	min-height: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0 !important;
}

.foliora-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.foliora-swatch {
	position: relative;
	margin: 0;
	cursor: pointer;
}

.foliora-swatch[hidden] {
	display: none;
}

.foliora-swatch input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.foliora-swatch span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	height: 44px;
	padding: 0 18px;
	border: 1.5px solid var(--foliora-line-strong);
	border-radius: var(--foliora-btn-radius, 999px);
	background: var(--foliora-bg);
	color: var(--foliora-text);
	font-size: 15px;
	font-weight: 500;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.foliora-swatch:hover span {
	border-color: var(--foliora-text);
}

.foliora-swatch input:checked + span {
	border-color: var(--foliora-accent);
	background: var(--foliora-accent);
	color: var(--foliora-on-accent);
	font-weight: 600;
}

.foliora-swatch input:focus-visible + span {
	outline: 3px solid var(--foliora-link);
	outline-offset: 2px;
}

.foliora-swatch.is-disabled {
	cursor: not-allowed;
}

.foliora-swatch.is-disabled span {
	border-style: dashed;
	color: var(--foliora-muted);
	text-decoration: line-through;
	opacity: 0.6;
}

.foliora-shop--product .reset_variations {
	color: var(--foliora-muted);
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.foliora-shop--product .single_variation_wrap .woocommerce-variation {
	margin-bottom: 16px;
}

.foliora-shop--product .woocommerce-variation-price .price {
	color: var(--foliora-text);
	font-family: var(--foliora-font-heading);
	font-size: 22px;
	font-weight: 700;
}

.foliora-shop--product .woocommerce-variation-description p {
	margin: 0 0 8px;
}

/* Grouped products: a list of rows (quantity, name, price); on phones the
   price goes under the name. */
.foliora-shop--product table.woocommerce-grouped-product-list {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}

.foliora-shop--product form.grouped_form > .single_add_to_cart_button {
	margin-top: 20px;
}

.foliora-shop--product table.woocommerce-grouped-product-list td {
	padding: 12px 0;
	border: 0;
	border-bottom: 1px solid var(--foliora-line);
	vertical-align: middle;
}

.foliora-shop--product .woocommerce-grouped-product-list-item__quantity {
	width: 1%;
	white-space: nowrap;
}

.foliora-shop--product .woocommerce-grouped-product-list-item__label {
	padding-inline: 16px !important;
}

.foliora-shop--product .woocommerce-grouped-product-list-item__label a,
.foliora-shop--product .woocommerce-grouped-product-list-item__label label {
	margin: 0;
	color: var(--foliora-text);
	font-weight: 600;
	text-decoration: none;
}

.foliora-shop--product .woocommerce-grouped-product-list-item__price {
	color: var(--foliora-text);
	font-weight: 600;
	text-align: end;
	white-space: nowrap;
}

.foliora-shop--product .woocommerce-grouped-product-list-item__price del {
	color: var(--foliora-muted);
	font-weight: 400;
}

.foliora-shop--product .woocommerce-grouped-product-list-item__price ins {
	text-decoration: none;
}

.foliora-shop--product .woocommerce-grouped-product-list-item__price .stock {
	display: flex;
	justify-content: flex-end;
	margin: 4px 0 0;
	font-size: 13px;
}

.foliora-shop--product .woocommerce-grouped-product-list .quantity input.qty,
.foliora-shop--product .woocommerce-grouped-product-list .quantity.has-stepper input.qty {
	min-height: 41px;
}

@media (max-width: 575px) {
	.foliora-shop--product table.woocommerce-grouped-product-list tr {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
		column-gap: 14px;
		padding: 12px 0;
		border-bottom: 1px solid var(--foliora-line);
	}

	.foliora-shop--product table.woocommerce-grouped-product-list td {
		padding: 0 !important;
		border: 0;
	}

	.foliora-shop--product .woocommerce-grouped-product-list-item__quantity {
		grid-row: 1 / span 2;
	}

	.foliora-shop--product .woocommerce-grouped-product-list-item__label {
		align-self: end;
	}

	.foliora-shop--product .woocommerce-grouped-product-list-item__price {
		align-self: start;
		text-align: start;
	}

	.foliora-shop--product .woocommerce-grouped-product-list-item__price .stock {
		justify-content: flex-start;
	}
}

/* ---------- Details under the button ---------- */
.foliora-shop--product .product_meta {
	display: grid;
	gap: 8px;
	padding-top: 24px;
	border-top: 1px solid var(--foliora-line);
	color: var(--foliora-muted);
	font-size: 14px;
}

.foliora-shop--product .product_meta > span > span,
.foliora-shop--product .product_meta a {
	color: var(--foliora-text);
	font-weight: 500;
}

.foliora-shop--product .product_meta a:hover {
	color: var(--foliora-link);
}

/* ---------- Tabs ---------- */
.foliora-shop--product .woocommerce-tabs {
	margin-top: 96px;
}

.foliora-shop--product .woocommerce-tabs ul.tabs {
	display: flex;
	gap: 36px;
	margin: 0 0 40px;
	padding: 0;
	border-bottom: 1px solid var(--foliora-line);
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.foliora-shop--product .woocommerce-tabs ul.tabs li {
	flex: none;
	margin: 0;
	padding: 0;
}

.foliora-shop--product .woocommerce-tabs ul.tabs li a {
	position: relative;
	display: block;
	padding: 0 0 16px;
	background-image: none;
	color: var(--foliora-muted);
	font-family: var(--foliora-font-heading);
	font-size: 17px;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease;
}

.foliora-shop--product .woocommerce-tabs ul.tabs li a::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--foliora-accent);
	transform: scaleX(0);
	transition: transform 0.25s ease;
}

.foliora-shop--product .woocommerce-tabs ul.tabs li:is(.active, :hover) a {
	color: var(--foliora-text);
}

.foliora-shop--product .woocommerce-tabs ul.tabs li.active a::after {
	transform: none;
}

.foliora-shop--product .woocommerce-tabs ul.tabs li a:focus-visible {
	outline: 3px solid var(--foliora-link);
	outline-offset: 4px;
}

.foliora-shop--product .woocommerce-Tabs-panel {
	max-width: var(--foliora-measure, 760px);
	margin: 0;
	color: var(--foliora-body);
	font-size: calc(17px * var(--foliora-text-scale, 1));
	line-height: calc(1.75 + var(--foliora-leading-adjust, 0));
}

.foliora-shop--product .woocommerce-Tabs-panel--reviews {
	max-width: none;
}

/* The tab's own heading repeats the tab name: visually hidden. */
.foliora-shop--product .woocommerce-Tabs-panel > h2:first-child {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.foliora-shop--product table.woocommerce-product-attributes {
	width: 100%;
	max-width: 640px;
	border: 0;
	border-collapse: collapse;
	font-size: 15px;
}

.foliora-shop--product table.woocommerce-product-attributes :is(th, td) {
	padding: 14px 0;
	border: 0;
	border-bottom: 1px solid var(--foliora-line);
	text-align: start;
	vertical-align: top;
}

.foliora-shop--product table.woocommerce-product-attributes th {
	width: 40%;
	color: var(--foliora-muted);
	font-weight: 500;
}

.foliora-shop--product table.woocommerce-product-attributes td p {
	margin: 0;
	color: var(--foliora-text);
}

/* ---------- Reviews ---------- */
@media (min-width: 992px) {
	.foliora-shop--product #reviews {
		display: grid;
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
		gap: 64px;
		align-items: start;
	}
}

.foliora-shop--product #reviews #comments > h2,
.foliora-shop--product #reviews .comment-reply-title {
	display: block;
	margin: 0 0 24px;
	color: var(--foliora-text);
	font-family: var(--foliora-font-heading);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.foliora-shop--product #reviews ol.commentlist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.foliora-shop--product #reviews ol.commentlist li {
	margin: 0 0 16px;
	padding: 0;
}

.foliora-shop--product #reviews .comment_container {
	display: flex;
	gap: 16px;
	padding: 22px;
	border: 1px solid var(--foliora-line);
	border-radius: var(--foliora-shop-radius);
}

.foliora-shop--product #reviews .comment_container img.avatar {
	flex: none;
	width: 48px;
	height: 48px;
	margin: 0;
	border-radius: 50%;
}

.foliora-shop--product #reviews .comment-text {
	flex: 1;
	min-width: 0;
}

.foliora-shop--product #reviews .comment-text .star-rating {
	float: right;
	margin: 4px 0 0 12px;
}

[dir="rtl"] .foliora-shop--product #reviews .comment-text .star-rating {
	float: left;
	margin: 4px 12px 0 0;
}

.foliora-shop--product #reviews .comment-text .meta {
	margin: 0 0 8px;
	color: var(--foliora-muted);
	font-size: 14px;
}

.foliora-shop--product #reviews .woocommerce-review__author {
	color: var(--foliora-text);
	font-size: 15px;
}

.foliora-shop--product #reviews .woocommerce-review__verified {
	color: var(--foliora-shop-ok);
	font-style: normal;
	font-weight: 500;
}

.foliora-shop--product #reviews .woocommerce-review__dash {
	margin: 0 4px;
}

.foliora-shop--product #reviews .comment-text .description p {
	margin: 0;
	color: var(--foliora-body);
	font-size: 15px;
	line-height: 1.65;
}

.foliora-shop--product #review_form_wrapper {
	padding: 32px;
	border-radius: var(--foliora-card-radius, 20px);
	background: var(--foliora-surface);
}

.foliora-shop--product #review_form .comment-form {
	display: grid;
	gap: 18px;
	margin: 0;
	font-size: 15px;
}

.foliora-shop--product #review_form .comment-form :is(p, .comment-form-rating) {
	margin: 0;
}

.foliora-shop--product #review_form label {
	display: block;
	margin-bottom: 8px;
	color: var(--foliora-text);
	font-size: 14px;
	font-weight: 600;
}

.foliora-shop--product #review_form .comment-notes {
	color: var(--foliora-muted);
	font-size: 14px;
}

.foliora-shop--product #review_form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.foliora-shop--product #review_form .comment-form-cookies-consent label {
	margin: 0;
	font-weight: 400;
}

.foliora-shop--product #review_form .form-submit input[type="submit"] {
	min-height: 52px;
	padding: 0 28px;
	border: 0;
	border-radius: var(--foliora-btn-radius, 999px);
	background: var(--foliora-accent);
	color: var(--foliora-on-accent);
	font-family: var(--foliora-font-heading);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.foliora-shop--product #review_form .form-submit input[type="submit"]:hover {
	background: var(--foliora-accent-hover);
}

.foliora-shop--product #review_form .form-submit input[type="submit"]:focus-visible {
	outline: 3px solid var(--foliora-link);
	outline-offset: 3px;
}

.foliora-shop--product #review_form :is(input[type="text"], input[type="email"], textarea) {
	background: var(--foliora-bg);
}

/* ---------- Related products and up-sells ---------- */
.foliora-shop--product :is(section.related, section.up-sells) {
	margin-top: 96px;
	padding-top: 56px;
	border-top: 1px solid var(--foliora-line);
}

.foliora-shop--product :is(section.related, section.up-sells) > h2,
.cross-sells > h2 {
	margin: 0 0 32px;
	color: var(--foliora-text);
	font-size: calc(28px * var(--foliora-heading-scale, 1));
	font-weight: var(--foliora-heading-weight, 700);
	line-height: 1.2;
}

@media (max-width: 767px) {
	.foliora-shop--product .summary .product_title {
		font-size: calc(30px * var(--foliora-heading-scale, 1));
	}

	.foliora-shop--product .summary > .price {
		font-size: 24px;
	}

	.foliora-shop--product .woocommerce-tabs,
	.foliora-shop--product :is(section.related, section.up-sells) {
		margin-top: 64px;
	}

	.foliora-shop--product .woocommerce-tabs ul.tabs {
		gap: 20px;
	}

	.foliora-shop--product .woocommerce-tabs ul.tabs li a {
		font-size: 15px;
	}

	/* Quantity and button stay on one row. */
	.foliora-shop--product .single_add_to_cart_button.button {
		flex-basis: 150px;
	}

	.foliora-shop--product #review_form_wrapper {
		margin-top: 32px;
		padding: 24px;
	}

	.woocommerce-product-gallery .flex-control-thumbs {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 8px;
	}

	.woocommerce-product-gallery .flex-direction-nav a {
		opacity: 1;
	}
}

/* ===========================================================================
   5. Cart, checkout and account pages
   ======================================================================== */

.foliora-shop--page .foliora-posts {
	padding-top: 56px;
}

/* WooCommerce parks some helper fields far off-screen; in right-to-left
   that would scroll the page sideways. */
.foliora-shop__page {
	overflow-x: clip;
}

.foliora-shop__header--page {
	align-items: flex-end;
	margin-bottom: 40px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--foliora-line);
}

/* ---------- Steps: Cart, Checkout, Confirmation ---------- */
.foliora-steps {
	display: flex;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.foliora-steps__step {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: var(--foliora-muted);
	font-size: 14px;
	font-weight: 600;
}

.foliora-steps__step + .foliora-steps__step::before {
	content: "";
	width: 48px;
	height: 1.5px;
	margin: 0 14px;
	background: var(--foliora-line-strong);
}

.foliora-steps__step.is-done + .foliora-steps__step::before {
	background: var(--foliora-accent);
}

.foliora-steps__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1.5px solid var(--foliora-line-strong);
	border-radius: 50%;
	font-family: var(--foliora-font-heading);
	font-size: 14px;
	font-weight: 700;
}

.foliora-steps__mark .foliora-icon {
	width: 14px;
	height: 14px;
}

.foliora-steps__step.is-current {
	color: var(--foliora-text);
}

.foliora-steps__step.is-current .foliora-steps__mark {
	border-color: var(--foliora-accent);
	background: var(--foliora-accent);
	color: var(--foliora-on-accent);
}

.foliora-steps__step.is-done {
	color: var(--foliora-text);
}

.foliora-steps__step.is-done .foliora-steps__mark {
	border-color: var(--foliora-accent);
	color: var(--foliora-accent);
}

.foliora-steps__step a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--foliora-line-strong);
	text-underline-offset: 3px;
}

@media (max-width: 767px) {
	.foliora-steps {
		width: 100%;
	}

	.foliora-steps__step {
		flex-direction: column;
		gap: 6px;
		font-size: 12px;
	}

	.foliora-steps__step + .foliora-steps__step {
		position: relative;
		flex: 1;
	}

	.foliora-steps__step + .foliora-steps__step::before {
		position: absolute;
		top: 16px;
		/* From the previous circle's edge to this one's: steps are equal
		   width, so the previous centre is half a step back. */
		right: calc(50% + 22px);
		width: auto;
		left: calc(-50% + 22px);
		margin: 0;
	}

	.foliora-steps__step:first-child {
		flex: 1;
	}

	[dir="rtl"] .foliora-steps__step + .foliora-steps__step::before {
		right: calc(-50% + 22px);
		left: calc(50% + 22px);
	}
}

/* ---------- WooCommerce blocks: shared ----------
   Fonts, colours and corners for the cart and checkout blocks. */
.foliora-shop--page :is(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout) {
	--foliora-block-gap: 48px;
	margin: 0;
	color: var(--foliora-text);
	font-family: var(--foliora-font-body);
}

.foliora-shop--page :is(.wc-block-cart, .wc-block-checkout) {
	color: var(--foliora-text);
}

.foliora-shop--page :is(.wc-block-components-title, .wc-block-components-checkout-step__title, .wc-block-cart__totals-title) {
	color: var(--foliora-text);
	font-family: var(--foliora-font-heading) !important;
	font-weight: 700 !important;
}

.foliora-shop--page .wc-block-cart__totals-title {
	font-size: 13px !important;
	letter-spacing: 0.08em;
	text-transform: uppercase !important;
}

/* The order summary and totals: a card. */
.foliora-shop--page .wc-block-cart .wc-block-cart__sidebar,
.foliora-shop--page .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
	align-self: start;
	padding: 28px;
	border: 1px solid var(--foliora-line);
	border-radius: var(--foliora-card-radius, 20px);
	background: var(--foliora-surface);
}

.foliora-shop--page .wc-block-components-totals-wrapper {
	border-color: var(--foliora-line) !important;
}

.foliora-shop--page .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.foliora-shop--page .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-family: var(--foliora-font-heading);
	font-size: 20px;
	font-weight: 700;
}

.foliora-shop--page .wc-block-components-product-name {
	color: var(--foliora-text) !important;
	font-family: var(--foliora-font-heading);
	font-size: 16px !important;
	font-weight: 600;
	text-decoration: none;
}

.foliora-shop--page a.wc-block-components-product-name:hover {
	color: var(--foliora-link) !important;
}

.foliora-shop--page :is(.wc-block-cart-item__image, .wc-block-components-order-summary-item__image) img {
	border-radius: var(--foliora-shop-radius);
	background: var(--foliora-media);
}

.foliora-shop--page .wc-block-components-product-metadata,
.foliora-shop--page .wc-block-components-product-details {
	color: var(--foliora-muted);
	font-size: 14px;
}

/* Product badges in the cart and order summary ("Save ...", backorder): a
   small pill like the theme's own badges, in the heading font so the label
   sits in the middle (the body font leaves extra room above the letters). */
.foliora-shop--page .wc-block-components-product-badge {
	display: inline-block;
	height: 20px;
	padding: 0 8px;
	border: 0;
	border-radius: 999px;
	background: var(--foliora-accent);
	color: var(--foliora-on-accent);
	font-family: var(--foliora-font-heading);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 20px;
	text-transform: none;
}

/* Selects (country, state): no white box behind them, and a chevron in the
   text colour. */
.foliora-shop--page .wc-blocks-components-select .wc-blocks-components-select__container {
	height: auto;
	background: transparent;
}

.foliora-shop--page .wc-blocks-components-select .wc-blocks-components-select__select {
	height: 50px;
	margin: 0;
}

.foliora-shop--page .wc-blocks-components-select .wc-blocks-components-select__expand {
	fill: currentColor;
	color: var(--foliora-muted);
}

/* Fields. */
.foliora-shop--page .wc-block-components-text-input input,
.foliora-shop--page .wc-block-components-text-input textarea,
.foliora-shop--page .wc-blocks-components-select .wc-blocks-components-select__select,
.foliora-shop--page .wc-block-components-combobox .wc-block-components-combobox-control input,
.foliora-shop--page .wc-block-components-textarea {
	border: 1.5px solid var(--foliora-field) !important;
	border-radius: var(--foliora-shop-radius) !important;
	background-color: var(--foliora-bg) !important;
	color: var(--foliora-text) !important;
	font-family: inherit !important;
}

.foliora-shop--page .wc-block-components-text-input input:focus,
.foliora-shop--page .wc-blocks-components-select .wc-blocks-components-select__select:focus,
.foliora-shop--page .wc-block-components-combobox .wc-block-components-combobox-control input:focus,
.foliora-shop--page .wc-block-components-textarea:focus {
	border-color: var(--foliora-accent) !important;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--foliora-accent) 14%, transparent) !important;
	outline: none !important;
}

.foliora-shop--page :is(.wc-block-components-text-input, .wc-blocks-components-select, .wc-block-components-combobox) label,
.foliora-shop--page .wc-blocks-components-select__label {
	color: var(--foliora-muted) !important;
}

.foliora-shop--page .wc-block-components-validation-error,
.foliora-shop--page .has-error :is(input, select, label) {
	color: var(--foliora-shop-bad) !important;
}

.foliora-shop--page .has-error :is(input, select) {
	border-color: var(--foliora-shop-bad) !important;
}

/* Quantity in the cart. */
.foliora-shop--page .wc-block-components-quantity-selector {
	border: 1.5px solid var(--foliora-field) !important;
	border-radius: var(--foliora-btn-radius, 999px) !important;
	background: var(--foliora-bg);
	overflow: hidden;
}

.foliora-shop--page .wc-block-components-quantity-selector::after {
	content: none !important;
}

.foliora-shop--page .wc-block-components-quantity-selector input {
	color: var(--foliora-text) !important;
	font-weight: 600;
}

.foliora-shop--page .wc-block-components-quantity-selector__button {
	color: var(--foliora-text) !important;
	opacity: 1 !important;
}

.foliora-shop--page .wc-block-components-quantity-selector__button:disabled {
	opacity: 0.35 !important;
}

.foliora-shop--page .wc-block-cart-item__remove-link {
	color: var(--foliora-muted) !important;
	font-size: 13px !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

/* Buttons. */
.foliora-shop--page .wc-block-components-button:not(.is-link) {
	min-height: 56px;
	font-size: 16px;
}

.foliora-shop--page .wc-block-components-button:not(.is-link) .wc-block-components-button__text {
	color: inherit;
}

.foliora-shop--page .wc-block-components-button.is-link,
.foliora-shop--page .wc-block-components-totals-coupon-link,
.foliora-shop--page .wc-block-components-checkout-return-to-cart-button {
	color: var(--foliora-text) !important;
	font-weight: 600;
}

/* Radio cards (shipping, payment). */
.foliora-shop--page .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option,
.foliora-shop--page .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option {
	border-radius: var(--foliora-shop-radius);
}

/*
 * Group frame: a neutral line only. WooCommerce pulls it 2px inwards when
 * the first or last option is selected, so an accent ring here showed as a
 * second line inside the selected card's ring.
 */
.foliora-shop--page .wc-block-components-radio-control--highlight-checked::after {
	border-color: var(--foliora-line);
	border-radius: var(--foliora-shop-radius);
}

.foliora-shop--page .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted,
.foliora-shop--page .wc-block-components-radio-control--highlight-checked div.wc-block-components-radio-control-accordion-option--checked-option-highlighted {
	box-shadow: inset 0 0 0 2px var(--foliora-accent) !important;
}

.foliora-shop--page .wc-block-components-radio-control__input,
:is(.foliora-shop--page, .foliora-sidebar) .wc-block-components-checkbox__input[type="checkbox"] {
	border-color: var(--foliora-field) !important;
	background-color: var(--foliora-bg) !important;
}

.foliora-shop--page .wc-block-components-radio-control__input:checked::before {
	background: var(--foliora-accent) !important;
}

:is(.foliora-shop--page, .foliora-sidebar) .wc-block-components-checkbox__input[type="checkbox"]:checked {
	border-color: var(--foliora-accent) !important;
	background-color: var(--foliora-accent) !important;
}

:is(.foliora-shop--page, .foliora-sidebar) .wc-block-components-checkbox__mark {
	fill: var(--foliora-on-accent) !important;
}

.foliora-shop--page :is(.wc-block-components-radio-control__input, .wc-block-components-checkbox__input):focus-visible {
	outline: 2px solid var(--foliora-link) !important;
	outline-offset: 2px;
}

/* Checkout steps: numbered titles. */
.foliora-shop--page .wc-block-components-checkout-step__title {
	font-size: 20px !important;
}

.foliora-shop--page .wc-block-components-checkout-step__description {
	color: var(--foliora-muted);
}

.foliora-shop--page .wc-block-checkout__terms {
	color: var(--foliora-muted);
	font-size: 14px;
}

.foliora-shop--page .wc-block-checkout__terms a,
.foliora-shop--page .wc-block-components-checkout-step a,
.foliora-shop--page .wc-block-components-address-card__edit {
	color: var(--foliora-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.foliora-shop--page .wc-block-components-address-card {
	border-radius: var(--foliora-shop-radius);
}

/* Coupons and panels. */
.foliora-shop--page .wc-block-components-panel__button {
	color: var(--foliora-text) !important;
	font-weight: 600;
}

.foliora-shop--page .wc-block-components-totals-item__description {
	color: var(--foliora-muted);
}

/* Skeleton while the blocks load. */
.foliora-shop--page :is(.wc-block-components-skeleton__element, .wc-block-components-skeleton-text-line) {
	background: var(--foliora-surface) !important;
}

/* ---------- Empty cart (block) ---------- */
.foliora-shop--page .wp-block-woocommerce-empty-cart-block {
	text-align: center;
}

.foliora-shop--page .wc-block-cart__empty-cart__title {
	margin: 24px 0 8px;
	font-size: 28px;
	font-weight: 700;
}

.foliora-shop--page .wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
	width: 88px;
	height: 88px;
	margin: 0 auto 24px;
	border-radius: 50%;
	background-color: var(--foliora-muted);
	-webkit-mask-size: 44px;
	mask-size: 44px;
	box-shadow: none;
}

.foliora-shop--page .wp-block-woocommerce-empty-cart-block .wp-block-separator {
	max-width: 120px;
	margin: 48px auto;
	border-color: var(--foliora-line);
}

.foliora-shop--page .wp-block-woocommerce-empty-cart-block > h2:not(.wc-block-cart__empty-cart__title) {
	font-size: 22px;
}

/* ---------- Order received ---------- */
.foliora-thankyou__mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin: 0 0 20px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--foliora-shop-ok) 14%, var(--foliora-bg));
	color: var(--foliora-shop-ok);
}

.foliora-thankyou__mark .foliora-icon {
	width: 30px;
	height: 30px;
}

.woocommerce-order .woocommerce-thankyou-order-received,
.woocommerce-order .woocommerce-notice--success {
	margin: 0 0 32px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--foliora-text);
	font-family: var(--foliora-font-heading);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.3;
}

.woocommerce-order .woocommerce-notice--success::before {
	content: none;
}

ul.woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 0;
	margin: 0 0 48px;
	padding: 0;
	border: 1px solid var(--foliora-line);
	border-radius: var(--foliora-card-radius, 20px);
	list-style: none;
	overflow: hidden;
}

ul.woocommerce-order-overview li {
	margin: 0;
	padding: 20px 24px;
	border-inline-end: 1px solid var(--foliora-line);
	color: var(--foliora-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

ul.woocommerce-order-overview li:last-child {
	border-inline-end: 0;
}

ul.woocommerce-order-overview li strong {
	display: block;
	margin-top: 6px;
	color: var(--foliora-text);
	font-size: 16px;
	letter-spacing: 0;
	text-transform: none;
}

.woocommerce-order-details,
.woocommerce-customer-details,
.foliora-shop section {
	margin-bottom: 40px;
	padding: 0;
}

:is(.woocommerce-order-details, .woocommerce-customer-details, .woocommerce-MyAccount-content) h2,
.woocommerce-column__title {
	margin: 0 0 20px;
	font-size: 22px;
	font-weight: 700;
}

.woocommerce-customer-details address {
	padding: 24px;
	border: 1px solid var(--foliora-line);
	border-radius: var(--foliora-card-radius, 20px);
	font-style: normal;
	line-height: 1.7;
}

.woocommerce-customer-details .col2-set,
.woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}

.woocommerce-customer-details .col2-set > *,
.woocommerce-Addresses > * {
	float: none;
	width: auto;
}

/* ---------- Account ---------- */
.foliora-shop--page .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}

.woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 8px;
	border: 1px solid var(--foliora-line);
	border-radius: var(--foliora-card-radius, 20px);
	list-style: none;
}

.woocommerce-MyAccount-navigation li {
	margin: 0;
}

.woocommerce-MyAccount-navigation li a {
	display: flex;
	align-items: center;
	min-height: 46px;
	padding: 0 16px;
	border-radius: var(--foliora-shop-radius);
	background-image: none;
	color: var(--foliora-body);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.woocommerce-MyAccount-navigation li a:hover {
	background: var(--foliora-surface);
	color: var(--foliora-text);
}

.woocommerce-MyAccount-navigation li.is-active a {
	background: var(--foliora-accent);
	color: var(--foliora-on-accent);
	font-weight: 600;
}

.woocommerce-MyAccount-navigation li a:focus-visible {
	outline: 3px solid var(--foliora-link);
	outline-offset: 0;
}

.woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: 8px !important;
	padding-top: 8px !important;
	border-top: 1px solid var(--foliora-line);
}

.woocommerce-MyAccount-content {
	color: var(--foliora-body);
	font-size: 16px;
	line-height: 1.7;
}

.woocommerce-MyAccount-content > p:first-of-type {
	font-size: 18px;
}

.woocommerce-MyAccount-content a:not(.button) {
	color: var(--foliora-text);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.woocommerce-Address {
	padding: 24px;
	border: 1px solid var(--foliora-line);
	border-radius: var(--foliora-card-radius, 20px);
}

.woocommerce-Address-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.woocommerce-Address-title h2 {
	margin: 0 !important;
	font-size: 18px !important;
}

.woocommerce-Address address {
	font-style: normal;
}

.woocommerce-MyAccount-content form :is(fieldset) {
	margin: 24px 0;
	padding: 24px;
	border: 1px solid var(--foliora-line);
	border-radius: var(--foliora-card-radius, 20px);
}

.woocommerce-MyAccount-content form legend {
	padding: 0 8px;
	font-weight: 700;
}

/* Sign in and register: cards side by side. */
.foliora-shop--page :is(#customer_login, .u-columns) {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 32px;
}

.foliora-shop--page :is(#customer_login, .u-columns) > div {
	float: none;
	width: auto;
	padding: 36px;
	border: 1px solid var(--foliora-line);
	border-radius: var(--foliora-card-radius, 20px);
}

.foliora-shop--page #customer_login > div:first-child {
	background: var(--foliora-surface);
}

.foliora-shop--page :is(#customer_login, .u-columns) h2,
.foliora-shop--page .woocommerce > h2 {
	margin: 0 0 24px;
	font-size: 24px;
	font-weight: 700;
}

.foliora-shop--page .woocommerce > form.woocommerce-form-login,
.foliora-shop--page .woocommerce > form.lost_reset_password {
	max-width: 480px;
	padding: 36px;
	border: 1px solid var(--foliora-line);
	border-radius: var(--foliora-card-radius, 20px);
	background: var(--foliora-surface);
}

.foliora-shop--page :is(.woocommerce-form-login, .woocommerce-form-register) .button {
	width: 100%;
	min-height: 52px;
	margin-top: 8px;
}

.foliora-shop--page .woocommerce-form-login__rememberme {
	margin: 4px 0 8px !important;
}

.foliora-shop--page .lost_password {
	margin: 16px 0 0;
	font-size: 14px;
}

.foliora-shop--page .lost_password a {
	color: var(--foliora-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.foliora-shop--page .woocommerce-privacy-policy-text {
	color: var(--foliora-muted);
	font-size: 13px;
}

/* Password strength. */
.woocommerce-password-strength {
	margin-top: 8px;
	padding: 6px 12px;
	border-radius: var(--foliora-shop-radius);
	font-size: 13px;
	font-weight: 600;
}

.woocommerce-password-strength.short,
.woocommerce-password-strength.bad {
	background: color-mix(in srgb, var(--foliora-shop-bad) 12%, var(--foliora-bg));
	color: var(--foliora-shop-bad);
}

.woocommerce-password-strength.good,
.woocommerce-password-strength.strong {
	background: color-mix(in srgb, var(--foliora-shop-ok) 12%, var(--foliora-bg));
	color: var(--foliora-shop-ok);
}

@media (max-width: 991px) {
	.foliora-shop--page .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.woocommerce-MyAccount-navigation ul {
		display: flex;
		gap: 4px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.woocommerce-MyAccount-navigation li a {
		white-space: nowrap;
	}

	.woocommerce-MyAccount-navigation-link--customer-logout {
		margin: 0 !important;
		padding: 0 !important;
		border: 0;
	}
}

@media (max-width: 767px) {
	.foliora-shop__header--page {
		flex-direction: column;
		align-items: stretch;
	}

	.foliora-shop--page :is(#customer_login, .u-columns) > div,
	.foliora-shop--page .woocommerce > form.woocommerce-form-login {
		padding: 24px;
	}

	:is(.woocommerce, .woocommerce-page) table.shop_table_responsive thead {
		display: none;
	}

	:is(.woocommerce, .woocommerce-page) table.shop_table_responsive :is(tr, td) {
		display: block;
	}

	:is(.woocommerce, .woocommerce-page) table.shop_table_responsive td {
		display: flex;
		justify-content: space-between;
		gap: 16px;
		text-align: end;
	}

	:is(.woocommerce, .woocommerce-page) table.shop_table_responsive td::before {
		content: attr(data-title);
		color: var(--foliora-muted);
		font-weight: 600;
		text-align: start;
	}
}

/* ---------- Store notice ---------- */
.woocommerce-store-notice,
p.demo_store {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99998;
	margin: 0;
	padding: 14px 24px;
	background: var(--foliora-accent);
	color: var(--foliora-on-accent);
	font-size: 14px;
	text-align: center;
}

.woocommerce-store-notice a {
	margin-inline-start: 12px;
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
}

/* ---------- Print ---------- */
@media print {
	.foliora-cart-open,
	.foliora-shop__toolbar,
	ul.products li.product .button,
	.foliora-shop--product form.cart,
	.foliora-steps {
		display: none !important;
	}
}

/* Very narrow screens (under 360px: small phones, 400% zoom): WooCommerce's
   row (photo, details at least as wide as the quantity row, total) needs
   about 300px, so the total was cut off at the right. Here it takes a line
   of its own under the details, still at the right like the column above
   it. */
@media (max-width: 359px) {
	.foliora-shop--page .wc-block-cart .wc-block-cart-items .wc-block-cart-items__row {
		grid-template-columns: 60px minmax(0, 1fr);
	}

	.foliora-shop--page .wc-block-cart .wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product {
		grid-column: 2;
	}

	.foliora-shop--page .wc-block-cart .wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
		grid-column: 2;
		grid-row: 2;
	}

	/* The checkout's order summary, the same way: the name was broken
	   mid-word in a column about 80px wide. */
	.foliora-shop--page .wc-block-components-order-summary .wc-block-components-order-summary-item {
		flex-wrap: wrap;
	}

	.foliora-shop--page .wc-block-components-order-summary .wc-block-components-order-summary-item__description {
		flex: 1 1 0;
		min-width: 0;
		padding-inline-end: 0;
	}

	.foliora-shop--page .wc-block-components-order-summary .wc-block-components-order-summary-item__total-price {
		flex-basis: 100%;
		padding-inline-start: 72px; /* The photo (48px) and the details' own start padding (24px). */
	}

	/* WooCommerce spaces the items with padding under the photo and the
	   details; with the total on its own line that space would sit above
	   the total, so it moves under the whole item. */
	.foliora-shop--page .wc-block-components-order-summary .wc-block-components-order-summary-item > :is(.wc-block-components-order-summary-item__image, .wc-block-components-order-summary-item__description) {
		padding-bottom: 0;
	}

	.foliora-shop--page .wc-block-components-order-summary .wc-block-components-order-summary-item:not(:last-child) {
		padding-bottom: 16px;
	}
}

/* Bigger photos and totals in the cart list (wide screens). */
@media (min-width: 700px) {
	.foliora-shop--page .wc-block-cart-items .wc-block-cart-item__image {
		width: 112px;
		padding-inline-end: 24px;
	}

	.foliora-shop--page .wc-block-cart-items .wc-block-cart-item__image img {
		width: 88px;
		height: 88px;
		object-fit: cover;
	}
}

.foliora-shop--page .wc-block-cart-item__total .wc-block-components-product-price__value {
	color: var(--foliora-text);
	font-family: var(--foliora-font-heading);
	font-size: 16px;
	font-weight: 700;
}

.foliora-shop--page .wc-block-cart-items__header {
	color: var(--foliora-muted);
	font-size: 12px;
	letter-spacing: 0.08em;
}

/* ---------- Product blocks (such as "New in store" in the empty cart) ---------- */
.wc-block-grid .wc-block-grid__products {
	display: grid !important;
	grid-template-columns: repeat(var(--foliora-grid-cols, 4), minmax(0, 1fr));
	gap: 32px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wc-block-grid.has-2-columns { --foliora-grid-cols: 2; }
.wc-block-grid.has-3-columns { --foliora-grid-cols: 3; }
.wc-block-grid.has-5-columns { --foliora-grid-cols: 5; }
.wc-block-grid.has-6-columns { --foliora-grid-cols: 6; }

@media (max-width: 1023px) {
	.wc-block-grid:is(.has-5-columns, .has-6-columns) { --foliora-grid-cols: 4; }
}

@media (max-width: 767px) {
	.wc-block-grid .wc-block-grid__products {
		--foliora-grid-cols: 2;
		gap: 24px 16px;
	}
}

.wc-block-grid .wc-block-grid__products .wc-block-grid__product {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0 !important;
	text-align: start;
}

.wc-block-grid .wc-block-grid__product-link {
	display: block;
	width: 100%;
}

.wc-block-grid .wc-block-grid__product :is(.wc-block-grid__product-add-to-cart, .wc-block-grid__product-rating) {
	display: flex;
	justify-content: flex-start;
	align-self: stretch;
	width: 100%;
	margin-inline: 0 !important;
	text-align: start;
}

.wc-block-grid .wc-block-grid__product .wc-block-grid__product-add-to-cart {
	margin-top: auto;
}

.wc-block-grid__product-link {
	color: var(--foliora-text);
	text-decoration: none;
}

.wc-block-grid__product-image {
	margin-bottom: 14px !important;
	border-radius: var(--foliora-card-radius, 20px);
	background: var(--foliora-media);
	overflow: hidden;
}

.wc-block-grid__product-image img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.wc-block-grid__product-title {
	margin: 0 0 6px !important;
	color: var(--foliora-text);
	font-family: var(--foliora-font-heading);
	font-size: 16px !important;
	font-weight: 600 !important;
}

.wc-block-grid__product-price {
	margin: 0 0 12px !important;
	color: var(--foliora-text);
	font-weight: 700;
}

.wc-block-grid__product-price del {
	color: var(--foliora-muted);
	font-weight: 400;
}

.wc-block-grid__product-price ins {
	text-decoration: none;
}

.wc-block-grid .wc-block-grid__product .wc-block-grid__product-onsale {
	position: absolute;
	top: 12px;
	right: auto;
	left: 12px;
	z-index: 2;
	margin: 0 !important;
	padding: 0 10px !important;
	height: 26px;
	display: inline-flex !important;
	align-items: center;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--foliora-accent) !important;
	color: var(--foliora-on-accent) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	text-transform: none !important;
}

.wc-block-grid__product-add-to-cart .wp-block-button__link {
	display: inline-flex;
	max-width: 100%;
	text-align: center;
	line-height: 1.3;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 18px !important;
	border: 1.5px solid var(--foliora-line-strong) !important;
	border-radius: var(--foliora-btn-radius, 999px) !important;
	background: var(--foliora-bg) !important;
	color: var(--foliora-text) !important;
	font-size: 14px !important;
	font-weight: 600;
}

[dir="rtl"] .wc-block-grid .wc-block-grid__product .wc-block-grid__product-onsale {
	right: 12px;
	left: auto;
}

.wc-block-grid__product-add-to-cart .wp-block-button__link:hover {
	border-color: var(--foliora-accent) !important;
	background: var(--foliora-accent) !important;
	color: var(--foliora-on-accent) !important;
}

.wc-block-grid__product-rating {
	margin-bottom: 6px !important;
}

.wc-block-grid__product-rating .star-rating {
	margin: 0 !important;
}

/* A hidden empty filter card leaves no gap above the next one. */
.foliora-sidebar .widget:has(> .wp-block-woocommerce-filter-wrapper):not(:has(.wc-blocks-filter-wrapper:not([hidden]))) + .widget {
	margin-top: 0;
}

/* ---------- Classic cart and checkout (shortcodes) ----------
   For sites whose cart and checkout pages still use
   [woocommerce_cart] and [woocommerce_checkout]. */
.woocommerce-cart-form table.cart td.product-thumbnail {
	width: 112px;
}

.woocommerce-cart-form table.cart img {
	display: block;
	width: 80px;
	height: 80px;
	margin: 0;
	border-radius: var(--foliora-shop-radius);
	background: var(--foliora-media);
	object-fit: cover;
}

.woocommerce-cart-form table.cart td.product-remove {
	width: 56px;
}

:is(.woocommerce-cart-form, .woocommerce-checkout-review-order) a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: var(--foliora-muted) !important;
	font-size: 22px;
	line-height: 1;
	text-decoration: none;
}

:is(.woocommerce-cart-form, .woocommerce-checkout-review-order) a.remove:hover {
	background: var(--foliora-surface);
	color: var(--foliora-shop-bad) !important;
}

.woocommerce-cart-form table.cart .quantity.has-stepper input.qty,
.woocommerce-cart-form table.cart .quantity input.qty {
	min-height: 44px;
}

.woocommerce-cart-form table.cart td.actions {
	padding: 18px;
	background: var(--foliora-surface);
}

.woocommerce-cart-form td.actions {
	text-align: end;
}

.woocommerce-cart-form td.actions .coupon {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 10px;
	float: left;
}

[dir="rtl"] .woocommerce-cart-form td.actions .coupon {
	float: right;
}

.woocommerce-cart-form td.actions .coupon .input-text {
	width: 220px;
	min-height: 48px;
}

.woocommerce-cart-form td.actions .button {
	min-height: 48px;
}

.woocommerce .cart-collaterals {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
	gap: 32px;
	margin-top: 40px;
}

.woocommerce .cart-collaterals .cart_totals {
	grid-column: 2;
	float: none;
	width: auto;
	padding: 28px;
	border: 1px solid var(--foliora-line);
	border-radius: var(--foliora-card-radius, 20px);
	background: var(--foliora-surface);
}

.woocommerce .cart-collaterals .cross-sells {
	grid-column: 1;
	grid-row: 1;
	float: none;
	width: auto;
}

.cart_totals > h2,
#order_review_heading {
	margin: 0 0 20px;
	font-size: 22px;
	font-weight: 700;
}

.cart_totals table.shop_table,
.woocommerce-checkout-review-order-table {
	border: 0 !important;
	background: none;
}

.cart_totals table.shop_table :is(th, td) {
	padding-inline: 0 !important;
}

.cart_totals .order-total :is(th, td) {
	font-family: var(--foliora-font-heading);
	font-size: 20px;
}

.wc-proceed-to-checkout .checkout-button,
#place_order {
	width: 100%;
	min-height: 56px !important;
	font-size: 16px !important;
}

/* Checkout: the details on the left, the order on the right. */
@media (min-width: 992px) {
	form.woocommerce-checkout {
		display: grid;
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
		align-items: start;
		gap: 0 56px;
	}

	form.woocommerce-checkout > * {
		grid-column: 1;
	}

	form.woocommerce-checkout > #customer_details {
		grid-row: 1 / span 8;
	}

	form.woocommerce-checkout > #order_review_heading {
		grid-column: 2;
		grid-row: 1;
		margin: 0;
		padding: 28px 28px 0;
		border: 1px solid var(--foliora-line);
		border-bottom: 0;
		border-radius: var(--foliora-card-radius, 20px) var(--foliora-card-radius, 20px) 0 0;
		background: var(--foliora-surface);
	}

	form.woocommerce-checkout > #order_review {
		grid-column: 2;
		grid-row: 2;
		padding: 20px 28px 28px;
		border: 1px solid var(--foliora-line);
		border-top: 0;
		border-radius: 0 0 var(--foliora-card-radius, 20px) var(--foliora-card-radius, 20px);
		background: var(--foliora-surface);
	}
}

#customer_details.col2-set > * {
	float: none;
	width: auto;
}

#customer_details h3 {
	margin: 0 0 20px;
	font-size: 22px;
	font-weight: 700;
}

#customer_details .woocommerce-shipping-fields,
#customer_details .woocommerce-additional-fields {
	margin-top: 24px;
}

:is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper) {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0 16px;
}

:is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper) > .form-row {
	grid-column: 1 / -1;
	float: none;
	width: auto;
}

:is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper) > .form-row-first {
	grid-column: 1;
}

:is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper) > .form-row-last {
	grid-column: 2;
}

@media (max-width: 575px) {
	:is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper) > :is(.form-row-first, .form-row-last) {
		grid-column: 1 / -1;
	}
}

.woocommerce-checkout-review-order-table :is(th, td) {
	padding: 12px 0 !important;
	background: none !important;
}

.woocommerce-checkout-review-order-table .order-total :is(th, td) {
	font-family: var(--foliora-font-heading);
	font-size: 20px;
}

/* Payment methods. */
#payment ul.payment_methods {
	margin: 16px 0;
	padding: 0;
	list-style: none;
}

#payment ul.payment_methods > li {
	margin: 0 0 10px;
	padding: 14px 16px;
	border: 1.5px solid var(--foliora-line-strong);
	border-radius: var(--foliora-shop-radius);
	background: var(--foliora-bg);
}

#payment ul.payment_methods > li:has(input:checked) {
	border-color: var(--foliora-accent);
	box-shadow: inset 0 0 0 1px var(--foliora-accent);
}

#payment ul.payment_methods > li > label {
	display: inline;
	margin-inline-start: 8px;
	font-weight: 600;
	cursor: pointer;
}

#payment .payment_box {
	margin-top: 10px;
	color: var(--foliora-muted);
	font-size: 14px;
}

#payment .payment_box p {
	margin: 0;
}

#payment .woocommerce-terms-and-conditions-wrapper {
	margin: 16px 0;
	color: var(--foliora-muted);
	font-size: 14px;
}

form.checkout_coupon {
	margin: 0 0 24px;
	padding: 20px;
	border: 1px solid var(--foliora-line);
	border-radius: var(--foliora-shop-radius);
}

/* Country and state pickers (WooCommerce's select2). */
.woocommerce .select2-container .select2-selection--single {
	height: 52px;
	border: 1.5px solid var(--foliora-field);
	border-radius: var(--foliora-shop-radius);
	background: var(--foliora-bg);
}

.woocommerce .select2-container .select2-selection--single .select2-selection__rendered {
	padding: 0 40px 0 16px;
	color: var(--foliora-text);
	line-height: 49px;
}

[dir="rtl"] .woocommerce .select2-container .select2-selection--single .select2-selection__rendered {
	padding: 0 16px 0 40px;
}

.woocommerce .select2-container .select2-selection--single .select2-selection__arrow {
	top: 1px;
	right: 10px;
	height: 48px;
}

[dir="rtl"] .woocommerce .select2-container .select2-selection--single .select2-selection__arrow {
	right: auto;
	left: 10px;
}

.woocommerce .select2-container--focus .select2-selection--single,
.woocommerce .select2-container--open .select2-selection--single {
	border-color: var(--foliora-accent);
}

.select2-dropdown {
	border: 1.5px solid var(--foliora-accent) !important;
	border-radius: var(--foliora-shop-radius) !important;
	background: var(--foliora-bg) !important;
	color: var(--foliora-text);
	overflow: hidden;
}

.select2-results__option--highlighted[aria-selected],
.select2-results__option--highlighted[data-selected] {
	background: var(--foliora-accent) !important;
	color: var(--foliora-on-accent) !important;
}

.select2-search--dropdown .select2-search__field {
	border: 1.5px solid var(--foliora-field) !important;
	border-radius: var(--foliora-shop-radius);
	background: var(--foliora-bg);
	color: var(--foliora-text);
}

@media (max-width: 767px) {
	.woocommerce .cart-collaterals {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce .cart-collaterals .cart_totals {
		grid-column: 1;
	}

	.woocommerce-cart-form td.actions .coupon {
		float: none;
		display: flex;
		margin-bottom: 12px;
	}

	.woocommerce-cart-form td.actions .coupon .input-text {
		flex: 1;
		width: auto;
	}

	.woocommerce-cart-form table.cart td.product-thumbnail {
		width: auto;
	}
}

/* Shipping choices in the classic cart and checkout totals. */
ul#shipping_method {
	margin: 0;
	padding: 0;
	list-style: none;
}

ul#shipping_method li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
	padding: 0;
}

ul#shipping_method li label {
	margin: 0;
	font-weight: 500;
}

.woocommerce-shipping-destination,
.woocommerce-shipping-calculator .shipping-calculator-button {
	color: var(--foliora-muted);
	font-size: 14px;
}

/* Classic tables on phones: one block per row, labels from WooCommerce's
   data-title. */
@media (max-width: 767px) {
	:is(.woocommerce, .woocommerce-page) table.shop_table_responsive,
	:is(.woocommerce, .woocommerce-page) table.shop_table_responsive tbody {
		display: block;
		width: 100%;
	}

	:is(.woocommerce, .woocommerce-page) table.shop_table_responsive tbody th {
		display: none;
	}

	:is(.woocommerce, .woocommerce-page) table.shop_table_responsive tr {
		display: block;
	}

	:is(.woocommerce, .woocommerce-page) table.shop_table_responsive td:not([data-title])::before {
		content: none;
	}

	.woocommerce-cart-form table.cart td.product-remove {
		width: auto;
		justify-content: flex-end;
	}

	.woocommerce-cart-form table.cart td.product-thumbnail {
		justify-content: center;
		border-top: 0;
	}

	.woocommerce-cart-form table.cart td.product-thumbnail img {
		width: 120px;
		height: 120px;
	}

	.woocommerce-cart-form td.actions {
		display: block !important;
		text-align: start;
	}

	.woocommerce-cart-form td.actions > .button {
		width: 100%;
	}

	:is(.woocommerce, .woocommerce-page) table.shop_table_responsive tr.woocommerce-shipping-totals td {
		display: block;
		text-align: start;
	}

	:is(.woocommerce, .woocommerce-page) table.shop_table_responsive tr.woocommerce-shipping-totals td::before {
		display: block;
		margin-bottom: 10px;
	}
}

/* WooCommerce block buttons while unavailable (empty coupon, busy): quiet
   but readable, instead of faded. */
.foliora-shop .wc-block-components-button:not(.is-link):is(:disabled, [aria-disabled="true"]) {
	border-color: var(--foliora-line);
	background: var(--foliora-surface);
	color: var(--foliora-muted);
	opacity: 1;
}

/* WooCommerce's product search form (widget, empty search results): the
   theme's search form look. */
.woocommerce-product-search {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin: 0;
	padding: 6px;
	padding-inline-start: 18px;
	border: 2px solid var(--foliora-line);
	border-radius: calc(16px * var(--foliora-corner-scale, 1));
	background: var(--foliora-bg);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-product-search:focus-within {
	border-color: var(--foliora-accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--foliora-accent) 12%, transparent);
}

.woocommerce-product-search .search-field,
:is(.woocommerce, .woocommerce-page, .foliora-shop) .woocommerce-product-search .search-field {
	flex: 1;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0;
	background: transparent;
	box-shadow: none !important;
	color: var(--foliora-text);
	font-size: 16px;
	outline: none;
}

.woocommerce-product-search button {
	flex: none;
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: calc(12px * var(--foliora-corner-scale, 1));
	background: var(--foliora-accent);
	color: var(--foliora-on-accent);
	font-family: var(--foliora-font-heading);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.woocommerce-product-search button:hover {
	background: var(--foliora-accent-hover);
}

.woocommerce-product-search button:focus-visible {
	outline: 3px solid var(--foliora-link);
	outline-offset: 2px;
}

.foliora-shop__empty .foliora-empty__search {
	width: 100%;
	max-width: 480px;
	margin: 8px auto 4px;
}

/* ---------- Checkout on tablets and phones: the summary folds into one bar ---------- */
.foliora-shop--page .wc-block-checkout:is(.is-medium, .is-small, .is-mobile) .wp-block-woocommerce-checkout-order-summary-block {
	padding: 0 24px;
}

.foliora-shop--page .wc-block-checkout:is(.is-medium, .is-small, .is-mobile) .wc-block-components-checkout-order-summary__title {
	margin: 0;
	padding: 20px 0;
	border: 0;
}

.foliora-shop--page .wc-block-checkout:is(.is-medium, .is-small, .is-mobile) .wc-block-components-checkout-order-summary__content {
	border-top: 1px solid var(--foliora-line);
}

/* ---------- Order overview on tablets and phones: label and value side by side ---------- */
ul.woocommerce-order-overview li strong {
	overflow-wrap: anywhere;
}

@media (max-width: 1023px) {
	ul.woocommerce-order-overview {
		grid-template-columns: minmax(0, 1fr);
	}

	ul.woocommerce-order-overview li {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 16px;
		padding: 16px 20px;
		border-inline-end: 0;
		border-bottom: 1px solid var(--foliora-line);
	}

	ul.woocommerce-order-overview li:last-child {
		border-bottom: 0;
	}

	ul.woocommerce-order-overview li strong {
		margin: 0;
		font-size: 15px;
		text-align: end;
	}
}

/* The lost and reset password forms: one centred card with a full-width button. */
.foliora-shop--page .woocommerce > form.lost_reset_password {
	margin-inline: auto;
}

.foliora-shop--page form.lost_reset_password .form-row-first {
	float: none;
	width: 100%;
}

.foliora-shop--page form.lost_reset_password .button {
	width: 100%;
}

/* Account orders on phones: the order number heads each card, and a cell
   with several parts ("$246.00 for 6 items") stays one line of text. */
@media (max-width: 767px) {
	:is(.woocommerce, .woocommerce-page) table.woocommerce-orders-table tbody th.woocommerce-orders-table__cell-order-number {
		display: block;
		padding: 16px 18px 6px;
		border: 0;
		font-family: var(--foliora-font-heading);
		font-size: 17px;
		text-align: start;
	}

	:is(.woocommerce, .woocommerce-page) table.woocommerce-orders-table tbody th.woocommerce-orders-table__cell-order-number a {
		color: var(--foliora-text);
		text-decoration: none;
	}

	:is(.woocommerce, .woocommerce-page) table.woocommerce-orders-table td {
		display: block;
		text-align: end;
	}

	:is(.woocommerce, .woocommerce-page) table.woocommerce-orders-table td::before {
		float: inline-start;
		margin-inline-end: 16px;
	}

	:is(.woocommerce, .woocommerce-page) table.woocommerce-orders-table td::after {
		content: "";
		display: table;
		clear: both;
	}
}

/* Marked words in the order status line: bold, not highlighted. */
:is(.woocommerce-MyAccount-content, .woocommerce-order) mark,
.foliora-dark :is(.woocommerce-MyAccount-content, .woocommerce-order) mark {
	padding: 0;
	background: none;
	color: var(--foliora-text);
	font-weight: 700;
}

/* Address cards: the edit link drops under the title when the card is narrow. */
.woocommerce-Address .woocommerce-Address-title {
	flex-wrap: wrap;
	row-gap: 4px;
}

.woocommerce-Address .woocommerce-Address-title :is(h2, h3) {
	flex: none;
}

.woocommerce-Address .woocommerce-Address-title a {
	white-space: nowrap;
}

/* Right-to-left pages: each amount keeps the order WooCommerce's currency
   setting gives it ($18.00 stays $18.00, not 18.00$). */
[dir="rtl"] .woocommerce-Price-amount {
	direction: ltr;
	unicode-bidi: isolate;
}
