/*
Theme Name: printing.mk
Theme URI: https://printing.mk
Author: printing.mk
Description: Block theme for printing.mk — custom printed t-shirts across Macedonia, built for WooCommerce.
Requires at least: 7.0
Tested up to: 7.1
Requires PHP: 8.1
Version: 0.2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: printing-mk
*/

/* ---------------------------------------------------------------- Base */

:root {
	--pmk-radius-card: var(--wp--custom--radius--card, 20px);
	--pmk-radius-media: var(--wp--custom--radius--media, 28px);
	--pmk-shadow: 0 1px 2px rgba(22, 24, 29, 0.06), 0 12px 32px -12px rgba(22, 24, 29, 0.22);
	/* Cobalt as text, links and focus rings; in dark mode it is lighter than the button fill. */
	--pmk-accent: var(--wp--preset--color--cobalt);
	/* Dark bands (top bar, footer) and their text: they stay dark in dark mode instead of inverting. */
	--pmk-band: var(--wp--preset--color--ink);
	--pmk-on-band: #fff;
	/* Text fields' outline: half the text colour, at least 3:1 against the page in both modes. */
	--pmk-field-border: color-mix(in srgb, var(--wp--preset--color--ink) 50%, transparent);
	color-scheme: light;
}

/* ---------------------------------------------------------------- Light and dark */

/*
 * Dark mode redefines the palette: "white" is the surface, "paper" the page, "ink" the text. Cobalt
 * stays a fill that white text reads on. <html data-theme> is set before painting (functions.php);
 * without scripts, the system setting applies.
 */
:root[data-theme="dark"] {
	--wp--preset--color--white: #17191e;
	--wp--preset--color--paper: #0f1014;
	--wp--preset--color--ink: #ecedef;
	--wp--preset--color--graphite: #cdd0d6;
	--wp--preset--color--heather: #a3a9b3;
	--wp--preset--color--seam: #2c3038;
	--wp--preset--color--cobalt: #3b57f5;
	--wp--preset--color--cobalt-deep: #5069ff;
	--wp--preset--color--sky: #1b2350;
	--pmk-accent: #8b9cff;
	--pmk-band: #08090b;
	--pmk-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px -12px rgba(0, 0, 0, 0.8);
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		--wp--preset--color--white: #17191e;
		--wp--preset--color--paper: #0f1014;
		--wp--preset--color--ink: #ecedef;
		--wp--preset--color--graphite: #cdd0d6;
		--wp--preset--color--heather: #a3a9b3;
		--wp--preset--color--seam: #2c3038;
		--wp--preset--color--cobalt: #3b57f5;
		--wp--preset--color--cobalt-deep: #5069ff;
		--wp--preset--color--sky: #1b2350;
		--pmk-accent: #8b9cff;
		--pmk-band: #08090b;
		--pmk-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px -12px rgba(0, 0, 0, 0.8);
		color-scheme: dark;
	}
}

.has-ink-background-color {
	background-color: var(--pmk-band) !important;
}

.has-white-color {
	color: var(--pmk-on-band) !important;
}

/* The designer's panels follow the surface; its text on ink-coloured buttons follows the page. */
.wp-block-printblob-designer {
	--printblob-on-ink: var(--wp--preset--color--white);
}

/* Switching colours: a short cross-fade where the browser supports view transitions. */
::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: 0.35s;
}

/* ---------------------------------------------------------------- Theme toggle */

.pmk-theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.pmk-theme-toggle:hover {
	background: var(--wp--preset--color--paper);
}

