/* ==========================================================================
   ONON Gift Studio
   ========================================================================== */

:root {
	--brand: #ec4a50;
	--brand-2: #ff7d5c;
	--brand-ink: #b8262c;
	--brand-soft: #ffe7e3;
	--ink: #1d1520;
	--ink-2: #4a3f4d;
	--muted: #8a7f8c;
	--line: rgba(29, 21, 32, 0.09);
	--line-2: rgba(29, 21, 32, 0.16);
	--bg: #fff8f5;
	--bg-2: #fdeee9;
	--card: #ffffff;
	--gold: #f2b84b;
	--mint: #22a77a;
	--violet: #7c5cff;
	--r-sm: 12px;
	--r: 18px;
	--r-lg: 26px;
	--sh-1: 0 1px 2px rgba(60, 20, 20, 0.06), 0 2px 8px rgba(60, 20, 20, 0.05);
	--sh-2: 0 2px 6px rgba(60, 20, 20, 0.06), 0 12px 32px rgba(60, 20, 20, 0.09);
	--sh-3: 0 10px 30px rgba(60, 20, 20, 0.12), 0 30px 80px rgba(60, 20, 20, 0.14);
	--sh-brand: 0 10px 24px rgba(236, 74, 80, 0.32);
	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	--f-display: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, sans-serif;
	--f-body: 'IBM Plex Sans Arabic', 'Alexandria', system-ui, sans-serif;
	--top-h: 64px;
	--tab-h: 68px;
	--safe-b: env(safe-area-inset-bottom, 0px);
	--gutter: clamp(16px, 4vw, 40px);
}

@view-transition {
	navigation: auto;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

html.has-sheet,
html.has-sheet body {
	overflow: hidden;
}

body.onon-app {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--bg);
	background-image: radial-gradient(1200px 600px at 100% -10%, #ffe2da 0%, transparent 60%), radial-gradient(900px 500px at -10% 10%, #fff0e6 0%, transparent 55%);
	background-attachment: fixed;
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
	padding-bottom: calc(var(--tab-h) + var(--safe-b));
	overflow-x: hidden;
}

:where(.onon-app) img {
	max-width: 100%;
	display: block;
}

:where(.onon-app) :where(button, input, textarea, select) {
	font: inherit;
	color: inherit;
}

:where(.onon-app) :where(button) {
	cursor: pointer;
	border: 0;
	background: none;
	padding: 0;
}

:where(.onon-app) :where(a) {
	color: inherit;
	text-decoration: none;
}

:where(.onon-app) :where(h1, h2, h3, h4) {
	font-family: var(--f-display);
	line-height: 1.25;
	margin: 0;
	letter-spacing: -0.01em;
}

:where(.onon-app) :where(p) {
	margin: 0;
}

.ic {
	width: 1.25em;
	height: 1.25em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: middle;
}

[hidden] {
	display: none !important;
}

.hide-sm {
	display: none;
}

@media (min-width: 900px) {
	.hide-sm {
		display: initial;
	}
}

:focus-visible {
	outline: 3px solid rgba(236, 74, 80, 0.45);
	outline-offset: 2px;
	border-radius: 10px;
}

/* ------------------------------------------------------------------ type */

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid var(--line);
	color: var(--brand-ink);
	font-weight: 600;
	font-size: 13px;
	backdrop-filter: blur(8px);
}

.display {
	font-size: clamp(30px, 6.4vw, 60px);
	font-weight: 800;
	line-height: 1.15;
}

.hl {
	position: relative;
	color: var(--brand);
	white-space: nowrap;
}

.hl::after {
	content: '';
	position: absolute;
	inset: auto -4px 0.06em -4px;
	height: 0.28em;
	border-radius: 99px;
	background: linear-gradient(90deg, rgba(242, 184, 75, 0.55), rgba(255, 125, 92, 0.45));
	z-index: -1;
	transform-origin: right;
	animation: hl-in 0.9s 0.35s var(--ease) both;
}

@keyframes hl-in {
	from {
		transform: scaleX(0);
	}
}

.lead {
	font-size: clamp(16px, 2.2vw, 19px);
	color: var(--ink-2);
	max-width: 52ch;
}

.muted {
	color: var(--muted);
}

/* -------------------------------------------------------------- buttons */

.btn {
	position: relative;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 20px;
	border-radius: 14px;
	font-weight: 700;
	font-size: 15px;
	font-family: var(--f-display);
	transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, opacity 0.2s;
	user-select: none;
	-webkit-user-select: none;
	white-space: nowrap;
}

.btn:active {
	transform: scale(0.97);
}

.btn:disabled {
	opacity: 0.6;
	pointer-events: none;
}

.btn-primary {
	color: #fff !important;
	background: linear-gradient(135deg, var(--brand-2), var(--brand) 55%, #d93a48);
	box-shadow: var(--sh-brand), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
	box-shadow: 0 14px 30px rgba(236, 74, 80, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.25);
	transform: translateY(-1px);
}

.btn-dark {
	color: #fff !important;
	background: var(--ink);
	box-shadow: 0 10px 24px rgba(29, 21, 32, 0.25);
}

.btn-soft {
	background: #fff;
	color: var(--ink);
	border: 1px solid var(--line);
	box-shadow: var(--sh-1);
}

.btn-soft:hover {
	border-color: var(--line-2);
}

.btn-ghost {
	background: transparent;
	color: var(--ink-2);
	min-height: 40px;
	padding: 0 12px;
}

.btn-lg {
	min-height: 54px;
	padding: 0 26px;
	font-size: 16px;
	border-radius: 16px;
}

.danger {
	color: #d23a3f !important;
}

.icon-btn {
	width: 42px;
	height: 42px;
	display: inline-grid;
	place-items: center;
	border-radius: 13px;
	background: rgba(255, 255, 255, 0.86);
	border: 1px solid var(--line);
	box-shadow: var(--sh-1);
	backdrop-filter: blur(10px);
	transition: transform 0.15s var(--ease), opacity 0.2s;
}

.icon-btn:active {
	transform: scale(0.92);
}

.icon-btn:disabled {
	opacity: 0.35;
}

.chip-btn,
.link-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--brand-ink);
}

.chip-btn {
	padding: 7px 12px;
	border-radius: 999px;
	background: var(--brand-soft);
}

.link-btn {
	text-decoration: underline;
	text-underline-offset: 3px;
	margin-inline-start: 8px;
}

.ripple {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.35);
	transform: scale(0);
	animation: ripple 0.6s var(--ease) forwards;
	pointer-events: none;
}

.btn-soft .ripple,
.btn-ghost .ripple {
	background: rgba(236, 74, 80, 0.14);
}

@keyframes ripple {
	to {
		transform: scale(1);
		opacity: 0;
	}
}

/* ---------------------------------------------------------------- topbar */

.topbar {
	position: sticky;
	top: 0;
	z-index: 50;
	height: var(--top-h);
	transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
	border-bottom: 1px solid transparent;
}

.topbar.scrolled {
	background: rgba(255, 248, 245, 0.82);
	backdrop-filter: saturate(1.6) blur(16px);
	-webkit-backdrop-filter: saturate(1.6) blur(16px);
	border-color: var(--line);
}

.topbar-in {
	height: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.brand img {
	height: 34px;
	width: auto;
}

.topnav {
	display: none;
	gap: 4px;
	padding: 5px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid var(--line);
	box-shadow: var(--sh-1);
}

.topnav a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	border-radius: 12px;
	font-weight: 600;
	font-size: 14px;
	color: var(--ink-2);
	transition: background 0.2s, color 0.2s;
}

.topnav a:hover {
	color: var(--ink);
	background: rgba(29, 21, 32, 0.04);
}

.topnav a.is-active {
	background: var(--ink);
	color: #fff;
}

@media (min-width: 900px) {
	.topnav {
		display: flex;
	}
}

.topbar-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ghost-link {
	font-weight: 600;
	font-size: 14px;
	color: var(--ink-2);
}

.cart-btn {
	position: relative;
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border-radius: 15px;
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: var(--sh-1);
}

.cart-btn .ic {
	width: 22px;
	height: 22px;
}

.cart-btn.catch {
	animation: catch 0.5s var(--spring);
}

@keyframes catch {
	30% {
		transform: scale(1.18) rotate(-6deg);
	}
	60% {
		transform: scale(0.94) rotate(3deg);
	}
}

.cart-count {
	position: absolute;
	top: -6px;
	left: -6px;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 99px;
	background: var(--brand);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	display: grid;
	place-items: center;
	border: 2px solid #fff;
	transition: transform 0.3s var(--spring), opacity 0.2s;
}

.cart-count.is-empty {
	transform: scale(0);
	opacity: 0;
}

.cart-count.bump {
	animation: bump 0.55s var(--spring);
}

@keyframes bump {
	40% {
		transform: scale(1.45);
	}
}

/* ---------------------------------------------------------------- tabbar */

.tabbar {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 60;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	height: calc(var(--tab-h) + var(--safe-b));
	padding: 6px 8px var(--safe-b);
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: saturate(1.6) blur(18px);
	-webkit-backdrop-filter: saturate(1.6) blur(18px);
	border-top: 1px solid var(--line);
	box-shadow: 0 -8px 30px rgba(60, 20, 20, 0.06);
}

.tabbar a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--muted);
	transition: color 0.2s;
}

.tab-ic {
	width: 46px;
	height: 30px;
	display: grid;
	place-items: center;
	border-radius: 999px;
	transition: background 0.3s var(--ease), transform 0.3s var(--spring);
}

.tab-ic .ic {
	width: 22px;
	height: 22px;
}

.tabbar a.is-active {
	color: var(--brand-ink);
}

.tabbar a.is-active .tab-ic {
	background: var(--brand-soft);
}

.tabbar a:active .tab-ic {
	transform: scale(0.88);
}

@media (min-width: 900px) {
	.tabbar {
		display: none;
	}
	body.onon-app {
		padding-bottom: 0;
	}
}

/* ------------------------------------------------------------ app layout */

.app-main {
	max-width: 1320px;
	margin: 0 auto;
	padding: 8px var(--gutter) 40px;
}

/* -------------------------------------------------------------- reveal */

[data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
	transition-delay: var(--d, 0s);
}

[data-reveal].in {
	opacity: 1;
	transform: none;
}

/* -------------------------------------------------------------- toasts */

.toasts {
	position: fixed;
	z-index: 200;
	left: 50%;
	top: calc(var(--top-h) + 8px);
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: min(92vw, 440px);
	pointer-events: none;
}

.toast {
	pointer-events: auto;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 14px 11px 12px;
	border-radius: 16px;
	background: rgba(29, 21, 32, 0.94);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	box-shadow: var(--sh-3);
	opacity: 0;
	transform: translateY(-14px) scale(0.96);
	transition: opacity 0.3s var(--ease), transform 0.4s var(--spring);
	backdrop-filter: blur(10px);
}

.toast.in {
	opacity: 1;
	transform: none;
}

.toast.out {
	opacity: 0;
	transform: translateY(-10px) scale(0.97);
}

.toast-ic {
	width: 28px;
	height: 28px;
	flex: none;
	display: grid;
	place-items: center;
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.12);
}

.t-ok .toast-ic {
	background: var(--mint);
}

.t-error .toast-ic {
	background: var(--brand);
}

.toast-msg {
	flex: 1;
}

.toast-act {
	color: #ffc9c2 !important;
	font-weight: 700;
	padding: 4px 6px;
}

/* --------------------------------------------------------------- sheets */

.sheet-root {
	position: fixed;
	inset: 0;
	z-index: 150;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.sheet-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(29, 21, 32, 0.42);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.35s var(--ease);
}

.sheet {
	position: relative;
	width: 100%;
	max-height: 90vh;
	max-height: 90dvh;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 28px 28px 0 0;
	box-shadow: var(--sh-3);
	transform: translateY(100%);
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	padding-bottom: var(--safe-b);
}

.sheet-root.open .sheet-backdrop {
	opacity: 1;
}

.sheet-root.open .sheet {
	transform: none;
}

.sheet-root.closing .sheet {
	transition-duration: 0.3s;
}

.sheet-grab {
	display: grid;
	place-items: center;
	height: 22px;
	touch-action: none;
	cursor: grab;
}

.sheet-grab span {
	width: 44px;
	height: 5px;
	border-radius: 9px;
	background: var(--line-2);
}

.sheet-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px 6px;
	touch-action: none;
}

.sheet-head h3 {
	font-size: 19px;
}

.sheet-x {
	width: 38px;
	height: 38px;
	box-shadow: none;
}

.sheet-body {
	overflow: auto;
	padding: 6px 20px 22px;
	overscroll-behavior: contain;
}

.sheet-foot {
	padding: 12px 20px calc(12px + var(--safe-b));
	border-top: 1px solid var(--line);
	background: #fff;
}

@media (min-width: 760px) {
	.sheet-root {
		align-items: center;
		padding: 24px;
	}
	.sheet {
		width: min(560px, 100%);
		border-radius: 28px;
		transform: translateY(24px) scale(0.96);
		opacity: 0;
		transition: transform 0.4s var(--spring), opacity 0.25s;
	}
	.sheet-root.open .sheet {
		opacity: 1;
	}
	.sheet-grab {
		display: none;
	}
	.sheet-head {
		padding-top: 16px;
	}
}

/* added-to-cart sheet */
.added {
	text-align: center;
	padding-top: 4px;
}

.added-hero {
	position: relative;
	width: 150px;
	height: 150px;
	margin: 0 auto 16px;
}

