/* Shop (Version 3, Part 3.2): the gallery /shop/, the template page /shop/<slug>/ and the closed
   page. Theme tokens only (main.css :root); the light sections use the .cinvite colours of
   main.css (invitations only). Phone first: one column, then wider from 768 and 1000 px. */

/* The bar the administrator sees while the shop is closed ------------------------------- */
.shop-closedbar {
	border-bottom: 1px solid rgba(255, 173, 51, 0.35);
	background: var(--accent-soft);
	color: var(--text);
	font-size: var(--fs-sm);
}
.shop-closedbar__in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-2) var(--sp-4);
	padding-block: var(--sp-3);
}
.shop-closedbar__in strong {
	color: var(--accent);
}
.shop-closedbar__in a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-left: auto;
	color: var(--primary);
	font-weight: 600;
}
.shop-flash:empty {
	display: none;
}

/* Type tabs and filters ------------------------------------------------------------------- */
.shop-tabs-wrap {
	margin-top: var(--sp-4);
}
.shop-tabs {
	position: relative;   /* the screen-reader text of a Soon tab stays inside the scrolling row */
	display: flex;
	gap: var(--sp-2);
	overflow-x: auto;
	padding-bottom: var(--sp-3);
	border-bottom: 1px solid var(--line);
	scrollbar-width: none;
}
.shop-tabs::-webkit-scrollbar {
	display: none;
}
.shop-tab {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 0.5em;
	min-height: 44px;
	padding: 0 1em;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	color: var(--text-2);
	font-size: var(--fs-sm);
	font-weight: 600;
	white-space: nowrap;
}
.shop-tab:hover {
	color: var(--text);
	text-decoration: none;
}
.shop-tab.is-on {
	border-color: var(--line-2);
	background: var(--bg-3);
	color: var(--text);
}
.shop-tab--soon {
	color: var(--text-3);
	cursor: default;
}
.shop-soon {
	display: inline-flex;
	align-items: center;
	padding: 0.15em 0.6em;
	border-radius: var(--radius-pill);
	background: #fde7a8;
	color: #7a4a00;
	font-size: 0.6875rem;
	font-weight: 700;
}
.shop-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-3) var(--sp-5);
}
.shop-filter {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	min-width: 0;
}
.shop-filter--grow {
	flex: 1 1 320px;
}
.shop-filter--grow .fchips {
	flex: 1 1 auto;
	min-width: 0;
}
.shop-filter__label {
	color: var(--text-3);
	font-size: var(--fs-eyebrow);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
}
.shop-price {
	margin-left: auto;
}

