/* Pixpi Print theme: layout and components. Tokens (colours, fonts, sizes) come from theme.json.
   Brand language: black canvas, the Pixpi gradient as a thin line or a word, square-ish corners, CMYK "pixels". */

:root {
	--tp-gutter: clamp(16px, 4.5vw, 64px);
	--tp-wide: 1312px;
	--tp-radius: 10px;
	--tp-radius-lg: 14px;
	--tp-shadow: 0 10px 30px rgba(11, 11, 18, 0.14);
	--tp-primary: var(--wp--preset--color--primary);
	--tp-primary-dark: var(--wp--preset--color--primary-dark);
	--tp-ink: var(--wp--preset--color--ink);
	--tp-muted: var(--wp--preset--color--muted);
	--tp-line: var(--wp--preset--color--line);
	--tp-white: var(--wp--preset--color--white);
	--tp-base: var(--wp--preset--color--base);
	--tp-tint: var(--wp--preset--color--tint);
	--tp-highlight: var(--wp--preset--color--highlight);
	--px-night: var(--wp--preset--color--night);
	--px-pink: var(--wp--preset--color--pink);
	--px-cyan: var(--wp--preset--color--accent);
	--px-blue: var(--wp--preset--color--blue);
	--px-violet: var(--wp--preset--color--violet);
	--px-muted-dark: var(--wp--preset--color--muted-on-dark);
	--px-gradient: var(--wp--preset--gradient--pixpi);
	--px-display: var(--wp--preset--font-family--montserrat);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
.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; }
.tp-icon { flex: none; }
.wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; }
.wp-site-blocks > * { margin-block-start: 0; }
.tp-main { flex: 1 0 auto; }
.wp-site-blocks > .tp-site-footer { margin-top: 0; }

