/*
 * PayPros Digital Marketplace — front-end styles.
 * All rules are scoped to .ppm so themes are not affected.
 * Colours are tokens; primary/hero/focus are overridden from Settings → Display.
 */

.ppm {
	--ppm-primary: #1d4ed8;
	--ppm-primary-hover: color-mix(in srgb, var(--ppm-primary) 85%, #000);
	--ppm-primary-soft: color-mix(in srgb, var(--ppm-primary) 10%, #fff);
	--ppm-hero: #0b1736;
	--ppm-focus: #f59e0b;
	--ppm-ink: #0f172a;
	--ppm-ink-2: #334155;
	--ppm-muted: #5b6474;
	--ppm-line: #e2e8f0;
	--ppm-line-strong: #cbd5e1;
	--ppm-surface: #fff;
	--ppm-surface-2: #f8fafc;
	--ppm-star: #f59e0b;
	--ppm-star-empty: #d6dbe3;
	--ppm-success: #15803d;
	--ppm-danger: #b91c1c;
	--ppm-radius: 10px;
	--ppm-radius-sm: calc(var(--ppm-radius) * 0.6);
	--ppm-shadow: 0 1px 2px rgb(15 23 42 / 6%), 0 4px 14px rgb(15 23 42 / 6%);
	--ppm-gap: 16px;
	color: var(--ppm-ink);
	font-size: var(--ppm-font-size, 15px);
	line-height: 1.5;
	box-sizing: border-box;
}

.ppm *,
.ppm *::before,
.ppm *::after {
	box-sizing: inherit;
}

.ppm .screen-reader-text,
.ppm-dialog .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.ppm-icon {
	width: 1.15em;
	height: 1.15em;
	flex: none;
	vertical-align: middle;
}

.ppm a {
	color: inherit;
}

.ppm :focus-visible {
	outline: 3px solid var(--ppm-focus);
	outline-offset: 2px;
	border-radius: 4px;
}

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

.ppm [hidden] {
	display: none !important;
}

/* Buttons ---------------------------------------------------------------- */
.ppm-btn,
.ppm .ppm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid transparent;
	border-radius: var(--ppm-radius-sm);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
	white-space: nowrap;
}

.ppm .ppm-btn--primary {
	background: var(--ppm-button-bg, var(--ppm-primary));
	color: var(--ppm-button-text, #fff) !important;
}

.ppm .ppm-btn--primary:hover {
	background: color-mix(in srgb, var(--ppm-button-bg, var(--ppm-primary)) 85%, #000);
}

.ppm .ppm-btn--outline {
	background: var(--ppm-surface);
	border-color: var(--ppm-line-strong);
	color: var(--ppm-primary) !important;
}

.ppm .ppm-btn--outline:hover {
	border-color: var(--ppm-primary);
	background: var(--ppm-primary-soft);
}

.ppm .ppm-btn--ghost {
	background: transparent;
	color: var(--ppm-ink-2) !important;
	border-color: var(--ppm-line);
}

.ppm .ppm-btn--ghost:hover {
	background: var(--ppm-surface-2);
}

.ppm .ppm-btn--icon {
	flex: none;
	width: 40px;
	padding: 0;
}

.ppm .ppm-btn--lg {
	min-height: 46px;
	padding: 10px 20px;
	font-size: 15px;
}

.ppm .ppm-btn--sm {
	min-height: 30px;
	padding: 4px 10px;
	font-size: 13px;
}

.ppm-btn[disabled],
.ppm-btn.loading {
	opacity: .65;
	pointer-events: none;
}

.ppm .added_to_cart {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: var(--ppm-primary);
	margin-left: 6px;
}

/* Hero ------------------------------------------------------------------- */
.ppm-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 32px;
	margin-bottom: 24px;
	border-radius: var(--ppm-radius);
	background:
		radial-gradient(1200px 300px at 80% -40%, color-mix(in srgb, var(--ppm-primary) 45%, transparent), transparent 60%),
		var(--ppm-hero);
	color: #fff;
}

.ppm-hero__title {
	margin: 0 0 6px;
	color: #fff;
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.15;
}

.ppm-hero__subtitle {
	margin: 0;
	color: #dbe4f5;
}

.ppm-hero__text {
	flex: 1 1 320px;
}

.ppm-hero__text .ppm-search {
	margin-top: 18px;
	max-width: 640px;
}

.ppm-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ppm-hero__stat {
	min-width: 130px;
	padding: 14px 18px;
	border: 1px solid rgb(255 255 255 / 18%);
	border-radius: var(--ppm-radius-sm);
	background: rgb(255 255 255 / 5%);
	text-align: center;
}

.ppm-hero__stat-value {
	display: block;
	font-size: 24px;
	font-weight: 700;
}

.ppm-hero__stat-label {
	display: block;
	font-size: 13px;
	color: #dbe4f5;
}

.ppm-hero--image {
	background:
		linear-gradient(90deg, rgb(11 23 54 / 92%), rgb(11 23 54 / 70%)),
		var(--ppm-hero-image) center / cover no-repeat,
		var(--ppm-hero);
}

.ppm-hero__slides {
	position: relative;
}

.ppm-hero__slide[hidden] {
	display: none;
}

.ppm-hero__slide-link {
	display: inline-block;
	margin-top: 14px;
	color: #fff !important;
	font-weight: 700;
}

.ppm-hero__controls {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
}

.ppm-hero__controls button {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid rgb(255 255 255 / 30%);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.ppm-hero__status {
	font-size: 13px;
	color: #dbe4f5;
}

/* Layout ----------------------------------------------------------------- */
.ppm-marketplace,
.ppm-home,
.ppm-product {
	container-type: inline-size;
}

.ppm-marketplace.alignwide,
.ppm-home.alignwide,
.ppm-product.alignwide {
	width: 100%;
}

.ppm-layout {
	display: grid;
	grid-template-columns: var(--ppm-sidebar, 250px) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.ppm-layout--full {
	grid-template-columns: minmax(0, 1fr);
}

.ppm-sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: sticky;
	top: 24px;
}

.ppm .ppm-filters-toggle {
	display: none;
}

.ppm-filters-toggle__count {
	min-width: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--ppm-primary);
	color: #fff;
	font-size: 12px;
}

/* Category list ---------------------------------------------------------- */
.ppm-cats,
.ppm-filters {
	padding: 16px;
	border: 1px solid var(--ppm-line);
	border-radius: var(--ppm-radius);
	background: var(--ppm-surface);
}

.ppm-cats__title,
.ppm-filters__title {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 700;
	color: var(--ppm-ink);
}

.ppm-cats__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ppm-cats__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: var(--ppm-radius-sm);
	color: var(--ppm-ink-2) !important;
	font-size: 14px;
	text-decoration: none;
}

.ppm-cats__link .ppm-icon {
	color: var(--ppm-muted);
}

.ppm-cats__link:hover {
	background: var(--ppm-surface-2);
}

.ppm-cats__link[aria-current="true"] {
	background: var(--ppm-primary-soft);
	color: var(--ppm-primary) !important;
	font-weight: 600;
}

.ppm-cats__link[aria-current="true"] .ppm-icon {
	color: var(--ppm-primary);
}

.ppm-cats__name {
	flex: 1;
}

.ppm-cats__count {
	color: var(--ppm-muted);
	font-size: 12px;
}

/* Filters ---------------------------------------------------------------- */
.ppm-filters__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
}

