/*
Theme Name: Cmsmart Marketplace Store
Theme URI: https://www.cmsmart.net/
Author: Cmsmart
Author URI: https://www.cmsmart.net/
Description: Marketplace store for the Cmsmart web-to-print plugin and the Cmsmart Marketplace add-on: independent makers and creators selling personalised products. Styled after the Marketplace logo: logo orange accents with navy ink on white, pill shapes, one self-hosted geometric sans (Poppins). Without the add-on it works as a plain catalogue store.
Template: cmsmart-stores
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cmsmart-marketplace-store
Tags: e-commerce, block-patterns, custom-colors, custom-logo, custom-menu, editor-style, translation-ready
*/

/* Cmsmart Marketplace Store, logo style (2026-10-12): the colours, type and shapes of the Marketplace logo. Logo orange #f69821 is the
   accent (fills with navy text), logo navy #0e1c38 the ink and the dark inset cards, white and navy-derived greys the surfaces.
   Ramps (orange and navy 50-900) are in theme.json settings.custom (--wp--custom--orange--500 ...); contrast table in
   reports/mkt-style-logo.md. Pills echo the strokes of the "M": buttons, badges, chips and fields; cards are 14 px. No gradients. */

/* Poppins, the face of the logo lettering: 400 body, 500 UI, 600 and 700 headings. Latin subset, 8 KB per weight (SIL OFL,
   assets/fonts). font-display: swap; 400 and 700 are preloaded in wp_head. */