/* The list ---------------------------------------------------------------------------------- */
.shop-list {
	margin-top: var(--sp-6);
}
.shop-list__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--sp-2);
	margin-bottom: var(--sp-4);
}
.shop-list__title {
	margin: 0;
	font-size: var(--fs-h3);
}
.shop-list__count {
	margin: 0;
	color: var(--text-2);
	font-size: var(--fs-sm);
}
.shop-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--sp-5);
}
@media (min-width: 768px) {
	.shop-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (min-width: 1000px) {
	.shop-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
.shop-none {
	max-width: 640px;
}
.shop-none__tag {
	display: inline-block;
	margin: 0 0 var(--sp-2);
	padding: 0.2em 0.7em;
	border: 1px solid rgba(255, 173, 51, 0.45);
	border-radius: var(--radius-pill);
	color: var(--accent);
	font-size: var(--fs-xs);
	font-weight: 600;
}

/* A card ------------------------------------------------------------------------------------- */
.scard {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--bg-2);
}
.scard__media {
	position: relative;
	display: block;
	padding: var(--sp-4) var(--sp-4) 0;
	background: radial-gradient(120% 80% at 80% 0%, rgba(34, 211, 238, 0.16), transparent 60%), var(--bg-3);
}
.scard__frame {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border: 1px solid var(--line-2);
	border-bottom: 0;
	border-radius: var(--radius) var(--radius) 0 0;
	background: var(--bg);
}
.scard__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform 0.4s ease;
}
.scard__img--none {
	background: linear-gradient(135deg, #1a2338, #2f3b5a);
}
.scard:hover .scard__img {
	transform: scale(1.02);
}
.scard__views,
.scard__state,
.scard__owned {
	position: absolute;
	top: calc(var(--sp-4) + var(--sp-2));
	padding: 0.25em 0.7em;
	border-radius: var(--radius-pill);
	background: rgba(11, 15, 26, 0.86);
	color: var(--text);
	font-size: var(--fs-xs);
	font-weight: 600;
}
.scard__views {
	left: calc(var(--sp-4) + var(--sp-2));
}
.scard__state,
.scard__owned {
	right: calc(var(--sp-4) + var(--sp-2));
}
.scard__state {
	color: var(--accent);
}
.scard__owned {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	border: 1px solid rgba(74, 222, 128, 0.5);
	color: var(--ok);
}
.scard__body {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--sp-3);
	padding: var(--sp-4) var(--sp-5) var(--sp-5);
}
.scard__text {
	min-width: 0;
}
.scard__title {
	margin: 0 0 var(--sp-2);
	font-size: var(--fs-lg);
	line-height: 1.25;
}
.scard__title a {
	color: var(--text);
}
.scard__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.scard__title a:focus-visible {
	outline: none;
}
.scard:focus-within {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}
.scard__tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
	margin: 0;
	padding: 0;
	list-style: none;
}
.scard__tags li,
.shop-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.2em 0.7em;
	border: 1px solid var(--line-2);
	border-radius: var(--radius-pill);
	color: var(--text);
	font-size: var(--fs-xs);
	font-weight: 600;
	white-space: nowrap;
}
.scard__price {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	margin: 0;
	text-align: right;
	white-space: nowrap;
}
.scard__price strong {
	font-size: var(--fs-lg);
	font-variant-numeric: tabular-nums;
}
.scard__price span {
	color: var(--text-2);
	font-size: var(--fs-xs);
}