.pmk-theme-toggle__icon {
	overflow: visible;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pmk-theme-toggle__body {
	transform-origin: 12px 12px;
	transition: transform 0.5s cubic-bezier(0.5, 1.5, 0.5, 1);
}

.pmk-theme-toggle__cut {
	transition: transform 0.45s cubic-bezier(0.5, 1.5, 0.5, 1);
}

.pmk-theme-toggle__rays {
	transform-origin: 12px 12px;
	transition: transform 0.5s cubic-bezier(0.5, 1.5, 0.5, 1), opacity 0.3s ease;
}

/*
 * Dark: the sun grows into a full disc, the shadow slides over it into a crescent, the rays fold away.
 * Drawn from <html data-theme>, which is set before the first paint, so the icon doesn't animate on load.
 */
:root[data-theme="dark"] .pmk-theme-toggle .pmk-theme-toggle__icon {
	transform: rotate(360deg);
}

:root[data-theme="dark"] .pmk-theme-toggle .pmk-theme-toggle__body {
	transform: scale(1.75);
}

:root[data-theme="dark"] .pmk-theme-toggle .pmk-theme-toggle__cut {
	transform: translate(-6.5px, 2px);
}

:root[data-theme="dark"] .pmk-theme-toggle .pmk-theme-toggle__rays {
	transform: rotate(90deg) scale(0);
	opacity: 0;
}

/* ---------------------------------------------------------------- Menu button */

/*
 * The navigation's menu button is three bars drawn here instead of core's icon. They fan out on hover,
 * and when the menu opens its close button (in the same corner) folds the bars into a cross.
 */
.pmk-nav .wp-block-navigation__responsive-container-open {
	position: relative;
}

.pmk-nav .wp-block-navigation__responsive-container-open,
.pmk-nav .wp-block-navigation__responsive-container-close {
	width: 2.75rem;
	height: 2.75rem;
	padding: 0 !important;
	border-radius: 999px;
	color: var(--wp--preset--color--ink);
	transition: background-color 0.2s ease;
}

.pmk-nav .wp-block-navigation__responsive-container-open:hover,
.pmk-nav .wp-block-navigation__responsive-container-close:hover {
	background: var(--wp--preset--color--paper);
}

.pmk-nav .wp-block-navigation__responsive-container-open svg,
.pmk-nav .wp-block-navigation__responsive-container-close svg {
	display: none;
}

.pmk-nav .wp-block-navigation__responsive-container-open::before,
.pmk-nav .wp-block-navigation__responsive-container-open::after,
.pmk-nav .wp-block-navigation__responsive-container-close::before,
.pmk-nav .wp-block-navigation__responsive-container-close::after {
	content: "";
	position: absolute;
	left: 50%;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

/* Open button: ::before is the middle bar; ::after draws the outer two as its top and bottom borders. */
.pmk-nav .wp-block-navigation__responsive-container-open::before {
	top: 50%;
	width: 1.375rem;
	margin: -1px 0 0 -0.6875rem;
	transition: width 0.25s ease, margin 0.25s ease;
}

.pmk-nav .wp-block-navigation__responsive-container-open::after {
	top: 50%;
	width: 1.375rem;
	height: 0.875rem;
	margin: calc(-0.4375rem) 0 0 -0.6875rem;
	border-block: 2px solid currentColor;
	border-radius: 0;
	background: transparent;
	transition: width 0.25s ease, margin 0.25s ease;
}

.pmk-nav .wp-block-navigation__responsive-container-open:hover::before {
	width: 0.875rem;
	margin-left: -0.1875rem;
}

.pmk-nav .wp-block-navigation__responsive-container-open:hover::after {
	width: 1.625rem;
	margin-left: -0.8125rem;
}

/* Close button: two bars crossing, unfolding from the burger's lines as the menu opens. */
.pmk-nav .wp-block-navigation__responsive-container-close::before,
.pmk-nav .wp-block-navigation__responsive-container-close::after {
	top: 50%;
	width: 1.375rem;
	margin: -1px 0 0 -0.6875rem;
}

.pmk-nav .wp-block-navigation__responsive-container-close::before {
	transform: rotate(45deg);
}

.pmk-nav .wp-block-navigation__responsive-container-close::after {
	transform: rotate(-45deg);
}

.pmk-nav .is-menu-open .wp-block-navigation__responsive-container-close::before {
	animation: pmk-bar-down 0.45s cubic-bezier(0.6, 0, 0.2, 1) both;
}

.pmk-nav .is-menu-open .wp-block-navigation__responsive-container-close::after {
	animation: pmk-bar-up 0.45s cubic-bezier(0.6, 0, 0.2, 1) both;
}

@keyframes pmk-bar-down {
	0% {
		transform: translateY(-0.4375rem) rotate(0);
	}

	50% {
		transform: translateY(0) rotate(0);
	}

	100% {
		transform: translateY(0) rotate(45deg);
	}
}

@keyframes pmk-bar-up {
	0% {
		transform: translateY(0.4375rem) rotate(0);
	}

	50% {
		transform: translateY(0) rotate(0);
	}

	100% {
		transform: translateY(0) rotate(-45deg);
	}
}

/* The open menu takes the page's colours (core paints it white). */
.pmk-header .pmk-nav:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
}

/* The open menu: links rise in one after another. */
.pmk-nav .is-menu-open .wp-block-navigation-item {
	animation: pmk-menu-item 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.pmk-nav .is-menu-open .wp-block-navigation-item:nth-child(2) {
	animation-delay: 0.05s;
}

.pmk-nav .is-menu-open .wp-block-navigation-item:nth-child(3) {
	animation-delay: 0.1s;
}

.pmk-nav .is-menu-open .wp-block-navigation-item:nth-child(4) {
	animation-delay: 0.15s;
}

.pmk-nav .is-menu-open .wp-block-navigation-item:nth-child(n + 5) {
	animation-delay: 0.2s;
}

@keyframes pmk-menu-item {
	from {
		opacity: 0;
		transform: translateY(0.75rem);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pmk-theme-toggle__icon,
	.pmk-theme-toggle__body,
	.pmk-theme-toggle__cut,
	.pmk-theme-toggle__rays,
	.pmk-nav .wp-block-navigation__responsive-container-open::before,
	.pmk-nav .wp-block-navigation__responsive-container-open::after {
		transition: none;
	}

	.pmk-nav .is-menu-open .wp-block-navigation__responsive-container-close::before,
	.pmk-nav .is-menu-open .wp-block-navigation__responsive-container-close::after,
	.pmk-nav .is-menu-open .wp-block-navigation-item {
		animation: none;
	}
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

:where(a, button, summary, input, select, textarea):focus-visible {
	outline: 3px solid var(--pmk-accent);
	outline-offset: 3px;
}

/* ---------------------------------------------------------------- Header */

.pmk-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
}

.pmk-facts-inline {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-weight: 500;
	letter-spacing: 0.01em;
}

.pmk-facts-inline li,
.pmk-checks li {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.pmk-facts-inline li::before,
.pmk-checks li::before {
	content: "";
	flex: none;
	width: 1em;
	height: 1em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.7 14.3 3.4 10l1.4-1.4 2.9 2.9 7.5-7.5 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7.7 14.3 3.4 10l1.4-1.4 2.9 2.9 7.5-7.5 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pmk-header {
	border-bottom: 1px solid var(--wp--preset--color--seam);
}

.pmk-nav .wp-block-navigation-item__content {
	padding: 0.35rem 0;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 2px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.2s ease;
}

.pmk-nav .wp-block-navigation-item__content:hover {
	background-size: 100% 2px;
}

.pmk-header__tools .wp-block-woocommerce-mini-cart,
.pmk-header__tools .wp-block-woocommerce-customer-account {
	display: flex;
	align-items: center;
}

/* The Design button gives way to the menu on narrower screens (beats core's .is-layout-flex). */
@media (max-width: 1100px) {
	.pmk-header .pmk-header__cta {
		display: none;
	}
}

@media (max-width: 781px) {
	/* The facts stay readable without scrolling: smaller and closer, wrapping to two short lines at most. */
	.pmk-topbar .pmk-facts-inline {
		gap: 0.2rem 1rem;
		font-size: 0.72rem !important;
	}

	.pmk-topbar .pmk-facts-inline li::before {
		width: 0.85em;
		height: 0.85em;
	}

	.pmk-header {
		padding-top: 0.6rem !important;
		padding-bottom: 0.6rem !important;
	}

	/* Logo, tools, then the menu button at the far right. */
	.pmk-header .pmk-nav {
		order: 3;
	}

	.pmk-header__tools {
		margin-left: auto;
		gap: 0.35rem !important;
	}

	.pmk-header .wp-block-navigation__responsive-container-open {
		padding: 0.5rem;
	}

	.pmk-lang > summary {
		padding: 0.35rem 0.55rem;
	}
}

@media (max-width: 781px) {
	.pmk-header > .alignwide {
		gap: 0.5rem !important;
	}

	.pmk-header__tools .wc-block-mini-cart__button,
	.pmk-header__tools .wc-block-customer-account__account-icon,
	.pmk-header__tools .wp-block-woocommerce-customer-account a {
		padding: 0.35rem !important;
	}
}

@media (max-width: 400px) {
	.pmk-header .wp-block-site-title {
		font-size: 1.05rem !important;
	}

	.pmk-header__tools {
		gap: 0.15rem !important;
	}

	.pmk-header .pmk-lang > summary {
		gap: 0.2rem;
		padding: 0.3rem 0.45rem;
	}

	.pmk-header .wp-block-navigation__responsive-container-open {
		padding: 0.4rem 0 0.4rem 0.4rem;
	}
}

/* On the smallest phones the language switcher stays in the footer only. */
@media (max-width: 340px) {
	.pmk-header__tools .wp-block-printing-mk-language-switcher {
		display: none;
	}
}

/* ---------------------------------------------------------------- Language switcher */

.pmk-lang {
	position: relative;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 650;
}

.pmk-lang > summary {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.45rem 0.7rem;
	border: 1.5px solid var(--wp--preset--color--seam);
	border-radius: 999px;
	cursor: pointer;
	list-style: none;
}

.pmk-lang > summary::-webkit-details-marker {
	display: none;
}

.pmk-lang > summary::after {
	content: "";
	width: 0.55em;
	height: 0.55em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-20%) rotate(45deg);
}

.pmk-lang[open] > summary::after {
	transform: translateY(15%) rotate(225deg);
}

.pmk-lang ul {
	position: absolute;
	right: 0;
	top: calc(100% + 0.5rem);
	z-index: 60;
	min-width: 12rem;
	margin: 0;
	padding: 0.4rem;
	list-style: none;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--seam);
	border-radius: 14px;
	box-shadow: var(--pmk-shadow);
}

.pmk-lang a {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.55rem 0.7rem;
	border-radius: 10px;
	color: inherit;
	text-decoration: none;
}

.pmk-lang a:hover {
	background: var(--wp--preset--color--paper);
}

.pmk-lang a[aria-current="true"] {
	background: var(--wp--preset--color--sky);
	color: var(--pmk-accent);
}

.pmk-lang__code {
	min-width: 1.8rem;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	letter-spacing: 0.02em;
}

.pmk-lang__name {
	font-weight: 500;
}

.pmk-footer .pmk-lang > summary {
	border-color: rgba(255, 255, 255, 0.28);
}

.pmk-footer .pmk-lang ul {
	top: auto;
	bottom: calc(100% + 0.5rem);
	left: 0;
	right: auto;
}

/* ---------------------------------------------------------------- Hero */

.pmk-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
}

.pmk-hero__title {
	margin: 0;
	text-wrap: balance;
}

.pmk-hero__lead {
	max-width: 32em;
	margin-top: 1.75rem;
	color: var(--wp--preset--color--graphite);
	line-height: 1.5;
}

.pmk-hero__actions {
	margin-top: 2.25rem;
	gap: 0.75rem;
}

.pmk-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.75rem;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
	font-weight: 600;
}

.pmk-checks li::before {
	color: var(--pmk-accent);
	width: 1.15em;
	height: 1.15em;
}

.pmk-hero__media {
	position: relative;
}

.pmk-hero__photo,
.pmk-hero__photo img {
	margin: 0;
	border-radius: var(--pmk-radius-media);
}

.pmk-hero__photo img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 46% 50%;
}