/* Small uppercase label, tracked like the logo's "CREATE • PRINT • DIGITAL • GROW". */
.px-kicker { font-family: var(--px-display); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tp-primary); margin: 0 0 10px; }
.px-gradient-text { background: var(--px-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* "Create • Print • Digital • Grow" with the logo's coloured dots. */
.tp-topbar__tagline, .tp-footer__tagline { font-family: var(--px-display); font-weight: 600; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap; }
.tp-topbar__tagline i, .tp-footer__tagline i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin: 0 6px; vertical-align: 2px; background: var(--px-cyan); }
.tp-topbar__tagline i:nth-of-type(2), .tp-footer__tagline i:nth-of-type(2) { background: var(--tp-highlight); }
.tp-topbar__tagline i:nth-of-type(3), .tp-footer__tagline i:nth-of-type(3) { background: var(--px-violet); }

/* ------------------------------------------------------------------ Buttons and links */
.tp-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--px-display); font-weight: 700; font-size: 15px; line-height: 1.2; padding: 12px 22px; border-radius: 6px; border: 2px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.tp-button:hover { text-decoration: none; }
.tp-button--lg { font-size: 16px; padding: 15px 28px; }
.tp-button--primary { background: var(--tp-primary); color: var(--tp-white); }
.tp-button--primary:hover { background: var(--tp-primary-dark); color: var(--tp-white); }
.tp-button--outline { background: transparent; color: var(--tp-ink); border-color: var(--tp-ink); }
.tp-button--outline:hover { background: var(--tp-ink); color: var(--tp-white); }
.tp-button--ghost { background: transparent; color: var(--tp-white); border-color: rgba(255, 255, 255, 0.5); }
.tp-button--ghost:hover { border-color: var(--tp-white); background: rgba(255, 255, 255, 0.08); color: var(--tp-white); }
.tp-button--highlight { background: var(--tp-highlight); color: var(--tp-ink); }
.tp-button--highlight:hover { background: #ffe066; color: var(--tp-ink); }
.tp-button--light { background: var(--tp-white); color: var(--tp-ink); }
.tp-button--light:hover { background: var(--tp-ink); color: var(--tp-white); }
.tp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tp-arrow { font-family: var(--px-display); font-weight: 700; }
.tp-arrow::after { content: " →"; }
/* Focus: magenta ring on light areas, white on dark areas (WCAG 1.4.11). */
:focus-visible { outline: 3px solid var(--tp-primary-dark); outline-offset: 2px; }
.tp-topbar :focus-visible, .tp-header :focus-visible, .tp-footer :focus-visible, .px-hero :focus-visible, .px-band :focus-visible { outline-color: #fff; }
.tp-header .tp-search:focus-within { outline-color: #fff; }

/* ------------------------------------------------------------------ Header */
.tp-site-header { position: relative; z-index: 20; }
.tp-topbar { background: #000; color: var(--px-muted-dark); font-size: 13px; border-bottom: 1px solid #1f1f2b; }
.tp-topbar__inner { max-width: calc(var(--tp-wide) + 2 * var(--tp-gutter)); margin: 0 auto; padding: 8px var(--tp-gutter); display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; }
.tp-topbar a { color: var(--tp-white); font-weight: 600; }
.tp-open { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--tp-white); }
.tp-open__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-open__where { color: var(--px-muted-dark); }
@media (max-width: 599px) { .tp-open__where { display: none; } }
.tp-open__dot { width: 8px; height: 8px; border-radius: 2px; background: #3ddc84; display: inline-block; }
.tp-open.is-closed .tp-open__dot { background: var(--px-pink); }
@media (max-width: 899px) {
	.tp-topbar__tagline { display: none; }
	.tp-topbar__inner { justify-content: center; text-align: center; }
	.tp-topbar__call { display: none; }
}

.tp-header { position: relative; background: var(--tp-ink); color: var(--tp-white); }
.tp-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--px-gradient); }
.tp-header__inner { max-width: calc(var(--tp-wide) + 2 * var(--tp-gutter)); margin: 0 auto; padding: 14px var(--tp-gutter) 17px; display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }
.tp-logo { display: flex; flex: none; order: 0; }
.tp-header .tp-search { order: 1; }
.tp-nav { order: 2; }
.tp-call { order: 3; }
.tp-basket { order: 4; }
.tp-menu-toggle { order: 5; }
.tp-logo img { width: 168px; height: 56px; object-fit: contain; object-position: left center; }
.tp-search { position: relative; display: flex; align-items: center; background: var(--tp-white); border-radius: 6px; height: 46px; padding: 0 16px; gap: 10px; color: var(--tp-muted); }
.tp-header .tp-search { flex: 1 1 280px; min-width: 0; }
.tp-search__input { border: 0; outline: 0; font: inherit; font-size: 16px; width: 100%; background: transparent; color: var(--tp-ink); min-width: 0; }
.tp-search:focus-within { outline: 3px solid var(--tp-primary-dark); outline-offset: 2px; }
.tp-search__input:focus-visible { outline: none; }
/* Search suggestions. */
.tp-suggest { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; background: var(--tp-white); border: 1px solid var(--tp-line); border-radius: var(--tp-radius); box-shadow: var(--tp-shadow); overflow: hidden; max-height: min(70vh, 520px); overflow-y: auto; }
.tp-suggest[hidden] { display: none; }
.tp-suggest__group { padding: 6px 0; }
.tp-suggest__group + .tp-suggest__group { border-top: 1px solid var(--tp-line); }
.tp-suggest__heading { font-family: var(--px-display); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tp-muted); padding: 8px 16px 4px; }
.tp-suggest__item { display: flex; align-items: center; gap: 12px; padding: 9px 16px; color: var(--tp-ink); font-size: 15px; line-height: 1.3; cursor: pointer; }
.tp-suggest__item:hover, .tp-suggest__item.is-active { background: var(--tp-tint); text-decoration: none; color: var(--tp-primary-dark); }
.tp-suggest__thumb { flex: none; width: 40px; height: 40px; border-radius: 4px; background: var(--tp-base); object-fit: cover; }
.tp-suggest__name { flex: 1 1 auto; min-width: 0; }
.tp-suggest__price { flex: none; font-size: 14px; color: var(--tp-muted); white-space: nowrap; }
.tp-suggest__more { display: block; padding: 12px 16px; font-weight: 700; font-size: 15px; border-top: 1px solid var(--tp-line); }
.tp-suggest__empty { padding: 14px 16px; color: var(--tp-muted); font-size: 15px; }

.tp-search--page { max-width: 560px; border: 1px solid var(--tp-line); margin: 24px 0; }
.tp-nav { display: flex; align-items: center; gap: 24px; }
.tp-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; font-family: var(--px-display); font-size: 14px; font-weight: 600; }
.tp-nav__list a { color: var(--tp-white); }
.tp-nav__list a:hover { color: var(--px-pink); text-decoration: none; }
.tp-nav__list a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--px-pink); text-underline-offset: 7px; text-decoration-thickness: 2px; }
.tp-basket { position: relative; display: flex; color: var(--tp-white); padding: 6px; }
.tp-basket:hover { color: var(--px-pink); }
.tp-basket__count { position: absolute; top: -2px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 4px; background: var(--tp-highlight); color: var(--tp-ink); font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; }
.tp-call { display: none; color: var(--tp-white); padding: 6px; }
.tp-call:hover { color: var(--px-pink); }
@media (max-width: 899px) { .tp-call { display: flex; } }
.tp-menu-toggle { display: none; background: none; border: 0; color: var(--tp-white); padding: 6px; cursor: pointer; }
.tp-menu-toggle__close { display: none; }
.tp-menu-toggle[aria-expanded="true"] .tp-menu-toggle__open { display: none; }
.tp-menu-toggle[aria-expanded="true"] .tp-menu-toggle__close { display: block; }