/* Phones: the creator plans in one light card above the list (mock-up 09) -------------------- */
.shop-promo {
	margin-bottom: var(--sp-5);
	padding: var(--sp-5);
	border-radius: var(--radius-lg);
	background: linear-gradient(180deg, #dff5fb 0%, #cdeef7 100%);
	color: #2c3a55;
}
.shop-promo__title {
	margin: 0 0 var(--sp-2);
	color: #0b1324;
	font-family: var(--font-display);
	font-size: var(--fs-lg);
	font-weight: 700;
}
.shop-promo__text {
	margin: 0 0 var(--sp-4);
	font-size: var(--fs-sm);
}
.shop-promo .cinvite__btn {
	--ci-ink: #0b1324;
}
@media (min-width: 768px) {
	.shop-promo {
		display: none;
	}
}

/* The light section "Two ways to get a template" ------------------------------------------- */
.shop-how .cinvite__text {
	margin-bottom: var(--sp-6);
}
.shop-how__n {
	margin: 0 0 var(--sp-2);
	color: var(--ci-label);
	font-family: var(--font-display);
	font-size: 1.75rem;
	font-weight: 750;
	line-height: 1;
}
.shop-how .cinvite__name {
	padding-bottom: var(--sp-3);
	border-bottom: 1.5px solid var(--ci-ink);
}
.shop-how .cinvite__top .cinvite__name {
	border-bottom: 0;
	padding-bottom: 0;
}
@media (min-width: 768px) {
	.shop-how__cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* The template page ------------------------------------------------------------------------- */
.shop-crumbs {
	padding-top: var(--sp-5);
	color: var(--text-2);
	font-size: var(--fs-sm);
}
.shop-crumbs a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--text-2);
}
.shop-crumbs [aria-current] {
	color: var(--text);
}
.shop-page {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--sp-6);
	align-items: start;
	padding-bottom: var(--sp-6);
}
@media (min-width: 1000px) {
	.shop-page {
		grid-template-columns: minmax(0, 1fr) 360px;
		gap: var(--sp-7);
	}
	.shop-page__side {
		position: sticky;
		top: calc(var(--header-h) + var(--sp-4));
	}
}
.shop-media__video {
	position: relative;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--bg-3);
}
.shop-video,
.shop-media__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: var(--bg);
}
.shop-media__cap {
	position: absolute;
	left: var(--sp-3);
	bottom: calc(var(--sp-3) + 44px);
	padding: 0.25em 0.75em;
	border-radius: var(--radius-pill);
	background: rgba(11, 15, 26, 0.86);
	color: var(--text);
	font-size: var(--fs-xs);
	font-weight: 600;
	pointer-events: none;
}
.shop-thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: var(--sp-2);
	margin: var(--sp-3) 0 0;
	padding: 0;
	list-style: none;
}
.shop-thumbs a {
	display: block;
	overflow: hidden;
	min-height: 44px;
	border: 1px solid var(--line-2);
	border-radius: var(--radius-sm);
}
.shop-thumbs a:hover {
	border-color: var(--primary);
}
.shop-thumbs__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}
.shop-title {
	margin-top: var(--sp-5);
}
.shop-title__eyebrow {
	margin: 0 0 var(--sp-2);
	color: var(--primary);
	font-size: var(--fs-eyebrow);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.shop-title__name {
	margin: 0 0 var(--sp-3);
	font-size: var(--fs-2xl);
	line-height: var(--lh-tight);
}
.shop-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-2);
	margin: 0;
	padding: 0;
	list-style: none;
}
.shop-meta__from {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	margin-right: var(--sp-2);
	color: var(--text-2);
	font-size: var(--fs-sm);
}
.shop-meta__from strong {
	color: var(--text);
}
.shop-meta__logo {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--primary);
	color: var(--on-primary);
	font-size: 0.6875rem;
	font-weight: 800;
}
.shop-pill--licence {
	border-color: rgba(34, 211, 238, 0.55);
	color: var(--primary);
}
.shop-title__line {
	margin: var(--sp-4) 0 0;
	color: var(--text);
	font-size: var(--fs-lg);
}
.shop-text {
	margin-top: var(--sp-4);
	color: var(--text-2);
	line-height: var(--lh-body);
}
.shop-text p {
	margin: 0 0 var(--sp-3);
}
.shop-sec {
	margin-top: var(--sp-7);
}
.shop-sec__title {
	margin: 0 0 var(--sp-4);
	font-size: var(--fs-h3);
}
.shop-glance {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--sp-3);
	margin: 0;
}
@media (min-width: 768px) {
	.shop-glance {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
.shop-glance div {
	padding: var(--sp-4);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg-2);
}
.shop-glance dt {
	color: var(--text-2);
	font-size: var(--fs-xs);
}
.shop-glance dd {
	margin: var(--sp-1) 0 0;
	font-weight: 650;
}
.shop-prompt {
	overflow: hidden;
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	background: var(--bg-2);
}
.shop-prompt__text {
	position: relative;
	margin: 0;
	padding: var(--sp-5);
	max-height: 13em;
	overflow: hidden;
	color: var(--text-2);
	font-size: var(--fs-sm);
	line-height: 1.7;
	white-space: pre-line;
}
.shop-prompt__text::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 4em;
	background: linear-gradient(180deg, transparent, var(--bg-2));
}
.shop-prompt__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-2);
	margin: 0;
	padding: var(--sp-3) var(--sp-5);
	border-top: 1px solid var(--line);
	background: var(--bg-3);
	color: var(--text-2);
	font-size: var(--fs-sm);
}
.shop-lock {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.2em 0.7em;
	border: 1px solid rgba(255, 173, 51, 0.55);
	border-radius: var(--radius-pill);
	color: var(--accent);
	font-size: var(--fs-xs);
	font-weight: 700;
}
.shop-steps {
	display: grid;
	gap: var(--sp-3);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: shopstep;
}
.shop-steps li {
	position: relative;
	padding: var(--sp-4) var(--sp-4) var(--sp-4) calc(var(--sp-4) + 2.4rem);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg-2);
	counter-increment: shopstep;
}
.shop-steps li::before {
	content: counter(shopstep);
	position: absolute;
	left: var(--sp-4);
	top: var(--sp-4);
	display: grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: var(--primary-soft);
	color: var(--primary);
	font-weight: 750;
	font-size: var(--fs-sm);
}
.shop-two {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0 var(--sp-6);
}
@media (min-width: 900px) {
	.shop-two {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
.shop-ticks {
	margin: 0;
	padding: 0;
	list-style: none;
}
.shop-ticks li {
	display: flex;
	gap: var(--sp-3);
	padding: var(--sp-3) 0;
	border-bottom: 1px solid var(--line);
}
.shop-ticks .icon {
	flex: 0 0 auto;
	margin-top: 0.2em;
	color: var(--primary);
}
.shop-files {
	margin: 0;
	padding: var(--sp-2) var(--sp-4);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg-2);
	list-style: none;
}
.shop-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-2);
	padding: var(--sp-3) 0;
	border-bottom: 1px solid var(--line);
}
.shop-file:last-child {
	border-bottom: 0;
}
.shop-file__main {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.shop-file__name {
	overflow-wrap: anywhere;
	font-size: var(--fs-sm);
	font-weight: 600;
}
.shop-file__size {
	color: var(--text-2);
	font-size: var(--fs-xs);
}
.shop-scan {
	padding: 0.2em 0.7em;
	border: 1px solid var(--line-2);
	border-radius: var(--radius-pill);
	color: var(--text-2);
	font-size: var(--fs-xs);
	font-weight: 600;
	white-space: nowrap;
}
.shop-scan.is-clean {
	border-color: rgba(74, 222, 128, 0.5);
	color: var(--ok);
}
.shop-licence {
	margin: 0;
}
.shop-licence div {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--sp-1);
	padding: var(--sp-3) 0;
	border-bottom: 1px solid var(--line);
}
@media (min-width: 600px) {
	.shop-licence div {
		grid-template-columns: 9rem minmax(0, 1fr);
		gap: var(--sp-4);
	}
}
.shop-licence dt {
	color: var(--text-2);
	font-size: var(--fs-sm);
}
.shop-licence dd {
	margin: 0;
	font-size: var(--fs-sm);
}