.pmk-hero__colors {
	position: absolute;
	left: clamp(-3rem, -4vw, -1rem);
	bottom: 2rem;
	padding: 1rem 1.1rem 0.9rem;
	background: var(--wp--preset--color--white);
	border-radius: var(--pmk-radius-card);
	box-shadow: var(--pmk-shadow);
}

.pmk-hero__colors-title {
	margin: 0 0 0.6rem;
	font-weight: 650;
}

@media (max-width: 900px) {
	.pmk-hero {
		grid-template-columns: minmax(0, 1fr);
	}

	.pmk-hero__photo img {
		aspect-ratio: 5 / 4;
	}

	.pmk-hero__colors {
		position: relative;
		left: auto;
		bottom: auto;
		margin-top: -2.5rem;
		margin-inline: 1rem;
	}
}

@media (max-width: 600px) {
	.pmk-hero {
		padding-top: var(--wp--preset--spacing--40) !important;
	}

	.pmk-hero__title {
		font-size: clamp(2.2rem, 11vw, 2.75rem);
	}

	.pmk-hero__lead {
		margin-top: 1.25rem;
		font-size: var(--wp--preset--font-size--medium) !important;
	}

	/* Full-width buttons are easier to tap. */
	.pmk-hero__actions {
		flex-direction: column;
		align-items: stretch;
		margin-top: 1.75rem;
	}

	.pmk-hero__actions .wp-block-button,
	.pmk-hero__actions .wp-block-button__link {
		width: 100%;
	}

	.pmk-checks {
		flex-direction: column;
		gap: 0.5rem;
	}

	.pmk-hero__colors .printblob-colors--row {
		flex-wrap: nowrap;
		justify-content: space-between;
	}
}

