/* Generated by scripts/build-rtl.js (rtlcss). Do not edit; edit the LTR source and rebuild. */
/* RIVISTA commerce features: wishlist, compare, quick view, sticky cart, trust badges */

/* ============================================================
   CARD HOVER ACTIONS (wishlist / compare / quick view)
   ============================================================ */
.cf-card-actions {
	position: absolute;
	top: 12px;
	inset-inline-end: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	z-index: 3;
}
.cf-cbtn {
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line, #e9e6dc);
	border-radius: 50%;
	background: var(--paper, #fff);
	color: var(--ink, #14130f);
	cursor: pointer;
	transition: transform .2s var(--ease, ease), background .2s ease, color .2s ease, opacity .25s ease;
	box-shadow: 0 4px 14px -8px rgba(0, 0, 0, .35);
}
.cf-cbtn:hover {
	background: var(--ink, #14130f);
	color: var(--paper, #fff);
	transform: translateY(-1px);
}
.cf-cbtn:focus-visible {
	outline: 2px solid var(--terra, #c4452a);
	outline-offset: 2px;
}
.cf-cbtn.is-active {
	background: var(--terra, #c4452a);
	border-color: var(--terra, #c4452a);
	color: #fff;
}
.cf-cbtn[data-cf-wishlist].is-active .cf-ico {
	fill: currentColor;
}

/* Reveal on hover for pointer devices; always visible on touch. */
@media (hover: hover) {
	.cf-card-actions {
		opacity: 0;
		transform: translateX(-6px);
		pointer-events: none;
	}
	.product-card:hover .cf-card-actions,
	.product-card:focus-within .cf-card-actions {
		opacity: 1;
		transform: none;
		pointer-events: auto;
	}
}

/* ============================================================
   TOAST
   ============================================================ */
.cf-toast {
	position: fixed;
	inset-inline: 0;
	bottom: 26px;
	margin-inline: auto;
	width: max-content;
	max-width: calc(100% - 32px);
	background: var(--ink, #14130f);
	color: var(--paper, #fff);
	font-family: var(--display, sans-serif);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .01em;
	padding: 11px 20px;
	border-radius: 999px;
	z-index: 100002;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .28s var(--ease, ease), transform .28s var(--ease, ease);
	pointer-events: none;
	box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5);
}
.cf-toast.is-visible {
	opacity: 1;
	transform: none;
}

/* ============================================================
   QUICK VIEW MODAL
   ============================================================ */
.cf-qv {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: none;
}
.cf-qv.is-open {
	display: block;
}
.cf-qv-overlay {
	position: absolute;
	inset: 0;
	background: rgba(20, 19, 15, .55);
	backdrop-filter: blur(3px);
	animation: cfFade .25s ease;
}
/* The dialog clips and the content scrolls, so the close button (a child of
   the dialog, not of the scroller) stays in reach however far you scroll. */
.cf-qv-dialog {
	position: absolute;
	inset-inline: 0;
	top: 50%;
	margin-inline: auto;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	width: min(880px, calc(100% - 32px));
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	overflow: hidden;
	background: var(--paper, #fff);
	animation: cfPop var(--dur, .36s) var(--ease, ease);
}
.cf-qv-close {
	position: absolute;
	top: 14px;
	inset-inline-end: 14px;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--paper, #fff);
	border: 1px solid var(--line, #e9e6dc);
	color: var(--ink, #14130f);
	cursor: pointer;
	z-index: 2;
	transition: background var(--dur, .36s) var(--ease, ease), color var(--dur, .36s) var(--ease, ease), border-color var(--dur, .36s) var(--ease, ease);
}
.cf-qv-close:hover {
	background: var(--ink, #14130f);
	border-color: var(--ink, #14130f);
	color: var(--paper, #fff);
}
.cf-qv-close:focus-visible {
	outline: 2px solid var(--ink, #14130f);
	outline-offset: 2px;
}
.cf-qv-content {
	flex: 0 1 auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	min-height: 220px;
	overflow-y: auto;
	overscroll-behavior: contain;
}
.cf-qv-loading {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 80px 20px;
	font-family: var(--display, sans-serif);
	font-size: 14px;
	color: var(--ink-3, #5e5c56);
}
.cf-qv-media {
	background: var(--paper-2, #f7f5f0);
	aspect-ratio: 4 / 5;
	overflow: hidden;
}
.cf-qv-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
/* Content sits in the optical middle of the column: no dead band between
   the title and a button pinned to the bottom. */
.cf-qv-info {
	padding: 56px clamp(28px, 4.5vw, 52px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 22px;
	min-width: 0;
}
.cf-qv-head {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-inline-end: 32px; /* clear the close button */
}
.cf-qv-cat {
	font-family: var(--display, sans-serif);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink-3, #5e5c56);
}
.cf-qv-title {
	font-family: var(--display, sans-serif);
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 600;
	line-height: 1.04;
	letter-spacing: -.025em;
	margin: 0;
	text-wrap: balance;
}
.cf-qv-rating .star-rating {
	margin: 0;
}
.cf-qv-desc {
	color: var(--ink-2, #4a4842);
	font-size: 15px;
	line-height: 1.6;
	max-width: 42ch;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}
.cf-qv-desc p {
	margin: 0;
	display: inline;
}
.cf-qv-desc p + p::before {
	content: " ";
}
/* Price and the buy action read as one group, framed by hairlines. */
.cf-qv-buy {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 20px;
	padding: 20px 0;
	border-top: 1px solid var(--line, #e9e6dc);
	border-bottom: 1px solid var(--line, #e9e6dc);
}
.cf-qv-price {
	font-family: var(--display, sans-serif);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -.01em;
	color: var(--ink, #14130f);
}
.cf-qv-price del {
	color: var(--ink-3, #5e5c56);
	font-size: .72em;
	font-weight: 400;
	margin-inline-end: 8px;
}
.cf-qv-price ins {
	color: var(--accent, #c4452a);
	text-decoration: none;
}
.cf-qv-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
}
.cf-qv .cf-qv-cta .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	margin: 0;
	padding: 0 28px;
	border: 1px solid var(--ink, #14130f);
	border-radius: 999px;
	background: var(--ink, #14130f);
	color: var(--paper, #fff);
	font-family: var(--display, sans-serif);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .1em;
	text-transform: uppercase;
	transition: background var(--dur, .36s) var(--ease, ease), border-color var(--dur, .36s) var(--ease, ease), opacity var(--dur, .36s) var(--ease, ease);
}
.cf-qv .cf-qv-cta .button:hover {
	background: var(--terra, #c4452a);
	border-color: var(--terra, #c4452a);
	color: #fff;
}
.cf-qv .cf-qv-cta .button:focus-visible {
	outline: 2px solid var(--ink, #14130f);
	outline-offset: 3px;
}
.cf-qv .cf-qv-cta .button.loading {
	opacity: .6;
	pointer-events: none;
}
/* WooCommerce appends its own spinner/tick glyphs to these states. */
.cf-qv .cf-qv-cta .button.loading::after,
.cf-qv .cf-qv-cta .button.added::after {
	content: none;
}
.cf-qv .cf-qv-cta .added_to_cart {
	font-family: var(--display, sans-serif);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink, #14130f);
	text-decoration: underline;
	text-underline-offset: 4px;
}
.cf-qv-full {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--display, sans-serif);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink-2, #4a4842);
	transition: color var(--dur, .36s) var(--ease, ease);
}
.cf-qv-full svg {
	transition: transform var(--dur, .36s) var(--ease, ease);
}
.cf-qv-full:hover {
	color: var(--ink, #14130f);
}
.cf-qv-full:hover svg {
	transform: translateX(-4px);
}
.cf-qv-full:focus-visible,
.cf-qv .cf-qv-cta .added_to_cart:focus-visible {
	outline: 2px solid var(--ink, #14130f);
	outline-offset: 3px;
}
.cf-qv-full svg { transform: scaleX(-1); }
.cf-qv-full:hover svg { transform: translateX(-4px) scaleX(-1); }

@keyframes cfFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cfPop {
	from { opacity: 0; transform: translateY(calc(-50% + 12px)); }
	to   { opacity: 1; transform: translateY(-50%); }
}

/* ============================================================
   TRUST BADGES (single product)
   ============================================================ */
.cf-trust {
	list-style: none;
	margin: 26px 0 0;
	padding: 20px 0 0;
	border-top: 1px solid var(--line, #e9e6dc);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
.cf-trust-item {
	display: flex;
	align-items: center;
	gap: 11px;
	color: var(--ink, #14130f);
}
.cf-trust-item .cf-ico {
	flex: none;
	width: 22px;
	height: 22px;
	color: var(--terra, #c4452a);
}
.cf-trust-text {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}
.cf-trust-text b {
	font-family: var(--display, sans-serif);
	font-size: 13px;
	font-weight: 700;
}
.cf-trust-text small {
	font-size: 11.5px;
	color: var(--ink-3, #5e5c56);
}

/* ============================================================
   STICKY ADD-TO-CART (single product)
   ============================================================ */
.cf-sticky {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 9000;
	background: var(--paper, #fff);
	border-top: 1px solid var(--line, #e9e6dc);
	box-shadow: 0 -14px 34px -22px rgba(0, 0, 0, .4);
	animation: cfSlideUp .3s var(--ease, ease);
}
.cf-sticky[hidden] {
	display: none;
}
.cf-sticky-inner {
	max-width: var(--shell, 1320px);
	margin: 0 auto;
	padding: 12px clamp(16px, 4vw, 40px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}
.cf-sticky-prod {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}
.cf-sticky-img {
	width: 46px;
	height: 46px;
	object-fit: cover;
	flex: none;
	border-radius: 3px;
}
.cf-sticky-metatext {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
	min-width: 0;
}
.cf-sticky-name {
	font-family: var(--display, sans-serif);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.cf-sticky-price {
	font-size: 13px;
	color: var(--ink-2, #4a4842);
}
.cf-sticky-btn {
	flex: none;
	background: var(--ink, #14130f);
	color: var(--paper, #fff);
	font-family: var(--display, sans-serif);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 13px 30px;
	border: 0;
	cursor: pointer;
	transition: background .2s ease;
}
.cf-sticky-btn:hover {
	background: var(--terra, #c4452a);
}

@keyframes cfSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
	/* Phones: photo on top, details below, one scrolling column. */
	.cf-qv-dialog {
		width: calc(100% - 24px);
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
	}
	.cf-qv-content { grid-template-columns: minmax(0, 1fr); }
	/* A fixed band instead of 4:5: a grid item with aspect-ratio and a
	   max-height would shrink in width and leave a blank strip beside it. */
	.cf-qv-media { aspect-ratio: auto; height: min(42vh, 340px); }
	.cf-qv-media img { object-position: center 30%; }
	.cf-qv-info { padding: 24px 20px 28px; gap: 18px; justify-content: flex-start; }
	.cf-qv-head { padding-inline-end: 0; }
	.cf-qv-title { font-size: 26px; }
	.cf-qv-buy { padding: 16px 0; }
	.cf-qv-close { top: 10px; inset-inline-end: 10px; width: 44px; height: 44px; }
	.cf-trust { grid-template-columns: 1fr; gap: 14px; }
	.cf-sticky-metatext { display: none; }
	.cf-sticky-btn { flex: 1; }
	.cf-sticky-prod { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
	.cf-qv-overlay, .cf-qv-dialog, .cf-sticky, .cf-toast, .cf-cbtn { animation: none; transition: none; }
}

/* ============================================================
   HEADER WISHLIST COUNT
   ============================================================ */
.cf-wishlist-link {
	position: relative;
}
.cf-count {
	position: absolute;
	top: -4px;
	inset-inline-end: -4px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--terra, #c4452a);
	color: #fff;
	font-family: var(--display, sans-serif);
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}
.cf-count[hidden] {
	display: none;
}

/* ============================================================
   WISHLIST / COMPARE PAGE — dynamic states
   ============================================================ */
.wl-loading,
.cmp-loading {
	padding: 70px 20px;
	text-align: center;
	font-family: var(--display, sans-serif);
	font-size: 14px;
	color: var(--ink-3, #5e5c56);
	grid-column: 1 / -1;
}
.wl-item.is-removing {
	opacity: 0;
	transform: scale(.94);
	transition: opacity .3s ease, transform .3s ease;
}
.cmp-empty {
	padding: clamp(64px, 10vw, 128px) 20px;
	text-align: center;
}
.cmp-empty h2 {
	font-family: var(--display, sans-serif);
	font-size: clamp(26px, 3.2vw, 38px);
	font-weight: 600;
	letter-spacing: -.02em;
	margin: 0 0 12px;
}
.cmp-empty h2 i {
	font-family: var(--serif, serif);
	font-style: italic;
}
.cmp-empty p {
	font-family: var(--serif, serif);
	font-style: italic;
	font-size: clamp(19px, 1.8vw, 23px);
	line-height: 1.35;
	color: var(--ink-2, #4a4842);
	max-width: 34ch;
	margin: 0 auto 30px;
}

/* Compare cells built from real product data (layout: page-compare.css) */
.cmp-media img {
	width: 100%;
	height: auto; /* beat the HTML height attribute so aspect-ratio applies */
	aspect-ratio: 4 / 5;
	object-fit: cover;
	display: block;
	margin: 0;
}
.cmp-name {
	font-family: var(--display, sans-serif);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -.005em;
	color: var(--ink, #14130f);
	margin: 0 0 16px;
}
.cmp-price-v {
	font-family: var(--display, sans-serif);
	font-size: 17px;
	font-weight: 500;
	color: var(--ink, #14130f);
}
.cmp-price-v del {
	font-size: .82em;
	font-weight: 400;
	color: var(--ink-3, #5e5c56);
	margin-inline-end: 6px;
}
.cmp-price-v ins {
	color: var(--accent, #c4452a);
	text-decoration: none;
	background: none;
}
.cmp-na {
	color: var(--ink-3, #5e5c56);
}
.cmp-cell .stars b {
	font-family: var(--display, sans-serif);
}

/* ============================================================
   COMPARE BAR
   A slim floating tray with the chosen products. Desktop: one
   row, never taller than 72px. Phones (<=640px): a "Compare · 3"
   pill that expands into the tray (commerce.js toggles
   .is-expanded and aria-expanded). commerce.js keeps it off cart,
   checkout, account, order and compare pages.
   ============================================================ */
:root {
	/* Bar height + its bottom offset + breathing room, reserved at the
	   end of the page so the bar never covers the last content. */
	--cf-cbar-space: 112px;
	--cf-cbar-lift: 84px; /* sticky add-to-cart bar height + gap */
}
body.has-compare-bar.has-sticky-atc {
	--cf-cbar-space: 196px;
}
body.has-compare-bar {
	padding-bottom: var(--cf-cbar-space);
}
/* When the site footer closes the page, reserve the space inside it so the
   band keeps the footer colour instead of ending on a white strip. Browsers
   without :has() keep the body padding (just a little extra room). */
body.has-compare-bar:has(.footer) {
	padding-bottom: 0;
}
body.has-compare-bar .footer::after {
	content: "";
	display: block;
	height: var(--cf-cbar-space);
}
/* Keep the toast clear of whatever is docked at the bottom. */
body.has-sticky-atc .cf-toast {
	bottom: calc(var(--cf-cbar-lift) + 12px);
}
body.has-compare-bar .cf-toast {
	bottom: calc(var(--cf-cbar-space) - 8px);
}

.cf-cbar {
	position: fixed;
	inset-inline: 0;
	bottom: 20px;
	z-index: 100000;
	display: flex;
	justify-content: center;
	padding: 0 16px;
	pointer-events: none;
	transition: transform var(--dur, .36s) var(--ease, ease), opacity var(--dur, .36s) var(--ease, ease), visibility 0s;
}
.cf-cbar[hidden] {
	display: none;
}
/* Lift above the single-product sticky add-to-cart bar. */
body.has-sticky-atc .cf-cbar {
	transform: translateY(calc(-1 * var(--cf-cbar-lift)));
}
/* Step aside while the menu, search or mini cart is open. */
body.rivista-overlay-open .cf-cbar,
body.cart-open .cf-cbar {
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--dur, .36s) var(--ease, ease), visibility 0s linear var(--dur, .36s);
}

.cf-cbar-in {
	pointer-events: auto;
	display: flex;
	align-items: center;
	gap: 20px;
	width: auto;
	max-width: 720px;
	min-height: 64px;
	padding: 9px 22px 9px 9px;
	background: var(--paper, #fff);
	color: var(--ink, #14130f);
	border: 1px solid var(--line, #e9e6dc);
	box-shadow: 0 22px 48px -26px rgba(20, 19, 15, .34);
	opacity: 0;
	transform: translateY(16px);
	transition: transform var(--dur, .36s) var(--ease, ease), opacity var(--dur, .36s) var(--ease, ease);
}
.cf-cbar.is-visible .cf-cbar-in {
	opacity: 1;
	transform: none;
}

/* Pill toggle: phones only. */
.cf-cbar-toggle {
	display: none;
}

.cf-cbar-label {
	display: flex;
	flex-direction: column;
	gap: 5px;
	flex: none;
	font-family: var(--display, sans-serif);
	line-height: 1;
}
.cf-cbar-label .eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ink, #14130f);
}
.cf-cbar-label .eyebrow::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--terra, #c4452a);
}
.cf-cbar-label .count {
	font-size: 13px;
	color: var(--ink-3, #5e5c56);
	padding-inline-start: 13px;
}
.cf-cbar-label .count b {
	color: var(--ink, #14130f);
	font-weight: 600;
}

.cf-cbar-panel {
	display: flex;
	align-items: center;
	gap: 20px;
	min-width: 0;
}
.cf-cbar-items {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0 20px 0 0;
	border-right: 1px solid var(--line, #e9e6dc);
	list-style: none;
}
.cf-cbar-item {
	position: relative;
	flex: none;
	width: 36px;
	height: 45px;
	background: var(--paper-2, #f7f5f0);
}
.cf-cbar-thumb {
	display: block;
	width: 100%;
	height: 100%;
}
.cf-cbar-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.cf-cbar-thumb:focus-visible {
	outline: 2px solid var(--ink, #14130f);
	outline-offset: 2px;
}
/* Free slot: a dashed hairline frame with a faint plus, so it reads as
   "room for one more" rather than a picture that failed to load. */
.cf-cbar-item.is-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px dashed var(--line, #e9e6dc);
	border-color: color-mix(in srgb, var(--ink-3, #5e5c56) 38%, transparent);
	color: var(--ink-3, #5e5c56);
}
.cf-cbar-item.is-empty .cf-cbar-plus {
	width: 12px;
	height: 12px;
	opacity: .55;
}
.cf-cbar-item .rm {
	position: absolute;
	top: -7px;
	left: -7px;
	width: 18px;
	height: 18px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid var(--line, #e9e6dc);
	background: var(--paper, #fff);
	color: var(--ink, #14130f);
	cursor: pointer;
	transition: background var(--dur, .36s) var(--ease, ease), color var(--dur, .36s) var(--ease, ease), border-color var(--dur, .36s) var(--ease, ease);
}
/* A 34px hit area around the small visual dot. */
.cf-cbar-item .rm::before {
	content: "";
	position: absolute;
	inset: -8px;
}
.cf-cbar-item .rm svg {
	width: 10px;
	height: 10px;
}
.cf-cbar-item .rm:hover {
	background: var(--ink, #14130f);
	border-color: var(--ink, #14130f);
	color: var(--paper, #fff);
}
.cf-cbar-item .rm:focus-visible {
	outline: 2px solid var(--ink, #14130f);
	outline-offset: 2px;
}

.cf-cbar-actions {
	display: flex;
	align-items: center;
	gap: 18px;
}
.cf-cbar-clear {
	padding: 4px 0;
	border: 0;
	background: none;
	font-family: var(--display, sans-serif);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ink-3, #5e5c56);
	text-decoration: underline;
	text-decoration-color: var(--line, #e9e6dc);
	text-underline-offset: 4px;
	cursor: pointer;
	transition: color var(--dur, .36s) var(--ease, ease), text-decoration-color var(--dur, .36s) var(--ease, ease);
}
.cf-cbar-clear:hover {
	color: var(--ink, #14130f);
	text-decoration-color: currentColor;
}
.cf-cbar-clear:focus-visible {
	outline: 2px solid var(--ink, #14130f);
	outline-offset: 3px;
}
.cf-cbar-go {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 22px 0 20px;
	border-radius: 999px;
	background: var(--ink, #14130f);
	color: var(--paper, #fff);
	font-family: var(--display, sans-serif);
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .12em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background var(--dur, .36s) var(--ease, ease);
}
.cf-cbar-go svg {
	flex: none;
	transition: transform var(--dur, .36s) var(--ease, ease);
}
.cf-cbar-go:hover {
	background: var(--terra, #c4452a);
	color: var(--paper, #fff);
}
.cf-cbar-go:hover svg {
	transform: translateX(-3px);
}
.cf-cbar-go:focus-visible {
	outline: 2px solid var(--ink, #14130f);
	outline-offset: 3px;
}
.cf-cbar-go svg { transform: scaleX(-1); }
.cf-cbar-go:hover svg { transform: translateX(-3px) scaleX(-1); }

@media (max-width: 640px) {
	:root {
		--cf-cbar-space: 76px; /* 44px pill + 16px offset + 16px air */
	}
	body.has-compare-bar.has-sticky-atc {
		--cf-cbar-space: 160px;
	}
	.cf-cbar {
		bottom: 16px;
	}

	/* Collapsed: only the pill shows. */
	.cf-cbar-in {
		display: block;
		width: auto;
		max-width: 100%;
		min-height: 0;
		padding: 0;
		border: 0;
		background: none;
		box-shadow: none;
	}
	.cf-cbar-label,
	.cf-cbar-panel {
		display: none;
	}
	.cf-cbar-toggle {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		min-height: 44px;
		margin: 0;
		padding: 0 20px 0 16px;
		border: 0;
		border-radius: 999px;
		background: var(--ink, #14130f);
		color: var(--paper, #fff);
		font-family: var(--display, sans-serif);
		font-size: 12px;
		font-weight: 600;
		line-height: 1;
		letter-spacing: .1em;
		text-transform: uppercase;
		box-shadow: 0 16px 34px -16px rgba(20, 19, 15, .55);
		cursor: pointer;
	}
	.cf-cbar-toggle b {
		font-weight: 600;
	}
	.cf-cbar-sep {
		opacity: .5;
	}
	.cf-cbar-chev {
		flex: none;
		margin-inline-start: 2px;
		transition: transform var(--dur, .36s) var(--ease, ease);
	}
	.cf-cbar-toggle:focus-visible {
		outline: 2px solid var(--ink, #14130f);
		outline-offset: 3px;
	}

	/* Expanded: the pill becomes the header of a full-width tray. */
	.cf-cbar.is-expanded .cf-cbar-in {
		width: 100%;
		padding: 0 16px 16px;
		background: var(--paper, #fff);
		border: 1px solid var(--line, #e9e6dc);
		box-shadow: 0 22px 48px -26px rgba(20, 19, 15, .4);
	}
	.cf-cbar.is-expanded .cf-cbar-toggle {
		width: 100%;
		min-height: 52px;
		padding: 0;
		border-radius: 0;
		background: none;
		color: var(--ink, #14130f);
		box-shadow: none;
	}
	.cf-cbar.is-expanded .cf-cbar-chev {
		margin-inline-start: auto;
		transform: rotate(-180deg);
	}
	.cf-cbar.is-expanded .cf-cbar-toggle:focus-visible {
		outline-offset: -2px;
	}
	.cf-cbar.is-expanded .cf-cbar-panel {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 16px 12px;
		padding-top: 16px;
		border-top: 1px solid var(--line, #e9e6dc);
		animation: cfCbarIn var(--dur, .36s) var(--ease, ease);
	}
	.cf-cbar-actions {
		display: contents;
	}
	.cf-cbar-items {
		grid-column: 1;
		grid-row: 1;
		gap: 14px;
		padding: 7px 0 0;
		border: 0;
	}
	.cf-cbar-item .rm {
		width: 22px;
		height: 22px;
		top: -8px;
		left: -8px;
	}
	.cf-cbar-clear {
		grid-column: 2;
		grid-row: 1;
		padding: 12px 0;
	}
	.cf-cbar-go {
		grid-column: 1 / -1;
		width: 100%;
		min-height: 48px;
	}
}

@keyframes cfCbarIn {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.cf-cbar,
	.cf-cbar-in,
	.cf-cbar-go svg,
	.cf-cbar-chev,
	.cf-cbar-item .rm,
	.cf-cbar-clear {
		transition: none;
	}
	.cf-cbar.is-expanded .cf-cbar-panel {
		animation: none;
	}
}

/* ============================================================
   CART BLOCK — PHONE CHECKOUT BAR
   WooCommerce pins "Proceed to checkout" to the viewport bottom
   (<=782px) while its place in the totals panel is below the fold.
   Once the totals panel is on screen (commerce.js adds
   .rivista-cart-totals-in-view), the button returns to the panel so
   it never covers the totals header, subtotal or shipping rows.
   display: block also restores it on short landscape screens,
   where WooCommerce hides the pinned copy altogether.
   ============================================================ */
@media (max-width: 782px) {
	.rivista-cart-totals-in-view.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__submit-container--sticky {
		position: static;
		display: block;
		padding: 0;
		border-top: 0;
	}
	.rivista-cart-totals-in-view.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__submit-container--sticky::before {
		content: none;
	}
}

/* cards-archive: card action visibility
   Product cards (content-product.php) only. Desktop: small round buttons
   stacked top-right, revealed on card hover / keyboard focus; a saved
   wishlist heart stays visible. Touch screens show them at rest; phones
   (<=640px) keep only the wishlist heart. */
.custom-grid-card .cf-card-actions,
.custom-grid-card:hover .cf-card-actions,
.custom-grid-card:focus-within .cf-card-actions {
	top: 12px;
	inset-inline-end: 12px;
	gap: 6px;
	opacity: 1;
	transform: none;
	pointer-events: none;
}
.custom-grid-card .cf-cbtn {
	width: 34px;
	height: 34px;
	border-color: transparent;
	background: var(--paper, #fff);
	color: var(--ink, #14130f);
	box-shadow: none;
	pointer-events: auto;
}
.custom-grid-card .cf-cbtn .cf-ico {
	width: 16px;
	height: 16px;
}
.custom-grid-card .cf-cbtn:hover {
	background: var(--ink, #14130f);
	border-color: var(--ink, #14130f);
	color: var(--paper, #fff);
}
.custom-grid-card .cf-cbtn:focus-visible {
	outline: 2px solid var(--ink, #14130f);
	outline-offset: 2px;
}
.custom-grid-card .cf-cbtn.is-active {
	background: var(--paper, #fff);
	border-color: transparent;
	color: var(--ink, #14130f);
}
.custom-grid-card .cf-cbtn[data-cf-wishlist].is-active {
	color: var(--accent, #c4452a);
}
.custom-grid-card .cf-cbtn[data-cf-compare].is-active {
	background: var(--ink, #14130f);
	color: var(--paper, #fff);
}
@media (hover: hover) {
	.custom-grid-card .cf-cbtn {
		opacity: 0;
		transform: translateX(-6px);
		pointer-events: none;
		transition: opacity var(--dur, .36s) var(--ease, ease), transform var(--dur, .36s) var(--ease, ease), background-color .2s ease, color .2s ease;
	}
	.custom-grid-card:hover .cf-cbtn,
	.custom-grid-card:focus-within .cf-cbtn,
	.custom-grid-card .cf-cbtn[data-cf-wishlist].is-active {
		opacity: 1;
		transform: none;
		pointer-events: auto;
	}
	.custom-grid-card:hover .cf-cbtn:nth-child(2) { transition-delay: 40ms; }
	.custom-grid-card:hover .cf-cbtn:nth-child(3) { transition-delay: 80ms; }
}
/* Touch screens: the 34px disc keeps the photograph first; a transparent
   ring widens the target to 40px (the stack gap equals the two rings, so
   neighbouring targets never overlap). */
@media (hover: none) {
	.custom-grid-card .cf-cbtn {
		position: relative;
	}
	.custom-grid-card .cf-cbtn::before {
		content: "";
		position: absolute;
		inset: -4px;
		border-radius: 50%;
	}
	.custom-grid-card .cf-card-actions,
	.custom-grid-card:hover .cf-card-actions,
	.custom-grid-card:focus-within .cf-card-actions {
		gap: 8px;
	}
	.custom-grid-card .cf-cbtn .cf-ico {
		width: 15px;
		height: 15px;
	}
}
@media (max-width: 640px) {
	.custom-grid-card .cf-card-actions,
	.custom-grid-card:hover .cf-card-actions,
	.custom-grid-card:focus-within .cf-card-actions {
		top: 8px;
		inset-inline-end: 8px;
	}
	.custom-grid-card .cf-cbtn[data-cf-compare],
	.custom-grid-card .cf-cbtn[data-cf-quickview] {
		display: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	.custom-grid-card .cf-cbtn,
	.custom-grid-card:hover .cf-cbtn {
		transform: none;
		transition: none;
	}
}