.added-img {
	width: 100%;
	height: 100%;
	border-radius: 30px;
	overflow: hidden;
	background: var(--bg-2);
	display: grid;
	place-items: center;
	box-shadow: var(--sh-2);
	animation: added-pop 0.6s var(--spring) both;
}

.added-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.added-img .ic {
	width: 60px;
	height: 60px;
	color: var(--brand);
}

.added-check {
	position: absolute;
	bottom: -10px;
	left: -10px;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--mint);
	color: #fff;
	display: grid;
	place-items: center;
	border: 4px solid #fff;
	box-shadow: var(--sh-2);
	animation: added-pop 0.55s 0.2s var(--spring) both;
}

.added-check .ic {
	width: 26px;
	height: 26px;
	stroke-width: 3;
	stroke-dasharray: 30;
	stroke-dashoffset: 30;
	animation: draw 0.45s 0.45s var(--ease) forwards;
}

@keyframes added-pop {
	from {
		transform: scale(0.4) rotate(-8deg);
		opacity: 0;
	}
}

@keyframes draw {
	to {
		stroke-dashoffset: 0;
	}
}

.added h3 {
	font-size: 22px;
}

.added p {
	color: var(--ink-2);
	margin-top: 6px;
}

.added-actions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	margin-top: 20px;
}

@media (min-width: 480px) {
	.added-actions {
		grid-template-columns: 1.4fr 1fr;
	}
}

.added-more {
	margin-top: 16px;
	display: grid;
	gap: 8px;
	text-align: start;
}

.added-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 14px;
	border-radius: 14px;
	background: var(--bg);
	font-weight: 600;
	font-size: 14.5px;
	transition: background 0.2s;
}

.added-link:hover {
	background: var(--bg-2);
}

.added-link span {
	flex: 1;
}

.added-link .ic:first-child {
	color: var(--brand);
}

.added-link .end {
	color: var(--muted);
}

/* fly-to-cart ghost */
.fly-ghost {
	position: fixed;
	z-index: 300;
	left: 0;
	top: 0;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: var(--sh-3);
	pointer-events: none;
	border: 3px solid #fff;
	background: #fff;
}

.fly-ghost img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.confetti {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	z-index: 400;
	pointer-events: none;
}

/* -------------------------------------------------------- form controls */

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

.sw {
	position: relative;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--c);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
	transition: transform 0.2s var(--spring);
}

.swatches.big .sw {
	width: 42px;
	height: 42px;
}

.sw:hover {
	transform: scale(1.08);
}

.sw.is-on {
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 0 0 3px #fff, 0 0 0 5px var(--ink);
}

.sw-custom {
	background: conic-gradient(from 0deg, #ff5f6d, #ffc371, #f9f871, #58d68d, #5dade2, #a569bd, #ff5f6d);
	cursor: pointer;
	overflow: hidden;
}

.sw-custom input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.chips {
	display: flex;
	gap: 8px;
}

.chip {
	flex: none;
	padding: 8px 14px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--line);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ink-2);
	white-space: nowrap;
	transition: all 0.2s var(--ease);
}

.chip:hover {
	border-color: var(--line-2);
}

.chip.is-on {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

.hscroll {
	display: flex;
	overflow-x: auto;
	scrollbar-width: none;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	margin-inline: -4px;
	padding: 4px;
}

.hscroll::-webkit-scrollbar {
	display: none;
}

.hscroll > * {
	scroll-snap-align: start;
}

.toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
}

.toggle input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.toggle span {
	position: relative;
	width: 44px;
	height: 26px;
	border-radius: 99px;
	background: var(--line-2);
	transition: background 0.25s;
	flex: none;
}

.toggle span::after {
	content: '';
	position: absolute;
	top: 3px;
	right: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: var(--sh-1);
	transition: transform 0.3s var(--spring);
}

.toggle input:checked + span {
	background: var(--brand);
}

.toggle input:checked + span::after {
	transform: translateX(-18px);
}

.shake {
	animation: shake 0.45s;
}

@keyframes shake {
	20%,
	60% {
		transform: translateX(-6px);
	}
	40%,
	80% {
		transform: translateX(6px);
	}
}

/* ===================================================================== */
/*                              PRINT STUDIO                             */
/* ===================================================================== */

/* -------------------------------------------------------------- picker */

.picker {
	padding-top: 12px;
}

.picker-intro {
	text-align: center;
	display: grid;
	justify-items: center;
	gap: 14px;
	padding: 18px 0 28px;
}

.picker-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

@media (min-width: 640px) and (max-width: 1039px) {
	.picker-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	/* an odd last card spans the row instead of leaving a hole */
	.picker-grid .pcard:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
	.picker-grid .pcard:last-child:nth-child(odd) .pcard-stage {
		aspect-ratio: 16 / 7;
	}
}

@media (min-width: 1040px) {
	.picker-grid {
		grid-template-columns: repeat(6, 1fr);
	}
	.picker-grid .pcard {
		grid-column: span 2;
	}
	.picker-grid .pcard:nth-child(-n + 2) {
		grid-column: span 3;
	}
}

.pcard {
	--rx: 0deg;
	--ry: 0deg;
	position: relative;
	display: grid;
	grid-template-rows: auto 1fr;
	text-align: start;
	border-radius: var(--r-lg);
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: var(--sh-1);
	overflow: hidden;
	transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), opacity 0.7s var(--ease);
}

.pcard[data-reveal]:not(.in) {
	transform: translateY(18px);
}

.pcard:hover {
	box-shadow: var(--sh-3);
}

.pcard::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.35), transparent 40%);
	opacity: 0;
	transition: opacity 0.3s;
}

.pcard:hover::after {
	opacity: 1;
}

.pcard-stage {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3.3;
	background: radial-gradient(circle at 50% 42%, #fff 0%, #fbe7e1 75%);
	overflow: hidden;
}

.pcard-stage .mock-canvas {
	position: absolute;
	transition: transform 0.6s var(--ease);
}

.pcard:hover .pcard-stage .mock-canvas {
	transform: scale(1.04) translateY(-4px);
}

.pcard-stage .mock-3d {
	position: absolute;
	inset: 0;
}

.pcard-fallback {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--brand);
}

.pcard-fallback .ic {
	width: 80px;
	height: 80px;
}

.pcard-info {
	display: grid;
	gap: 4px;
	padding: 16px 18px 18px;
}

.pcard-ic {
	display: none;
}

.pcard-info b {
	font-family: var(--f-display);
	font-size: 19px;
	font-weight: 700;
}

.pcard-info small {
	color: var(--muted);
	font-size: 14px;
}

.pcard-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 8px;
}

.pcard-foot em {
	font-style: normal;
	font-weight: 700;
	color: var(--ink);
}

.pcard-go {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 12px;
	background: var(--ink);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	transition: gap 0.3s var(--ease), background 0.3s;
}

.pcard:hover .pcard-go {
	gap: 12px;
	background: var(--brand);
}

.pcard-badge {
	position: absolute;
	top: 14px;
	right: 14px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.05em;
	box-shadow: var(--sh-2);
	animation: float 3s ease-in-out infinite;
}

@keyframes float {
	50% {
		transform: translateY(-4px);
	}
}

.how {
	list-style: none;
	margin: 28px auto 0;
	padding: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px 26px;
	color: var(--ink-2);
	font-weight: 600;
	font-size: 14px;
}

.how li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.how b {
	width: 26px;
	height: 26px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--brand-soft);
	color: var(--brand-ink);
	font-size: 13px;
}

/* ----------------------------------------------------------- workspace */

body.ws-open .tabbar {
	display: none;
}

body.ws-open.onon-app {
	padding-bottom: calc(86px + var(--safe-b));
}

.box-mode {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	margin-bottom: 10px;
	border-radius: 14px;
	background: linear-gradient(135deg, #fff1d6, #ffe3dd);
	font-size: 14px;
	font-weight: 600;
}

.box-mode .ic {
	color: var(--brand);
}

.box-mode span {
	flex: 1;
}

.box-mode a {
	color: var(--brand-ink);
	text-decoration: underline;
	white-space: nowrap;
}

.prod-switch {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	padding: 4px 2px 12px;
	margin: 0 calc(var(--gutter) * -1);
	padding-inline: var(--gutter);
}

.prod-switch::-webkit-scrollbar {
	display: none;
}

.pchip {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--line);
	font-weight: 700;
	font-size: 14px;
	color: var(--ink-2);
	box-shadow: var(--sh-1);
	transition: all 0.25s var(--ease);
}

.pchip.is-on {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(29, 21, 32, 0.22);
}

.ws-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
}

@media (min-width: 980px) {
	.ws-main {
		grid-template-columns: minmax(0, 1fr) 400px;
		align-items: start;
		gap: 24px;
	}
	.prod-switch {
		margin: 0;
		padding-inline: 2px;
	}
}

.stage-col {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	min-width: 0;
}

.stage {
	position: relative;
	width: 100%;
	height: min(60vh, 115vw);
	min-height: 320px;
	border-radius: var(--r-lg);
	background: radial-gradient(circle at 50% 40%, #ffffff 0%, #fdf0eb 55%, #f8dfd8 100%);
	box-shadow: inset 0 0 0 1px var(--line), var(--sh-1);
	overflow: hidden;
	user-select: none;
	-webkit-user-select: none;
	isolation: isolate;
}

.stage::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(29, 21, 32, 0.07) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: radial-gradient(circle at 50% 50%, transparent 30%, #000 85%);
	-webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 30%, #000 85%);
	pointer-events: none;
}

@media (min-width: 980px) {
	.stage {
		height: calc(100vh - var(--top-h) - 200px);
		height: calc(100dvh - var(--top-h) - 200px);
		min-height: 520px;
	}
	.stage[data-type='mug'] {
		height: calc(100vh - var(--top-h) - 360px);
		height: calc(100dvh - var(--top-h) - 360px);
		min-height: 400px;
	}
}

.stage[data-type='mug'] {
	height: min(46vh, 90vw);
	min-height: 280px;
}

.stage .mock-canvas {
	position: absolute;
	z-index: 1;
}

.stage .mock-3d {
	position: absolute;
	inset: 0;
	z-index: 1;
	cursor: grab;
}

.stage.is-grabbing .mock-3d {
	cursor: grabbing;
}

.stage.pop .mock-canvas,
.stage.pop .mock-3d {
	animation: stage-pop 0.6s var(--spring);
}

@keyframes stage-pop {
	30% {
		transform: scale(1.035);
	}
}

.stage .ghost {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	pointer-events: none;
}

.print-area {
	position: absolute;
	z-index: 3;
}

.stage .print-area::before {
	content: '';
	position: absolute;
	inset: -1px;
	border: 1.5px dashed rgba(236, 74, 80, 0.55);
	border-radius: 6px;
	opacity: 0;
	transition: opacity 0.3s;
	pointer-events: none;
}

.stage.is-empty .print-area::before,
.stage:hover .print-area::before,
.stage.dragging .print-area::before {
	opacity: 1;
}

.ed-overlay {
	touch-action: none;
}

.ed-sel {
	position: absolute;
	left: 0;
	top: 0;
	transform-origin: center;
	border: 1.5px solid var(--brand);
	border-radius: 4px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7), 0 0 0 9999px rgba(0, 0, 0, 0);
	pointer-events: none;
	animation: sel-in 0.25s var(--ease);
}

@keyframes sel-in {
	from {
		opacity: 0;
	}
}

.ed-h {
	position: absolute;
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #fff;
	color: var(--ink);
	box-shadow: var(--sh-2), 0 0 0 1.5px var(--brand);
	pointer-events: auto;
	touch-action: none;
}

.ed-h .ic {
	width: 17px;
	height: 17px;
	stroke-width: 2.2;
}

.ed-del {
	top: -17px;
	right: -17px;
	color: #d23a3f;
}

.ed-rot {
	bottom: -17px;
	left: -17px;
	cursor: nwse-resize;
	background: var(--brand);
	color: #fff;
}

.ed-guide {
	position: absolute;
	background: var(--violet);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s;
}

.ed-guide.on {
	opacity: 0.9;
}

.ed-gv {
	top: -30px;
	bottom: -30px;
	left: 50%;
	width: 1.5px;
}

.ed-gh {
	left: -30px;
	right: -30px;
	top: 50%;
	height: 1.5px;
}

.upload-cta {
	position: absolute;
	z-index: 4;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: grid;
	justify-items: center;
	gap: 6px;
	padding: 18px 22px;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.86);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: var(--sh-2);
	border: 1px solid rgba(255, 255, 255, 0.8);
	transition: transform 0.3s var(--spring), box-shadow 0.3s;
	white-space: nowrap;
}

.upload-cta:hover {
	transform: translate(-50%, -50%) scale(1.04);
	box-shadow: var(--sh-3);
}

.upload-cta b {
	font-family: var(--f-display);
	font-size: 16px;
}

.upload-cta small {
	color: var(--muted);
	font-size: 12.5px;
}

.upload-cta.nudge {
	animation: nudge 0.7s var(--spring);
}

@keyframes nudge {
	30% {
		transform: translate(-50%, -50%) scale(1.12);
	}
	55% {
		transform: translate(-50%, -50%) scale(0.96);
	}
}

.up-ring {
	position: relative;
	width: 54px;
	height: 54px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--brand-2), var(--brand));
	color: #fff;
	box-shadow: var(--sh-brand);
}