/* ---------------------------------------------------------------- Section heads */

.pmk-section-head {
	gap: 1rem 2rem;
	margin-bottom: var(--wp--preset--spacing--50);
}

.pmk-section-head h2 {
	margin: 0;
	max-width: 14em;
	text-wrap: balance;
}

.pmk-section-head__note {
	max-width: 26em;
	margin: 0;
	color: var(--wp--preset--color--heather);
}

.pmk-link-arrow a {
	font-weight: 650;
	text-decoration: none;
	border-bottom: 2px solid currentColor;
	padding-bottom: 0.15rem;
}

/* ---------------------------------------------------------------- Product cards */

.wp-block-woocommerce-product-collection .wc-block-product-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, 2.5vw, 2rem) clamp(1rem, 2vw, 1.75rem);
}

.wp-block-woocommerce-product-collection .wc-block-product-template > li {
	width: auto !important;
	margin: 0;
}

@media (max-width: 900px) {
	.wp-block-woocommerce-product-collection .wc-block-product-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Phones keep two products per row so the shop doesn't become one long scroll. */
@media (max-width: 520px) {
	.wp-block-woocommerce-product-collection .wc-block-product-template {
		gap: 1.25rem 0.75rem;
	}

	.wc-block-product .wp-block-post-title {
		font-size: var(--wp--preset--font-size--small) !important;
	}

	.wc-block-product .wc-block-components-product-image,
	.wc-block-product .wc-block-components-product-image img {
		border-radius: 14px;
	}
}

.wc-block-product .wc-block-components-product-image {
	margin-bottom: 0.9rem;
	background: var(--wp--preset--color--paper);
	border-radius: var(--pmk-radius-card);
	overflow: hidden;
}

.wc-block-product .wc-block-components-product-image img {
	transition: transform 0.35s ease;
}

.wc-block-product:hover .wc-block-components-product-image img {
	transform: scale(1.03);
}

.pmk-card-title,
.wc-block-product .wp-block-post-title {
	margin: 0 0 0.25rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	letter-spacing: -0.01em;
}

.wc-block-product .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.wc-block-product .wc-block-components-product-price {
	color: var(--wp--preset--color--heather);
	font-weight: 550;
}

/* ---------------------------------------------------------------- Steps */

.pmk-steps h2 {
	max-width: 14em;
	margin-bottom: var(--wp--preset--spacing--50);
}

.pmk-steps__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: pmk-step;
}