/* The buy box ---------------------------------------------------------------------------------- */
.shop-box {
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
	padding: var(--sp-5);
	border: 1px solid var(--line-2);
	border-radius: var(--radius-lg);
	background: var(--bg-2);
}
.shop-box + .shop-box {
	margin-top: var(--sp-4);
}
.shop-box__label {
	margin: 0;
	padding: 0;
	color: var(--text-2);
	font-size: var(--fs-eyebrow);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.shop-box__small {
	margin: 0;
	color: var(--text-2);
	font-size: var(--fs-xs);
	line-height: 1.5;
}
.shop-buy {
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
}
.shop-eds {
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
	margin: 0;
	padding: 0;
	border: 0;
}
.shop-eds legend {
	margin-bottom: var(--sp-3);
}
.shop-ed {
	display: flex;
	gap: var(--sp-3);
	padding: var(--sp-4);
	border: 1px solid var(--line-2);
	border-radius: var(--radius);
	cursor: pointer;
}
.shop-ed:has(input:checked) {
	border-color: var(--primary);
	background: var(--primary-soft);
}
.shop-ed input {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 0.15em;
	accent-color: var(--primary);
}
.shop-ed__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}
.shop-ed__top {
	display: flex;
	justify-content: space-between;
	gap: var(--sp-2);
	font-weight: 650;
}
.shop-ed__price {
	font-variant-numeric: tabular-nums;
}
.shop-ed__desc {
	margin-top: var(--sp-1);
	color: var(--text-2);
	font-size: var(--fs-xs);
	line-height: 1.5;
}
.shop-tick {
	display: flex;
	gap: var(--sp-3);
	align-items: flex-start;
	min-height: 44px;
	color: var(--text);
	font-size: var(--fs-xs);
	line-height: 1.5;
	cursor: pointer;
}
.shop-tick input {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 0.1em 0 0;
	accent-color: var(--primary);
}
.shop-own {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	margin: 0;
	color: var(--ok);
	font-size: var(--fs-sm);
	font-weight: 600;
}
.shop-plans {
	padding: var(--sp-4);
	border-radius: var(--radius);
	background: linear-gradient(180deg, #dff5fb 0%, #cdeef7 100%);
	color: #2c3a55;
}
.shop-plans__label {
	margin: 0 0 var(--sp-2);
	color: #0e7490;
	font-size: var(--fs-xs);
	font-weight: 700;
}
.shop-plans__text {
	margin: 0 0 var(--sp-3);
	color: #0b1324;
	font-size: var(--fs-sm);
	line-height: 1.5;
}
.shop-plans__go {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border-radius: var(--radius-sm);
	background: #0b1324;
	color: #ffffff;
	font-size: var(--fs-sm);
	font-weight: 650;
}
.shop-plans__go:hover {
	background: #1d2a45;
	color: #ffffff;
	text-decoration: none;
}
.shop-plans__go:focus-visible {
	outline: 2px solid #0b1324;
	outline-offset: 3px;
}
.shop-claim__left {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--sp-2);
	margin: 0;
}
.shop-claim__left span {
	color: var(--text-2);
	font-size: var(--fs-xs);
}
.shop-claim__form {
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
}
.shop-claim__go {
	border-color: var(--primary);
	background: var(--primary);
	color: var(--on-primary);
}
.shop-claim__go:hover {
	background: #67e8f9;
	color: var(--on-primary);
}
.shop-more {
	padding-bottom: var(--sp-8);
}