.up-ring .ic {
	width: 24px;
	height: 24px;
	stroke-width: 2.2;
}

.up-ring::before,
.up-ring::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid var(--brand);
	animation: pulse-ring 2.2s var(--ease) infinite;
}

.up-ring::after {
	animation-delay: 1.1s;
}

@keyframes pulse-ring {
	from {
		transform: scale(1);
		opacity: 0.6;
	}
	to {
		transform: scale(1.9);
		opacity: 0;
	}
}

.stage[data-type='mug'] .upload-cta {
	top: auto;
	bottom: 16px;
	transform: translateX(-50%);
	grid-auto-flow: column;
	align-items: center;
	padding: 10px 18px 10px 12px;
}

.stage[data-type='mug'] .upload-cta .up-ring {
	width: 40px;
	height: 40px;
}

.stage[data-type='mug'] .upload-cta small {
	display: none;
}

.stage[data-type='mug'] .upload-cta:hover {
	transform: translateX(-50%) scale(1.04);
}

.stage.loading::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 6;
	background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
	background-size: 250% 100%;
	animation: shimmer 1.1s linear infinite;
	pointer-events: none;
}

@keyframes shimmer {
	from {
		background-position: 150% 0;
	}
	to {
		background-position: -100% 0;
	}
}

.stage-hud {
	position: absolute;
	z-index: 5;
	top: 12px;
	right: 12px;
	left: 110px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	pointer-events: none;
}

.q-badge,
.hint-3d {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 11px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: var(--sh-1);
	backdrop-filter: blur(8px);
	animation: sel-in 0.4s var(--ease);
}

.q-badge .ic,
.hint-3d .ic {
	width: 15px;
	height: 15px;
	stroke-width: 2.2;
}

.q-hi {
	color: #137a57;
}

.q-mid {
	color: #8a6400;
}

.q-lo {
	color: #b8262c;
	background: #fff1ef;
}

.hint-3d .ic {
	animation: swipe 1.8s ease-in-out infinite;
}

@keyframes swipe {
	0%,
	100% {
		transform: translateX(4px);
	}
	50% {
		transform: translateX(-4px);
	}
}

.stage-tools {
	position: absolute;
	z-index: 5;
	top: 12px;
	left: 12px;
	display: flex;
	gap: 6px;
}

.stage-busy {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 14px;
	background: rgba(255, 248, 245, 0.78);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	font-weight: 600;
	color: var(--ink-2);
	animation: sel-in 0.3s;
}

.busy-ring {
	position: relative;
	width: 84px;
	height: 84px;
}

.busy-ring svg {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.busy-ring circle {
	fill: none;
	stroke: rgba(236, 74, 80, 0.15);
	stroke-width: 4;
}

.busy-ring circle.p {
	stroke: var(--brand);
	stroke-linecap: round;
	transition: stroke-dashoffset 0.3s;
}

.busy-ring b {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-family: var(--f-display);
	font-size: 18px;
	color: var(--ink);
}

.drop-veil {
	position: absolute;
	inset: 10px;
	z-index: 15;
	display: none;
	place-items: center;
	align-content: center;
	gap: 8px;
	border-radius: 20px;
	border: 2.5px dashed var(--brand);
	background: rgba(255, 231, 227, 0.75);
	color: var(--brand-ink);
	font-weight: 700;
	font-size: 18px;
}

.drop-veil .ic {
	width: 44px;
	height: 44px;
}

.stage.dragging .drop-veil {
	display: grid;
}

/* mug strip */
.strip {
	padding: 12px;
	border-radius: var(--r);
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: var(--sh-1);
}

.strip-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--ink-2);
	font-weight: 600;
	margin-bottom: 10px;
}

.strip-label .ic {
	color: var(--brand);
}

.strip-frame {
	position: relative;
	width: 100%;
	border-radius: 10px;
	overflow: visible;
	background: repeating-conic-gradient(#f3eeec 0% 25%, #fff 0% 50%) 0 0 / 16px 16px;
	box-shadow: inset 0 0 0 1px var(--line-2);
}

.strip-frame canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border-radius: 10px;
}

.strip-frame .print-area {
	inset: 0;
}

.strip-handle-gap {
	position: absolute;
	top: 50%;
	left: -2px;
	transform: translate(-100%, -50%) rotate(-90deg);
	transform-origin: center;
	font-size: 10px;
	color: var(--muted);
	white-space: nowrap;
	display: none;
}

/* ------------------------------------------------------------- panel */

.panel {
	background: #fff;
	border-radius: var(--r-lg);
	border: 1px solid var(--line);
	box-shadow: var(--sh-2);
	overflow: hidden;
}

@media (min-width: 980px) {
	.panel {
		position: sticky;
		top: calc(var(--top-h) + 12px);
		max-height: calc(100vh - var(--top-h) - 130px);
		max-height: calc(100dvh - var(--top-h) - 130px);
		display: flex;
		flex-direction: column;
	}
	.tool-body {
		overflow: auto;
	}
}

.panel-head {
	display: none;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 18px 6px;
}

.panel-head h2 {
	font-size: 21px;
}

.panel-head p {
	color: var(--muted);
	font-size: 13.5px;
	margin-top: 2px;
}

@media (min-width: 980px) {
	.panel-head {
		display: flex;
	}
}

.tools {
	position: relative;
	display: flex;
	gap: 4px;
	padding: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	border-bottom: 1px solid var(--line);
	background: linear-gradient(#fff, #fffaf8);
}

.tools::-webkit-scrollbar {
	display: none;
}

.tool {
	flex: 1 0 auto;
	min-width: 66px;
	display: grid;
	justify-items: center;
	gap: 3px;
	padding: 9px 8px 7px;
	border-radius: 14px;
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
	transition: background 0.25s var(--ease), color 0.25s;
}

.tool .ic {
	width: 23px;
	height: 23px;
	transition: transform 0.3s var(--spring);
}

.tool.is-on {
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.tool.is-on .ic {
	transform: translateY(-1px) scale(1.08);
}

.tool-body {
	padding: 16px;
	min-height: 150px;
}

.tool-body.swap > * {
	animation: swap-in 0.35s var(--ease);
}

@keyframes swap-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

.tb {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
}

.tb-label {
	font-size: 13px;
	font-weight: 700;
	color: var(--ink-2);
	margin-top: 4px;
}

.tb-label b {
	color: var(--ink);
}

.tb-hint {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	color: var(--ink-2);
}

.tb-hint .ic {
	color: var(--brand);
}

.tb-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.row-btns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.row-btns .btn {
	min-height: 42px;
	font-size: 14px;
}

.upload-card {
	width: 100%;
	display: grid;
	justify-items: center;
	gap: 8px;
	padding: 22px 16px;
	border-radius: 18px;
	border: 2px dashed rgba(236, 74, 80, 0.35);
	background: linear-gradient(180deg, #fff, #fff6f3);
	transition: border-color 0.2s, background 0.2s;
}

.upload-card:hover {
	border-color: var(--brand);
}

.upload-card b {
	font-family: var(--f-display);
	font-size: 16px;
}

.upload-card small {
	color: var(--muted);
}

.tips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
	font-size: 13px;
	color: var(--ink-2);
}

.tips li {
	display: flex;
	gap: 8px;
	align-items: center;
}

.tips .ic {
	color: var(--gold);
}

.filters {
	gap: 10px;
}

.fthumb {
	flex: none;
	display: grid;
	justify-items: center;
	gap: 5px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--ink-2);
}

.fthumb canvas {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 14px;
	box-shadow: var(--sh-1);
	transition: transform 0.25s var(--spring), box-shadow 0.25s;
}

.fthumb.is-on canvas {
	box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px var(--brand);
	transform: scale(1.04);
}

.fthumb.is-on {
	color: var(--brand-ink);
}

.masks {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
}

.mask,
.acts button {
	display: grid;
	justify-items: center;
	gap: 4px;
	padding: 10px 4px 8px;
	border-radius: 14px;
	border: 1px solid var(--line);
	font-size: 11.5px;
	font-weight: 600;
	color: var(--ink-2);
	transition: all 0.2s var(--ease);
}

.mask .ic {
	width: 24px;
	height: 24px;
}

.mask.is-on {
	border-color: var(--brand);
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.acts {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
}

.acts button:hover,
.mask:hover {
	border-color: var(--line-2);
	background: #fffaf8;
}

.acts button:active {
	transform: scale(0.94);
}

.text-input {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.text-input textarea {
	flex: 1;
	resize: none;
	min-height: 52px;
	padding: 12px 14px;
	border-radius: 14px;
	border: 1.5px solid var(--line-2);
	background: #fffdfc;
	font-size: 16px;
	line-height: 1.5;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.text-input textarea:focus {
	outline: none;
	border-color: var(--brand);
	box-shadow: 0 0 0 4px rgba(236, 74, 80, 0.12);
}

.fonts {
	gap: 8px;
}

.font {
	flex: none;
	display: grid;
	justify-items: center;
	gap: 2px;
	min-width: 78px;
	padding: 8px 10px 6px;
	border-radius: 14px;
	border: 1px solid var(--line);
	font-size: 22px;
	line-height: 1.35;
	transition: all 0.2s var(--ease);
}

.font small {
	font-family: var(--f-body);
	font-size: 10.5px;
	font-weight: 600;
	color: var(--muted);
}

.font.is-on {
	border-color: var(--brand);
	background: var(--brand-soft);
}

.stickers {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
	gap: 6px;
}

.stk {
	aspect-ratio: 1;
	font-size: 28px;
	border-radius: 14px;
	transition: transform 0.2s var(--spring), background 0.2s;
}

.stk:hover {
	background: var(--bg);
	transform: scale(1.15);
}

.stk.pop {
	animation: bump 0.4s var(--spring);
}

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

.size {
	position: relative;
	min-width: 58px;
	height: 48px;
	padding: 0 12px;
	border-radius: 14px;
	border: 1.5px solid var(--line-2);
	font-weight: 700;
	font-family: var(--f-display);
	display: grid;
	place-items: center;
	line-height: 1.1;
	transition: all 0.2s var(--ease);
}

.size small {
	font-size: 10px;
	color: var(--muted);
	font-family: var(--f-body);
}

.size.is-on {
	border-color: var(--ink);
	background: var(--ink);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(29, 21, 32, 0.2);
}

.size.is-on small {
	color: rgba(255, 255, 255, 0.7);
}

.wrap-opt {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
	border-radius: 16px;
	border: 1.5px solid var(--line-2);
	cursor: pointer;
	transition: all 0.25s var(--ease);
	margin-top: 4px;
}

.wrap-opt input {
	position: absolute;
	opacity: 0;
}

.wrap-ic {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: var(--bg-2);
	color: var(--brand);
	transition: all 0.3s var(--spring);
}

.wrap-tx {
	flex: 1;
	display: grid;
}

.wrap-tx small {
	color: var(--muted);
	font-size: 12.5px;
}

.wrap-opt em {
	font-style: normal;
	font-weight: 700;
	font-size: 14px;
	color: var(--ink-2);
}

.wrap-opt.is-on {
	border-color: var(--brand);
	background: #fff8f6;
}

.wrap-opt.is-on .wrap-ic {
	background: var(--brand);
	color: #fff;
	transform: rotate(-8deg) scale(1.06);
}

.guide table {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0;
}

.guide th,
.guide td {
	padding: 10px;
	border-bottom: 1px solid var(--line);
	text-align: center;
}

/* ------------------------------------------------------------- buybar */

.buybar {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 60;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px var(--gutter) calc(12px + var(--safe-b));
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: saturate(1.6) blur(18px);
	-webkit-backdrop-filter: saturate(1.6) blur(18px);
	border-top: 1px solid var(--line);
	box-shadow: 0 -10px 30px rgba(60, 20, 20, 0.08);
}

@media (min-width: 980px) {
	.buybar {
		position: sticky;
		bottom: 16px;
		max-width: 1240px;
		margin: 16px auto 0;
		border-radius: 22px;
		border: 1px solid var(--line);
		padding: 12px 14px;
	}
	body.ws-open.onon-app {
		padding-bottom: 0;
	}
}

.qty {
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 4px;
	border-radius: 14px;
	background: var(--bg);
	border: 1px solid var(--line);
}

.qty button {
	width: 34px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 10px;
}

.qty button:active {
	background: #fff;
}

.qty b {
	min-width: 22px;
	text-align: center;
	font-family: var(--f-display);
}

.buy-price {
	flex: 1;
	display: grid;
	line-height: 1.2;
	min-width: 0;
}

.buy-price small {
	color: var(--muted);
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.buy-price b {
	font-family: var(--f-display);
	font-size: 20px;
	font-weight: 800;
	white-space: nowrap;
}

.buy-btn {
	padding: 0 20px;
}

.buy-btn.is-busy {
	background: var(--ink-2);
}

@media (max-width: 380px) {
	.buy-btn .ic {
		display: none;
	}
	.buy-btn {
		padding: 0 16px;
	}
}

.psheet {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 10px;
}

.psheet-it {
	display: grid;
	justify-items: center;
	gap: 6px;
	padding: 16px 8px;
	border-radius: 18px;
	border: 1.5px solid var(--line);
	transition: all 0.2s var(--ease);
}

.psheet-it span {
	width: 52px;
	height: 52px;
	display: grid;
	place-items: center;
	border-radius: 16px;
	background: var(--bg-2);
	color: var(--brand);
}

.psheet-it span .ic {
	width: 28px;
	height: 28px;
}

.psheet-it small {
	color: var(--muted);
}

.psheet-it.is-on,
.psheet-it:hover {
	border-color: var(--brand);
	background: #fff8f6;
}

::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: 0.38s;
	animation-timing-function: var(--ease);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	[data-reveal] {
		opacity: 1;
		transform: none;
	}
}

/* ===================================================================== */
/*                         PRODUCT CARDS & GRIDS                         */
/* ===================================================================== */

.pgrid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

@media (min-width: 700px) {
	.pgrid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px;
	}
}

@media (min-width: 1100px) {
	.pgrid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 20px;
	}
}

.pc {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 20px;
	border: 1px solid var(--line);
	overflow: hidden;
	box-shadow: var(--sh-1);
	transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), opacity 0.6s var(--ease);
}

@media (hover: hover) {
	.pc:hover {
		box-shadow: var(--sh-2);
		transform: translateY(-3px);
	}
	.pc:hover .pc-alt {
		opacity: 1;
	}
	.pc:hover .pc-media img:first-child {
		transform: scale(1.05);
	}
}

.pc-media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1;
	background: #f7f3f1;
	overflow: hidden;
}