.pmk-steps__item {
	counter-increment: pmk-step;
}

.pmk-steps__item img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--pmk-radius-card);
	background: var(--wp--preset--color--paper);
}

.pmk-steps__item h3 {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	margin: 1.25rem 0 0.5rem;
}

.pmk-steps__item h3::before {
	content: counter(pmk-step);
	font-size: 2.25rem;
	font-weight: 800;
	line-height: 1;
	color: var(--pmk-accent);
}

.pmk-steps__item p {
	margin: 0;
	color: var(--wp--preset--color--heather);
}

/* ---------------------------------------------------------------- Occasions */

.pmk-occasions h2 {
	margin-bottom: var(--wp--preset--spacing--50);
}

.pmk-occasions__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.pmk-occasions__item a {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--pmk-radius-media);
	color: var(--pmk-on-band);
	text-decoration: none;
}

.pmk-occasions__item img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.pmk-occasions__item a:hover img {
	transform: scale(1.04);
}

.pmk-occasions__item a::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(22, 24, 29, 0) 45%, rgba(22, 24, 29, 0.78) 100%);
}

.pmk-occasions__text {
	position: absolute;
	left: 1.5rem;
	right: 1.5rem;
	bottom: 1.4rem;
	z-index: 1;
	display: grid;
	gap: 0.35rem;
}

.pmk-occasions__text strong {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.15;
}

/* ---------------------------------------------------------------- Quality */

.pmk-quality__photo img {
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	border-radius: var(--pmk-radius-media);
}

.pmk-quality h2 {
	margin-top: 0;
	text-wrap: balance;
}

.pmk-quality__points {
	display: grid;
	gap: 1.1rem;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.78);
}

.pmk-quality__points strong {
	color: var(--pmk-on-band);
}

/* ---------------------------------------------------------------- Questions */

.pmk-question > summary {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.pmk-question > summary::-webkit-details-marker {
	display: none;
}

.pmk-question > summary::after {
	content: "+";
	flex: none;
	font-weight: 400;
	color: var(--pmk-accent);
	transition: transform 0.2s ease;
}

.pmk-question[open] > summary::after {
	transform: rotate(45deg);
}

.pmk-question p {
	max-width: 38em;
	margin: 0.75rem 0 0;
	color: var(--wp--preset--color--graphite);
}

/* ---------------------------------------------------------------- Call to action */

.pmk-cta__title {
	margin: 0;
	max-width: 13em;
	font-size: var(--wp--preset--font-size--xx-large);
	text-wrap: balance;
}

.pmk-cta__button .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink) !important;
	color: var(--pmk-on-band) !important;
}

/* ---------------------------------------------------------------- Footer */

.pmk-footer h2 {
	margin: 0 0 1rem;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	color: var(--pmk-on-band);
}

.pmk-footer__lead {
	max-width: 28em;
	color: rgba(255, 255, 255, 0.72);
}

.pmk-footer a {
	text-decoration: none;
}

.pmk-footer a:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.pmk-footer .is-style-pmk-plain li {
	color: rgba(255, 255, 255, 0.72);
}

.pmk-footer__rule {
	margin-top: var(--wp--preset--spacing--50);
	border-color: rgba(255, 255, 255, 0.16) !important;
	opacity: 1;
}

.pmk-footer__legal {
	color: rgba(255, 255, 255, 0.55);
}

/* ---------------------------------------------------------------- Responsive grids */

@media (max-width: 900px) {
	.pmk-steps__list,
	.pmk-occasions__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.pmk-occasions__item img {
		aspect-ratio: 4 / 3;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
	}
}

/* ---------------------------------------------------------------- Shop */

.wp-block-woocommerce-breadcrumbs {
	color: var(--wp--preset--color--heather);
}

.wp-block-woocommerce-breadcrumbs a {
	color: inherit;
}

.pmk-shop-head {
	margin-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
}

.pmk-shop-head__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--xx-large);
}

.pmk-shop-head__lead {
	max-width: 36em;
	margin-top: 1rem;
	color: var(--wp--preset--color--graphite);
}

.pmk-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1.75rem 0 0;
	padding: 0;
	list-style: none;
}

.pmk-chips li {
	margin: 0;
}