@media (max-width: 1099px) {
	.tp-header__inner { gap: 10px 12px; }
	.tp-logo { margin-right: auto; }
	.tp-logo img { width: 132px; height: 44px; }
	.tp-header .tp-search { order: 10; flex: 1 1 100%; height: 44px; }
	.js .tp-menu-toggle:not([hidden]) { display: flex; }
	.tp-nav { order: 11; flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 4px 0 8px; }
	.js .tp-nav:not(.is-open) { display: none; }
	.tp-nav__list { flex-direction: column; gap: 0; font-size: 17px; }
	.tp-nav__list a { display: block; padding: 12px 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
	.tp-nav__quote { align-self: flex-start; }
	/* Product categories at the top of the menu, each opening in place. */
	.tp-nav__products { display: block; }
	.tp-nav__heading { margin: 4px 0 2px; font-family: var(--px-display); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--px-pink); }
	.tp-nav__cats, .tp-nav__cats ul { list-style: none; margin: 0; padding: 0; }
	.tp-nav__cats > li { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
	.tp-nav__cat-row { display: flex; align-items: center; gap: 8px; }
	.tp-nav__cat-link { flex: 1 1 auto; display: block; padding: 12px 2px; font-family: var(--px-display); font-size: 17px; font-weight: 600; color: var(--tp-white); }
	.tp-nav__cat-link:hover { color: var(--tp-white); text-decoration: none; }
	/* The + / − button: a large touch target, separate from the name. */
	.tp-nav__cat-toggle { flex: none; position: relative; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 8px; background: none; color: var(--px-muted-dark); cursor: pointer; }
	.tp-nav__cat-toggle::before, .tp-nav__cat-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform 0.2s; }
	.tp-nav__cat-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
	.tp-nav__cat-toggle { -webkit-tap-highlight-color: transparent; }
	.tp-nav__cat-toggle:focus { outline: none; }
	.tp-nav__cat-toggle:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
	.tp-nav__cat-toggle[aria-expanded="true"] { color: var(--px-pink); }
	.tp-nav__cat-toggle[aria-expanded="true"]::after { transform: translate(-50%, -50%) rotate(0deg); }
	.tp-nav__cat.is-open .tp-nav__cat-link { color: var(--px-pink); }
	.js .tp-nav__cat:not(.is-open) .tp-nav__cat-sub { display: none; }
	.tp-nav__cat-sub { list-style: none; padding: 0 0 12px 14px; border-left: 2px solid var(--tp-primary); margin: 0 0 0 2px; }
	.tp-nav__cat-sub a { display: block; padding: 8px 0; color: var(--px-muted-dark); font-size: 16px; }
	.tp-nav__cat-sub a:hover { color: var(--tp-white); text-decoration: none; }
	.tp-nav__cat-sub .tp-arrow { color: var(--tp-white); }
	.tp-nav__list { margin-top: 10px; }
}
@media (min-width: 1100px) { .tp-nav__products { display: none; } }

.tp-catbar { background: var(--tp-white); border-bottom: 1px solid var(--tp-line); position: relative; }
.tp-catbar__item { position: relative; display: flex; align-items: center; gap: 2px; }
.tp-catbar__toggle { display: flex; align-items: center; background: none; border: 0; padding: 4px 2px; margin: 0; color: var(--tp-muted); cursor: pointer; }
.tp-catbar__item:hover .tp-catbar__toggle, .tp-catbar__item:focus-within .tp-catbar__toggle { color: var(--tp-primary); }
.tp-catbar__toggle[aria-expanded="true"] .tp-icon { transform: rotate(180deg); }