.pc-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease), opacity 0.4s;
}

.pc-alt {
	opacity: 0;
}

.pc-off,
.pc-tag {
	position: absolute;
	top: 10px;
	padding: 4px 9px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 700;
	z-index: 2;
}

.pc-off {
	left: 10px;
	background: var(--brand);
	color: #fff;
}

.pc-tag {
	right: 10px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--brand-ink);
	box-shadow: var(--sh-1);
}

.pc-tag .ic {
	width: 13px;
	height: 13px;
}

.pc-tag-out {
	background: var(--ink);
	color: #fff;
}

.pc.is-out .pc-media img {
	filter: grayscale(0.8);
	opacity: 0.7;
}

.pc-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px 12px 12px;
	flex: 1;
}

.pc-name {
	font-family: var(--f-body) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.45 !important;
	color: var(--ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	cursor: pointer;
	min-height: 2.9em;
}

.pc-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-top: auto;
}

.pc-price {
	display: grid;
	line-height: 1.2;
}

.pc-price b {
	font-family: var(--f-display);
	font-size: 15.5px;
	font-weight: 700;
}

.pc-price s {
	font-size: 12px;
	color: var(--muted);
}

.pc-add {
	width: 40px;
	height: 40px;
	flex: none;
	display: grid;
	place-items: center;
	border-radius: 13px;
	background: var(--ink);
	color: #fff;
	transition: background 0.25s, transform 0.2s var(--spring);
}

.pc-add .ic {
	width: 20px;
	height: 20px;
	stroke-width: 2.2;
}

.pc-add:hover {
	background: var(--brand);
}

.pc-add.pop {
	animation: bump 0.45s var(--spring);
}

.pc-add.is-busy {
	opacity: 0.6;
}

.pc-add.is-done {
	background: var(--mint);
}

.pc-count {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	min-width: 28px;
	height: 28px;
	padding: 0 8px;
	border-radius: 99px;
	display: grid;
	place-items: center;
	background: var(--mint);
	color: #fff;
	font-weight: 800;
	font-size: 13px;
	box-shadow: var(--sh-2);
	animation: added-pop 0.4s var(--spring);
}

.pc-skel .pc-media,
.pc-skel i {
	background: linear-gradient(100deg, #f4eeec 30%, #fbf8f7 50%, #f4eeec 70%);
	background-size: 250% 100%;
	animation: shimmer 1.2s linear infinite;
}

.pc-skel i {
	display: block;
	height: 12px;
	border-radius: 6px;
}

.pc-skel i + i {
	width: 50%;
	height: 16px;
	margin-top: 4px;
}

.empty {
	grid-column: 1 / -1;
	display: grid;
	justify-items: center;
	gap: 6px;
	padding: 50px 20px;
	color: var(--muted);
	text-align: center;
}

.empty .ic {
	width: 44px;
	height: 44px;
	color: var(--brand);
	opacity: 0.6;
}

.empty b {
	color: var(--ink);
	font-size: 17px;
}

.grid-sentinel {
	height: 2px;
}

/* quick view */
.sheet-qv .sheet-body {
	padding: 0 0 12px;
}

.qv-gallery {
	position: relative;
	margin: 0 20px;
	border-radius: 22px;
	overflow: hidden;
	background: #f7f3f1;
}

.qv-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	aspect-ratio: 1;
	max-height: 46vh;
	width: 100%;
}

.qv-track::-webkit-scrollbar {
	display: none;
}

.qv-track img {
	flex: none;
	width: 100%;
	height: 100%;
	object-fit: contain;
	scroll-snap-align: center;
	background: #fff;
}

.qv-dots {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
}

.qv-dots i {
	width: 7px;
	height: 7px;
	border-radius: 9px;
	background: rgba(29, 21, 32, 0.25);
	transition: all 0.3s var(--ease);
}

.qv-dots i.on {
	width: 20px;
	background: var(--brand);
}

.qv-info {
	padding: 16px 20px 0;
	display: grid;
	gap: 8px;
}

.qv-info h3 {
	font-size: 19px;
	line-height: 1.45;
}

.qv-price {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}

.qv-price b {
	font-family: var(--f-display);
	font-size: 22px;
}

.qv-price s {
	color: var(--muted);
}

.qv-price em {
	font-style: normal;
	font-size: 12.5px;
	font-weight: 700;
	color: #137a57;
	background: #e4f6ee;
	padding: 3px 9px;
	border-radius: 99px;
}

.qv-desc {
	color: var(--ink-2);
	font-size: 14.5px;
	max-height: 9.5em;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(#000 70%, transparent);
	mask-image: linear-gradient(#000 70%, transparent);
}

.qv-desc p {
	margin: 0 0 6px;
}

.skel-line {
	display: block;
	height: 12px;
	margin: 8px 0;
	border-radius: 6px;
	background: linear-gradient(100deg, #f4eeec 30%, #fbf8f7 50%, #f4eeec 70%);
	background-size: 250% 100%;
	animation: shimmer 1.2s linear infinite;
}

.skel-line.short {
	width: 60%;
}

.qv-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 700;
	font-size: 14px;
	color: var(--brand-ink) !important;
}

.qv-foot {
	display: flex;
	gap: 10px;
	align-items: center;
}

.qv-foot .qv-add {
	flex: 1;
}

.qv-foot .qv-box {
	min-height: 54px;
	border-radius: 16px;
}

@media (max-width: 420px) {
	.hide-xs {
		display: none;
	}
}

.sort-list {
	display: grid;
	gap: 6px;
}

.sort-it {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	border-radius: 14px;
	font-weight: 600;
	background: var(--bg);
}

.sort-it .ic {
	opacity: 0;
	color: var(--brand);
}

.sort-it.is-on {
	background: var(--brand-soft);
	color: var(--brand-ink);
}

.sort-it.is-on .ic {
	opacity: 1;
}

/* ===================================================================== */
/*                              READY GIFTS                              */
/* ===================================================================== */

.r-hero {
	display: grid;
	justify-items: center;
	text-align: center;
	gap: 14px;
	padding: 18px 0 18px;
}

.search {
	position: relative;
	display: flex;
	align-items: center;
	width: min(560px, 100%);
	height: 54px;
	padding: 0 16px;
	gap: 10px;
	border-radius: 18px;
	background: #fff;
	border: 1.5px solid var(--line);
	box-shadow: var(--sh-2);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.search:focus-within {
	border-color: var(--brand);
	box-shadow: 0 0 0 5px rgba(236, 74, 80, 0.1), var(--sh-2);
}

.search .ic {
	color: var(--muted);
}

.search input {
	flex: 1;
	border: 0;
	outline: 0;
	background: transparent;
	font-size: 16px;
	min-width: 0;
}

.search.small {
	height: 46px;
	width: 100%;
	box-shadow: none;
	border-radius: 14px;
}

.r-bar {
	position: sticky;
	top: var(--top-h);
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px var(--gutter);
	margin: 0 calc(var(--gutter) * -1) 6px;
	transition: background 0.3s, box-shadow 0.3s;
}

.r-bar.stuck {
	background: rgba(255, 248, 245, 0.9);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 8px 20px -14px rgba(60, 20, 20, 0.3);
}

.r-bar .chips {
	flex: 1;
	min-width: 0;
}

.chip .ic {
	width: 15px;
	height: 15px;
	margin-inline-end: 4px;
}

.sort-btn {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 38px;
	padding: 0 12px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--line);
	font-weight: 600;
	font-size: 13.5px;
}

.sort-btn span {
	max-width: 90px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.r-meta {
	color: var(--muted);
	font-size: 13.5px;
	margin: 4px 0 12px;
	min-height: 1.6em;
}

.r-meta b {
	color: var(--ink);
}

.r-float {
	position: fixed;
	z-index: 40;
	left: 16px;
	bottom: calc(var(--tab-h) + var(--safe-b) + 14px);
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px 10px 12px;
	border-radius: 18px;
	background: var(--ink);
	color: #fff !important;
	box-shadow: var(--sh-3);
	animation: float-in 0.7s 1s var(--spring) both;
}

.r-float .ic {
	width: 26px;
	height: 26px;
	color: var(--gold);
}

.r-float span {
	display: grid;
	line-height: 1.25;
	max-width: 160px;
	overflow: hidden;
	white-space: nowrap;
	transition: max-width 0.45s var(--ease), opacity 0.3s;
}

.r-float.mini {
	padding: 14px;
	gap: 0;
}

.r-float.mini span {
	max-width: 0;
	opacity: 0;
}

.r-float b {
	font-size: 14px;
}

.r-float small {
	font-size: 11.5px;
	opacity: 0.7;
}

@keyframes float-in {
	from {
		transform: translateY(30px) scale(0.9);
		opacity: 0;
	}
}

@media (min-width: 900px) {
	.r-float {
		bottom: 24px;
		left: 24px;
	}
}

/* ===================================================================== */
/*                                  HUB                                  */
/* ===================================================================== */

.hub-hero {
	display: grid;
	gap: 10px;
	align-items: center;
	padding: 10px 0 30px;
}

@media (min-width: 980px) {
	.hub-hero {
		grid-template-columns: 1.05fr 1fr;
		min-height: calc(100vh - var(--top-h) - 60px);
		min-height: calc(100dvh - var(--top-h) - 60px);
		max-height: 760px;
		gap: 40px;
	}
}

.hero-copy {
	display: grid;
	gap: 16px;
	justify-items: start;
	order: 2;
}

@media (min-width: 980px) {
	.hero-copy {
		order: 0;
	}
}

.hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hero-trust {
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	font-size: 13.5px;
	color: var(--ink-2);
	font-weight: 600;
}

.hero-trust li {
	display: flex;
	align-items: center;
	gap: 6px;
}

.hero-trust .ic {
	color: var(--mint);
}

.hero-art {
	position: relative;
	height: min(86vw, 400px);
	display: grid;
	place-items: center;
}

@media (min-width: 980px) {
	.hero-art {
		height: 520px;
	}
}

.hero-box {
	position: relative;
	width: 100%;
	height: 100%;
	z-index: 2;
}

.hero-glow {
	position: absolute;
	width: 70%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 125, 92, 0.35), rgba(242, 184, 75, 0.12) 45%, transparent 70%);
	filter: blur(10px);
	animation: glow 6s ease-in-out infinite;
}

@keyframes glow {
	50% {
		transform: scale(1.12);
		opacity: 0.8;
	}
}

.orbit {
	position: absolute;
	inset: 6%;
	z-index: 3;
	pointer-events: none;
}

.orb {
	position: absolute;
	width: 52px;
	height: 52px;
	display: grid;
	place-items: center;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: var(--sh-2);
	color: var(--brand);
	animation: bob 5s ease-in-out infinite;
}

.orb .ic {
	width: 26px;
	height: 26px;
}

.o1 {
	top: 6%;
	right: 10%;
}

.o2 {
	top: 20%;
	left: 4%;
	animation-delay: -1.5s;
	color: #e0457b;
	border-radius: 50%;
}

.o3 {
	bottom: 16%;
	right: 2%;
	animation-delay: -3s;
	color: var(--violet);
}

.o4 {
	bottom: 6%;
	left: 14%;
	animation-delay: -2.2s;
	color: var(--gold);
}

@keyframes bob {
	0%,
	100% {
		transform: translateY(0) rotate(-6deg);
	}
	50% {
		transform: translateY(-14px) rotate(6deg);
	}
}

.sec-head {
	display: grid;
	gap: 4px;
	margin-bottom: 18px;
}

.sec-head h2 {
	font-size: clamp(22px, 3.6vw, 32px);
	font-weight: 800;
}

.sec-head.row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
}

.see-all {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 700;
	color: var(--brand-ink) !important;
	white-space: nowrap;
}

.paths {
	display: grid;
	gap: 14px;
	margin: 10px 0 56px;
}

@media (min-width: 900px) {
	.paths {
		grid-template-columns: 1.2fr 1fr 1fr;
		gap: 18px;
	}
}

.path {
	--rx: 0deg;
	--ry: 0deg;
	position: relative;
	display: grid;
	grid-template-columns: 120px 1fr;
	align-items: center;
	gap: 14px;
	padding: 16px;
	border-radius: var(--r-lg);
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: var(--sh-1);
	overflow: hidden;
	transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), opacity 0.7s var(--ease);
}

.path[data-reveal]:not(.in) {
	transform: translateY(18px);
}