.pmk-chips a {
	display: inline-block;
	padding: 0.6rem 1.15rem;
	border: 1.5px solid var(--wp--preset--color--seam);
	border-radius: 999px;
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.pmk-chips a:hover {
	border-color: var(--wp--preset--color--ink);
}

.pmk-chips .current-cat a,
.pmk-chips a[aria-current="page"] {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

/* A category page has its own description, so the shop's introduction steps aside. */
.tax-product_cat .pmk-shop-head__lead--shop {
	display: none;
}

/* ---------------------------------------------------------------- Product page */

.pmk-product {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
	margin-top: var(--wp--preset--spacing--40);
}

.pmk-product__gallery {
	gap: 0.75rem;
}

.pmk-product__gallery .wc-block-product-gallery-large-image,
.pmk-product__gallery .wc-block-product-gallery-large-image img {
	border-radius: var(--pmk-radius-media);
	overflow: hidden;
	background: var(--wp--preset--color--paper);
}

.pmk-product__gallery .wc-block-product-gallery-thumbnails__thumbnail img {
	border-radius: 12px;
}

.pmk-product__summary {
	position: sticky;
	top: 9rem;
}

.pmk-product__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--xx-large);
}

.pmk-product__price {
	margin-top: 1rem;
	font-weight: 650;
}

.pmk-product__excerpt {
	margin-top: 1.25rem;
	color: var(--wp--preset--color--graphite);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
}

.pmk-product__buy {
	margin-top: 2rem;
}

.pmk-product__buy .wc-block-add-to-cart-with-options-variation-selector-attribute-name,
.pmk-product__buy label {
	font-weight: 700;
}

.pmk-product__buy .wc-block-product-filter-chips__item,
.pmk-product__buy .wc-block-product-filter-chips__items button {
	border-radius: 999px !important;
}

.pmk-product__buy .wp-block-woocommerce-product-button .wp-block-button__link,
.pmk-product__buy .wc-block-components-product-button__button {
	min-height: 3.4rem;
	padding-inline: 2.25rem;
	border-radius: 999px;
	font-weight: 700;
}

.pmk-assurance {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--wp--preset--color--seam);
}

.pmk-checks--stacked {
	display: grid;
	gap: 0.6rem;
	margin: 0;
}

.pmk-assurance__custom {
	margin-top: 1.5rem;
	color: var(--wp--preset--color--heather);
}

.pmk-assurance__custom a {
	font-weight: 650;
	color: var(--pmk-accent);
}

@media (max-width: 900px) {
	.pmk-product {
		grid-template-columns: minmax(0, 1fr);
	}

	.pmk-product__summary {
		position: static;
	}
}

/* ---------------------------------------------------------------- Account */

.woocommerce-account .woocommerce {
	max-width: 1040px;
	margin-inline: auto;
}

.woocommerce-account #customer_login {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem);
}

.woocommerce-account #customer_login > div {
	float: none;
	width: auto;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	background: var(--wp--preset--color--paper);
	border-radius: var(--pmk-radius-card);
}

.woocommerce-account #customer_login h2 {
	margin-top: 0;
	font-size: var(--wp--preset--font-size--x-large);
}

.woocommerce-account form.login,
.woocommerce-account form.register {
	margin: 1.5rem 0 0;
	padding: 0;
	border: 0;
}

.woocommerce form .form-row {
	display: grid;
	gap: 0.4rem;
	margin: 0 0 1.1rem;
	padding: 0;
}

.woocommerce form .form-row label {
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
}

.woocommerce form .input-text,
.woocommerce form select {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1.5px solid var(--pmk-field-border) !important;
	border-radius: 12px;
	background: var(--wp--preset--color--white) !important;
	color: var(--wp--preset--color--ink) !important;
	font: inherit;
}

.woocommerce form .input-text:focus {
	border-color: var(--pmk-accent);
	outline: 2px solid var(--pmk-accent);
	outline-offset: 1px;
}

.woocommerce-account .woocommerce-button,
.woocommerce-account button.button {
	padding: 0.95rem 1.75rem;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--cobalt);
	color: var(--pmk-on-band);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.woocommerce-account .woocommerce-button:hover,
.woocommerce-account button.button:hover {
	background: var(--wp--preset--color--cobalt-deep);
}

.woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-left: 1rem;
}

.woocommerce-LostPassword {
	margin-top: 1rem;
}

.woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}

.woocommerce-MyAccount-navigation a {
	display: inline-block;
	padding: 0.55rem 1.1rem;
	border-radius: 999px;
	border: 1.5px solid var(--wp--preset--color--seam);
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	text-decoration: none;
}

.woocommerce-MyAccount-navigation .is-active a {
	background: var(--wp--preset--color--ink);
	border-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
}

@media (max-width: 760px) {
	.woocommerce-account #customer_login {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Variation chips: larger pills; colour chips get a swatch dot. */
.pmk-product__buy .wp-block-woocommerce-product-filter-chips {
	font-size: var(--wp--preset--font-size--medium);
}

.pmk-product__buy .wc-block-product-filter-chips__items {
	gap: 0.5rem;
}

.pmk-product__buy .wc-block-product-filter-chips__item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	padding: 0.5rem 1.1rem;
	border: 1.5px solid var(--wp--preset--color--seam);
	border-radius: 999px;
	font-weight: 600;
	transition: border-color 0.15s ease;
}