/* The closed shop (mock-up 03) --------------------------------------------------------------- */
.site-main:has(> .shop-soon-page) {
	padding-bottom: 0;
}
.shop-soon-page {
	margin-top: 0;
	text-align: center;
}
.shop-soon-page__in {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.shop-soon-page__title {
	max-width: 14em;
	margin: 0 0 var(--sp-4);
	color: var(--ci-ink);
	font-family: var(--font-display);
	font-size: var(--fs-3xl);
	line-height: 1.04;
	letter-spacing: var(--tracking-tight);
}
.shop-soon-page__text {
	max-width: 36em;
	margin: 0 0 var(--sp-6);
	color: var(--ci-body);
	font-size: var(--fs-lg);
	line-height: 1.55;
}
.shop-soon-page__actions {
	justify-content: center;
}
.shop-soon-page__cards {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--sp-5);
	width: 100%;
	margin-top: var(--sp-7);
}
@media (min-width: 768px) {
	.shop-soon-page__cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
.shop-ghost {
	display: block;
	aspect-ratio: 16 / 10;
	border-radius: var(--radius-lg);
	filter: blur(10px);
	opacity: 0.9;
	box-shadow: 0 18px 40px rgba(11, 19, 36, 0.25);
}
.shop-ghost--1 {
	background: radial-gradient(60% 50% at 50% 80%, #ff9a3c 0%, transparent 70%), radial-gradient(40% 40% at 30% 30%, #8b5cf6 0%, transparent 70%), #1a2338;
}
.shop-ghost--2 {
	background: radial-gradient(45% 45% at 70% 40%, #f59e0b 0%, transparent 70%), radial-gradient(40% 30% at 25% 60%, #22d3ee 0%, transparent 70%), #1a2338;
}
.shop-ghost--3 {
	background: radial-gradient(50% 40% at 70% 60%, #ec4899 0%, transparent 70%), radial-gradient(40% 30% at 30% 40%, #6366f1 0%, transparent 70%), #1a2338;
}
@media (max-width: 767px) {
	.shop-ghost--2,
	.shop-ghost--3 {
		display: none;
	}
}

/* Buttons of the shop pages (the account area has its own .btn) ------------------------------- */
.sbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	min-height: 44px;
	padding: 0 1.2em;
	border: 1px solid var(--line-2);
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--text);
	font-size: var(--fs-sm);
	font-weight: 650;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
}
.sbtn:hover {
	background: var(--bg-3);
	color: var(--text);
	text-decoration: none;
}
.sbtn:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}
.sbtn--primary {
	border-color: var(--cta);
	background: var(--cta);
	color: var(--on-cta);
}
.sbtn--primary:hover {
	border-color: var(--cta-hover);
	background: var(--cta-hover);
	color: var(--on-cta);
}
.sbtn--full {
	width: 100%;
}
.sbtn--small {
	padding: 0 0.9em;
	font-size: var(--fs-xs);
}

/* Phones and tablets (mock-up 09): the buy box comes right after the name, before the long text */
@media (max-width: 999px) {
	.shop-page {
		row-gap: 0;
	}
	.shop-page__main {
		display: contents;
	}
	.shop-page__main > * {
		order: 4;
	}
	.shop-page__main > .shop-media {
		order: 1;
	}
	.shop-page__main > .shop-title {
		order: 2;
	}
	.shop-page__side {
		order: 3;
		margin-top: var(--sp-5);
	}
}

/* A product type that is "coming soon": a small light panel inside the shop (the approved light colour) */
.shop-typesoon-wrap {
	margin-top: var(--sp-6);
	margin-bottom: var(--sp-8);
}
.shop-typesoon {
	--ci-ink: #0b1324;
	max-width: 640px;
	padding: var(--sp-6);
	border-radius: var(--radius-lg);
	background: linear-gradient(180deg, #dff5fb 0%, #cdeef7 100%);
	color: #2c3a55;
}
.shop-typesoon__label {
	margin: 0 0 var(--sp-2);
	color: #0e7490;
	font-size: var(--fs-eyebrow);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.shop-typesoon__title {
	margin: 0 0 var(--sp-3);
	color: #0b1324;
	font-family: var(--font-display);
	font-size: var(--fs-xl);
	line-height: 1.15;
}
.shop-typesoon__text {
	margin: 0 0 var(--sp-5);
	font-size: var(--fs-base);
	line-height: 1.55;
}

/* Features, technical details, tags ------------------------------------------------------------ */
.shop-ticks--features li {
	border-bottom: 0;
	padding: var(--sp-2) 0;
}
.shop-tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
	margin: var(--sp-4) 0 0;
	padding: 0;
	list-style: none;
}
.shop-tags a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0 0.8em;
	border: 1px solid var(--line-2);
	border-radius: var(--radius-pill);
	color: var(--text-2);
	font-size: var(--fs-xs);
}
.shop-tags a:hover {
	border-color: var(--primary);
	color: var(--text);
	text-decoration: none;
}
.shop-thumbs a {
	cursor: zoom-in;
}

/* The picture viewer (full screen) ----------------------------------------------------------- */
.shop-viewer-open,
.shop-viewer-open body {
	overflow: hidden;
}
.shop-viewer {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(5, 8, 15, 0.95);
}
.shop-viewer[hidden] {
	display: none;
}
.shop-viewer__stage {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--sp-3);
	margin: 0;
	max-width: 100%;
	padding: 64px 72px;
	touch-action: pan-y;
	user-select: none;
}
.shop-viewer__img {
	display: block;
	max-width: min(1400px, 100%);
	max-height: calc(100vh - 180px);
	max-height: calc(100dvh - 180px);
	object-fit: contain;
	border-radius: var(--radius);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.shop-viewer__cap {
	color: var(--text-2);
	font-size: var(--fs-sm);
	text-align: center;
	white-space: pre-wrap;
}
.shop-viewer__btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--line-2);
	border-radius: 50%;
	background: rgba(19, 26, 43, 0.92);
	color: var(--text);
	cursor: pointer;
}
.shop-viewer__btn:hover {
	border-color: var(--primary);
	color: var(--primary);
}
.shop-viewer__btn:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}
.shop-viewer__prev {
	left: var(--sp-4);
	top: 50%;
	transform: translateY(-50%);
}
.shop-viewer__next {
	right: var(--sp-4);
	top: 50%;
	transform: translateY(-50%);
}
.shop-viewer__close {
	top: var(--sp-4);
	right: var(--sp-4);
}
@media (max-width: 700px) {
	.shop-viewer__stage {
		padding: 64px var(--sp-3) 96px;
	}
	.shop-viewer__prev,
	.shop-viewer__next {
		top: auto;
		bottom: var(--sp-5);
		transform: none;
	}
	.shop-viewer__prev {
		left: calc(50% - 64px);
	}
	.shop-viewer__next {
		right: calc(50% - 64px);
	}
}