@font-face {
	font-family: Poppins;
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/poppins-latin-400.woff2") format("woff2");
}
@font-face {
	font-family: Poppins;
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("assets/fonts/poppins-latin-500.woff2") format("woff2");
}
@font-face {
	font-family: Poppins;
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("assets/fonts/poppins-latin-600.woff2") format("woff2");
}
@font-face {
	font-family: Poppins;
	font-style: normal;
	font-weight: 700 800;
	font-display: swap;
	src: url("assets/fonts/poppins-latin-700.woff2") format("woff2");
}
:root {
	--cs-font-heading: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--cs-radius: 12px;
	--cs-radius-field: 12px;
	--cs-radius-card: 14px;
	--cs-radius-pill: 999px;
	--cs-shadow-1: 0 1px 2px rgba(14, 28, 56, 0.06), 0 2px 6px rgba(14, 28, 56, 0.05);
	--cs-shadow-2: 0 14px 32px rgba(14, 28, 56, 0.14), 0 2px 6px rgba(14, 28, 56, 0.08);
	--cs-orange: var(--wp--custom--orange--500, #f69821);
	--cs-orange-hover: var(--wp--custom--orange--600, #d17a02);
	--cs-orange-icon: var(--wp--custom--orange--600, #d17a02);
	--cs-orange-text: var(--wp--custom--orange--700, #a75e03);
	--cs-navy: var(--wp--custom--navy--900, #0e1c38);
	--cs-ring: var(--wp--custom--orange--700, #a75e03);
}
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Logo orange fails as text on white (2.2:1): text set in "primary" uses the AA step (orange 700, 4.9:1). */
.has-primary-color {
	color: var(--wp--preset--color--primary-dark);
}
:where(a):focus-visible,
:where(button):focus-visible,
:where(summary):focus-visible,
:where(input, select, textarea):focus-visible {
	outline: 2px solid var(--wp--preset--color--focus);
	outline-offset: 2px;
}

/* ---------- shared bits ---------- */
:root {
	--cs-mkt-pad: 20px;
	--cs-mkt-field: var(--wp--custom--navy--500, #6f7c94);
	--cs-mkt-glow: 0 0 0 3px rgba(246, 152, 33, 0.35);
	--cs-mkt-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--cs-mkt-t: 0.2s;
}
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}
.cs-mkt-icon {
	display: block;
	flex: none;
}
html.cs-mkt-lock {
	overflow: hidden;
}

/* ---------- header: NOT sticky (David, 2026-10-11). The parent's sticky / "scrolled" / "fixed" states are switched off. ---------- */
html body header.wp-block-template-part,
html body header.wp-block-template-part.cs-header-fixed,
html body.cs-js header.wp-block-template-part.cs-header-fixed {
	position: static !important;
	top: auto !important;
	box-shadow: none;
}
html body.cs-scrolled header.wp-block-template-part .cmsmart-header {
	box-shadow: none;
}
html body header.wp-block-template-part .cs-mkt-logo svg,
html body.cs-scrolled header.wp-block-template-part .cs-mkt-logo svg {
	transform: none;
}

/* ---------- header: top bar, row 1 (logo, search, tools), row 2 (categories, links) ---------- */
.cs-mkt-header,
.wp-block-group.cs-mkt-header {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 0;
	position: relative;
	z-index: 50;
}
/* Top bar: a light navy-50 strip (no full-width navy band), navy text, orange icon. */
.cs-mkt-topbar {
	display: none;
	border-bottom: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--topbar);
	color: var(--wp--preset--color--body-text);
	font-size: 0.8125rem;
}
.cs-mkt-topbar__in,
.cs-mkt-nav__in {
	max-width: 1260px;
	margin: 0 auto;
	padding-left: var(--cs-mkt-pad);
	padding-right: var(--cs-mkt-pad);
}
.cs-mkt-topbar__in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 8px;
	padding-bottom: 8px;
}
.cs-mkt-topbar__text {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--wp--preset--color--body-text);
}
.cs-mkt-topbar__text .cs-mkt-icon {
	width: 16px;
	height: 16px;
	color: var(--cs-orange-icon);
}
.cs-mkt-topbar__links {
	display: flex;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.cs-mkt-topbar__links a {
	display: inline-block;
	padding: 2px 0;
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
	text-decoration-color: var(--cs-orange);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}
.cs-mkt-topbar__links a:hover {
	color: var(--wp--preset--color--primary-dark);
}
.cs-mkt-header .cs-mkt-header__row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 4px 8px;
	max-width: 1260px;
	margin: 0 auto;
	padding: 8px var(--cs-mkt-pad);
}
.cs-mkt-header__brand {
	grid-column: 2;
	min-width: 0;
}
.cs-mkt-logo {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: inherit;
	text-decoration: none;
}
/* Marketplace logo (the mark only, 6.2:1): 27 px tall below 900 px and in the drawer, 36 px on wide screens, 32 px in the footer. */
.cs-mkt-logo svg {
	display: block;
	width: auto;
	height: 27px;
	max-width: none;
}
.cs-mkt-logo__wide {
	display: none;
}
.cs-mkt-logo--wide svg {
	height: 32px;
}
.cs-mkt-logo--text {
	font-family: var(--cs-font-heading);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
}
.cs-mkt-logo--custom img {
	display: block;
	width: auto;
	max-height: 44px;
}
.cs-mkt-header__tools {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	grid-column: 3;
	gap: 0;
	flex-shrink: 0;
}
.cs-mkt-burger,
.cs-mkt-tool,
.cs-mkt-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: var(--cs-target, 44px);
	min-height: var(--cs-target, 44px);
	padding: 0;
	border: 0;
	border-radius: var(--cs-radius);
	background: transparent;
	color: var(--wp--preset--color--strong);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}
/* Labels are visible from 1100 px up; below that they stay as the accessible name (icon-only buttons). */
.cs-mkt-tool__label {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}
.cs-mkt-burger {
	grid-column: 1;
	margin-left: -10px;
}
.cs-mkt-burger,
.cs-mkt-tool,
.cs-mkt-drawer__close {
	border-radius: var(--cs-radius-pill);
}
.cs-mkt-burger:hover,
.cs-mkt-tool:hover,
.cs-mkt-drawer__close:hover {
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--contrast);
}
.cs-mkt-tool .cs-mkt-icon {
	transition: color 0.15s ease;
}
.cs-mkt-tool:hover .cs-mkt-icon {
	color: var(--cs-orange-text);
}
.cs-mkt-tool--account,
.cs-mkt-tool--following {
	display: none;
}
@media (min-width: 600px) {
	.cs-mkt-tool--account,
	.cs-mkt-tool--following {
		display: inline-flex;
	}
}
.cs-mkt-cart {
	position: relative;
}
.cs-mkt-cart__count {
	position: absolute;
	top: 3px;
	left: 24px;
	min-width: 18px;
	padding: 0 5px;
	border-radius: var(--cs-radius-pill);
	background: var(--cs-orange);
	color: var(--wp--preset--color--contrast);
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}
.cs-mkt-cart__count[hidden] {
	display: none;
}

/* Search with scope: one bordered field, the ring sits on the whole field. */
.cs-mkt-search {
	display: flex;
	align-items: stretch;
	min-width: 0;
	border: 1px solid var(--cs-mkt-field);
	border-radius: var(--cs-radius-pill);
	background: var(--wp--preset--color--base);
	overflow: hidden;
	transition: box-shadow var(--cs-mkt-t) ease, border-color var(--cs-mkt-t) ease;
}
.cs-mkt-search:focus-within {
	border-color: var(--wp--preset--color--primary-dark);
	box-shadow: var(--cs-mkt-glow);
}
.cs-mkt-search__scope {
	flex: none;
	width: auto;
	min-height: 44px;
	margin: 0;
	padding: 0 34px 0 18px;
	border: 0;
	border-right: 1px solid var(--wp--preset--color--border);
	border-radius: 0;
	background: var(--wp--preset--color--tertiary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23a75e03' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
	color: var(--wp--preset--color--contrast);
	font-size: 0.875rem;
	font-weight: 600;
	appearance: none;
	-webkit-appearance: none;
}
.cs-mkt-search__input {
	flex: 1;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font-size: 1rem;
}
.cs-mkt-search__scope:focus-visible,
.cs-mkt-search__input:focus-visible {
	outline: none;
}
.cs-mkt-search__input::placeholder {
	color: var(--wp--preset--color--muted);
	opacity: 1;
}
.cs-mkt-search__submit {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 48px;
	min-height: 40px;
	margin: 3px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--cs-radius-pill);
	background: var(--cs-orange);
	color: var(--wp--preset--color--contrast);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.cs-mkt-search__submit:hover {
	background: var(--cs-orange-hover);
}
.cs-mkt-search__submit-text {
	display: none;
}

/* Below 900 px the search is a second row that the magnifier opens. */
.cs-mkt-search--header {
	display: none;
	grid-column: 1 / -1;
	grid-row: 2;
}
.cs-mkt-header.is-search .cs-mkt-search--header {
	display: flex;
	animation: cs-mkt-fade var(--cs-mkt-t) var(--cs-mkt-ease);
}
.cs-mkt-nav {
	display: none;
}

@media (min-width: 900px) {
	.cs-mkt-topbar {
		display: block;
	}
	.cs-mkt-header .cs-mkt-header__row {
		grid-template-columns: auto minmax(280px, 1fr) auto;
		gap: 24px;
		padding-top: 16px;
		padding-bottom: 16px;
	}
	.cs-mkt-burger,
	.cs-mkt-searchtoggle {
		display: none;
	}
	.cs-mkt-header__brand {
		grid-column: 1;
		flex-shrink: 0;
	}
	.cs-mkt-logo--header svg {
		height: 36px;
	}
	.cs-mkt-logo__wide {
		display: block;
	}
	.cs-mkt-logo__compact {
		display: none;
	}
	.cs-mkt-search--header,
	.cs-mkt-header.is-search .cs-mkt-search--header {
		display: flex;
		grid-column: 2;
		grid-row: auto;
		max-width: 680px;
		width: 100%;
		margin: 0 auto;
		animation: none;
	}
	.cs-mkt-search__submit-text {
		display: inline;
	}
	.cs-mkt-header__tools {
		grid-column: 3;
		gap: 4px;
	}
	.cs-mkt-nav {
		display: block;
		border-top: 1px solid var(--wp--preset--color--border);
	}
	.cs-mkt-drawer {
		display: none !important;
	}
}
@media (min-width: 1100px) {
	.cs-mkt-tool__label {
		position: static;
		width: auto;
		height: auto;
		margin: 0;
		overflow: visible;
		clip-path: none;
	}
	.cs-mkt-tool {
		padding: 0 12px;
	}
	.cs-mkt-cart__count {
		left: 28px;
	}
}

/* Row 2: "All categories" disclosure + marketplace links. */
.cs-mkt-nav__in {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}
.cs-mkt-allcats__summary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	margin: 6px 12px 6px 0;
	padding: 0 18px;
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--base);
	font-weight: 600;
	list-style: none;
	cursor: pointer;
	border-radius: var(--cs-radius-pill);
	transition: background-color var(--cs-mkt-t) ease, color var(--cs-mkt-t) ease;
}
.cs-mkt-allcats__summary .cs-mkt-icon:first-child {
	color: var(--cs-orange);
}
.cs-mkt-allcats__summary:hover,
.cs-mkt-allcats[open] .cs-mkt-allcats__summary {
	background: var(--cs-orange);
	color: var(--wp--preset--color--contrast);
}
.cs-mkt-allcats__summary:hover .cs-mkt-icon:first-child,
.cs-mkt-allcats[open] .cs-mkt-allcats__summary .cs-mkt-icon:first-child {
	color: var(--wp--preset--color--contrast);
}
.cs-mkt-allcats__summary::-webkit-details-marker {
	display: none;
}
.cs-mkt-allcats__summary .cs-mkt-icon:last-child {
	width: 16px;
	height: 16px;
	transition: transform var(--cs-mkt-t) ease;
}
.cs-mkt-allcats[open] .cs-mkt-allcats__summary .cs-mkt-icon:last-child {
	transform: rotate(180deg);
}
.cs-mkt-nav__links {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.cs-mkt-nav__links a {
	display: inline-flex;
	align-items: center;
	min-height: 56px;
	padding: 0 14px;
	position: relative;
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
	text-decoration: none;
	transition: color var(--cs-mkt-t) ease;
}
/* Hover and current page: a short orange pill under the label, like the strokes of the "M". */
.cs-mkt-nav__links a::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 10px;
	height: 3px;
	border-radius: var(--cs-radius-pill);
	background: var(--cs-orange);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform var(--cs-mkt-t) var(--cs-mkt-ease);
}
.cs-mkt-nav__links a:hover::after,
.cs-mkt-nav__links a[aria-current]::after {
	transform: none;
}
.cs-mkt-mega {
	position: absolute;
	z-index: 60;
	top: 100%;
	left: var(--cs-mkt-pad);
	right: var(--cs-mkt-pad);
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 32px;
	max-height: calc(100vh - 190px);
	overflow-y: auto;
	padding: 28px 32px 32px;
	border: 1px solid var(--wp--preset--color--border);
	border-top: 0;
	border-radius: 0 0 var(--cs-radius-card) var(--cs-radius-card);
	background: var(--wp--preset--color--base);
	box-shadow: var(--cs-shadow-2);
}
.cs-mkt-allcats[open] .cs-mkt-mega {
	animation: cs-mkt-pop var(--cs-mkt-t) var(--cs-mkt-ease);
}
.cs-mkt-mega__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px 28px;
	align-content: start;
}
.cs-mkt-mega__title {
	margin: 0 0 6px;
	font-weight: 700;
}
.cs-mkt-mega__title a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 36px;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}
.cs-mkt-mega__title a span {
	flex: 1;
}
.cs-mkt-mega small {
	color: var(--wp--preset--color--muted);
	font-size: 0.8125rem;
	font-weight: 500;
}
.cs-mkt-mega__title .cs-mkt-icon {
	color: var(--cs-orange-icon);
}
.cs-mkt-mega__list {
	margin: 0;
	padding: 0 0 0 34px;
	list-style: none;
}
.cs-mkt-mega__list a {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 4px 0;
	color: var(--wp--preset--color--body-text);
	font-size: 0.9375rem;
	text-decoration: none;
	transition: color 0.15s ease;
}
.cs-mkt-mega__list a:hover,
.cs-mkt-mega__title a:hover span {
	color: var(--wp--preset--color--primary-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.cs-mkt-mega__side {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.cs-mkt-mega__feature {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--cs-radius-card);
	background: var(--wp--preset--color--tertiary);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}
.cs-mkt-mega__feature-img {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--wp--preset--color--surface);
}
.cs-mkt-mega__feature-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s var(--cs-mkt-ease);
}
.cs-mkt-mega__feature:hover img {
	transform: scale(1.03);
}
.cs-mkt-mega__feature-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 12px 16px 14px;
	font-size: 0.875rem;
	color: var(--wp--preset--color--body-text);
}
.cs-mkt-mega__feature-text strong {
	font-family: var(--cs-font-heading);
	font-size: 1rem;
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
}
.cs-mkt-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: var(--cs-radius-pill);
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--contrast);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.cs-mkt-mega__designs {
	padding: 14px 16px 6px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--cs-radius-card);
}
.cs-mkt-mega__designs-title {
	margin: 0 0 10px;
	font-family: var(--cs-font-heading);
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
}
.cs-mkt-mega__designs ul {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin: 0 0 4px;
	padding: 0;
	list-style: none;
}
.cs-mkt-mega__designs li a {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 8px;
	background: var(--wp--preset--color--surface);
}
.cs-mkt-mega__designs img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Drawer (below 900 px). Closed it is display:none: nothing off-canvas to scroll or tab into. */
.cs-mkt-drawer {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	overflow: visible;
}
.cs-mkt-drawer::backdrop {
	background: rgba(14, 28, 56, 0.55);
	opacity: 0;
	transition: opacity var(--cs-mkt-t) ease;
}
.cs-mkt-drawer.is-open::backdrop {
	opacity: 1;
}
.cs-mkt-drawer__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: min(88vw, 380px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 12px 20px 32px;
	background: var(--wp--preset--color--base);
	box-shadow: var(--cs-shadow-2);
	transform: translateX(-100%);
	transition: transform 0.22s var(--cs-mkt-ease);
}
.cs-mkt-drawer.is-open .cs-mkt-drawer__panel {
	transform: none;
}
.cs-mkt-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}
.cs-mkt-drawer__close {
	margin-right: -10px;
}
/* A search field that wraps onto two rows is a rounded card, not a stretched pill. */
.cs-mkt-search--drawer {
	flex-wrap: wrap;
	border-radius: 22px;
}
@media (max-width: 599px) {
	.cs-mkt-search--hero {
		flex-wrap: wrap;
		border-radius: 22px;
	}
	.cs-mkt-search--hero .cs-mkt-search__scope {
		max-width: none;
		flex: 1 0 100%;
		border-right: 0;
		border-bottom: 1px solid var(--wp--preset--color--border);
	}
}
.cs-mkt-search--drawer .cs-mkt-search__scope {
	flex: 1 0 100%;
	border-right: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.cs-mkt-drawer__heading {
	margin: 24px 0 4px;
	font-family: var(--wp--preset--font-family--ui, inherit);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.cs-mkt-drawer :is(ul) {
	margin: 0;
	padding: 0;
	list-style: none;
}
.cs-mkt-drawer__cats > li,
.cs-mkt-drawer__links > li {
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.cs-mkt-drawer__group summary,
.cs-mkt-drawer__cat,
.cs-mkt-drawer__links a,
.cs-mkt-drawer__group li a {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 48px;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	list-style: none;
	cursor: pointer;
}
.cs-mkt-drawer__group summary::-webkit-details-marker {
	display: none;
}
.cs-mkt-drawer__group summary span,
.cs-mkt-drawer__cat span {
	flex: 1;
	font-weight: 700;
}
.cs-mkt-drawer small {
	color: var(--wp--preset--color--muted);
	font-size: 0.8125rem;
}
.cs-mkt-drawer__group li a {
	justify-content: space-between;
}
.cs-mkt-drawer__group summary .cs-mkt-icon:first-child,
.cs-mkt-drawer__cat .cs-mkt-icon,
.cs-mkt-drawer__links--account .cs-mkt-icon {
	color: var(--cs-orange-icon);
}
.cs-mkt-drawer__group summary .cs-mkt-icon:last-child {
	width: 18px;
	height: 18px;
	transition: transform var(--cs-mkt-t) ease;
}
.cs-mkt-drawer__group[open] summary .cs-mkt-icon:last-child {
	transform: rotate(180deg);
}
.cs-mkt-drawer__group ul {
	padding: 0 0 10px 38px;
}
.cs-mkt-drawer__group li a {
	min-height: 44px;
	color: var(--wp--preset--color--body-text);
}
.cs-mkt-drawer__links {
	margin-top: 8px;
}
.cs-mkt-drawer__links a {
	font-weight: 600;
}
.cs-mkt-drawer__group[open] ul {
	animation: cs-mkt-fade var(--cs-mkt-t) var(--cs-mkt-ease);
}

@keyframes cs-mkt-fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
@keyframes cs-mkt-pop {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	.cs-mkt-drawer__panel,
	.cs-mkt-drawer::backdrop,
	.cs-mkt-search,
	.cs-mkt-allcats__summary .cs-mkt-icon,
	.cs-mkt-mega__feature img {
		transition: none;
	}
	.cs-mkt-allcats[open] .cs-mkt-mega,
	.cs-mkt-header.is-search .cs-mkt-search--header,
	.cs-mkt-drawer__group[open] ul {
		animation: none;
	}
}

/* Newsletter answer (printed at the top of the page after the footer form was sent). */
.cs-mkt-news-notice {
	margin: 0;
	padding: 12px var(--cs-mkt-pad);
	border-bottom: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--contrast);
	text-align: center;
}

/* ---------- footer (cool light surface, trust row, five columns) ----------
   Does not use the parent's .cmsmart-footer class: that layer styles a dark footer (light text, white rules). */
.cs-mkt-footer {
	padding: 0;
	border-top: 1px solid var(--wp--preset--color--border);
	font-size: 0.9375rem;
	line-height: 1.65;
}
.cs-mkt-trust {
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.cs-mkt-trust__in,
.cs-mkt-footer__main,
.cs-mkt-footer__bar {
	max-width: 1260px;
	margin: 0 auto;
	padding-left: var(--cs-mkt-pad);
	padding-right: var(--cs-mkt-pad);
}
.cs-mkt-trust__in {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 24px;
	margin-top: 0;
	margin-bottom: 0;
	padding-top: 28px;
	padding-bottom: 28px;
	list-style: none;
}
.cs-mkt-trust__in li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0;
}
.cs-mkt-trust__in .cs-mkt-icon {
	box-sizing: content-box;
	width: 24px;
	height: 24px;
	padding: 10px;
	border-radius: 50%;
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--primary-dark);
}
.cs-mkt-trust__in strong {
	display: block;
	font-family: var(--cs-font-heading);
	color: var(--wp--preset--color--contrast);
}
.cs-mkt-trust__in span {
	display: block;
	font-size: 0.875rem;
	line-height: 1.5;
}
@media (min-width: 1000px) {
	.cs-mkt-trust__in {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
@media (max-width: 599px) {
	.cs-mkt-trust__in {
		grid-template-columns: minmax(0, 1fr);
	}
}
.cs-mkt-footer__main {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 24px;
	padding-top: 44px;
	padding-bottom: 36px;
}
.cs-mkt-footer__brand {
	grid-column: 1 / -1;
}
.cs-mkt-footer__brand > p {
	max-width: 36ch;
	margin: 12px 0 20px;
}
@media (min-width: 760px) {
	.cs-mkt-footer__main {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (min-width: 1100px) {
	.cs-mkt-footer__main {
		grid-template-columns: minmax(0, 1.7fr) repeat(5, minmax(0, 1fr));
	}
	.cs-mkt-footer__brand {
		grid-column: auto;
	}
}
.cs-mkt-footer__title {
	margin: 0 0 12px;
	font-family: var(--cs-font-heading);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}
.cs-mkt-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
}
.cs-mkt-footer__links li {
	margin: 0;
}
.cs-mkt-footer a {
	color: var(--wp--preset--color--footer-text);
	text-decoration: none;
}
.cs-mkt-footer a:hover,
.cs-mkt-footer a:focus-visible {
	color: var(--wp--preset--color--primary-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.cs-mkt-footer__links a {
	display: inline-flex;
	align-items: center;
	padding: 5px 0;
	min-height: 32px;
}
@media (max-width: 600px) {
	.cs-mkt-footer__links a {
		min-height: var(--wp--custom--target--comfortable, 44px);
	}
}
.cs-mkt-news__hp {
	position: absolute;
	left: -9999px;
}
.cs-mkt-news__label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}
.cs-mkt-news__row {
	display: flex;
	max-width: 420px;
	border: 1px solid var(--cs-mkt-field);
	border-radius: var(--cs-radius-pill);
	background: var(--wp--preset--color--base);
	overflow: hidden;
}
.cs-mkt-news__row:focus-within {
	border-color: var(--wp--preset--color--primary-dark);
	box-shadow: var(--cs-mkt-glow);
}
.cs-mkt-news__row input {
	flex: 1;
	min-width: 0;
	min-height: 44px;
	padding: 0 18px;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font-size: 1rem;
}
.cs-mkt-news__row input:focus-visible {
	outline: none;
}
.cs-mkt-news__row button {
	min-height: 40px;
	margin: 3px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--cs-radius-pill);
	background: var(--cs-orange);
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	cursor: pointer;
}
.cs-mkt-news__row button:hover {
	background: var(--cs-orange-hover);
}
.cs-mkt-footer__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-top: 18px;
	padding-bottom: 28px;
	border-top: 1px solid var(--wp--preset--color--border);
	box-sizing: border-box;
	font-size: 0.875rem;
}
.cs-mkt-footer__legal {
	margin: 0;
}
.cs-mkt-footer__pay {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.cs-mkt-footer__pay img {
	display: block;
	max-height: 24px;
	width: auto;
}

/* WooCommerce's "show password" eye is 20 px; WCAG 2.2 target size wants 24 px at least, the store uses 44. */
.woocommerce form .show-password-input,
.woocommerce-page form .show-password-input {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	right: 0;
}

/* ---------- logo style layer: shapes and colours of the shared components (parent theme, WooCommerce, designer, add-on) ----------
   CTAs: logo orange with navy text (7.6:1), hover orange 600 (5.2:1). Secondary: navy outline pill. Fields: 12 px, orange focus. */
html:root {
	--cs-radius: 12px;
	--cs-radius-field: 12px;
	--cs-ring: var(--wp--custom--orange--700, #a75e03);
	--cs-field-border: var(--wp--custom--navy--500, #6f7c94);
	/* WooCommerce's classic forms (login, register, edit account) default to a brown rgba(32, 7, 7, 0.8) border. */
	--wc-form-border-color: var(--wp--custom--navy--500, #6f7c94);
	--wc-form-border-radius: 12px;
	--wc-form-color-text: var(--wp--preset--color--contrast, #0e1c38);
}
body.cs-marketplace,
body.cs-marketplace .cmkit {
	--cmkit-radius-sm: 8px;
	--cmkit-radius-md: 12px;
	--cmkit-radius-lg: 14px;
	--cmkit-primary-soft: var(--wp--preset--color--tint, #fef5ec);
}
/* Add-on tokens (--cmmk-*): the add-on reads presets this theme does not have (body/display fonts, champagne, link, border-field),
   so its views fell back to Roboto, a Source Serif display stack and an olive field border. Same roles, logo values. */
body.cs-marketplace :is(.cmmk, .cmmk-licences, .cmmk-report, .cmmk-complaints, .cmmk-toasts, .cmmk-dialog, .cmmk-sheet) {
	--cmmk-navy: var(--wp--custom--navy--900, #0e1c38);
	--cmmk-navy-2: var(--wp--custom--navy--800, #1d2d4c);
	--cmmk-action: var(--wp--custom--orange--500, #f69821);
	--cmmk-action-hover: var(--wp--custom--orange--600, #d17a02);
	--cmmk-on-action: var(--wp--custom--navy--900, #0e1c38);
	--cmmk-champagne: var(--wp--custom--orange--500, #f69821);
	--cmmk-champagne-soft: var(--wp--custom--orange--100, #fee9d4);
	--cmmk-gold: var(--wp--custom--orange--700, #a75e03);
	--cmmk-gold-ink: var(--wp--custom--orange--800, #884800);
	--cmmk-ivory: var(--wp--custom--navy--50, #f5f7f9);
	--cmmk-surface: var(--wp--custom--navy--100, #eceff3);
	--cmmk-border: var(--wp--custom--navy--200, #dbe0e8);
	--cmmk-border-field: var(--wp--custom--navy--500, #6f7c94);
	--cmmk-info: var(--wp--custom--navy--700, #334363);
	--cmmk-info-soft: var(--wp--custom--navy--100, #eceff3);
	--cmmk-neutral: var(--wp--custom--navy--700, #334363);
	--cmmk-neutral-soft: var(--wp--custom--navy--100, #eceff3);
	--cmmk-font: var(--wp--preset--font-family--ui);
	--cmmk-font-display: var(--wp--preset--font-family--heading);
	--cmmk-focus: 0 0 0 2px #fff, 0 0 0 4px var(--wp--custom--orange--700, #a75e03);
	--cmmk-scrim: rgba(14, 28, 56, 0.5);
}
body.cs-marketplace :is(.cmmk h1, .cmmk h2, .cmmk-display) {
	font-weight: 700;
}
:where(a):focus-visible,
:where(button):focus-visible,
:where(summary):focus-visible {
	border-radius: 4px;
}

/* Every filled button is an orange pill with navy text. */
.wp-element-button,
.wp-block-button__link,
.wc-block-components-button:not(.is-link),
.woocommerce .button,
.woocommerce-page .button,
button.single_add_to_cart_button,
input[type="submit"],
.cmkit-btn,
form.cart .nbdesign-button,
.nbd-action-wrap .nbdesign-button {
	border-radius: var(--cs-radius-pill) !important;
}
.wc-block-components-button:not(.is-link):not(.outlined),
.woocommerce .button.alt,
.woocommerce-page .button.alt,
.woocommerce .button.checkout-button,
button.single_add_to_cart_button,
.cmkit-btn--primary,
form.cart .nbdesign-button,
form.cart a.nbdesign-button.button.alt {
	border: 2px solid var(--cs-orange);
	background: var(--cs-orange);
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
}
.wc-block-components-button:not(.is-link):not(.outlined):hover,
.woocommerce .button.alt:hover,
.woocommerce-page .button.alt:hover,
.woocommerce .button.checkout-button:hover,
button.single_add_to_cart_button:hover,
.cmkit-btn--primary:hover,
form.cart .nbdesign-button:hover,
form.cart a.nbdesign-button.button.alt:hover {
	border-color: var(--cs-orange-hover);
	background: var(--cs-orange-hover);
	color: var(--wp--preset--color--contrast);
}
.wc-block-components-button:not(.is-link) .wc-block-components-button__text {
	color: inherit;
}
/* Designer products: "Start design" is the orange pill; Add to cart, Upload and Use template are navy outline pills. */
form.cart:has(.nbdesign-button) .single_add_to_cart_button,
form.cart .nbdesign-button.upload-design,
.nbd-action-wrap .nbdesign-button.upload-design,
.nbd-action-wrap .nbdesign-button#useTemplate,
.woocommerce .button:not(.alt):not(.checkout-button),
.wc-block-components-button.outlined,
.cmkit-btn:not(.cmkit-btn--primary) {
	border: 2px solid var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}
form.cart:has(.nbdesign-button) .single_add_to_cart_button:hover,
form.cart .nbdesign-button.upload-design:hover,
.nbd-action-wrap .nbdesign-button.upload-design:hover,
.nbd-action-wrap .nbdesign-button#useTemplate:hover,
.woocommerce .button:not(.alt):not(.checkout-button):hover,
.wc-block-components-button.outlined:hover,
.cmkit-btn:not(.cmkit-btn--primary):hover {
	border-color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/* Fields */
:where(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="password"], input[type="search"], select, textarea):focus {
	border-color: var(--wp--preset--color--primary-dark);
	box-shadow: var(--cs-mkt-glow);
}
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-textarea {
	border-radius: var(--cs-radius-field) !important;
}
input[type="checkbox"],
input[type="radio"] {
	accent-color: var(--wp--preset--color--primary-dark);
}

/* Cart at 390: WooCommerce's mobile row is "80px 132px" and puts the line total in an implicit 43 px column, too narrow for
   Poppins figures ("$18.00" was cut at the screen edge). The total gets its own auto column. */
body :is(.is-mobile, .is-small) table.wc-block-cart-items .wc-block-cart-items__row {
	grid-template-columns: 80px minmax(0, 1fr) auto;
}
body :is(.is-mobile, .is-small) table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product {
	grid-column: 2 / 3;
}
body :is(.is-mobile, .is-small) table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
	grid-column: 3 / 4;
}

/* Badges and counters: pills. Orange with navy text; the sale badge is navy with white text. */
.wc-block-mini-cart__badge {
	background: var(--cs-orange);
	color: var(--wp--preset--color--contrast);
}
.wc-block-components-product-sale-badge,
.wc-block-components-sale-badge,
.woocommerce span.onsale {
	border: 0;
	border-radius: var(--cs-radius-pill);
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--base);
	font-weight: 600;
}
.cmkit-chip,
.cmmk-chip {
	border-radius: var(--cs-radius-pill);
}

/* Pagination: the current page is a navy dot-pill, like the dot of the "M". */
.wp-block-query-pagination .page-numbers,
.woocommerce-pagination .page-numbers li > *,
.cmmk-pager__link {
	border-radius: var(--cs-radius-pill);
}
.wp-block-query-pagination .page-numbers.current,
.woocommerce-pagination .page-numbers li > .current,
.cmmk-pager__link.is-current {
	border-color: var(--wp--preset--color--navy);
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--base);
}

/* Notices: white card, orange or navy edge. */
.woocommerce-message,
.woocommerce-info,
.wc-block-components-notice-banner.is-info,
.wc-block-components-notice-banner.is-success {
	border-radius: var(--cs-radius);
}
.woocommerce-message,
.woocommerce-info {
	border-top-color: var(--cs-orange);
}
.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--cs-orange-icon);
}

/* Product gallery and price: navy prices (orange stays for actions), active thumbnail ringed in orange. */
.wc-block-product-gallery-thumbnails__thumbnail__image--is-active,
.wc-block-product-gallery-thumbnails__thumbnail__image:hover {
	border-color: var(--cs-orange) !important;
}
.wc-block-components-product-price,
.wp-block-woocommerce-product-price,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.cs-sticky-atc__price,
.nbo-wrapper .nbo-summary-table tr.nbo-final-price td {
	color: var(--wp--preset--color--contrast) !important;
}
.wc-block-components-product-image img,
.wc-block-components-product-image,
.wp-block-woocommerce-product-image img {
	border-radius: var(--cs-radius);
}

/* Cart and checkout: card surfaces at 14 px. */
.wc-block-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block,
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block,
.wc-block-components-radio-control--highlight-checked,
.wc-block-components-radio-control-accordion-option {
	border-radius: var(--cs-radius-card);
}
.wc-block-components-radio-control--highlight-checked::after,
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
	border-radius: var(--cs-radius-card);
	box-shadow: inset 0 0 0 2px var(--cs-orange);
}
.wc-block-components-quantity-selector {
	border-radius: var(--cs-radius-pill);
}
.wc-block-components-quantity-selector::after {
	border-radius: var(--cs-radius-pill);
}