.pmk-product__buy .wc-block-product-filter-chips__item:hover {
	border-color: var(--wp--preset--color--ink);
}

.pmk-product__buy .wc-block-product-filter-chips__item[aria-checked="true"] {
	border-color: var(--wp--preset--color--ink);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--ink);
}

.pmk-product__buy .wc-block-product-filter-chips__item[id^="attribute_pa_color-"]::before {
	content: "";
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	background: var(--printblob-swatch, transparent);
	box-shadow: inset 0 0 0 1px rgba(22, 24, 29, 0.2);
}

.pmk-product__buy .wc-block-product-filter-chips__item:disabled {
	opacity: 0.4;
	text-decoration: line-through;
}

.pmk-product__buy .wc-block-product-filter-chips__item[aria-checked="true"]::before {
	box-shadow: 0 0 0 1.5px var(--wp--preset--color--white);
}

/* ---------------------------------------------------------------- Cart & checkout */

.pmk-page-title {
	margin: 0 0 var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--xx-large);
}

.wc-block-cart,
.wc-block-checkout {
	--pmk-panel: var(--wp--preset--color--paper);
}

.wc-block-cart .wc-block-cart-items__header {
	color: var(--wp--preset--color--heather);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

.wc-block-cart .wc-block-cart-items td {
	padding-block: 1.5rem;
}

.wc-block-cart.is-large .wc-block-cart-item__image {
	width: 120px;
	padding-right: 1.25rem;
}

.wc-block-cart .wc-block-cart-item__image img,
.wc-block-components-order-summary-item__image img {
	border-radius: 14px;
	background: var(--wp--preset--color--paper);
}

.wc-block-components-product-name {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.wc-block-components-product-details {
	color: var(--wp--preset--color--heather);
}

.wc-block-cart__sidebar.wp-block-woocommerce-cart-totals-block,
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
	padding: 1.5rem;
	border: 0;
	border-radius: var(--pmk-radius-card);
	background: var(--pmk-panel);
}

.wc-block-cart__totals-title,
.wc-block-components-checkout-order-summary__title-text {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large) !important;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
}

.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	min-height: 3.5rem;
	border-radius: 999px !important;
	background: var(--wp--preset--color--cobalt);
	color: var(--pmk-on-band);
	font-weight: 700;
}

.wc-block-components-button:not(.is-link):hover {
	background: var(--wp--preset--color--cobalt-deep);
}

.wc-block-components-quantity-selector {
	border-radius: 999px;
}

.wc-block-components-quantity-selector::after {
	border-radius: 999px;
}

/* Checkout form */

.wc-block-components-checkout-step__title {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
}

.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-block-components-textarea,
.wc-blocks-components-select .wc-blocks-components-select__select {
	border: 1.5px solid var(--pmk-field-border) !important;
	border-radius: 12px !important;
	background: var(--wp--preset--color--white) !important;
	color: var(--wp--preset--color--ink) !important;
}

.wc-block-components-text-input label,
.wc-blocks-components-select .wc-blocks-components-select__label,
.wc-block-components-combobox .wc-block-components-combobox-control label {
	color: var(--wp--preset--color--heather) !important;
}

.wc-blocks-components-select .wc-blocks-components-select__expand {
	fill: var(--wp--preset--color--ink);
}

.wc-block-components-text-input input:focus,
.wc-blocks-components-select .wc-blocks-components-select__select:focus {
	border-color: var(--pmk-accent) !important;
	box-shadow: 0 0 0 1px var(--pmk-accent);
}

.wc-block-components-radio-control--highlight-checked,
.wc-block-components-radio-control-accordion-option {
	border-radius: 14px;
}

/* Checkout header and footer */

.pmk-checkout-bar {
	border-bottom: 1px solid var(--wp--preset--color--seam);
	background: var(--wp--preset--color--white);
}

.pmk-checkout-bar__inner {
	min-height: 4.5rem;
	gap: 1.5rem;
}

.pmk-checkout-bar__note {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 auto 0 0;
	padding-left: 1.5rem;
	border-left: 1px solid var(--wp--preset--color--seam);
	color: var(--wp--preset--color--graphite);
	font-size: var(--wp--preset--font-size--small);
}

.pmk-checkout-bar__back {
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}

.pmk-checkout-foot {
	padding-block: 2rem;
	border-top: 1px solid var(--wp--preset--color--seam);
	color: var(--wp--preset--color--heather);
}

.pmk-checkout-foot a {
	color: inherit;
}

@media (max-width: 700px) {
	.pmk-checkout-bar__note {
		display: none;
	}
}

/* Empty cart */

.pmk-empty-cart {
	padding-block: var(--wp--preset--spacing--40);
	text-align: center;
}

.pmk-empty-cart__shirt img {
	width: min(240px, 60vw);
	margin-inline: auto;
}

/* Order confirmation */

.pmk-confirmation__status {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
}