/* Legal links (2026-11-20): "Digital Product Licence" beside the Commercial licence chip, and
   "Terms" and "Licence" under the tick box of the buy box and the claim box. */
.shop-meta__licence a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	color: var(--text-2);
	font-size: var(--fs-xs);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.shop-meta__licence a:hover {
	color: var(--primary);
}
.shop-legal {
	margin: calc(var(--sp-2) * -1) 0 var(--sp-3) calc(20px + var(--sp-3));
	color: var(--text-3);
	font-size: var(--fs-xs);
}
.shop-legal a {
	display: inline-block;
	padding: 4px 0;
	color: var(--text-2);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.shop-legal a:hover {
	color: var(--primary);
}

/* "Live demo" made easy to find (21 Nov 2026) ------------------------------------------------
   1. A pill over the preview video, top right, clear of the video controls; on phones it sits
      under the video, full width. 2. The buy box button: cyan outline and text, a small "live"
      dot that pulses (no pulse with reduced motion), the arrow. 3. A chip on the gallery cards:
      on hover on a desktop, always on phones; it sits above the card link, so it opens the demo
      in a new tab and never the card. */
.shop-media {
	position: relative;
}
.shop-demo-pill {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	min-height: 44px;
	margin-top: var(--sp-3);
	padding: 0 1.1em;
	border: 1px solid var(--primary);
	border-radius: var(--radius-pill);
	background: var(--primary-soft);
	color: var(--primary);
	font-size: var(--fs-sm);
	font-weight: 700;
	line-height: 1.2;
	box-shadow: 0 0 18px rgba(34, 211, 238, 0.28);
}
.shop-demo-pill:hover {
	background: rgba(34, 211, 238, 0.24);
	color: var(--primary);
	text-decoration: none;
}
.shop-demo-pill:focus-visible,
.scard__demo:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}
@media (min-width: 768px) {
	.shop-demo-pill {
		position: absolute;
		top: var(--sp-4);
		right: var(--sp-4);
		z-index: 2;
		margin-top: 0;
		background: rgba(11, 15, 26, 0.62);
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
	}
	.shop-demo-pill:hover {
		background: rgba(11, 15, 26, 0.8);
	}
}