.ppm-filters__clear {
	font-size: 13px;
	color: var(--ppm-primary) !important;
}

.ppm-filter {
	margin: 0;
	padding: 14px 0 0;
	border: 0;
	border-top: 1px solid var(--ppm-line);
	margin-top: 14px;
	min-width: 0;
}

.ppm-filter__legend {
	display: block;
	float: left;
	width: 100%;
	padding: 0;
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 700;
}

.ppm-filter__legend + * {
	clear: both;
}

.ppm-filter__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ppm-filter__list--inline {
	display: flex;
	gap: 14px;
}

.ppm-check {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 30px;
	font-size: 14px;
	color: var(--ppm-ink-2);
	cursor: pointer;
}

.ppm-check input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--ppm-primary);
	flex: none;
}

.ppm-check__label {
	flex: 1;
}

.ppm-check__count {
	color: var(--ppm-muted);
	font-size: 12px;
}

.ppm-filter select {
	width: 100%;
	min-height: 38px;
	padding: 6px 8px;
	border: 1px solid var(--ppm-line-strong);
	border-radius: var(--ppm-radius-sm);
	background: var(--ppm-surface);
	font: inherit;
	font-size: 14px;
}

.ppm-price__sliders {
	position: relative;
	height: 24px;
	margin-bottom: 8px;
}

.ppm-price__sliders input[type="range"] {
	position: absolute;
	inset: 0;
	width: 100%;
	margin: 0;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
	accent-color: var(--ppm-primary);
}

.ppm-price__sliders input[type="range"]::-webkit-slider-runnable-track {
	height: 4px;
	background: var(--ppm-line-strong);
	border-radius: 2px;
}

.ppm-price__sliders input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	margin-top: -7px;
	border: 2px solid var(--ppm-primary);
	border-radius: 50%;
	background: #fff;
	pointer-events: auto;
	cursor: pointer;
}