/* Dropdown with sub-categories and pictures. */
.tp-mega { display: none; position: absolute; z-index: 30; top: 100%; left: 0; width: max-content; max-width: min(760px, 92vw); background: var(--tp-white); border: 1px solid var(--tp-line); border-top: 3px solid var(--tp-primary); border-radius: 0 0 var(--tp-radius) var(--tp-radius); box-shadow: var(--tp-shadow); }
.tp-mega__inner { padding: 18px 20px; }
.tp-mega__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(190px, 1fr)); gap: 4px 20px; }
.tp-mega__list a { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 6px; color: var(--tp-ink); font-weight: 600; font-size: 15px; white-space: normal; line-height: 1.3; }
.tp-mega__list a:hover { background: var(--tp-tint); color: var(--tp-primary-dark); text-decoration: none; }
.tp-mega__thumb { flex: none; width: 46px; height: 46px; border-radius: 4px; background: var(--tp-base); overflow: hidden; display: block; }
.tp-mega__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-mega__all { display: inline-block; margin: 12px 8px 2px; font-size: 15px; }
@media (min-width: 1100px) {
	.tp-catbar__item:hover > .tp-mega, .tp-catbar__item:focus-within > .tp-mega, .tp-mega.is-open { display: block; }
	.tp-catbar__item:nth-last-child(-n+3) > .tp-mega { left: auto; right: 0; }
	/* Hover and keyboard focus open the menu, so the button is hidden: a small caret marks it instead. */
	.tp-catbar__toggle { display: none; }
	.tp-catbar__item.has-menu .tp-catbar__link::after { content: ""; display: inline-block; width: 0; height: 0; margin-left: 3px; vertical-align: 2px; border: 3px solid transparent; border-top-color: currentColor; opacity: 0.55; }
	.tp-catbar__item.has-menu:hover .tp-catbar__link::after { opacity: 1; }
}
@media (max-width: 1099px) {
	.tp-catbar__list { align-items: flex-start; }
	.tp-mega { position: fixed; left: 0; right: 0; top: auto; width: auto; max-width: none; max-height: 70vh; overflow-y: auto; border-radius: 0; border-left: 0; border-right: 0; }
	.tp-mega.is-open { display: block; }
	.tp-mega__list { grid-template-columns: 1fr; }
}
.tp-catbar__list { list-style: none; margin: 0 auto; padding: 0 var(--tp-gutter); max-width: calc(var(--tp-wide) + 2 * var(--tp-gutter)); display: flex; gap: clamp(16px, 1.6vw, 26px); overflow-x: auto; scrollbar-width: none; font-family: var(--px-display); font-size: 13px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.tp-catbar__list::-webkit-scrollbar { display: none; }
/* Scroll hint on small screens: an overlay, not a mask (a mask would clip the dropdown panels). */
@media (max-width: 1099px) {
	.tp-catbar__list { padding-right: 48px; }
	.tp-catbar::after { content: ""; position: absolute; top: 0; right: 0; width: 44px; height: 100%; pointer-events: none; background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--tp-white) 75%); }
}
/* Desktop: all twelve on one line, spread across the width (measured: fits from 1100px up). */
@media (min-width: 1100px) { .tp-catbar__list { flex-wrap: nowrap; justify-content: space-between; column-gap: 8px; overflow: visible; letter-spacing: 0; } }
@media (min-width: 1100px) and (max-width: 1179px) { .tp-catbar__list { font-size: 11px; column-gap: 2px; } }
@media (min-width: 1180px) and (max-width: 1279px) { .tp-catbar__list { font-size: 11.5px; column-gap: 4px; } }
@media (min-width: 1280px) and (max-width: 1365px) { .tp-catbar__list { font-size: 12px; } }
.tp-catbar__link { display: block; padding: 13px 0 11px; color: var(--tp-ink); border-bottom: 3px solid transparent; }
.tp-catbar__link[aria-current] { color: var(--tp-primary); border-bottom-color: var(--tp-primary); }
.tp-catbar__link:hover { text-decoration: none; color: var(--tp-primary); }