@media (min-width: 900px) {
	.path {
		grid-template-columns: 1fr;
		align-items: stretch;
		padding: 0;
	}
	.path-art {
		height: 220px;
	}
	.path-tx {
		padding: 0 22px 22px;
	}
}

.path:hover {
	box-shadow: var(--sh-3);
}

.path-art {
	position: relative;
	display: block;
	height: 120px;
	border-radius: 20px;
	overflow: hidden;
}

.p-print .path-art {
	background: linear-gradient(135deg, #ffe1d9, #ffd0c4);
}

.p-build .path-art {
	background: linear-gradient(135deg, #fff1d6, #ffe0b5);
}

.p-ready .path-art {
	background: linear-gradient(135deg, #e8e4ff, #f5e9ff);
}

@media (min-width: 900px) {
	.path-art {
		border-radius: 0;
	}
}

.path-tx {
	display: grid;
	gap: 4px;
}

.path-tx small {
	color: var(--brand-ink);
	font-weight: 700;
	font-size: 12px;
}

.path-tx b {
	font-family: var(--f-display);
	font-size: 20px;
	font-weight: 800;
}

.path-tx > span {
	color: var(--ink-2);
	font-size: 14px;
}

.path-tx em {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	font-style: normal;
	font-weight: 700;
	font-size: 14px;
	color: var(--ink);
	transition: gap 0.3s var(--ease), color 0.3s;
}

.path:hover .path-tx em {
	gap: 12px;
	color: var(--brand);
}

/* print path art */
.pa-photo {
	position: absolute;
	width: 46%;
	aspect-ratio: 1;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%) rotate(-6deg);
	border-radius: 16px;
	background: linear-gradient(135deg, #ff9a8b, #ff6a88 55%, #ffb88c);
	box-shadow: var(--sh-2);
	border: 4px solid #fff;
	animation: photo 4s ease-in-out infinite;
}

.pa-photo::after {
	content: none;
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: #fff;
	font-size: 28px;
}

@keyframes photo {
	50% {
		transform: translate(-50%, -54%) rotate(4deg);
	}
}

.pa-card {
	position: absolute;
	width: 30%;
	aspect-ratio: 1;
	max-width: 70px;
	display: grid;
	place-items: center;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.9);
	color: var(--brand);
	box-shadow: var(--sh-1);
	animation: bob 5s ease-in-out infinite;
}

.pa-card .ic {
	width: 55%;
	height: 55%;
}

.pa-1 {
	top: 10%;
	right: 8%;
}

.pa-2 {
	bottom: 8%;
	right: 22%;
	animation-delay: -1.6s;
}

.pa-3 {
	top: 16%;
	left: 8%;
	animation-delay: -3.2s;
}

/* build path art: little box with popping lid */
.mini-box {
	position: absolute;
	left: 50%;
	top: 58%;
	width: 46%;
	max-width: 120px;
	aspect-ratio: 1.2;
	transform: translate(-50%, -50%);
}

.mini-box i {
	position: absolute;
	display: block;
}

.mini-box i:nth-child(1) {
	inset: 26% 0 0;
	border-radius: 6px 6px 12px 12px;
	background: linear-gradient(90deg, transparent 43%, #f2b84b 43% 57%, transparent 57%), linear-gradient(#ec4a50, #d63b47);
	box-shadow: var(--sh-2);
}

.mini-box i:nth-child(2) {
	left: -6%;
	right: -6%;
	top: 12%;
	height: 20%;
	border-radius: 6px;
	background: linear-gradient(90deg, transparent 43%, #f2b84b 43% 57%, transparent 57%), linear-gradient(#ff6b6f, #ec4a50);
	box-shadow: var(--sh-1);
	animation: lid 2.4s var(--spring) infinite;
	transform-origin: 90% 100%;
}

.mini-box i:nth-child(3) {
	left: 50%;
	top: -6%;
	width: 34%;
	aspect-ratio: 1.5;
	transform: translateX(-50%);
	background: radial-gradient(circle at 25% 50%, #f2b84b 38%, transparent 40%), radial-gradient(circle at 75% 50%, #f2b84b 38%, transparent 40%);
	animation: lid 2.4s var(--spring) infinite;
}

@keyframes lid {
	0%,
	55%,
	100% {
		translate: 0 0;
		rotate: 0deg;
	}
	70% {
		translate: 0 -40%;
		rotate: -10deg;
	}
	82% {
		translate: 0 -40%;
		rotate: -10deg;
	}
}

/* ready path art: fanned product photos */
.stack {
	position: absolute;
	inset: 0;
}

.stack img {
	position: absolute;
	width: 42%;
	max-width: 110px;
	aspect-ratio: 1;
	object-fit: cover;
	left: 50%;
	top: 50%;
	border-radius: 16px;
	border: 3px solid #fff;
	box-shadow: var(--sh-2);
	transform: translate(-50%, -50%) rotate(calc((var(--i) - 1) * 12deg)) translateX(calc((var(--i) - 1) * -42%));
	transition: transform 0.5s var(--spring);
	background: #fff;
}

.path:hover .stack img {
	transform: translate(-50%, -54%) rotate(calc((var(--i) - 1) * 16deg)) translateX(calc((var(--i) - 1) * -62%));
}

.occasions,
.steps3,
.featured {
	margin-bottom: 56px;
}

.occ-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

@media (min-width: 900px) {
	.occ-grid {
		grid-template-columns: repeat(6, 1fr);
		gap: 14px;
	}
}

.occ {
	display: grid;
	justify-items: center;
	gap: 6px;
	padding: 16px 8px;
	border-radius: 20px;
	background: #fff;
	border: 1px solid var(--line);
	font-size: 13.5px;
	text-align: center;
	transition: transform 0.3s var(--spring), box-shadow 0.3s, border-color 0.3s, opacity 0.6s var(--ease);
}

.occ:hover {
	transform: translateY(-4px);
	box-shadow: var(--sh-2);
	border-color: rgba(236, 74, 80, 0.3);
}

.occ-emo {
	font-size: 34px;
	line-height: 1;
	transition: transform 0.4s var(--spring);
}

.occ:hover .occ-emo {
	transform: scale(1.2) rotate(-8deg);
}

.s3 {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
	counter-reset: s;
}

@media (min-width: 800px) {
	.s3 {
		grid-template-columns: repeat(3, 1fr);
		gap: 18px;
	}
}

.s3 li {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 14px;
	padding: 18px;
	border-radius: 22px;
	background: #fff;
	border: 1px solid var(--line);
}

.s3-n {
	position: absolute;
	top: 10px;
	left: 16px;
	font-family: var(--f-display);
	font-size: 44px;
	font-weight: 800;
	color: rgba(236, 74, 80, 0.1);
	line-height: 1;
}

.s3-ic {
	grid-row: span 2;
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	border-radius: 15px;
	background: var(--brand-soft);
	color: var(--brand);
}

.s3 b {
	font-family: var(--f-display);
	font-size: 17px;
}

.s3 p {
	color: var(--ink-2);
	font-size: 14px;
}

.rail {
	gap: 12px;
	margin-inline: calc(var(--gutter) * -1);
	padding-inline: var(--gutter);
	padding-bottom: 10px;
}

.rail .pc {
	flex: none;
	width: 46vw;
	max-width: 230px;
}

.final-cta {
	position: relative;
	overflow: hidden;
	border-radius: 32px;
	background: linear-gradient(135deg, #ff7d5c, #ec4a50 50%, #c7304d);
	color: #fff;
	padding: 40px 22px;
	text-align: center;
	margin-bottom: 20px;
}

.fc-in {
	position: relative;
	z-index: 2;
	display: grid;
	justify-items: center;
	gap: 10px;
}

.fc-in h2 {
	font-size: clamp(24px, 4vw, 38px);
	font-weight: 800;
}

.fc-in p {
	opacity: 0.9;
	margin-bottom: 8px;
}

.fc-in .hero-cta {
	justify-content: center;
}

.fc-confetti i {
	position: absolute;
	width: 10px;
	height: 16px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.5);
	animation: fall 7s linear infinite;
	top: -20px;
}

.fc-confetti i:nth-child(odd) {
	background: rgba(242, 184, 75, 0.8);
	border-radius: 50%;
	width: 10px;
	height: 10px;
}

.fc-confetti i:nth-child(1) { left: 8%; animation-delay: 0s; }
.fc-confetti i:nth-child(2) { left: 20%; animation-delay: -2s; }
.fc-confetti i:nth-child(3) { left: 33%; animation-delay: -4.5s; }
.fc-confetti i:nth-child(4) { left: 47%; animation-delay: -1s; }
.fc-confetti i:nth-child(5) { left: 61%; animation-delay: -3.3s; }
.fc-confetti i:nth-child(6) { left: 74%; animation-delay: -5.6s; }
.fc-confetti i:nth-child(7) { left: 86%; animation-delay: -0.6s; }
.fc-confetti i:nth-child(8) { left: 94%; animation-delay: -2.8s; }

@keyframes fall {
	to {
		transform: translateY(420px) rotate(540deg);
	}
}

/* ===================================================================== */
/*                               3D GIFT BOX                             */
/* ===================================================================== */

.gbox {
	--s: 1;
	--w: calc(190px * var(--s));
	--d: calc(190px * var(--s));
	--h: calc(118px * var(--s));
	--lh: calc(28px * var(--s));
	--band: calc(16px * var(--s));
	--box: #f3e7d7;
	--rib: #d4a548;
	--fill: #c79a64;
	--tx: -22deg;
	--ty: -34deg;
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	perspective: 1200px;
	transition: opacity 0.4s var(--ease), scale 0.5s var(--ease);
}

.gbox-float {
	transform-style: preserve-3d;
	animation: gfloat 5s ease-in-out infinite;
}

@keyframes gfloat {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}

.gbox-scene {
	position: relative;
	width: 0;
	height: 0;
	transform-style: preserve-3d;
	transform: translateY(calc(var(--h) * 0.2)) rotateX(var(--tx)) rotateY(var(--ty));
	transition: transform 0.7s var(--ease);
}

.gbox.bounce .gbox-scene {
	animation: gbounce 0.6s var(--spring);
}

@keyframes gbounce {
	30% {
		scale: 1.07 0.93;
	}
	60% {
		scale: 0.97 1.04;
	}
}

.gbox.full .gbox-scene {
	animation: gshake 0.5s;
}

@keyframes gshake {
	20%,
	60% {
		translate: -8px 0;
	}
	40%,
	80% {
		translate: 8px 0;
	}
}

.gbox-body,
.gbox-lid,
.gbox-items {
	position: absolute;
	left: 0;
	top: 0;
	transform-style: preserve-3d;
}

.gbox .f {
	position: absolute;
	left: 0;
	top: 0;
	display: block;
	background-color: var(--box);
	transition: background-color 0.5s var(--ease);
	backface-visibility: visible;
}

/* body faces */
.gbox-body .f-front,
.gbox-body .f-back {
	width: var(--w);
	height: var(--h);
	margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2);
}

.gbox-body .f-left,
.gbox-body .f-right {
	width: var(--d);
	height: var(--h);
	margin: calc(var(--h) / -2) 0 0 calc(var(--d) / -2);
}

.gbox-body .f-bottom,
.gbox-body .f-fill {
	width: var(--w);
	height: var(--d);
	margin: calc(var(--d) / -2) 0 0 calc(var(--w) / -2);
}

.gbox-body .f-front {
	transform: translateZ(calc(var(--d) / 2));
}

.gbox-body .f-back {
	transform: rotateY(180deg) translateZ(calc(var(--d) / 2));
}

.gbox-body .f-right {
	transform: rotateY(90deg) translateZ(calc(var(--w) / 2));
}

.gbox-body .f-left {
	transform: rotateY(-90deg) translateZ(calc(var(--w) / 2));
}

.gbox-body .f-bottom {
	transform: rotateX(-90deg) translateZ(calc(var(--h) / 2));
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
}

.gbox-body .f-fill {
	transform: rotateX(90deg) translateZ(calc(var(--h) / 2 - 16px * var(--s)));
	background-color: var(--fill);
	background-image: repeating-linear-gradient(35deg, rgba(255, 255, 255, 0.28) 0 2px, transparent 2px 7px), repeating-linear-gradient(-55deg, rgba(0, 0, 0, 0.12) 0 2px, transparent 2px 9px);
}

.gbox-body .f-front,
.gbox-body .f-back,
.gbox-body .f-left,
.gbox-body .f-right {
	background-image: linear-gradient(90deg, transparent calc(50% - var(--band) / 2), var(--rib) calc(50% - var(--band) / 2), var(--rib) calc(50% + var(--band) / 2), transparent calc(50% + var(--band) / 2)), linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.06));
}

.gbox-body .f-right {
	background-image: linear-gradient(90deg, transparent calc(50% - var(--band) / 2), var(--rib) calc(50% - var(--band) / 2), var(--rib) calc(50% + var(--band) / 2), transparent calc(50% + var(--band) / 2)), linear-gradient(rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.2));
	background-blend-mode: normal, multiply;
}

.gbox-body .f-left,
.gbox-body .f-back {
	filter: brightness(0.82);
}

.gbox-logo {
	position: absolute;
	bottom: 12%;
	left: 10%;
	font-family: var(--f-display);
	font-weight: 800;
	font-size: calc(11px * var(--s));
	letter-spacing: 0.22em;
	color: rgba(0, 0, 0, 0.32);
}

.gbox.dark-box .gbox-logo {
	color: rgba(255, 255, 255, 0.45);
}

/* lid */
.gbox-lid {
	--lw: calc(var(--w) + 10px * var(--s));
	--ld: calc(var(--d) + 10px * var(--s));
	transform: translate3d(0, calc(var(--h) / -2 - var(--lh) / 2 + 3px), 0);
	transition: transform 0.85s var(--spring);
}

.gbox-lid .f-top {
	width: var(--lw);
	height: var(--ld);
	margin: calc(var(--ld) / -2) 0 0 calc(var(--lw) / -2);
	transform: rotateX(90deg) translateZ(calc(var(--lh) / 2));
	background-image: linear-gradient(90deg, transparent calc(50% - var(--band) / 2), var(--rib) calc(50% - var(--band) / 2), var(--rib) calc(50% + var(--band) / 2), transparent calc(50% + var(--band) / 2)), linear-gradient(0deg, transparent calc(50% - var(--band) / 2), var(--rib) calc(50% - var(--band) / 2), var(--rib) calc(50% + var(--band) / 2), transparent calc(50% + var(--band) / 2)), linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
}

.gbox-lid .f-front,
.gbox-lid .f-back {
	width: var(--lw);
	height: var(--lh);
	margin: calc(var(--lh) / -2) 0 0 calc(var(--lw) / -2);
}

.gbox-lid .f-left,
.gbox-lid .f-right {
	width: var(--ld);
	height: var(--lh);
	margin: calc(var(--lh) / -2) 0 0 calc(var(--ld) / -2);
}

.gbox-lid .f-front {
	transform: translateZ(calc(var(--ld) / 2));
}

.gbox-lid .f-back {
	transform: rotateY(180deg) translateZ(calc(var(--ld) / 2));
	filter: brightness(0.82);
}

.gbox-lid .f-right {
	transform: rotateY(90deg) translateZ(calc(var(--lw) / 2));
	filter: brightness(0.84);
}

.gbox-lid .f-left {
	transform: rotateY(-90deg) translateZ(calc(var(--lw) / 2));
	filter: brightness(0.8);
}

.gbox-lid .f-front,
.gbox-lid .f-back,
.gbox-lid .f-left,
.gbox-lid .f-right {
	background-image: linear-gradient(90deg, transparent calc(50% - var(--band) / 2), var(--rib) calc(50% - var(--band) / 2), var(--rib) calc(50% + var(--band) / 2), transparent calc(50% + var(--band) / 2)), linear-gradient(rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.04));
}