.sbtn--demo {
	border-color: var(--primary);
	color: var(--primary);
}
.sbtn--demo:hover {
	background: var(--primary-soft);
	color: var(--primary);
}
.shop-demo__dot {
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--primary);
	animation: shop-live 1.8s ease-out infinite;
}
@keyframes shop-live {
	0% {
		box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.65);
	}
	70%,
	100% {
		box-shadow: 0 0 0 7px rgba(34, 211, 238, 0);
	}
}
.shop-buy__code {
	margin-top: var(--sp-2);
	text-align: center;
}

.scard__demo {
	position: absolute;
	top: calc(var(--sp-4) + var(--sp-2));
	right: calc(var(--sp-4) + var(--sp-2));
	z-index: 2;   /* above the card link (the title's ::after covers the whole card) */
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	min-height: 32px;
	padding: 0 0.8em;
	border: 1px solid var(--primary);
	border-radius: var(--radius-pill);
	background: rgba(11, 15, 26, 0.8);
	color: var(--primary);
	font-size: var(--fs-xs);
	font-weight: 700;
	box-shadow: 0 0 14px rgba(34, 211, 238, 0.25);
	transition: opacity 0.2s var(--ease);
}
.scard__demo::before {   /* a 44 px tall hit area around the smaller chip */
	content: "";
	position: absolute;
	inset: -6px -4px;
}
.scard__demo:hover {
	background: rgba(11, 15, 26, 0.94);
	color: var(--primary);
	text-decoration: none;
}
.scard.is-owned .scard__demo,
.scard.has-state .scard__demo {
	top: calc(var(--sp-4) + var(--sp-2) + 34px);
}
@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
	.scard__demo {
		opacity: 0;
	}
	.scard:hover .scard__demo,
	.scard:focus-within .scard__demo {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.shop-demo__dot {
		animation: none;
	}
}