/* ------------------------------------------------------------------ Footer */
.tp-footer { position: relative; background: var(--tp-ink); color: var(--px-muted-dark); font-size: 15px; }
.tp-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--px-gradient); }
.tp-footer a { color: #fff; }
.tp-footer__grid { max-width: calc(var(--tp-wide) + 2 * var(--tp-gutter)); margin: 0 auto; padding: 60px var(--tp-gutter) 36px; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tp-footer__brand img { width: 168px; height: 56px; object-fit: contain; object-position: left; }
.tp-footer__brand p { line-height: 1.7; margin: 12px 0 0; }
.tp-footer__title { font-family: var(--px-display); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.tp-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.tp-footer__col a { color: var(--px-muted-dark); }
.tp-footer__col a:hover { color: #fff; text-decoration: none; }
.tp-footer__legal { max-width: calc(var(--tp-wide) + 2 * var(--tp-gutter)); margin: 0 auto; padding: 20px var(--tp-gutter) 28px; border-top: 1px solid #23232f; font-size: 13px; color: #8d8da0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; }
.tp-footer__legal p { margin: 0; }
.tp-footer__tagline { color: var(--tp-white); }

/* ------------------------------------------------------------------ Shared sections */
.tp-main--home { padding-bottom: 8px; }
.tp-main--home > * { max-width: calc(var(--tp-wide) + 2 * var(--tp-gutter)); margin-left: auto; margin-right: auto; }
.tp-main--home > .px-hero { max-width: none; }
.tp-main--home section { padding-left: var(--tp-gutter); padding-right: var(--tp-gutter); }
.tp-eyebrow { font-family: var(--px-display); font-size: 13px; font-weight: 700; color: var(--tp-primary); letter-spacing: 0.16em; text-transform: uppercase; margin: 0; }
.tp-section { padding-top: 0; padding-bottom: clamp(56px, 7vw, 88px); }
.tp-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.tp-section__head h2 { margin: 0; font-size: var(--wp--preset--font-size--xx-large); }

/* Hero: full-width black band. */
.px-hero { background: var(--tp-ink); color: var(--tp-white); overflow: hidden; position: relative; }
.px-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 80% at 85% 20%, rgba(184, 37, 204, 0.28), transparent 60%), radial-gradient(50% 70% at 10% 100%, rgba(10, 107, 224, 0.22), transparent 60%); }
.px-hero__inner { position: relative; max-width: var(--tp-wide); margin: 0 auto; display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; padding: clamp(44px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); }
@media (min-width: 900px) { .px-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.px-hero .px-kicker { color: var(--px-pink); }
.px-hero__title { margin: 0 0 20px; font-size: var(--wp--preset--font-size--display); line-height: 1.04; letter-spacing: -0.03em; color: var(--tp-white); }
.px-hero__lead { margin: 0 0 28px; font-size: var(--wp--preset--font-size--large); line-height: 1.6; color: var(--px-muted-dark); max-width: 580px; }
/* Ticks as CMYK pixels. */
.px-pixels { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 15px; color: var(--tp-white); }
.px-pixels li { display: inline-flex; align-items: center; gap: 9px; }
.px-pixels li::before { content: ""; width: 9px; height: 9px; background: var(--px-cyan); }
.px-pixels li:nth-child(4n+2)::before { background: var(--px-pink); }
.px-pixels li:nth-child(4n+3)::before { background: var(--tp-highlight); }
.px-pixels li:nth-child(4n+4)::before { background: var(--px-violet); }

/* Collage: one tall and two square tiles, with three "pixels" in the logo's colours. */
.px-collage { position: relative; display: grid; gap: 12px; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 1 / 0.95; }
.px-collage__tile { position: relative; overflow: hidden; border-radius: var(--tp-radius); background: var(--px-night); display: flex; align-items: center; justify-content: center; }
.px-collage__tile:first-child { grid-row: span 2; }
.px-collage__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.px-collage--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.px-collage--2 { grid-template-rows: 1fr; }
.px-collage--2 .px-collage__tile:first-child { grid-row: auto; }
.px-collage--0 { background: var(--px-night) url("../img/pixpi-mark.png") center / 45% no-repeat; border-radius: var(--tp-radius); }
.px-collage__px { position: absolute; width: clamp(18px, 2.2vw, 28px); aspect-ratio: 1; }
.px-collage__px--c { background: var(--px-cyan); left: -14px; bottom: 18%; }
.px-collage__px--m { background: var(--px-pink); left: calc(-14px + clamp(18px, 2.2vw, 28px)); bottom: calc(18% - clamp(18px, 2.2vw, 28px)); }
.px-collage__px--y { background: var(--tp-highlight); right: -12px; top: -12px; }
@media (max-width: 899px) { .px-hero__media { max-width: 520px; } }

/* Ordering routes: numbered tiles. */
.px-routes { display: grid; gap: 16px; padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(56px, 7vw, 88px); }
@media (min-width: 800px) { .px-routes { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } } /* Two or three routes (the phone one needs a number). */
.px-route { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 28px 26px 26px; background: var(--tp-white); border: 1px solid var(--tp-line); border-radius: var(--tp-radius); color: var(--tp-ink); overflow: hidden; transition: border-color 0.15s, transform 0.15s; }
.px-route::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--px-gradient); transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
.px-route:hover { text-decoration: none; border-color: transparent; box-shadow: var(--tp-shadow); }
.px-route:hover::before { transform: scaleX(1); }
.px-route__num { font-family: var(--px-display); font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; margin-bottom: 8px; background: var(--px-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.px-route__kicker { font-family: var(--px-display); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tp-primary); }
.px-route__title { font-family: var(--px-display); font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.px-route__text { color: var(--tp-muted); line-height: 1.55; margin-bottom: 8px; }
.px-route .tp-arrow { margin-top: auto; color: var(--tp-primary); }
@media (prefers-reduced-motion: reduce) { .px-route, .px-route::before, .px-tile img { transition: none !important; } }

/* Category tiles: picture first, name underneath on a dark bar. */
.px-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 800px) { .px-tiles { gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .px-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.px-tile a { display: flex; flex-direction: column; height: 100%; border-radius: var(--tp-radius); overflow: hidden; background: var(--tp-ink); color: var(--tp-white); }
.px-tile a:hover { text-decoration: none; }
.px-tile__media { display: block; aspect-ratio: 4 / 3; background: var(--tp-white); overflow: hidden; }
.px-tile__media--empty { background: var(--px-night) url("../img/pixpi-mark.png") center / 34% no-repeat; } /* Until the catalogue brings pictures. */
.px-tile__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s; }
.px-tile a:hover .px-tile__media--empty { background: var(--px-night) url("../img/pixpi-mark.png") center / 34% no-repeat; } /* Until the catalogue brings pictures. */
.px-tile__media img { transform: scale(1.04); }
.px-tile__body { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 18px 18px; flex: 1; }
.px-tile__body::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--px-gradient); opacity: 0; transition: opacity 0.2s; }
.px-tile a:hover .px-tile__body::before, .px-tile a:focus-visible .px-tile__body::before { opacity: 1; }
.px-tile__title { font-family: var(--px-display); font-size: 17px; font-weight: 800; }
.px-tile__meta { font-size: 13px; color: var(--px-muted-dark); line-height: 1.45; }
@media (max-width: 479px) { .px-tile__body { padding: 12px 14px 14px; } .px-tile__title { font-size: 15px; } .px-tile__meta { display: none; } }

/* Why us: four statements, each led by a coloured pixel. */
.px-why { padding-bottom: clamp(56px, 7vw, 88px); display: grid; gap: 28px 64px; }
@media (min-width: 1000px) { .px-why { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; } }
.px-why__head h2 { margin: 0; font-size: var(--wp--preset--font-size--xx-large); }
.px-why__grid { display: grid; gap: 28px 36px; }
@media (min-width: 600px) { .px-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.px-why__item { border-top: 1px solid var(--tp-line); padding-top: 18px; }
.px-why__item h3 { margin: 0 0 6px; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.px-why__item h3::before { content: ""; flex: none; width: 12px; height: 12px; background: var(--px-cyan); }
.px-why__item--m h3::before { background: var(--tp-primary); }
.px-why__item--y h3::before { background: var(--tp-highlight); }
.px-why__item--b h3::before { background: var(--px-blue); }
.px-why__item p { margin: 0; color: var(--tp-muted); font-size: 15px; line-height: 1.55; }

/* Design band: the brand gradient. */
.tp-main--home .px-band { margin-bottom: clamp(56px, 7vw, 88px); }
.px-band { background: linear-gradient(100deg, #0A5BC4 0%, #8E1FB0 55%, #C8137A 100%); /* Deeper cut of the brand gradient: white text stays above 4.5:1 throughout. */ color: var(--tp-white); border-radius: var(--tp-radius-lg); padding: clamp(32px, 4.5vw, 56px) clamp(24px, 4.5vw, 64px) !important; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; width: calc(100% - 2 * var(--tp-gutter)); }
.px-band h2 { margin: 0 0 8px; color: var(--tp-white); font-size: var(--wp--preset--font-size--xx-large); }
.px-band p { margin: 0; color: var(--tp-white); font-size: 18px; line-height: 1.55; max-width: 720px; }

/* Visit */
.px-visit { display: grid; gap: 18px; padding-bottom: clamp(56px, 7vw, 88px); }
@media (min-width: 900px) { .px-visit { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.px-visit__card { background: var(--tp-white); border: 1px solid var(--tp-line); border-radius: var(--tp-radius-lg); padding: clamp(26px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 16px; }
.px-visit__card h2 { margin: 0; font-size: var(--wp--preset--font-size--x-large); }
.px-visit__card .px-kicker { margin-bottom: -6px; }
.px-visit__address { margin: 0; font-size: 17px; line-height: 1.6; }
.tp-hours { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0; }
.tp-hours dt { font-family: var(--px-display); font-weight: 700; font-size: 14px; }
.tp-hours dd { margin: 0; }
.px-visit__art { background: var(--tp-ink); border-radius: var(--tp-radius-lg); display: flex; align-items: center; justify-content: center; min-height: 240px; }
.px-visit__art img { width: min(52%, 220px); height: auto; }

/* ------------------------------------------------------------------ Pages */
.tp-page { padding: clamp(28px, 5vw, 56px) var(--tp-gutter) clamp(48px, 6vw, 80px); }
.tp-page__title { margin-top: 0; }
.tp-prose h2 { font-size: var(--wp--preset--font-size--x-large); margin: 1.4em 0 0.5em; }
.tp-prose h3 { margin: 1.2em 0 0.4em; }
.tp-prose > :first-child { margin-top: 0; }
.tp-page--cart .wp-block-post-content, .tp-page--checkout .wp-block-post-content { max-width: var(--tp-wide); }
.tp-page--cart .wp-block-woocommerce-cart.is-loading, .tp-page--checkout .wp-block-woocommerce-checkout.is-loading { min-height: 480px; }

/* Core-block content pages (About, Same-day, Quote, Privacy). */
.tp-page .wp-block-group.has-background { border-radius: var(--tp-radius-lg); margin: 0 auto 20px; padding: clamp(20px, 3vw, 32px) clamp(18px, 3vw, 36px); }
.tp-page .wp-block-group h2.wp-block-heading { margin: 0 0 12px; line-height: 1.25; }
.tp-page .wp-block-group h3.wp-block-heading { font-size: 18px; color: var(--tp-primary); margin: 20px 0 6px; letter-spacing: 0; }
.tp-page .wp-block-columns h3.wp-block-heading { margin-top: 0; }
.tp-page .wp-block-group p:last-child, .tp-page .wp-block-group ul:last-child { margin-bottom: 0; }
.tp-page .wp-block-buttons { margin-top: 18px; }
.tp-page .wp-block-list { padding-left: 1.2rem; }
.tp-page .wp-block-list li { margin-bottom: 5px; }
.tp-page .wp-block-list li::marker { color: var(--tp-primary); }

/* ------------------------------------------------------------------ Shop archives */
.tp-archive { padding: 24px var(--tp-gutter) clamp(48px, 6vw, 64px); }
.tp-archive__inner, .tp-product__inner { max-width: var(--tp-wide); margin: 0 auto; }
.tp-breadcrumbs { font-size: 14px; color: var(--tp-muted); margin: 0 0 16px; }
.tp-breadcrumbs a { color: var(--tp-primary); }
.tp-archive-intro { display: grid; gap: 20px 40px; align-items: end; margin-bottom: 24px; }
@media (min-width: 900px) { .tp-archive-intro { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.tp-archive-intro__title { margin: 0 0 12px; font-size: var(--wp--preset--font-size--display); line-height: 1.06; letter-spacing: -0.03em; }
.tp-archive-intro__lead { font-size: var(--wp--preset--font-size--large); line-height: 1.55; color: var(--tp-muted); }
.tp-archive-intro__lead p { margin: 0; }
.tp-today { position: relative; background: var(--tp-ink); color: var(--px-muted-dark); border-radius: var(--tp-radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; overflow: hidden; }
.tp-today::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--px-gradient); }
.tp-today strong { font-size: 16px; color: var(--tp-white); font-family: var(--px-display); }
.tp-today a { color: var(--px-pink); }
.tp-pills ul, ul.tp-pills--list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tp-pills a { display: inline-block; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 6px; border: 1px solid var(--tp-line); background: var(--tp-white); color: var(--tp-ink); }
.tp-pills a:hover { border-color: var(--tp-ink); background: var(--tp-ink); color: var(--tp-white); text-decoration: none; }
.tp-toolbar { margin: 20px 0 16px; align-items: center; gap: 12px; }
.tp-toolbar .woocommerce-result-count { margin: 0; color: var(--tp-muted); font-size: 15px; }
.tp-toolbar .woocommerce-ordering { margin: 0; }
.tp-toolbar select { font: inherit; font-size: 15px; padding: 10px 14px; border-radius: 6px; border: 1px solid var(--tp-line); background: var(--tp-white); color: var(--tp-ink); }

/* Category hubs (archive sub-category tiles) reuse the card grid. */
.tp-cards--tiles { margin-top: 24px; }
.tp-cards__all { margin: 24px 0 0; font-size: 16px; }
.tp-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 800px) { .tp-cards { gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tp-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 479px) { .tp-card__body { padding: 12px 14px 16px; } .tp-card__title { font-size: 15px; } .tp-card__meta { font-size: 13px; } }
.tp-cards > li { display: flex; }
.tp-card { display: flex; flex-direction: column; width: 100%; height: 100%; background: var(--tp-white); border: 1px solid var(--tp-line); border-radius: var(--tp-radius); overflow: hidden; transition: border-color 0.15s; }
.tp-card:hover { border-color: var(--tp-ink); }
.tp-card__media { display: block; aspect-ratio: 4 / 3; background: var(--tp-base); overflow: hidden; }
.tp-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-card__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; }
.tp-card__title { font-family: var(--px-display); font-size: 17px; font-weight: 800; margin: 0; letter-spacing: 0; }
.tp-card__title a { color: var(--tp-ink); }
.tp-card__title a:hover { color: var(--tp-primary); text-decoration: none; }
.tp-card__meta { font-size: 14px; color: var(--tp-muted); margin: 0; }

.tp-products .wp-block-woocommerce-product-template, .tp-products ul.wc-block-product-template { list-style: none; margin: 0; padding: 0; display: grid !important; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.tp-products .wc-block-product-template > li, .tp-products .wc-block-product { width: auto !important; margin: 0 !important; max-width: none !important; }
.tp-product-card { position: relative; height: 100%; background: var(--tp-white); border: 1px solid var(--tp-line); border-radius: var(--tp-radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.15s, box-shadow 0.15s; }
.tp-product-card:hover { border-color: transparent; box-shadow: var(--tp-shadow); }
.tp-product-card > * { margin: 0 !important; }
.tp-product-card__image { background: var(--tp-base); }
.tp-product-card__image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.tp-product-card__title { font-family: var(--px-display); font-size: 16px !important; font-weight: 700; line-height: 1.3; padding: 16px 18px 0 !important; letter-spacing: 0; }
.tp-product-card__title a { color: var(--tp-ink); }
.tp-product-card__title a::after { content: ""; position: absolute; inset: 0; } /* Whole card clickable. */
.tp-product-card__title a:hover { text-decoration: none; }
.tp-product-card:hover .tp-product-card__title a { color: var(--tp-primary); }
.tp-product-card__price { padding: 6px 18px 18px !important; font-size: 15px; margin-top: auto !important; }
.tp-price strong { font-weight: 800; }
.tp-price--live { color: var(--tp-primary); font-weight: 700; }
.tp-pagination { margin-top: 32px; gap: 8px; font-weight: 700; }
.tp-pagination .page-numbers { display: inline-block; min-width: 40px; padding: 8px 12px; border-radius: 6px; text-align: center; }
.tp-pagination .page-numbers.current { background: var(--tp-ink); color: var(--tp-white); }

.tp-guide { display: grid; gap: 18px; margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 900px) { .tp-guide:has(> :nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tp-guide__card { background: var(--tp-white); border: 1px solid var(--tp-line); border-radius: var(--tp-radius-lg); padding: clamp(24px, 3vw, 36px) clamp(20px, 3vw, 40px); }
.tp-guide__card h2 { margin: 0 0 12px; font-size: 26px; }
.tp-faq__q { font-size: 17px; margin: 18px 0 4px; letter-spacing: 0; }
.tp-faq__a { margin: 0; color: var(--tp-muted); line-height: 1.6; }

/* ------------------------------------------------------------------ Single product */
.tp-product { padding: 24px var(--tp-gutter) clamp(48px, 6vw, 64px); }
.tp-product-main { display: grid; gap: clamp(24px, 3vw, 40px); align-items: start; }
@media (min-width: 1000px) { .tp-product-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tp-gallery { position: sticky; top: 16px; } }
.tp-gallery { display: flex; flex-direction: column; gap: 12px; }
.tp-gallery__main { background: var(--tp-white); border: 1px solid var(--tp-line); border-radius: var(--tp-radius-lg); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tp-gallery__img { width: 92%; height: 92%; object-fit: contain; }
.tp-gallery__placeholder { color: #c4c4d0; }
.tp-gallery__thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
.tp-gallery__thumb { width: 100%; aspect-ratio: 1 / 1; padding: 4px; border-radius: 6px; border: 1px solid var(--tp-line); background: var(--tp-white); cursor: pointer; }
.tp-gallery__thumb[aria-pressed="true"] { border: 2px solid var(--tp-primary); padding: 3px; }
.tp-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tp-summary { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tp-summary__title { margin: 0; font-size: var(--wp--preset--font-size--xx-large); letter-spacing: -0.02em; }
.tp-summary__lead { color: var(--tp-muted); font-size: 17px; line-height: 1.6; }
.tp-summary__lead p { margin: 0; }
.tp-unavailable { background: var(--tp-white); border: 1px solid var(--tp-line); border-radius: var(--tp-radius); padding: 22px; }
.tp-unavailable h2 { margin: 0 0 8px; font-size: 22px; }
.tp-details { margin-top: clamp(40px, 5vw, 64px); background: var(--tp-white); border: 1px solid var(--tp-line); border-radius: var(--tp-radius-lg); padding: clamp(20px, 3vw, 32px) clamp(20px, 3.5vw, 40px); }
.tp-details__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; border-bottom: 1px solid var(--tp-line); padding-bottom: 12px; font-family: var(--px-display); font-weight: 700; font-size: 15px; }
.tp-details__nav a { color: var(--tp-ink); }
.tp-details__nav a:hover { color: var(--tp-primary); text-decoration: none; }
.tp-details__section { padding-top: 24px; max-width: 900px; scroll-margin-top: 16px; }
.tp-details__section h2 { margin: 0 0 12px; font-size: 24px; }
.tp-details__section p, .tp-details__section li { color: var(--tp-muted); line-height: 1.7; }

/* Configurator (plugin styles use rounder corners; match the theme's). */
.tp-cfg__artwork, .tp-cfg__summary { border-radius: var(--tp-radius) !important; }

/* ------------------------------------------------------------------ WooCommerce blocks (cart, checkout, notices) */
.wc-block-components-button:not(.is-link) { border-radius: 6px !important; font-family: var(--px-display); font-weight: 700 !important; }
.wc-block-components-product-metadata__description { display: none; } /* Long supplier descriptions: the job details are enough. */
.wc-block-components-notice-banner { border-radius: 6px; }
.woocommerce-breadcrumb { font-size: 14px; }