.gbox.is-open .gbox-lid {
	transform: translate3d(calc(var(--w) * 0.3), calc(var(--h) * -1.15), calc(var(--d) * -0.55)) rotateX(-8deg) rotateZ(16deg);
}

.gbox-bow {
	position: absolute;
	left: 0;
	top: 0;
	width: calc(118px * var(--s));
	height: calc(80px * var(--s));
	margin: calc(-80px * var(--s) * 0.82) 0 0 calc(-59px * var(--s));
	transform: translateY(calc(var(--lh) / -2)) rotateY(calc(var(--ty) * -1));
	transform-origin: 50% 100%;
	transition: transform 0.6s var(--spring);
}

.gbox-bow svg {
	width: 100%;
	height: 100%;
	overflow: visible;
	filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.18));
}

.bow-loop,
.bow-tail,
.bow-knot {
	fill: var(--rib);
	transition: fill 0.5s;
}

.bow-tail {
	filter: brightness(0.86);
}

.bow-shade {
	fill: rgba(0, 0, 0, 0.16);
}

.bow-knot {
	stroke: rgba(0, 0, 0, 0.14);
	stroke-width: 1.5;
}

.gbox.closed .gbox-bow {
	animation: bow-pop 0.7s 0.55s var(--spring) both;
}

@keyframes bow-pop {
	from {
		scale: 0.3;
	}
}

/* items peeking out of the open box */
.gbox-items {
	transform: translateY(calc(var(--h) / -2 + 14px * var(--s)));
}

.gbox-item {
	position: absolute;
	left: 0;
	top: 0;
	width: calc(58px * var(--s));
	height: calc(58px * var(--s));
	transform: translate3d(calc(var(--w) * var(--xf, 0) - 50%), calc(var(--y, 0px) - 100%), var(--z, 0px)) rotateY(calc(var(--ty) * -1)) rotate(var(--r, 0deg));
	transition: transform 0.5s var(--spring), opacity 0.3s;
}

.gbox-item img,
.gbox-item b {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	object-fit: cover;
	border-radius: 12px;
	background: #fff;
	border: 3px solid #fff;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.gbox-item b {
	font-size: calc(28px * var(--s));
}

.gbox-item.drop img,
.gbox-item.drop b {
	animation: item-drop 0.7s var(--spring) both;
	animation-delay: inherit;
}

@keyframes item-drop {
	from {
		transform: translateY(-160px) rotate(-20deg) scale(0.6);
		opacity: 0;
	}
}

.gbox-item.leave {
	opacity: 0;
}

.gbox:not(.is-open) .gbox-item {
	opacity: 0;
	transition-delay: 0.25s;
}

.gbox-shadow {
	position: absolute;
	left: 50%;
	top: 50%;
	width: calc(var(--w) * 1.9);
	height: calc(var(--d) * 0.55);
	transform: translate(-50%, calc(var(--h) * 0.72));
	background: radial-gradient(closest-side, rgba(90, 30, 30, 0.3), transparent);
	animation: gshadow 5s ease-in-out infinite;
	pointer-events: none;
	z-index: -1;
}

@keyframes gshadow {
	50% {
		transform: translate(-50%, calc(var(--h) * 0.72)) scale(0.88);
		opacity: 0.75;
	}
}

.gbox.hero-gbox {
	--s: 0.74;
	--tx: -20deg;
	--ty: -32deg;
}

.hero-gbox .gbox-scene {
	transform: translateY(calc(var(--h) * 0.55)) rotateX(var(--tx)) rotateY(var(--ty));
}

@media (min-width: 600px) {
	.gbox.hero-gbox {
		--s: 0.95;
	}
}

@media (min-width: 980px) {
	.gbox.hero-gbox {
		--s: 1.2;
	}
}

/* ===================================================================== */
/*                               BUILDER                                 */
/* ===================================================================== */

body.app-build .tabbar {
	display: none;
}

body.app-build.onon-app {
	padding-bottom: calc(90px + var(--safe-b));
}

.b-head {
	display: grid;
	gap: 14px;
	padding: 6px 0 14px;
}

.b-title {
	display: grid;
	gap: 6px;
	justify-items: start;
}

.b-title h1 {
	font-size: clamp(24px, 4.2vw, 36px);
	font-weight: 800;
	animation: swap-in 0.45s var(--ease);
}

.b-title p {
	font-size: 14.5px;
}

.b-steps {
	--p: 0;
	position: relative;
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
}

.b-steps::before,
.b-steps::after {
	content: '';
	position: absolute;
	top: 17px;
	right: 10%;
	left: 10%;
	height: 3px;
	border-radius: 3px;
	background: var(--line-2);
}

.b-steps::after {
	left: auto;
	width: calc(80% * var(--p));
	background: linear-gradient(90deg, var(--brand), var(--brand-2));
	transition: width 0.6s var(--ease);
}

.b-steps li {
	position: relative;
	z-index: 1;
}

.b-steps button {
	width: 100%;
	display: grid;
	justify-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
}

.b-steps b {
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--line-2);
	font-family: var(--f-display);
	font-size: 14px;
	color: var(--muted);
	transition: all 0.4s var(--spring);
}

.b-steps b .ic {
	width: 18px;
	height: 18px;
	stroke-width: 2.6;
}

.b-steps li.done b {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}

.b-steps li.cur b {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
	transform: scale(1.12);
	box-shadow: 0 0 0 6px rgba(29, 21, 32, 0.08);
}

.b-steps li.cur button,
.b-steps li.done button {
	color: var(--ink);
}

@media (min-width: 980px) {
	.b-head {
		grid-template-columns: 1fr 520px;
		align-items: center;
	}
}

.b-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
}

@media (min-width: 980px) {
	.b-main {
		grid-template-columns: 420px minmax(0, 1fr);
		gap: 24px;
		align-items: start;
	}
	.b-stage-col {
		position: sticky;
		top: calc(var(--top-h) + 12px);
	}
}

.b-stage-col {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	min-width: 0;
}

.b-tray,
.b-panel,
.b-pane > * {
	min-width: 0;
}

.b-stage {
	position: relative;
	height: 290px;
	border-radius: var(--r-lg);
	background: radial-gradient(circle at 50% 40%, #fff 0%, #fdf0eb 55%, #f8dfd8 100%);
	box-shadow: inset 0 0 0 1px var(--line), var(--sh-1);
	overflow: hidden;
}

@media (min-width: 980px) {
	.b-stage {
		height: 400px;
	}
}

.b-sparkles i {
	position: absolute;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--gold);
	opacity: 0;
	animation: sparkle 3.2s ease-in-out infinite;
}

.b-sparkles i:nth-child(1) { top: 18%; right: 20%; }
.b-sparkles i:nth-child(2) { top: 30%; left: 16%; animation-delay: -0.6s; background: var(--brand); }
.b-sparkles i:nth-child(3) { bottom: 26%; right: 12%; animation-delay: -1.2s; }
.b-sparkles i:nth-child(4) { top: 12%; left: 40%; animation-delay: -1.8s; background: var(--violet); }
.b-sparkles i:nth-child(5) { bottom: 18%; left: 22%; animation-delay: -2.4s; }
.b-sparkles i:nth-child(6) { top: 50%; right: 6%; animation-delay: -2.9s; background: var(--brand-2); }

@keyframes sparkle {
	0%,
	100% {
		opacity: 0;
		transform: scale(0.3);
	}
	50% {
		opacity: 0.9;
		transform: scale(1);
	}
}

.b-stage .gbox {
	scale: 0.7;
	translate: 0 8%;
	transition: opacity 0.45s var(--ease), transform 0.5s var(--ease), scale 0.5s var(--ease);
}

@media (min-width: 980px) {
	.b-stage .gbox {
		scale: 0.95;
		translate: 0 6%;
	}
}

.b-stage.show-card .gbox {
	opacity: 0;
	transform: scale(0.85) translateY(30px);
	pointer-events: none;
}

/* card */
.gcard-wrap {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	perspective: 1300px;
	opacity: 0;
	transform: translateY(26px) scale(0.92);
	transition: opacity 0.45s var(--ease), transform 0.6s var(--spring);
	pointer-events: none;
}

.b-stage.show-card .gcard-wrap {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.gcard {
	width: min(330px, 80%);
	aspect-ratio: 1.45;
	transition: filter 0.4s;
}

.gcard-in {
	position: relative;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	transition: transform 0.9s var(--spring);
	animation: card-idle 6s ease-in-out infinite;
}

@keyframes card-idle {
	50% {
		rotate: 0 1 0 6deg;
	}
}

.gcard.flipped .gcard-in {
	transform: rotateY(180deg);
}

.gcard.is-none {
	filter: grayscale(1) opacity(0.35);
}

.gcard-face {
	position: absolute;
	inset: 0;
	border-radius: 18px;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	box-shadow: var(--sh-3);
	overflow: hidden;
}

.gcard-front {
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 6px;
	text-align: center;
	padding: 18px;
}

.gc-art {
	font-size: 46px;
	line-height: 1;
	filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.15));
}

.gc-title {
	font-family: 'Aref Ruqaa', var(--f-display);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.3;
}

.gc-brand {
	position: absolute;
	bottom: 10px;
	left: 14px;
	font-family: var(--f-display);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.25em;
	opacity: 0.45;
}

.gcard-back {
	transform: rotateY(180deg);
	background: #fffdf8;
	background-image: repeating-linear-gradient(transparent 0 27px, rgba(29, 21, 32, 0.06) 27px 28px);
	padding: 18px 22px;
	display: grid;
	align-content: center;
	gap: 6px;
	font-family: 'Aref Ruqaa', var(--f-body);
	color: #2b2340;
}

.gc-to,
.gc-from {
	font-size: 17px;
	font-weight: 700;
}

.gc-from {
	text-align: left;
}

.gc-msg {
	font-size: 19px;
	line-height: 1.55;
	white-space: pre-wrap;
	word-break: break-word;
	max-height: 5.2em;
	overflow: hidden;
}

.gc-msg.ph {
	opacity: 0.35;
}

.d-love .gcard-front,
.cd.d-love {
	background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.5) 0 6%, transparent 7%), radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.35) 0 4%, transparent 5%), linear-gradient(135deg, #ff9a9e, #fecfef);
	color: #8a1c3a;
}