.ppm-price__sliders input[type="range"]::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border: 2px solid var(--ppm-primary);
	border-radius: 50%;
	background: #fff;
	pointer-events: auto;
	cursor: pointer;
}

.ppm-price__sliders input[type="range"]::-moz-range-track {
	height: 4px;
	background: var(--ppm-line-strong);
}

.ppm-price__inputs {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ppm-price__inputs label {
	position: relative;
	flex: 1;
}

.ppm-price__currency {
	position: absolute;
	left: 8px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ppm-muted);
	font-size: 13px;
}

.ppm-price__inputs input {
	width: 100%;
	min-height: 36px;
	padding: 6px 6px 6px 22px;
	border: 1px solid var(--ppm-line-strong);
	border-radius: var(--ppm-radius-sm);
	font: inherit;
	font-size: 14px;
}

.ppm-filters__submit {
	margin-top: 16px;
}

.ppm-filters__submit .ppm-btn {
	width: 100%;
}

.ppm-js .ppm-filters:not(.ppm-filters--standalone) .ppm-filters__submit {
	display: none;
}

/* Toolbar ---------------------------------------------------------------- */
.ppm-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.ppm-toolbar__count {
	margin: 0;
	color: var(--ppm-muted);
	font-size: 14px;
}

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

.ppm-sort {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 4px 0 12px;
	border: 1px solid var(--ppm-line-strong);
	border-radius: var(--ppm-radius-sm);
	background: var(--ppm-surface);
	font-size: 14px;
	color: var(--ppm-muted);
}

.ppm-sort select {
	min-height: 38px;
	border: 0;
	background: transparent;
	font: inherit;
	font-weight: 600;
	color: var(--ppm-ink);
}

.ppm-view-toggle {
	display: inline-flex;
	border: 1px solid var(--ppm-line-strong);
	border-radius: var(--ppm-radius-sm);
	overflow: hidden;
}

.ppm-view-toggle__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 38px;
	padding: 0 12px;
	border: 0;
	background: var(--ppm-surface);
	font: inherit;
	font-size: 14px;
	color: var(--ppm-muted);
	cursor: pointer;
}

.ppm-view-toggle__btn[aria-pressed="true"] {
	background: var(--ppm-surface-2);
	color: var(--ppm-ink);
	font-weight: 600;
}

/* Category chips --------------------------------------------------------- */
.ppm-chips {
	margin-bottom: 16px;
}

.ppm-chips__list {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 2px 2px 8px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
}

.ppm-chips__list > li {
	scroll-snap-align: start;
}

.ppm-chip {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 160px;
	padding: 10px 14px;
	border: 1px solid var(--ppm-line);
	border-radius: var(--ppm-radius);
	background: var(--ppm-surface);
	text-decoration: none;
	color: var(--ppm-ink) !important;
}

.ppm-chip:hover {
	border-color: var(--ppm-primary);
}

.ppm-chip[aria-current="true"] {
	border-color: var(--ppm-primary);
	background: var(--ppm-primary-soft);
}

.ppm-chip__icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: var(--ppm-primary-soft);
	color: var(--ppm-primary);
}

.ppm-chip__name {
	display: block;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.ppm-chip__count {
	display: block;
	font-size: 12px;
	color: var(--ppm-muted);
}

/* Product grid ----------------------------------------------------------- */
.ppm-results {
	position: relative;
	min-height: 120px;
}

.ppm-results[aria-busy="true"] {
	opacity: .55;
	pointer-events: none;
}

.ppm-grid {
	--ppm-cols: 4;
	--ppm-min: 170px;
	display: grid;
	gap: var(--ppm-gap);
	/* Never more than --ppm-cols columns; fewer as space shrinks. */
	grid-template-columns: repeat(auto-fill, minmax(max(var(--ppm-min), calc((100% - (var(--ppm-cols) - 1) * var(--ppm-gap)) / var(--ppm-cols))), 1fr));
}

.ppm-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--ppm-line);
	border-radius: var(--ppm-radius);
	background: var(--ppm-card-bg, var(--ppm-surface));
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}

.ppm-card:hover,
.ppm-card:focus-within {
	box-shadow: var(--ppm-shadow);
}

.ppm-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--ppm-surface-2);
	border-bottom: 1px solid var(--ppm-line);
}

.ppm-card__image-link {
	display: block;
	height: 100%;
}

.ppm-card__image,
.ppm-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0 !important;
}

.ppm-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
	padding: 3px 8px;
	border-radius: 4px;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	background: #475569;
}

.ppm-badge--top-right {
	left: auto;
	right: 10px;
}

.ppm-badge--static,
.ppm-single-badge .ppm-badge {
	position: static;
	display: inline-block;
	margin-bottom: 8px;
}

