/* Demo cart overlay — only injected on Cloudflare Pages static mirror. */
:root {
	--demo-cherry: #c01e3c;
	--demo-cherry-deep: #9e1530;
	--demo-ink: #241f1c;
	--demo-muted: #6b5e55;
	--demo-paper: #faf6f2;
	--demo-border: rgba(203, 184, 171, 0.5);
}

body.as-demo-cart-ready .as-cart__count:not(.is-empty) {
	display: inline-flex;
}

.as-demo-toast {
	position: fixed;
	z-index: 99999;
	left: 50%;
	bottom: 1.5rem;
	transform: translateX(-50%) translateY(120%);
	padding: .75rem 1.1rem;
	border-radius: .75rem;
	background: var(--demo-ink);
	color: #fff;
	font-size: .9rem;
	font-weight: 600;
	box-shadow: 0 12px 28px rgba(36, 31, 28, .22);
	opacity: 0;
	transition: transform .28s cubic-bezier(.22, 1, .36, 1), opacity .28s ease;
	pointer-events: none;
}
.as-demo-toast.is-on {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}

.as-demo-drawer-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: .85rem;
}
.as-demo-drawer-item {
	display: grid;
	grid-template-columns: 4.25rem minmax(0, 1fr);
	gap: .75rem;
	align-items: start;
}
.as-demo-drawer-item img {
	width: 4.25rem;
	height: 5.25rem;
	object-fit: cover;
	border-radius: .55rem;
	background: var(--demo-paper);
}
.as-demo-drawer-item__title {
	margin: 0;
	font-size: .95rem;
	font-weight: 600;
	color: var(--demo-ink);
	line-height: 1.3;
}
.as-demo-drawer-item__meta {
	margin: .2rem 0 0;
	color: var(--demo-muted);
	font-size: .82rem;
}
.as-demo-drawer-item__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	margin-top: .45rem;
}
.as-demo-drawer-item__price {
	font-weight: 700;
	color: var(--demo-cherry-deep);
	font-size: .92rem;
}
.as-demo-drawer-item__remove {
	border: 0;
	background: none;
	color: var(--demo-muted);
	font-size: .8rem;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
}
.as-demo-drawer-item__remove:hover { color: var(--demo-cherry-deep); }

.as-demo-drawer-foot {
	display: grid;
	gap: .65rem;
	margin-top: 1rem;
	padding-top: .85rem;
	border-top: 1px solid var(--demo-border);
}
.as-demo-drawer-total {
	display: flex;
	justify-content: space-between;
	font-weight: 700;
}
.as-demo-drawer-actions {
	display: grid;
	gap: .5rem;
}
.as-demo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.55rem;
	padding: .65rem 1.1rem;
	border-radius: .65rem;
	border: 0;
	background: var(--demo-cherry);
	color: #fff !important;
	font-weight: 700;
	font-size: .92rem;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: 0 10px 20px rgba(165, 23, 54, .18);
}
.as-demo-btn:hover { background: var(--demo-cherry-deep); }
.as-demo-btn--ghost {
	background: transparent;
	color: var(--demo-ink) !important;
	border: 1px solid var(--demo-border);
	box-shadow: none;
}

/* Standalone cart / checkout pages */
.as-demo-page {
	max-width: 42rem;
	margin: 0 auto;
	padding: clamp(5rem, 8vw, 6.5rem) clamp(1.1rem, 4vw, 2rem) 4rem;
}
.as-demo-page__eyebrow {
	margin: 0 0 .35rem;
	color: var(--demo-cherry-deep);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.as-demo-page h1 {
	margin: 0 0 1.1rem;
	font-family: "Fraunces", Georgia, serif;
	font-weight: 500;
	font-size: clamp(1.85rem, 4vw, 2.5rem);
	line-height: 1.1;
}
.as-demo-card {
	padding: 1.15rem 1.2rem 1.25rem;
	border: 1px solid var(--demo-border);
	border-radius: 1rem;
	background: rgba(255, 255, 255, .62);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
}
.as-demo-lines {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
}
.as-demo-line {
	display: grid;
	grid-template-columns: 5rem minmax(0, 1fr);
	gap: .85rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--demo-border);
}
.as-demo-line:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}
.as-demo-line img {
	width: 5rem;
	height: 6.2rem;
	object-fit: cover;
	border-radius: .65rem;
	background: var(--demo-paper);
}
.as-demo-line__title {
	margin: 0;
	font-weight: 600;
	font-size: 1rem;
}
.as-demo-line__meta {
	margin: .25rem 0 0;
	color: var(--demo-muted);
	font-size: .88rem;
}
.as-demo-qty {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	margin-top: .55rem;
}
.as-demo-qty button {
	width: 1.85rem;
	height: 1.85rem;
	border-radius: .45rem;
	border: 1px solid var(--demo-border);
	background: #fff;
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
}
.as-demo-qty span {
	min-width: 1.5rem;
	text-align: center;
	font-weight: 600;
}
.as-demo-summary {
	display: flex;
	justify-content: space-between;
	margin-top: 1rem;
	padding-top: .85rem;
	border-top: 1px solid var(--demo-border);
	font-size: 1.05rem;
	font-weight: 700;
}
.as-demo-form {
	display: grid;
	gap: .75rem;
	margin-top: 1rem;
}
.as-demo-form label {
	display: grid;
	gap: .28rem;
	font-size: .78rem;
	font-weight: 600;
	color: var(--demo-muted);
}
.as-demo-form input,
.as-demo-form textarea {
	min-height: 2.55rem;
	padding: .5rem .7rem;
	border-radius: .65rem;
	border: 1px solid rgba(190, 168, 155, .7);
	background: #fff;
	font: inherit;
	color: var(--demo-ink);
}
.as-demo-form textarea { min-height: 5rem; resize: vertical; }
.as-demo-empty {
	color: var(--demo-muted);
	margin: 0;
}
.as-demo-banner {
	margin: 0 0 1rem;
	padding: .75rem .9rem;
	border-radius: .75rem;
	background: rgba(192, 30, 60, .1);
	color: var(--demo-cherry-deep);
	font-size: .88rem;
	font-weight: 500;
}
.as-demo-thanks {
	text-align: left;
}
.as-demo-thanks p {
	color: var(--demo-muted);
	max-width: 28rem;
}