.d-birthday .gcard-front,
.cd.d-birthday {
	background: radial-gradient(circle at 15% 25%, #ffd166 0 3%, transparent 3.5%), radial-gradient(circle at 85% 20%, #ef476f 0 3%, transparent 3.5%), radial-gradient(circle at 75% 80%, #06d6a0 0 3%, transparent 3.5%), radial-gradient(circle at 25% 78%, #118ab2 0 2.5%, transparent 3%), linear-gradient(135deg, #a1c4fd, #c2e9fb);
	color: #1b3a6b;
}

.d-congrats .gcard-front,
.cd.d-congrats {
	background: radial-gradient(circle at 80% 15%, rgba(242, 184, 75, 0.4), transparent 40%), linear-gradient(135deg, #1d1520, #3a2b45);
	color: #f2c96b;
}

.d-eid .gcard-front,
.cd.d-eid {
	background: radial-gradient(circle at 20% 30%, #fff 0 0.6%, transparent 1%), radial-gradient(circle at 70% 20%, #fff 0 0.5%, transparent 0.9%), radial-gradient(circle at 85% 60%, #fff 0 0.6%, transparent 1%), radial-gradient(circle at 35% 75%, #fff 0 0.4%, transparent 0.8%), linear-gradient(160deg, #0f2147, #27407a);
	color: #f2c96b;
}

.d-thanks .gcard-front,
.cd.d-thanks {
	background: linear-gradient(135deg, #e3efd9, #a9c79a);
	color: #2e4a25;
}

.d-minimal .gcard-front,
.cd.d-minimal {
	background: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px) 0 0 / 6px 6px, linear-gradient(135deg, #e2c49a, #c99d6a);
	color: #4a2f14;
}

/* tray */
.b-tray {
	padding: 12px;
	border-radius: var(--r);
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: var(--sh-1);
}

.builder[data-step='4'] .b-tray {
	display: none;
}

.tray-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13.5px;
}

.tray-head span {
	color: var(--muted);
	font-weight: 600;
}

.tray-bar {
	height: 6px;
	border-radius: 6px;
	background: var(--bg-2);
	margin: 8px 0 10px;
	overflow: hidden;
}

.tray-bar i {
	display: block;
	height: 100%;
	border-radius: 6px;
	background: linear-gradient(90deg, var(--brand), var(--brand-2));
	transition: width 0.5s var(--spring);
}

.tray-list {
	gap: 8px;
}

.tray-it {
	position: relative;
	flex: none;
	width: 64px;
	height: 64px;
	border-radius: 14px;
	background: var(--bg);
	animation: added-pop 0.4s var(--spring);
}

.tray-it img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 14px;
	border: 1px solid var(--line);
}

.tray-it.is-empty {
	display: grid;
	place-items: center;
	border: 1.5px dashed var(--line-2);
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	animation: none;
}

.tray-q {
	position: absolute;
	top: -6px;
	left: -6px;
	min-width: 22px;
	height: 22px;
	padding: 0 5px;
	border-radius: 99px;
	display: grid;
	place-items: center;
	background: var(--ink);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	border: 2px solid #fff;
}

.tray-q .ic {
	width: 12px;
	height: 12px;
}

.tray-ctl {
	position: absolute;
	inset: auto 3px 3px 3px;
	display: flex;
	justify-content: space-between;
}

.tray-ctl button,
.tray-x {
	width: 24px;
	height: 24px;
	display: grid;
	place-items: center;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: var(--sh-1);
}

.tray-ctl .ic,
.tray-x .ic {
	width: 14px;
	height: 14px;
	stroke-width: 2.4;
}

.tray-x {
	position: absolute;
	top: 3px;
	right: 3px;
}

/* panel */
.b-panel {
	min-width: 0;
}

.b-pane {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	animation: pane-in 0.45s var(--ease);
}

.builder[data-dir='-1'] .b-pane {
	animation-name: pane-in-back;
}

@keyframes pane-in {
	from {
		opacity: 0;
		transform: translateX(-24px);
	}
}

@keyframes pane-in-back {
	from {
		opacity: 0;
		transform: translateX(24px);
	}
}

.b-label {
	font-size: 14px;
	font-weight: 700;
	color: var(--ink-2);
	margin-top: 4px;
}

.b-label b {
	color: var(--ink);
}

.b-note {
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 13.5px;
	color: var(--ink-2);
	padding: 12px 14px;
	border-radius: 14px;
	background: #fff6e3;
}

.b-note .ic {
	color: var(--gold);
}

.sizes-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.size-card {
	display: grid;
	justify-items: center;
	gap: 2px;
	padding: 16px 8px 14px;
	border-radius: 20px;
	background: #fff;
	border: 1.5px solid var(--line);
	text-align: center;
	transition: all 0.3s var(--spring);
}

.size-card b {
	font-family: var(--f-display);
	font-size: 15px;
}

.size-card small {
	font-size: 12px;
	color: var(--muted);
}

.size-card em {
	font-style: normal;
	font-weight: 700;
	font-size: 14px;
	margin-top: 4px;
}

.sc-ic {
	height: 44px;
	display: grid;
	place-items: end center;
	color: var(--brand);
}

.sc-ic .ic {
	width: calc(34px * var(--k));
	height: calc(34px * var(--k));
	transition: transform 0.4s var(--spring);
}

.size-card.is-on {
	border-color: var(--ink);
	box-shadow: 0 10px 22px rgba(29, 21, 32, 0.14);
	transform: translateY(-3px);
}

.size-card.is-on .sc-ic .ic {
	transform: rotate(-8deg) scale(1.08);
}

.print-tile {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
	border-radius: 20px;
	background: linear-gradient(135deg, #ffe7e3, #fff1d6);
	border: 1px solid rgba(236, 74, 80, 0.15);
	transition: transform 0.3s var(--spring), box-shadow 0.3s;
}

.print-tile:hover {
	transform: translateY(-2px);
	box-shadow: var(--sh-2);
}

.pt-art {
	display: flex;
}

.pt-art span {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: #fff;
	color: var(--brand);
	box-shadow: var(--sh-1);
	margin-inline-start: -10px;
}

.pt-art span:first-child {
	margin: 0;
}

.pt-tx {
	flex: 1;
	display: grid;
	line-height: 1.4;
}

.pt-tx b {
	font-size: 15px;
}

.pt-tx small {
	color: var(--ink-2);
	font-size: 12.5px;
}

.pgrid-b {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
	.pgrid-b {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1240px) {
	.pgrid-b {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.card-designs {
	gap: 10px;
}

.cd {
	flex: none;
	width: 96px;
	aspect-ratio: 1.45;
	border-radius: 14px;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 2px;
	box-shadow: var(--sh-1);
	transition: transform 0.3s var(--spring), box-shadow 0.3s;
}

.cd-art {
	font-size: 22px;
	line-height: 1;
}

.cd small {
	font-size: 11px;
	font-weight: 700;
}

.cd.is-on {
	box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink), var(--sh-2);
	transform: translateY(-3px);
}

.fields {
	display: grid;
	gap: 10px;
}

.field {
	position: relative;
	display: grid;
	gap: 6px;
}

.field > span {
	font-size: 13px;
	font-weight: 700;
	color: var(--ink-2);
}

.field input,
.field textarea {
	width: 100%;
	padding: 12px 14px;
	border-radius: 14px;
	border: 1.5px solid var(--line-2);
	background: #fff;
	font-size: 16px;
	resize: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--brand);
	box-shadow: 0 0 0 4px rgba(236, 74, 80, 0.12);
}

.field-msg textarea {
	font-family: 'Aref Ruqaa', var(--f-body);
	font-size: 19px;
	line-height: 1.6;
}

.counter {
	position: absolute;
	bottom: 10px;
	left: 12px;
	font-style: normal;
	font-size: 11px;
	color: var(--muted);
}

.msg-ideas .chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.b-pane.is-off .fields,
.b-pane.is-off .card-designs,
.b-pane.is-off .b-label {
	opacity: 0.35;
	pointer-events: none;
}

.no-card {
	margin-top: 4px;
}

.opt-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid var(--line);
	cursor: pointer;
}

.opt-ic {
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: var(--bg-2);
	color: var(--brand);
}

.opt-tx {
	flex: 1;
	display: grid;
	line-height: 1.4;
}

.opt-tx small {
	color: var(--muted);
	font-size: 12.5px;
}

.rv-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.rv-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid var(--line);
	animation: swap-in 0.5s var(--ease) both;
}

.rv-list li:nth-child(2) { animation-delay: 0.05s; }
.rv-list li:nth-child(3) { animation-delay: 0.1s; }
.rv-list li:nth-child(4) { animation-delay: 0.15s; }
.rv-list li:nth-child(5) { animation-delay: 0.2s; }
.rv-list li:nth-child(n + 6) { animation-delay: 0.25s; }

.rv-thumb {
	width: 52px;
	height: 52px;
	flex: none;
	border-radius: 12px;
	object-fit: cover;
	background: var(--bg);
}

.rv-color {
	display: grid;
	place-items: center;
	background: var(--c);
	color: rgba(0, 0, 0, 0.35);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.rv-tx {
	flex: 1;
	display: grid;
	line-height: 1.4;
	min-width: 0;
}

.rv-tx b {
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rv-tx small {
	color: var(--muted);
	font-size: 12.5px;
}

.rv-list em {
	font-style: normal;
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
}

.rv-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 16px;
	background: #fffdf8;
	border: 1px solid var(--line);
}

.rv-card > span {
	font-size: 28px;
}

.rv-card div {
	flex: 1;
	min-width: 0;
}

.rv-card p {
	font-family: 'Aref Ruqaa', var(--f-body);
	font-size: 16px;
	color: var(--ink-2);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rv-note {
	padding: 12px 14px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid var(--line);
	font-size: 14px;
}

.rv-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
	border-radius: 18px;
	background: var(--ink);
	color: #fff;
	margin-top: 4px;
}

.rv-total b {
	font-family: var(--f-display);
	font-size: 22px;
}

.rv-trust {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink-2);
}

.rv-trust li {
	display: flex;
	align-items: center;
	gap: 6px;
}

.rv-trust .ic {
	color: var(--mint);
}

/* bottom bar */
.b-bar {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 60;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px var(--gutter) calc(12px + var(--safe-b));
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: saturate(1.6) blur(18px);
	-webkit-backdrop-filter: saturate(1.6) blur(18px);
	border-top: 1px solid var(--line);
	box-shadow: 0 -10px 30px rgba(60, 20, 20, 0.08);
}

@media (min-width: 980px) {
	.b-bar {
		position: sticky;
		bottom: 16px;
		margin: 18px auto 0;
		border-radius: 22px;
		border: 1px solid var(--line);
		padding: 12px 14px;
	}
	body.app-build.onon-app {
		padding-bottom: 0;
	}
}

.b-back {
	min-height: 52px;
	padding: 0 14px;
}

.b-total {
	flex: 1;
	display: grid;
	line-height: 1.25;
	min-width: 0;
}

.b-total small {
	color: var(--muted);
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.b-total b {
	font-family: var(--f-display);
	font-size: 20px;
	font-weight: 800;
	white-space: nowrap;
}

.b-next {
	padding: 0 18px;
}

.b-next.is-final {
	background: linear-gradient(135deg, #2fbf8f, #1f9e74);
	box-shadow: 0 10px 24px rgba(31, 158, 116, 0.32);
}

.b-next.is-busy {
	opacity: 0.8;
}

@media (max-width: 400px) {
	.b-back span {
		display: none;
	}
	.b-next {
		padding: 0 14px;
		font-size: 14.5px;
	}
}

/* mobile: on the items step the tray takes over from the big stage */
@media (max-width: 979px) {
	.b-head {
		padding-top: 0;
	}
	.b-title .eyebrow {
		display: none;
	}
	.b-steps span {
		font-size: 11px;
	}
	.builder[data-step='1'] .b-stage {
		display: none;
	}
	.builder[data-step='1'] .b-stage-col {
		position: sticky;
		top: var(--top-h);
		z-index: 30;
		margin: 0 calc(var(--gutter) * -1);
		padding: 6px var(--gutter) 8px;
		background: rgba(255, 248, 245, 0.92);
		backdrop-filter: blur(14px);
		-webkit-backdrop-filter: blur(14px);
	}
	.builder[data-step='1'] .b-tray {
		padding: 10px;
	}
	.builder[data-step='1'] .tray-it {
		width: 52px;
		height: 52px;
	}
	.b-stage {
		height: 250px;
	}
	.builder[data-step='2'] .b-stage {
		height: 230px;
	}
	.builder[data-step='2'] .b-tray,
	.builder[data-step='3'] .b-tray {
		display: none;
	}
}

/* ---------------------------------------------------- photo scene stages */

.scene-table {
	background: #e9d7c4 url(../mock/table.webp) center 70% / cover no-repeat !important;
}

.stage.scene-table::before,
.stage[data-type='frame']::before {
	display: none;
}

.stage[data-type='frame'] {
	background: #ece4d8;
}

.is-loading-mock::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 6;
	background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
	background-size: 250% 100%;
	animation: shimmer 1.1s linear infinite;
	pointer-events: none;
}

/* ------------------------------------------------ mobile spacing polish */

.prod-switch {
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
}

@media (max-width: 979px) {
	.stage {
		height: min(56vh, 100vw);
		min-height: 300px;
	}
	.upload-cta {
		grid-auto-flow: column;
		align-items: center;
		gap: 10px;
		padding: 9px 16px 9px 10px;
		border-radius: 999px;
	}
	.upload-cta .up-ring {
		width: 38px;
		height: 38px;
	}
	.upload-cta .up-ring .ic {
		width: 18px;
		height: 18px;
	}
	.upload-cta b {
		font-size: 14.5px;
	}
	.ws-main {
		gap: 10px;
	}
	.tool-body {
		padding: 14px;
	}
	.tool {
		min-width: 60px;
		padding: 8px 6px 6px;
	}
}

/* real product photos on the hub */
.orb-photo {
	width: 74px;
	height: 74px;
	padding: 6px;
	border-radius: 20px;
}

.orb-photo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

@media (min-width: 980px) {
	.orb-photo {
		width: 96px;
		height: 96px;
	}
}

.pa-shot {
	position: absolute;
	height: 92%;
	width: auto;
	bottom: -6%;
	object-fit: contain;
	filter: drop-shadow(0 10px 14px rgba(60, 20, 20, 0.22));
	transition: transform 0.5s var(--spring);
}

.pa-s1 {
	left: 4%;
	transform: rotate(-6deg);
}

.pa-s2 {
	right: 4%;
	transform: rotate(5deg);
}

.p-print .pa-photo {
	width: 28%;
	top: 46%;
	z-index: 2;
	border-width: 3px;
}

.path:hover .pa-s1 {
	transform: rotate(-10deg) translateY(-6px);
}

.path:hover .pa-s2 {
	transform: rotate(9deg) translateY(-6px);
}

@media (max-width: 979px) {
	.hero-cta {
		display: grid;
		grid-template-columns: 1fr 1fr;
		width: 100%;
	}
	.hero-cta .btn-lg {
		min-height: 50px;
		padding: 0 12px;
		font-size: 15px;
	}
	.path-tx b {
		font-size: 18px;
	}
	.path-tx > span {
		font-size: 13.5px;
	}
	.hub-hero {
		padding-bottom: 18px;
	}
	.paths {
		margin-bottom: 40px;
	}
	.occasions,
	.steps3,
	.featured {
		margin-bottom: 40px;
	}
}

/* ===================================================================== */
/*                     PRO EDITOR: sides, inspector, layers              */
/* ===================================================================== */

.side-hosts,
.side-host {
	position: absolute;
	inset: 0;
}

.side-host {
	z-index: 1;
	touch-action: none;
}

.side-tabs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

.side-tab {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px;
	border-radius: 16px;
	background: #fff;
	border: 1.5px solid var(--line);
	text-align: start;
	min-width: 0;
	transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--spring);
}

.side-tab.is-on {
	border-color: var(--ink);
	box-shadow: 0 8px 18px rgba(29, 21, 32, 0.12);
	transform: translateY(-1px);
}

.st-img {
	flex: none;
	width: 40px;
	height: 44px;
	border-radius: 10px;
	background: var(--bg-2);
	display: grid;
	place-items: center;
	overflow: hidden;
}

.st-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.st-img.mirror img {
	transform: scaleX(-1);
}

.st-tx {
	display: grid;
	line-height: 1.25;
	min-width: 0;
}

.st-tx b {
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.st-tx small {
	font-size: 11px;
	color: var(--muted);
}

.side-tab.has .st-tx small {
	color: var(--mint);
	font-weight: 600;
}

.st-dot {
	position: absolute;
	top: -6px;
	left: -6px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--mint);
	color: #fff;
	display: grid;
	place-items: center;
	border: 2px solid #fff;
	transform: scale(0);
	transition: transform 0.35s var(--spring);
}

.st-dot .ic {
	width: 12px;
	height: 12px;
	stroke-width: 3;
}

.side-tab.has .st-dot {
	transform: scale(1);
}

@media (max-width: 560px) {
	.side-tabs {
		gap: 6px;
	}
	.side-tab {
		flex-direction: column;
		gap: 4px;
		padding: 6px 4px;
		text-align: center;
	}
	.st-img {
		width: 100%;
		height: 46px;
	}
	.st-tx small {
		display: none;
	}
}

/* inspector */
.insp {
	display: grid;
	gap: 10px;
	padding: 14px;
	margin-top: 6px;
	border-radius: 18px;
	background: #fbf8f6;
	border: 1px solid var(--line);
}

.insp-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
	font-weight: 700;
	color: var(--ink-2);
}

.insp-head span,
.insp-head em {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.insp-head em {
	font-style: normal;
	color: var(--brand-ink);
	font-size: 12px;
}

.insp-head .ic {
	width: 16px;
	height: 16px;
}

.rng {
	display: grid;
	grid-template-columns: 84px 1fr 46px;
	align-items: center;
	gap: 10px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ink-2);
}

.rng output {
	font-family: var(--f-display);
	font-size: 12px;
	text-align: center;
	color: var(--ink);
	padding: 3px 0;
	border-radius: 8px;
	background: #fff;
	border: 1px solid var(--line);
}

.rng input[type='range'] {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 22px;
	background: transparent;
	cursor: pointer;
	direction: ltr;
}

.rng input[type='range']::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.rng input[type='range']::-moz-range-track {
	height: 4px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.rng input[type='range']::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	margin-top: -8px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--brand);
	box-shadow: var(--sh-1);
}