.ppm-badge--best_seller { background: #6d28d9; }
.ppm-badge--new { background: #15803d; }
.ppm-badge--hot { background: #c2410c; }
.ppm-badge--popular { background: #0f766e; }
.ppm-badge--trending { background: #0e7490; }
.ppm-badge--sale { background: #b91c1c; }
.ppm-badge--free { background: #1d4ed8; }
.ppm-badge--featured { background: #a16207; }

.ppm-discount {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 3px 8px;
	border-radius: 4px;
	background: #b91c1c;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.ppm-wish {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--ppm-line);
	border-radius: 50%;
	background: rgb(255 255 255 / 94%);
	color: var(--ppm-ink-2);
	cursor: pointer;
}

.ppm-card__media .ppm-wish {
	position: absolute;
	right: 10px;
	bottom: 10px;
}

.ppm-wish[aria-pressed="true"] {
	color: #be123c;
}

.ppm-wish[aria-pressed="true"] .ppm-icon path {
	fill: currentColor;
}

.ppm-wish--inline {
	width: auto;
	height: auto;
	border-radius: var(--ppm-radius-sm);
	display: inline-flex;
}

.ppm-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 4px;
	padding: 12px 14px 14px;
}

.ppm-card__title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.ppm-card__title a {
	color: var(--ppm-ink) !important;
	text-decoration: none;
}

.ppm-card__title a:hover {
	color: var(--ppm-primary) !important;
	text-decoration: underline;
}

.ppm-card__type {
	margin: 0;
	color: var(--ppm-muted);
	font-size: 13px;
}

.ppm-rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 2px 0 0;
	font-size: 13px;
}

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

.ppm-stars {
	--ppm-rating: 0;
	--ppm-star-size: 14px;
	position: relative;
	display: inline-block;
	width: calc(var(--ppm-star-size) * 5);
	height: var(--ppm-star-size);
	background: var(--ppm-star-empty);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.2 6.6.7-5 4.5 1.4 6.6L12 17.2l-5.9 3.3 1.4-6.6-5-4.5 6.6-.7z'/%3E%3C/svg%3E") repeat-x left / var(--ppm-star-size) var(--ppm-star-size);
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.2 6.6.7-5 4.5 1.4 6.6L12 17.2l-5.9 3.3 1.4-6.6-5-4.5 6.6-.7z'/%3E%3C/svg%3E") repeat-x left / var(--ppm-star-size) var(--ppm-star-size);
}

.ppm-stars::before {
	content: "";
	position: absolute;
	inset: 0;
	width: calc(var(--ppm-rating) / 5 * 100%);
	background: var(--ppm-star);
}

.ppm-stars--sm {
	--ppm-star-size: 13px;
}

.ppm-card__meta {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 8px;
}

.ppm-card__sales {
	color: var(--ppm-muted);
	font-size: 13px;
}

.ppm-card__price {
	margin-left: auto;
	font-size: 18px;
	font-weight: 700;
	text-align: right;
}

.ppm-card__price del {
	display: block;
	color: var(--ppm-muted);
	font-size: 13px;
	font-weight: 400;
}

.ppm-card__price ins {
	color: var(--ppm-danger);
	text-decoration: none;
}

.ppm-price-free {
	color: var(--ppm-success);
}

.ppm-card__savings {
	margin: 0;
	color: var(--ppm-success);
	font-size: 13px;
	font-weight: 600;
}

.ppm-card__actions {
	display: flex;
	gap: 8px;
	margin-top: 10px;
}

.ppm-card__actions .ppm-btn--outline {
	flex: 1;
}

/* List view */
.ppm-marketplace[data-view="list"] .ppm-grid {
	grid-template-columns: minmax(0, 1fr);
}

.ppm-marketplace[data-view="list"] .ppm-card {
	flex-direction: row;
}

.ppm-marketplace[data-view="list"] .ppm-card__media {
	flex: 0 0 240px;
	aspect-ratio: 16 / 10;
	border-bottom: 0;
	border-right: 1px solid var(--ppm-line);
}

.ppm-marketplace[data-view="list"] .ppm-card__actions {
	max-width: 320px;
}

/* Empty & pagination ----------------------------------------------------- */
.ppm-empty {
	padding: 32px 16px;
	border: 1px dashed var(--ppm-line-strong);
	border-radius: var(--ppm-radius);
	text-align: center;
	color: var(--ppm-muted);
}

.ppm-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.ppm-pagination a,
.ppm-pagination span[aria-current] {
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--ppm-line-strong);
	border-radius: var(--ppm-radius-sm);
	text-decoration: none;
	font-weight: 600;
	color: var(--ppm-ink-2) !important;
}

.ppm-pagination a:hover {
	border-color: var(--ppm-primary);
	color: var(--ppm-primary) !important;
}

.ppm-pagination span[aria-current] {
	background: var(--ppm-primary);
	border-color: var(--ppm-primary);
	color: #fff !important;
}

.ppm-pagination__gap {
	display: grid;
	place-items: center;
	color: var(--ppm-muted);
}

/* Trust bar -------------------------------------------------------------- */
.ppm-trust {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 16px;
	margin: 28px 0 0;
	padding: 20px;
	border: 1px solid var(--ppm-line);
	border-radius: var(--ppm-radius);
	background: var(--ppm-surface-2);
	list-style: none;
}

.ppm-trust__item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.ppm-trust__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--ppm-primary-soft);
	color: var(--ppm-primary);
}

.ppm-trust__title {
	display: block;
	font-size: 14px;
}

.ppm-trust__desc {
	display: block;
	color: var(--ppm-muted);
	font-size: 13px;
}

.ppm-trust--cards {
	margin: 0;
	background: transparent;
	border: 0;
	padding: 0;
}

.ppm-trust--cards .ppm-trust__item {
	padding: 18px;
	border: 1px solid var(--ppm-line);
	border-radius: var(--ppm-radius);
	background: var(--ppm-surface);
}

/* Search ----------------------------------------------------------------- */
.ppm-search {
	display: flex;
	align-items: stretch;
	width: 100%;
	border: 1px solid var(--ppm-line-strong);
	border-radius: var(--ppm-radius-sm);
	background: var(--ppm-surface);
	color: var(--ppm-ink);
}

.ppm-search:focus-within {
	outline: 3px solid var(--ppm-focus);
	outline-offset: 1px;
}

.ppm-search__field {
	position: relative;
	flex: 1;
	min-width: 0;
}

.ppm-search__field input[type="search"] {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 0;
	background: transparent;
	font: inherit;
	color: var(--ppm-ink);
	outline: none;
}

.ppm-search__field input[type="search"]::placeholder {
	color: var(--ppm-muted);
	opacity: 1;
}

.ppm-search__cat {
	max-width: 190px;
	border: 0;
	border-left: 1px solid var(--ppm-line);
	padding: 0 10px;
	background: transparent;
	font: inherit;
	font-size: 14px;
	color: var(--ppm-ink-2);
}

.ppm-search__submit {
	display: grid;
	place-items: center;
	width: 52px;
	border: 0;
	border-radius: 0 calc(var(--ppm-radius-sm) - 1px) calc(var(--ppm-radius-sm) - 1px) 0;
	background: var(--ppm-primary);
	color: #fff;
	cursor: pointer;
}

.ppm-search__submit:hover {
	background: var(--ppm-primary-hover);
}

.ppm-search__suggest {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: -52px;
	z-index: 50;
	max-height: 420px;
	overflow-y: auto;
	padding: 6px;
	border: 1px solid var(--ppm-line);
	border-radius: var(--ppm-radius);
	background: var(--ppm-surface);
	box-shadow: 0 12px 32px rgb(15 23 42 / 16%);
	color: var(--ppm-ink);
}

.ppm-suggest__group {
	padding: 8px 10px 4px;
	color: var(--ppm-muted);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.ppm-suggest__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: var(--ppm-radius-sm);
	cursor: pointer;
	text-decoration: none;
	color: inherit !important;
}

.ppm-suggest__item[aria-selected="true"],
.ppm-suggest__item:hover {
	background: var(--ppm-primary-soft);
}

.ppm-suggest__thumb {
	width: 40px;
	height: 28px;
	border-radius: 4px;
	object-fit: cover;
	background: var(--ppm-surface-2);
	flex: none;
}

.ppm-suggest__title {
	flex: 1;
	font-size: 14px;
	font-weight: 600;
}

.ppm-suggest__meta {
	color: var(--ppm-muted);
	font-size: 12px;
}

.ppm-suggest__all {
	display: block;
	margin-top: 4px;
	padding: 8px 10px;
	border-top: 1px solid var(--ppm-line);
	font-size: 13px;
	font-weight: 600;
	color: var(--ppm-primary) !important;
}

/* Header tools ------------------------------------------------------------- */
.ppm-header-tools {
	display: flex;
	align-items: center;
	gap: 20px;
}

.ppm-header-tools .ppm-search {
	flex: 1;
	max-width: 640px;
}

.ppm-header-tools__links {
	display: flex;
	gap: 18px;
}

.ppm-header-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}

.ppm-header-link__icon {
	position: relative;
	display: inline-flex;
}

.ppm-header-link__icon .ppm-icon {
	width: 22px;
	height: 22px;
}

.ppm-header-link__count {
	position: absolute;
	top: -8px;
	right: -10px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--ppm-primary);
	color: #fff;
	font-size: 11px;
	line-height: 18px;
	text-align: center;
}

.ppm-header-link__count[data-empty] {
	display: none;
}

/* Sections (home) ---------------------------------------------------------- */
.ppm-section {
	margin: 0 0 36px;
}

.ppm-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.ppm-section__title {
	margin: 0;
	font-size: 22px;
}

.ppm-section__more {
	color: var(--ppm-primary) !important;
	font-weight: 600;
	font-size: 14px;
}

.ppm-cat-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ppm-cat-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	height: 100%;
	padding: 16px;
	border: 1px solid var(--ppm-line);
	border-radius: var(--ppm-radius);
	background: var(--ppm-surface);
	text-decoration: none;
	color: var(--ppm-ink) !important;
}

