.adage-360 {
	--adage-360-height: auto;
	--adage-360-ratio: 4 / 5;
	position: relative;
	clear: both;
	width: 100%;
	margin: 1.5rem 0;
	background: var(--adage-grey, #d8d5cf);
	color: var(--adage-ink, #111);
	contain: layout style;
}
.adage-arrow-icon { display: block; width: 1.05em; height: 1.05em; flex: 0 0 auto; fill: none; stroke: currentcolor; stroke-linecap: square; stroke-linejoin: miter; stroke-width: 1.35; }
.adage-360__stage {
	position: relative;
	display: grid;
	width: 100%;
	height: var(--adage-360-height);
	aspect-ratio: var(--adage-360-ratio);
	overflow: hidden;
	place-items: center;
	background: #e7e3dc;
	cursor: grab;
	touch-action: pan-y;
	user-select: none;
}
.adage-360__stage:active { cursor: grabbing; }
.adage-360__image { width: 100%; height: 100%; object-fit: contain; transform: scale(var(--adage-360-zoom, 1)); transform-origin: center; transition: transform .12s ease; pointer-events: none; }
.adage-360__activate {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	display: grid;
	min-width: 150px;
	background: var(--adage-ink, #111);
	color: #fff;
	text-align: left;
}
.adage-360__activate small { display: block; font-size: .55rem; font-weight: 400; letter-spacing: .04em; text-transform: none; }
.adage-360.is-active .adage-360__activate { display: none; }
.adage-360__progress { position: absolute; z-index: 3; right: 1rem; bottom: 1rem; left: 1rem; padding: .75rem; background: rgb(255 255 255 / .92); }
.adage-360__progress span { display: block; height: 3px; background: linear-gradient(90deg, var(--adage-clay, #9b5138) var(--adage-progress, 0%), #ccc 0); }
.adage-360__progress output { display: block; margin-top: .35rem; font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; }
.adage-360__error { position: absolute; z-index: 4; right: 1rem; bottom: 1rem; left: 1rem; margin: 0; padding: .8rem; background: #fff; border-left: 4px solid var(--adage-error, #a83232); font-size: .85rem; }
.adage-360__controls { display: flex; min-height: 56px; align-items: center; justify-content: center; gap: .35rem; padding: .4rem; background: var(--adage-ink, #111); }
.adage-360__controls button { min-width: 44px; width: 44px; padding: 0; border-color: rgb(255 255 255 / .35); background: transparent; color: #fff; font-size: 1rem; }
.adage-360__controls button:hover { background: var(--adage-clay, #9b5138); }
.adage-360--overlay { position: absolute; z-index: 5; inset: 0; margin: 0; opacity: 1; }
.adage-360--overlay:not(.is-active) { top: auto; background: transparent; pointer-events: none; }
.adage-360--overlay:not(.is-active) .adage-360__stage { height: 0; aspect-ratio: auto; overflow: visible; background: transparent; }
.adage-360--overlay:not(.is-active) .adage-360__image { display: none; }
.adage-360--overlay:not(.is-active) .adage-360__activate { display: grid; pointer-events: auto; }
.woocommerce-product-gallery { position: relative; }
.adage-360:fullscreen, .adage-360.is-fullscreen {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: grid;
	height: 100vh;
	margin: 0;
	grid-template-rows: minmax(0, 1fr) auto;
	background: #111;
}
.adage-360:fullscreen .adage-360__stage, .adage-360.is-fullscreen .adage-360__stage { height: 100%; aspect-ratio: auto; background: #111; }
.adage-360:fullscreen .adage-360__image, .adage-360.is-fullscreen .adage-360__image { object-fit: contain; }

.woocommerce ul.products li.product .adage-card-360-trigger {
	position: absolute;
	z-index: 7;
	top: .8rem;
	right: .8rem;
	display: inline-flex;
	width: auto;
	min-width: 0;
	min-height: 42px;
	align-items: center;
	gap: .58rem;
	padding: .44rem .72rem .44rem .46rem;
	border: 1px solid rgb(17 17 17 / .12);
	border-radius: 999px;
	background: rgb(255 255 255 / .94);
	box-shadow: 0 10px 28px rgb(17 17 17 / .13);
	color: var(--adage-ink, #111);
	font-size: .62rem;
	font-weight: 750;
	letter-spacing: .1em;
	line-height: 1;
	text-transform: uppercase;
	opacity: 0;
	transform: translateY(-7px);
	transition: opacity .22s ease, transform .22s ease, background .22s ease;
}
.adage-card-360-trigger__mark {
	display: grid;
	width: 31px;
	height: 31px;
	border-radius: 50%;
	place-items: center;
	background: var(--adage-ink, #111);
	color: #fff;
	font-size: .58rem;
	letter-spacing: -.02em;
}
.woocommerce ul.products li.product:hover .adage-card-360-trigger,
.woocommerce ul.products li.product:focus-within .adage-card-360-trigger,
.adage-card-360-trigger:focus-visible {
	opacity: 1;
	transform: translateY(0);
}
.woocommerce ul.products li.product .adage-card-360-trigger:hover,
.woocommerce ul.products li.product .adage-card-360-trigger:focus-visible {
	background: var(--adage-citron, #d9ff43);
	color: var(--adage-ink, #111);
}

body.adage-360-dialog-open { overflow: hidden; }
.adage-card-360-dialog {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: grid;
	padding: clamp(.6rem, 2vw, 1.5rem);
	overflow: auto;
	place-items: center;
	background: rgb(12 10 9 / .78);
	backdrop-filter: blur(8px);
}
.adage-card-360-dialog[hidden] { display: none; }
.adage-card-360-dialog__panel {
	position: relative;
	width: min(100%, 1220px);
	max-height: calc(100svh - 2rem);
	overflow: auto;
	padding: clamp(1rem, 2.5vw, 2.25rem);
	background: var(--adage-bone, #f3efe6);
	color: var(--adage-ink, #111);
	box-shadow: 0 32px 90px rgb(0 0 0 / .32);
	outline: 0;
}
.adage-card-360-dialog__close {
	position: absolute;
	z-index: 5;
	top: .75rem;
	right: .75rem;
	display: grid;
	width: 44px;
	min-width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 50%;
	place-items: center;
	background: var(--adage-ink, #111);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
}
.adage-card-360-dialog__content {
	display: grid;
	grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(1.5rem, 4vw, 4.5rem);
}
.adage-card-360-dialog__intro { padding: clamp(.5rem, 2vw, 1.5rem); }
.adage-card-360-dialog__intro h3 {
	margin: .25rem 0 1rem;
	font-family: var(--adage-display, Georgia, serif);
	font-size: clamp(2.4rem, 5vw, 5rem);
	letter-spacing: -.055em;
	line-height: .92;
}
.adage-card-360-dialog__intro > p:not(.adage-eyebrow) { max-width: 34ch; font-size: .9rem; }
.adage-card-360-dialog__product-link {
	display: flex;
	min-height: 48px;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.5rem;
	padding-block: .8rem;
	border-block: 1px solid rgb(17 17 17 / .28);
	color: inherit;
	font-size: .66rem;
	font-weight: 750;
	letter-spacing: .1em;
	text-decoration: none;
	text-transform: uppercase;
}
.adage-card-360-dialog__content > .adage-360 { margin: 0; }
.adage-card-360-dialog__loading,
.adage-card-360-dialog__error {
	grid-column: 1 / -1;
	min-height: 50vh;
	display: grid;
	margin: 0;
	place-items: center;
	font-size: .8rem;
	font-weight: 750;
	letter-spacing: .1em;
	text-align: center;
	text-transform: uppercase;
}

@media (max-width: 767px) {
	.adage-360__activate { right: .65rem; bottom: .65rem; left: .65rem; }
	.adage-360__controls { justify-content: space-around; }
	.woocommerce ul.products li.product .adage-card-360-trigger {
		top: .5rem;
		right: .5rem;
		min-height: 38px;
		padding: .35rem;
		opacity: 1;
		transform: none;
	}
	.adage-card-360-trigger__mark { width: 30px; height: 30px; }
	.adage-card-360-trigger > span:last-child { display: none; }
	.adage-card-360-dialog { padding: 0; align-items: stretch; }
	.adage-card-360-dialog__panel { width: 100%; max-height: 100svh; padding: 3.75rem .75rem 1rem; }
	.adage-card-360-dialog__content { grid-template-columns: 1fr; gap: 1rem; }
	.adage-card-360-dialog__intro { padding: .5rem; }
	.adage-card-360-dialog__intro h3 { font-size: clamp(2.25rem, 12vw, 4rem); }
	.adage-card-360-dialog__content > .adage-360 { order: -1; }
}
@media (hover: none) {
	.woocommerce ul.products li.product .adage-card-360-trigger { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.adage-360__image, .adage-card-360-trigger { transition: none; }
}
