/**
 * Marketplace software/bots store layout.
 */

/* Override quiz hub’s narrow 48rem column for the store page. */
.hlp-quiz-scope:has(.hlp-marketplace-hub),
.hlp-marketplace-hub {
	max-width: min(72rem, 100%);
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

body.hlp-has-marketplace .hlp-quiz-scope {
	max-width: min(72rem, 100%);
	width: 100%;
}

.hlp-marketplace-hub .hlp-quiz-hub__head {
	text-align: center;
	max-width: 40rem;
	margin-left: auto;
	margin-right: auto;
}

.hlp-marketplace-hub .hlp-quiz-hub__title {
	text-align: center;
}

.hlp-marketplace-hub .hlp-quiz-hub__intro {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

.hlp-marketplace-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 1.5rem;
	margin: 1.25rem auto 1.35rem;
	width: 100%;
	max-width: 36rem;
}

.hlp-marketplace-nav__btn {
	flex: 1 1 14rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-height: 3.1rem;
	padding: 0.7rem 1rem;
	box-sizing: border-box;
	text-decoration: none !important;
	font-weight: 650;
	font-size: 0.9rem;
	line-height: 1.25;
	text-align: center;
	color: var(--hlp-quiz-gold-bright, #e8c547) !important;
	background: transparent;
	border: 1px solid rgba(212, 175, 55, 0.55);
	border-radius: 10px;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.hlp-marketplace-nav__btn:hover,
.hlp-marketplace-nav__btn:focus-visible {
	background: rgba(212, 175, 55, 0.1);
	border-color: var(--hlp-quiz-gold-bright, #e8c547);
	color: var(--hlp-quiz-gold-bright, #e8c547) !important;
}

.hlp-marketplace-nav__icon {
	flex-shrink: 0;
	display: block;
	opacity: 0.95;
}

.hlp-marketplace-nav__btn span {
	min-width: 0;
}

@media (max-width: 520px) {
	.hlp-marketplace-nav {
		flex-direction: column;
		align-items: stretch;
		max-width: 20rem;
	}

	.hlp-marketplace-nav__btn {
		flex: 1 1 auto;
		width: 100%;
	}
}

.hlp-marketplace-hub__list {
	max-width: none;
	width: 100%;
}

.hlp-marketplace-item {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.hlp-marketplace-item__labels {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.hlp-marketplace-item__badge {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--hlp-quiz-gold-bright, #e8c547);
	background: rgba(212, 175, 55, 0.12);
	border: 1px solid rgba(212, 175, 55, 0.25);
	border-radius: 999px;
}

.hlp-marketplace-item__category {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--hlp-quiz-muted, rgba(232, 224, 208, 0.55));
}

.hlp-marketplace-item__action {
	margin-top: 0.35rem;
}

.hlp-marketplace-item__action .hlp-quiz-btn {
	display: inline-block;
	min-width: 9rem;
	text-align: center;
}

.hlp-marketplace-item__soon {
	display: block;
	padding: 0.65rem 0.75rem;
	font-size: 0.88rem;
	line-height: 1.45;
	color: var(--hlp-quiz-muted, rgba(232, 224, 208, 0.55));
	text-align: center;
	background: rgba(0, 0, 0, 0.28);
	border: 1px dashed rgba(212, 175, 55, 0.28);
	border-radius: 8px;
}

.hlp-marketplace-locked {
	padding: 1rem 1.1rem;
	border: 1px solid var(--hlp-quiz-border, rgba(212, 175, 55, 0.28));
	border-radius: 12px;
	background: var(--hlp-quiz-bg, rgba(12, 12, 14, 0.95));
	text-align: center;
	max-width: 28rem;
	margin: 0 auto;
}

.hlp-marketplace-locked p {
	margin: 0 0 0.85rem;
}

.hlp-marketplace-locked p:last-child {
	margin-bottom: 0;
}

/* Software / bots store */
.hlp-store-member-cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.65rem;
	margin: 1.15rem 0 0;
}

.hlp-quiz-btn--ghost {
	background: transparent !important;
	color: var(--hlp-quiz-gold-bright, #e8c547) !important;
	border: 1px solid rgba(212, 175, 55, 0.45);
}

.hlp-store-section {
	margin: 2.25rem 0 0;
	width: 100%;
}

.hlp-store-section__title {
	margin: 0 0 1.15rem;
	font-size: clamp(1.15rem, 2.5vw, 1.45rem);
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--hlp-quiz-gold-bright, #e8c547);
	text-align: center;
}

.hlp-store-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.5rem;
	width: 100%;
}

.hlp-store-card {
	display: grid;
	gap: 1.25rem;
	padding: 1.35rem 1.4rem;
	border: 1px solid var(--hlp-quiz-border, rgba(212, 175, 55, 0.28));
	border-radius: 14px;
	background: var(--hlp-quiz-bg, rgba(12, 12, 14, 0.95));
	box-sizing: border-box;
	min-width: 0;
}

.hlp-store-card__media {
	margin: 0;
	border-radius: 10px;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.35);
}

.hlp-store-card__media img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 260px;
	object-fit: cover;
}

.hlp-store-card__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.hlp-store-card__title {
	margin: 0;
	font-size: clamp(1.1rem, 2vw, 1.35rem);
	line-height: 1.25;
	color: var(--hlp-quiz-gold-bright, #e8c547);
}

.hlp-store-card__category {
	margin: 0;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hlp-quiz-muted, rgba(232, 224, 208, 0.55));
}

.hlp-store-card__badge {
	margin: 0;
	font-size: 0.8rem;
	color: rgba(232, 224, 208, 0.7);
}

.hlp-store-card__desc {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--hlp-quiz-muted, rgba(232, 224, 208, 0.75));
}

.hlp-store-card__prices {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem 1.5rem;
	padding: 0.85rem 0;
	border-top: 1px solid rgba(212, 175, 55, 0.18);
	border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.hlp-store-price {
	margin: 0;
}

.hlp-store-price__label {
	display: block;
	margin-bottom: 0.2rem;
	font-size: 0.7rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hlp-quiz-muted, rgba(232, 224, 208, 0.55));
}

.hlp-store-price strong {
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	font-weight: 700;
	color: var(--hlp-quiz-gold-bright, #e8c547);
}

.hlp-store-price--retail-was s {
	font-size: 1.05rem;
	color: rgba(232, 224, 208, 0.45);
}

.hlp-store-price--hint {
	margin: 0;
	flex: 1 1 100%;
	font-size: 0.88rem;
	line-height: 1.4;
	color: var(--hlp-quiz-muted, rgba(232, 224, 208, 0.6));
}

.hlp-store-buy__form {
	margin: 0;
	padding: 1rem 0 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.hlp-store-buy__heading {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hlp-quiz-gold, #d4af37);
}

.hlp-store-buy__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem 1rem;
}

.hlp-store-buy__field {
	margin: 0;
	min-width: 0;
}

.hlp-store-buy__form label {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.78rem;
	color: var(--hlp-quiz-muted, rgba(232, 224, 208, 0.65));
}

.hlp-store-buy__form input {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 0.75rem;
	border-radius: 8px;
	border: 1px solid rgba(212, 175, 55, 0.28);
	background: rgba(0, 0, 0, 0.35);
	color: var(--hlp-quiz-ink, #e8e0d0);
	font-size: 1rem;
}

.hlp-store-buy__form input:focus {
	outline: none;
	border-color: rgba(232, 197, 71, 0.65);
	box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.hlp-store-buy__note {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.45;
	color: var(--hlp-quiz-muted, rgba(232, 224, 208, 0.6));
}

.hlp-store-buy__pay {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 0.25rem;
}

.hlp-store-buy__btn {
	flex: 1 1 auto;
	min-width: min(100%, 14rem);
	text-align: center;
}

.hlp-store-notice {
	margin: 0 0 1.5rem;
	padding: 0.95rem 1.1rem;
	border-radius: 10px;
	border: 1px solid rgba(212, 175, 55, 0.35);
	background: rgba(212, 175, 55, 0.1);
	max-width: 40rem;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.hlp-store-notice p {
	margin: 0;
}

@media (min-width: 640px) {
	.hlp-store-buy__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hlp-store-buy__field--name,
	.hlp-store-buy__field--email {
		grid-column: span 1;
	}

	.hlp-marketplace-item {
		flex-direction: row;
		align-items: flex-start;
		gap: 1.25rem;
	}

	.hlp-marketplace-item__action {
		flex: 0 0 auto;
		margin-top: 0;
		align-self: center;
	}
}

@media (min-width: 900px) {
	.hlp-store-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.75rem;
	}

	.hlp-store-card {
		padding: 1.5rem 1.6rem;
	}
}

@media (min-width: 1100px) {
	.hlp-store-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Single product: don’t leave a huge empty right half — center one wide card */
	.hlp-store-grid:has(> .hlp-store-card:only-child) {
		grid-template-columns: minmax(0, 42rem);
		justify-content: center;
	}
}