.ppm-cat-card:hover {
	border-color: var(--ppm-primary);
}

.ppm-cat-card__icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--ppm-primary-soft);
	color: var(--ppm-primary);
}

.ppm-cat-card__name {
	font-weight: 700;
}

.ppm-cat-card__count {
	color: var(--ppm-muted);
	font-size: 13px;
}

.ppm-reviews {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ppm-review figure {
	height: 100%;
	margin: 0;
	padding: 18px;
	border: 1px solid var(--ppm-line);
	border-radius: var(--ppm-radius);
	background: var(--ppm-surface);
}

.ppm-review__text {
	margin: 10px 0;
	padding: 0;
	border: 0;
	font-style: normal;
	color: var(--ppm-ink-2);
}

.ppm-review__by {
	font-size: 13px;
	color: var(--ppm-muted);
}

.ppm-verified {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 6px;
	border-radius: 4px;
	background: #dcfce7;
	color: #166534;
	font-size: 12px;
	font-weight: 600;
}

.ppm-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	padding: 24px;
	border-radius: var(--ppm-radius);
	background: var(--ppm-hero);
	color: #fff;
}

.ppm-cta__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgb(255 255 255 / 10%);
}

.ppm-cta__text {
	flex: 1 1 280px;
}

.ppm-cta__title {
	margin: 0 0 4px;
	color: #fff;
	font-size: 20px;
}