.rng input[type='range']::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--brand);
}

.arr {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
}

.arr button {
	display: grid;
	justify-items: center;
	gap: 3px;
	padding: 8px 2px 6px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--line);
	font-size: 11px;
	font-weight: 600;
	color: var(--ink-2);
	transition: all 0.2s var(--ease);
}

.arr button .ic {
	width: 19px;
	height: 19px;
}

.arr button:hover {
	border-color: var(--line-2);
}

.arr button:active {
	transform: scale(0.94);
}

.spots {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.spots-l {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 700;
	color: var(--ink-2);
	margin-inline-end: 4px;
}

.spots-l .ic {
	width: 15px;
	height: 15px;
	color: var(--brand);
}

.spots .chip {
	padding: 6px 12px;
	font-size: 12.5px;
}

.spots .chip:active {
	background: var(--ink);
	color: #fff;
}

/* text formatting */
.fmt {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}

.seg {
	display: inline-flex;
	padding: 3px;
	border-radius: 12px;
	background: var(--bg);
	border: 1px solid var(--line);
}

.seg button {
	width: 38px;
	height: 32px;
	display: grid;
	place-items: center;
	border-radius: 9px;
	color: var(--muted);
}

.seg button.is-on {
	background: #fff;
	color: var(--ink);
	box-shadow: var(--sh-1);
}

/* graphics library */
.gfx-cats {
	gap: 6px;
}

.gfx-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
	gap: 8px;
}

.gfx-it {
	display: grid;
	justify-items: center;
	gap: 4px;
	padding: 12px 6px 8px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid var(--line);
	transition: transform 0.2s var(--spring), border-color 0.2s, box-shadow 0.2s;
}

.gfx-it:hover {
	border-color: var(--line-2);
	box-shadow: var(--sh-1);
	transform: translateY(-2px);
}

.gfx-it.pop {
	animation: bump 0.4s var(--spring);
}

.gfx-it .gfx {
	width: 38px;
	height: 38px;
}

.gfx-it small {
	font-size: 10.5px;
	font-weight: 600;
	color: var(--muted);
}

.gfx-grid[style*='#ffffff'] .gfx-it {
	background: #3a3240;
}

/* layers */
.layers {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
}

.ly {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px;
	border-radius: 14px;
	background: #fff;
	border: 1.5px solid var(--line);
	transition: border-color 0.2s;
}

.ly.is-on {
	border-color: var(--brand);
	background: #fff8f6;
}

.ly.is-hidden .ly-main {
	opacity: 0.45;
}

.ly-main {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	text-align: start;
}

.ly-th {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--bg);
	display: grid;
	place-items: center;
	overflow: hidden;
}

.ly-th .gfx {
	width: 26px;
	height: 26px;
}

.ly-th canvas {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ly-tx {
	font-size: 22px;
	line-height: 1;
	background: #f1ecea;
}

.ly-name {
	flex: 1;
	min-width: 0;
	font-size: 13.5px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ly-lk {
	width: 15px;
	height: 15px;
	color: var(--brand-ink);
}

.ly-acts {
	display: flex;
	gap: 2px;
}

.ly-acts button {
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	border-radius: 9px;
	color: var(--ink-2);
}

.ly-acts button:hover {
	background: var(--bg);
}

.ly-acts .ic {
	width: 17px;
	height: 17px;
}

.empty-l {
	display: grid;
	justify-items: center;
	gap: 4px;
	padding: 26px 10px;
	text-align: center;
	color: var(--muted);
	font-size: 13px;
}

.empty-l .ic {
	width: 36px;
	height: 36px;
	color: var(--brand);
	opacity: 0.6;
}

.empty-l b {
	color: var(--ink);
	font-size: 15px;
}

.side-prices {
	display: flex;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 14px;
	background: #fff6e3;
	font-size: 12.5px;
	color: var(--ink-2);
	line-height: 1.6;
}

.side-prices .ic {
	color: var(--gold);
	flex: none;
	margin-top: 2px;
}

.side-prices b {
	display: block;
	color: var(--ink);
	font-size: 13.5px;
}

.ed-sel.is-locked {
	border-style: dashed;
}

.ed-sel.is-locked .ed-rot {
	display: none;
}

.ed-guide {
	transform: translateX(-50%);
}

.ed-gh {
	transform: translateY(-50%);
}

.pcard-sides {
	right: auto;
	left: 14px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--ink);
	font-weight: 700;
	letter-spacing: 0;
}

/* vector art used across pages (occasions, cards, review) */
.gfx {
	display: block;
}

.occ-emo .gfx {
	width: 40px;
	height: 40px;
}

.occ-birthday { color: #f39ab4; }
.occ-love { color: var(--brand); }
.occ-congrats { color: #2b3a67; }
.occ-eid { color: #c9a45c; }
.occ-thanks { color: #e88aa5; }
.occ-minimal { color: var(--gold); }

.gc-art .gfx {
	width: 58px;
	height: 58px;
	margin: 0 auto;
}

.cd-art .gfx {
	width: 26px;
	height: 26px;
	margin: 0 auto;
}

.rv-card > span .gfx {
	width: 30px;
	height: 30px;
	color: var(--brand);
}

.pa-photo .gfx {
	width: 46%;
	height: 46%;
	margin: 27% auto 0;
	color: #fff;
}

.hero-it img {
	object-fit: contain !important;
	padding: 3px;
}

.tools {
	gap: 2px;
	padding: 6px;
}

.tools .tool {
	flex: 1 1 0;
	min-width: 54px;
	padding: 8px 2px 7px;
	font-size: 11.5px;
	white-space: nowrap;
}

.tools .tool .ic {
	width: 21px;
	height: 21px;
}

.tool.is-on .ic {
	transform: scale(1.06);
}

.zoom-btn {
	width: auto;
	padding: 0 12px;
	gap: 6px;
	display: inline-flex;
	align-items: center;
	font-size: 12.5px;
	font-weight: 700;
}

.zoom-btn .ic {
	width: 17px;
	height: 17px;
}

.st-img.sleeve img {
	object-fit: cover;
	object-position: 50% 44%;
}

/* templates */
.tpl-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.tpl-grid.wide {
	grid-template-columns: 1fr;
}

.tpl {
	display: grid;
	gap: 6px;
	padding: 6px 6px 8px;
	border-radius: 16px;
	background: #fff;
	border: 1.5px solid var(--line);
	text-align: center;
	transition: transform 0.25s var(--spring), border-color 0.2s, box-shadow 0.25s;
}

.tpl:hover {
	border-color: var(--line-2);
	box-shadow: var(--sh-2);
	transform: translateY(-2px);
}

.tpl.is-busy {
	opacity: 0.6;
	pointer-events: none;
}

.tpl-th {
	display: block;
	border-radius: 11px;
	overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.tpl-th canvas {
	display: block;
	width: 100%;
	height: auto;
}

.tpl b {
	font-size: 13px;
}

/* background removal */
.cutout-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 16px;
	text-align: start;
	background: linear-gradient(135deg, #f3efff, #ffeef3);
	border: 1px solid rgba(124, 92, 255, 0.2);
	transition: transform 0.2s var(--spring), box-shadow 0.2s;
}

.cutout-btn:hover {
	box-shadow: var(--sh-1);
}

.cutout-btn:active {
	transform: scale(0.98);
}

.cut-ic {
	width: 40px;
	height: 40px;
	flex: none;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: var(--violet);
	color: #fff;
}

.cutout-btn span:last-child {
	display: grid;
	line-height: 1.4;
}

.cutout-btn small {
	color: var(--ink-2);
	font-size: 12px;
}

.cutout-btn.is-done {
	background: #e9f8f1;
	border-color: rgba(34, 167, 122, 0.25);
	cursor: default;
}

.cutout-btn.is-done .cut-ic {
	background: var(--mint);
}

/* autosave */
.save-state {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 6px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--muted);
}

.save-state .ic {
	width: 13px;
	height: 13px;
	stroke-width: 2.6;
	color: var(--mint);
}

.save-state.flash {
	animation: saved 1.2s var(--ease);
}

@keyframes saved {
	20% {
		color: var(--mint);
	}
}

.draft-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 12px 10px;
	padding: 10px 12px;
	border-radius: 16px;
	background: linear-gradient(135deg, #fff1d6, #ffe3dd);
	animation: swap-in 0.4s var(--ease);
}

.draft-bar > .ic {
	color: var(--brand);
	flex: none;
}

.draft-bar span {
	flex: 1;
	display: grid;
	line-height: 1.35;
	min-width: 0;
}

.draft-bar b {
	font-size: 13.5px;
}

.draft-bar small {
	font-size: 11.5px;
	color: var(--ink-2);
}

.draft-bar .btn {
	min-height: 36px;
	padding: 0 12px;
	font-size: 13px;
}

@media (max-width: 979px) {
	.draft-bar {
		margin: 10px 10px 0;
		flex-wrap: wrap;
	}
}

/* the panel scrolls its body; header rows never shrink */
.panel > .panel-head,
.panel > .tools,
.panel > .draft-bar {
	flex: none;
}

.panel > .tool-body {
	flex: 1 1 auto;
	min-height: 0;
}