.pmk-next {
	margin-block: var(--wp--preset--spacing--40);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border-radius: var(--pmk-radius-card);
	background: var(--wp--preset--color--sky);
}

.pmk-next h2 {
	margin-top: 0;
}

.pmk-next__steps {
	display: grid;
	gap: 0.9rem;
	margin: 0;
	padding-left: 1.25rem;
}

.pmk-next__steps strong {
	display: block;
}

.wc-block-order-confirmation-summary {
	border-radius: var(--pmk-radius-card);
}

/* WooCommerce caps these titles at 1000px; keep them on the page grid. */
.woocommerce-cart .pmk-page-title,
.woocommerce-checkout .pmk-page-title,
.woocommerce-account .pmk-page-title {
	max-width: var(--wp--style--global--wide-size);
}

/* Quantity and "Add to cart" share one row; the button takes the remaining width. */
.pmk-product__buy .wp-block-woocommerce-add-to-cart-with-options > .wp-block-group:last-child,
.pmk-product__buy form > .wp-block-group:last-child {
	flex-wrap: nowrap;
	gap: 0.75rem;
}

.pmk-product__buy .wp-block-woocommerce-product-button {
	flex: 1 1 auto;
}

.pmk-product__buy .wp-block-woocommerce-product-button .wc-block-components-product-button__button {
	width: 100%;
}

/* My account: the menu is a row of chips above the content, both as wide as the page. */
.woocommerce-account main .woocommerce {
	max-width: var(--wp--style--global--wide-size);
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: auto;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	margin-bottom: var(--wp--preset--spacing--40);
	padding-bottom: var(--wp--preset--spacing--30);
	border-bottom: 1px solid var(--wp--preset--color--seam);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout {
	margin-left: auto;
}

.woocommerce-account .woocommerce-MyAccount-content {
	max-width: 52rem;
}

.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
	font-size: var(--wp--preset--font-size--large);
}

@media (max-width: 600px) {
	.woocommerce-account .woocommerce-MyAccount-navigation ul {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation a {
		white-space: nowrap;
	}
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-content :is(h2, h3) {
	font-size: var(--wp--preset--font-size--large);
	margin-top: var(--wp--preset--spacing--40);
}

.woocommerce-account .woocommerce-Address-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.25rem 1rem;
}

.woocommerce-account .woocommerce-Address-title .edit {
	float: none;
	font-weight: 600;
}

.woocommerce-account .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: var(--wp--preset--spacing--40);
}

.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after {
	content: none;
}

.woocommerce-account .woocommerce-Addresses .woocommerce-Address {
	float: none;
	width: auto;
	padding: 1.25rem 1.5rem;
	border-radius: var(--pmk-radius-card);
	background: var(--wp--preset--color--paper);
}

/* "Add to cart" before a colour and size are chosen: clearly inactive, still readable. */
.pmk-product__buy .wc-block-components-product-button__button.disabled,
.pmk-product__buy .wc-block-components-product-button__button:disabled {
	background: var(--wp--preset--color--seam);
	color: var(--wp--preset--color--graphite);
	opacity: 1;
	cursor: not-allowed;
}

/*
 * The closed mini-cart drawer is only transparent, so keyboard users could tab into its buttons.
 * visibility: hidden takes it out of the tab order; delaying it keeps the closing fade.
 */
.wc-block-components-drawer__screen-overlay {
	transition: opacity 0.3s, visibility 0s linear 0s;
}

.wc-block-components-drawer__screen-overlay--is-hidden {
	visibility: hidden;
	transition: opacity 0.3s, visibility 0s linear 0.3s;
}

/* Policy links in the footers. */
.pmk-policy-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pmk-policy-links a {
	color: inherit;
}

.pmk-footer__bottom {
	gap: 0.75rem 2rem;
}

/* Product gallery arrows follow the surface colours. */
.wc-block-next-previous-buttons__button {
	background-color: var(--wp--preset--color--white) !important;
	color: var(--wp--preset--color--ink) !important;
}

.wc-block-next-previous-buttons__icon {
	fill: currentColor;
	stroke: currentColor;
}

/* The account form's "show password" eye is a dark SVG from WooCommerce: lighten it in dark mode. */
:root[data-theme="dark"] .woocommerce form .show-password-input::before {
	filter: invert(1);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) .woocommerce form .show-password-input::before {
		filter: invert(1);
	}
}

/* Narrow phones: the header's icon buttons get a little smaller so logo and tools fit in one row. */
@media (max-width: 400px) {
	.pmk-header .pmk-theme-toggle {
		width: 2rem;
		height: 2rem;
	}

	.pmk-header .pmk-nav .wp-block-navigation__responsive-container-open {
		width: 2.125rem;
		height: 2.125rem;
	}

	.pmk-header__tools .wp-block-woocommerce-customer-account a,
	.pmk-header__tools .wc-block-customer-account__account-icon {
		padding: 0.2rem !important;
	}
}