.ppm-cta__text p {
	margin: 0;
	color: #dbe4f5;
}

/* Product page ------------------------------------------------------------- */
.ppm-single-sales {
	margin: 0 0 12px;
	color: var(--ppm-muted);
	font-size: 14px;
}

.ppm-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 16px 0;
}

.ppm-details {
	margin: 20px 0;
	padding: 16px 18px;
	border: 1px solid var(--ppm-line);
	border-radius: var(--ppm-radius);
	background: var(--ppm-surface-2);
}

.ppm-details__title {
	margin: 0 0 8px;
	font-size: 16px;
}

.ppm-details__list {
	margin: 0;
}

.ppm-details__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 0;
	border-bottom: 1px solid var(--ppm-line);
	font-size: 14px;
}

.ppm-details__row:last-child {
	border-bottom: 0;
}

.ppm-details__row dt {
	color: var(--ppm-muted);
}

.ppm-details__row dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
}

.ppm-checklist,
.ppm-plainlist {
	margin: 0 0 1em;
	padding: 0;
	list-style: none;
}

.ppm-checklist li {
	display: flex;
	gap: 8px;
	padding: 4px 0;
}

.ppm-checklist .ppm-icon {
	color: var(--ppm-success);
	margin-top: 3px;
}

.ppm-plainlist li {
	padding: 3px 0;
}

.ppm-video {
	position: relative;
	margin-bottom: 20px;
	aspect-ratio: 16 / 9;
}

.ppm-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ppm-product__top {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 280px;
	gap: 28px;
	align-items: start;
}

.ppm-product__image {
	width: 100%;
	height: auto;
	border: 1px solid var(--ppm-line);
	border-radius: var(--ppm-radius);
}

.ppm-product__thumbs {
	display: flex;
	gap: 8px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.ppm-product__thumbs img {
	width: 72px;
	height: auto;
	border: 1px solid var(--ppm-line);
	border-radius: 6px;
}

.ppm-product__title {
	margin: 0 0 6px;
	font-size: 26px;
}

.ppm-product__title a {
	text-decoration: none;
}

.ppm-product__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 10px;
	font-size: 14px;
}

.ppm-product__price {
	margin: 10px 0;
	font-size: 28px;
	font-weight: 700;
}

.ppm-product__side .ppm-details {
	margin-top: 0;
}

.ppm-tabs {
	margin-top: 28px;
}

.ppm-tabs__list {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	border-bottom: 1px solid var(--ppm-line);
}

.ppm-tabs__tab {
	padding: 12px 16px;
	border: 0;
	border-bottom: 3px solid transparent;
	background: none;
	font: inherit;
	font-weight: 600;
	color: var(--ppm-muted);
	cursor: pointer;
	white-space: nowrap;
}