/* The thank-you card after a purchase (21 Nov 2026): green tick, "Thank you. It is yours.", the amount paid
   (and the code), "Download now" and "Open My library". Amber for "not confirmed yet" and "checking". */
.shop-thanks {
	display: flex;
	gap: var(--sp-4);
	align-items: flex-start;
	margin: 0 0 var(--sp-5);
	padding: var(--sp-5);
	border: 1px solid rgba(74, 222, 128, 0.45);
	border-radius: var(--radius-lg);
	background: radial-gradient(120% 140% at 0% 0%, rgba(74, 222, 128, 0.12), transparent 55%), var(--bg-2);
}
.shop-thanks--wait {
	border-color: rgba(255, 173, 51, 0.5);
	background: radial-gradient(120% 140% at 0% 0%, var(--accent-soft), transparent 55%), var(--bg-2);
}
.shop-thanks__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border: 1px solid rgba(74, 222, 128, 0.5);
	border-radius: 50%;
	background: rgba(74, 222, 128, 0.14);
	color: var(--ok);
	font-size: var(--fs-lg);
	font-weight: 800;
}
.shop-thanks__icon svg {
	width: 28px;
	height: 28px;
}
.shop-thanks--wait .shop-thanks__icon {
	border-color: rgba(255, 173, 51, 0.5);
	background: var(--accent-soft);
	color: var(--accent);
}
.shop-thanks__body {
	min-width: 0;
}
.shop-thanks__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--fs-xl);
	line-height: var(--lh-tight);
	letter-spacing: var(--tracking-tight);
}
.shop-thanks__paid {
	margin: var(--sp-2) 0 0;
	color: var(--ok);
	font-size: var(--fs-base);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.shop-thanks__text {
	margin: var(--sp-2) 0 0;
	color: var(--text-2);
	font-size: var(--fs-sm);
}
.shop-thanks__text a,
.shop-box__small a {
	color: var(--primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.shop-thanks__go {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	margin-top: var(--sp-4);
}
#shop-files {
	scroll-margin-top: calc(var(--header-h) + var(--sp-4));   /* "Download now" lands below the sticky header */
}
@media (max-width: 599px) {
	.shop-thanks {
		flex-direction: column;
		gap: var(--sp-3);
		padding: var(--sp-4);
	}
	.shop-thanks__go .sbtn {
		flex: 1 1 100%;
	}
}