.ppm-tabs__tab[aria-selected="true"] {
	color: var(--ppm-primary);
	border-bottom-color: var(--ppm-primary);
}

.ppm-tabs__panel {
	padding: 20px 0;
}

.ppm-breakdown {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin-bottom: 24px;
	padding: 18px;
	border: 1px solid var(--ppm-line);
	border-radius: var(--ppm-radius);
}

.ppm-breakdown__summary {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 160px;
}

.ppm-breakdown__avg {
	font-size: 40px;
	font-weight: 700;
	line-height: 1;
}

.ppm-breakdown__total {
	color: var(--ppm-muted);
	font-size: 13px;
}

.ppm-breakdown__bars {
	flex: 1 1 260px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ppm-breakdown__row {
	display: grid;
	grid-template-columns: 64px 1fr 48px;
	align-items: center;
	gap: 10px;
	padding: 3px 0;
	font-size: 13px;
}

.ppm-breakdown__bar {
	height: 8px;
	border-radius: 4px;
	background: var(--ppm-line);
	overflow: hidden;
}

.ppm-breakdown__bar > span {
	display: block;
	height: 100%;
	border-radius: 4px;
	background: var(--ppm-star);
}

.ppm-breakdown__count {
	text-align: right;
	color: var(--ppm-muted);
}

.ppm-bundle {
	margin: 18px 0;
	padding: 16px 18px;
	border: 1px solid var(--ppm-line);
	border-radius: var(--ppm-radius);
}

.ppm-bundle__title {
	margin: 0 0 6px;
	font-size: 16px;
}

.ppm-bundle__items {
	margin: 8px 0;
	padding-left: 18px;
}

.ppm-bundle__value {
	margin: 8px 0 0;
	color: var(--ppm-success);
}

/* Downloads, licenses, tickets ------------------------------------------- */
.ppm-dl-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.ppm-dl-item {
	padding: 16px 18px;
	border: 1px solid var(--ppm-line);
	border-radius: var(--ppm-radius);
	background: var(--ppm-surface);
}

.ppm-dl-item__head {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.ppm-dl-item__thumb {
	width: 72px;
	height: auto;
	border-radius: 6px;
	border: 1px solid var(--ppm-line);
}

.ppm-dl-item__name {
	margin: 0 0 4px;
	font-size: 16px;
}

.ppm-dl-item__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 0 0 4px;
	color: var(--ppm-muted);
	font-size: 13px;
}

.ppm-dl-files {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.ppm-dl-files li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.ppm-dl-older {
	margin-top: 10px;
	font-size: 14px;
}

.ppm-dl-older summary {
	cursor: pointer;
	font-weight: 600;
}

.ppm-dl-item__licenses {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--ppm-line);
	font-size: 14px;
}

.ppm-dl-item__label {
	font-weight: 600;
}

.ppm-key {
	padding: 4px 8px;
	border: 1px solid var(--ppm-line);
	border-radius: 4px;
	background: var(--ppm-surface-2);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 13px;
	letter-spacing: .03em;
	user-select: all;
}

.ppm-order-downloads {
	margin: 24px 0;
}

.ppm-order-downloads__done {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	border-radius: var(--ppm-radius-sm);
	background: #dcfce7;
	color: #14532d;
}

.ppm-status {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 999px;
	background: #e2e8f0;
	color: #334155;
	font-size: 12px;
	font-weight: 600;
}

.ppm-status--active,
.ppm-status--resolved { background: #dcfce7; color: #166534; }
.ppm-status--expired,
.ppm-status--waiting { background: #fef3c7; color: #92400e; }
.ppm-status--revoked,
.ppm-status--suspended { background: #fee2e2; color: #991b1b; }
.ppm-status--open,
.ppm-status--in_progress { background: #dbeafe; color: #1e40af; }

.ppm-table {
	width: 100%;
	margin-top: 12px;
	border-collapse: collapse;
	font-size: 14px;
}

.ppm-table th,
.ppm-table td {
	padding: 8px 10px;
	border-bottom: 1px solid var(--ppm-line);
	text-align: left;
}

.ppm-notice {
	padding: 12px 16px;
	border-left: 4px solid var(--ppm-primary);
	border-radius: var(--ppm-radius-sm);
	background: var(--ppm-primary-soft);
}

.ppm-notice--warning {
	border-left-color: #b45309;
	background: #fffbeb;
}

.ppm-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0 0 14px;
}

.ppm-field label {
	font-weight: 600;
	font-size: 14px;
}

.ppm-field input[type="text"],
.ppm-field input[type="email"],
.ppm-field select,
.ppm-field textarea {
	width: 100%;
	min-height: 42px;
	padding: 8px 10px;
	border: 1px solid var(--ppm-line-strong);
	border-radius: var(--ppm-radius-sm);
	font: inherit;
}

.ppm-field--check label {
	font-weight: 400;
}

.ppm-field__help {
	color: var(--ppm-muted);
	font-size: 13px;
}

.ppm-field__error {
	margin: 0 0 12px;
	color: var(--ppm-danger);
	font-weight: 600;
}

.ppm-thread {
	margin: 16px 0;
	padding: 0;
	list-style: none;
}

.ppm-thread__msg {
	margin-bottom: 12px;
	padding: 14px 16px;
	border: 1px solid var(--ppm-line);
	border-radius: var(--ppm-radius);
}

.ppm-thread__msg.is-staff {
	border-left: 4px solid var(--ppm-primary);
	background: var(--ppm-surface-2);
}

.ppm-thread__head {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 6px;
	font-size: 13px;
	color: var(--ppm-muted);
}

.ppm-thread__head strong {
	color: var(--ppm-ink);
}

.ppm-attachments {
	margin: 8px 0 0;
	padding-left: 18px;
	font-size: 13px;
}

.ppm-faq {
	margin-bottom: 8px;
	border: 1px solid var(--ppm-line);
	border-radius: var(--ppm-radius-sm);
}

.ppm-faq summary {
	padding: 10px 14px;
	font-weight: 600;
	cursor: pointer;
}

.ppm-faq__answer {
	padding: 0 14px 10px;
}

.ppm-docs__section {
	margin-bottom: 24px;
}

.ppm-docs-index__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ppm-docs-index__item {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: baseline;
	padding: 10px 0;
	border-bottom: 1px solid var(--ppm-line);
}

.ppm-tag {
	display: inline-block;
	padding: 0 6px;
	border-radius: 4px;
	background: var(--ppm-surface-2);
	border: 1px solid var(--ppm-line);
	font-size: 12px;
}

/* Dialog ----------------------------------------------------------------- */
.ppm-dialog {
	width: min(460px, calc(100vw - 32px));
	padding: 0;
	border: 0;
	border-radius: var(--ppm-radius);
	box-shadow: 0 24px 64px rgb(15 23 42 / 30%);
	color: var(--ppm-ink);
}

.ppm-dialog::backdrop {
	background: rgb(15 23 42 / 55%);
}

.ppm-dialog__form {
	padding: 20px 22px;
}

.ppm-dialog__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ppm-dialog__title {
	margin: 0;
	font-size: 20px;
}

.ppm-dialog__close {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: var(--ppm-surface-2);
	cursor: pointer;
	color: var(--ppm-ink);
}

.ppm-dialog__desc {
	margin: 6px 0 16px;
	color: var(--ppm-muted);
}

.ppm-dialog__links ul {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.ppm-dialog__links li {
	margin-bottom: 8px;
}

.ppm-dialog__foot {
	display: flex;
	justify-content: flex-end;
}

/* Responsive ------------------------------------------------------------- */
@container (max-width: 1000px) {
	.ppm-product__top {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.ppm-product__side {
		grid-column: 1 / -1;
	}
}

@container (max-width: 860px) {
	.ppm-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.ppm .ppm-filters-toggle {
		display: inline-flex;
		justify-self: start;
	}

	.ppm-js .ppm-sidebar {
		display: none;
		position: static;
	}

	.ppm-js .ppm-sidebar.is-open {
		display: flex;
	}
}

@media (max-width: 900px) {
	.ppm-header-tools {
		flex-wrap: wrap;
	}
}

@media (max-width: 640px) {
	.ppm-hero {
		padding: 22px 16px;
	}

	.ppm-hero__stat {
		min-width: calc(50% - 6px);
	}

	.ppm-grid {
		--ppm-min: 150px;
		--ppm-gap: 12px;
	}

	.ppm-marketplace[data-view="list"] .ppm-card {
		flex-direction: column;
	}

	.ppm-marketplace[data-view="list"] .ppm-card__media {
		flex-basis: auto;
		border-right: 0;
		border-bottom: 1px solid var(--ppm-line);
	}

	.ppm-search__cat {
		display: none;
	}

	.ppm-search__suggest {
		right: 0;
	}

	.ppm-view-toggle__btn span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}
}

@container (max-width: 640px) {
	.ppm-product__top {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ppm *,
	.ppm *::before,
	.ppm *::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

@media (forced-colors: active) {
	.ppm-stars {
		forced-color-adjust: none;
	}

	.ppm-badge,
	.ppm-btn,
	.ppm-card,
	.ppm-chip {
		border: 1px solid CanvasText;
	}
}
