/* Printmasters theme */
:root {
	--pm-ink: #15161A;
	--pm-ink-2: #24262C;
	--pm-paper: #F6F5F1;
	--pm-white: #FFFFFF;
	--pm-muted: #55575F;
	--pm-line: #E2E0DA;
	--pm-cyan: #00A3D9;
	--pm-yellow: #F2C230;
	--pm-accent: #C2185B;
	--pm-display: 'Archivo', 'Segoe UI', sans-serif;
	--pm-body: 'Work Sans', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--pm-paper);
	color: var(--pm-ink);
	font-family: var(--pm-body);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--pm-ink); }
a:hover { color: var(--pm-accent); }
h1, h2, h3, h4 { font-family: var(--pm-display); line-height: 1.1; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--pm-accent); outline-offset: 2px; }

.pm-wrap { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.pm-skip { position: absolute; left: -9999px; }
.pm-skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 10px 14px; }

/* Header */
.pm-header { background: var(--pm-ink); color: var(--pm-white); position: relative; z-index: 20; }
.pm-header__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; flex-wrap: wrap; }
.pm-brand { display: flex; align-items: center; gap: 10px; color: var(--pm-white); text-decoration: none; }
.pm-brand:hover { color: var(--pm-white); }
.pm-brand__logo { max-height: 48px; width: auto; }
.pm-brand__mark { display: grid; grid-template-columns: repeat(2, 11px); gap: 3px; }
.pm-brand__mark i { display: block; height: 11px; }
.pm-brand__mark i:nth-child(1) { background: var(--pm-cyan); }
.pm-brand__mark i:nth-child(2) { background: var(--pm-accent); }
.pm-brand__mark i:nth-child(3) { background: var(--pm-yellow); }
.pm-brand__mark i:nth-child(4) { background: var(--pm-white); }
.pm-brand__name { font-family: var(--pm-display); font-weight: 800; font-size: 22px; text-transform: uppercase; }

.pm-nav { flex: 1 1 auto; }
.pm-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.pm-nav__list a { color: var(--pm-white); text-decoration: none; font-weight: 500; font-size: 15px; display: inline-block; padding: 10px 0; }
.pm-nav__list a:hover, .pm-nav__list .current-menu-item > a { color: var(--pm-yellow); }

.pm-header__tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.pm-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--pm-white); }
.pm-icon:hover { color: var(--pm-yellow); }
.pm-cart-count {
	position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px; background: var(--pm-accent); color: #fff; font-size: 11px; font-weight: 700;
	display: inline-flex; align-items: center; justify-content: center;
}
.pm-cart-count[hidden] { display: none; }

.pm-menu-toggle {
	display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
	background: transparent; color: var(--pm-white); border: 1px solid #4A4C55; border-radius: 4px;
	font: inherit; font-weight: 500; cursor: pointer;
}

/* White header (Customize → Printmasters homepage → Header colour) */
.pm-header-light .pm-header { background: var(--pm-white); color: var(--pm-ink); border-bottom: 1px solid var(--pm-line); }
.pm-header-light .pm-brand,
.pm-header-light .pm-brand:hover,
.pm-header-light .pm-nav__list a,
.pm-header-light .pm-icon,
.pm-header-light .pm-menu-toggle { color: var(--pm-ink); }
.pm-header-light .pm-nav__list a:hover,
.pm-header-light .pm-nav__list .current-menu-item > a,
.pm-header-light .pm-icon:hover { color: var(--pm-accent); }
.pm-header-light .pm-brand__mark i:nth-child(4) { background: var(--pm-ink); }
.pm-header-light .pm-menu-toggle { border-color: #C9C6BE; }
.pm-header-light .pm-hero { border-top: 0; }

/* Buttons */
.pm-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pm-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
	border-radius: 4px; font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid transparent;
}
.pm-btn--accent { background: var(--pm-accent); color: #fff; }
.pm-btn--accent:hover { color: #fff; filter: brightness(0.92); }
.pm-btn--ghost { border-color: #6B6E78; color: #fff; }
.pm-btn--ghost:hover { border-color: #fff; color: #fff; }
.pm-btn--yellow { background: var(--pm-yellow); color: var(--pm-ink); }
.pm-btn--yellow:hover { color: var(--pm-ink); filter: brightness(0.95); }
.pm-btn--outline { border-color: var(--pm-ink); color: var(--pm-ink); min-height: 48px; padding: 0 24px; }
.pm-btn--outline:hover { background: var(--pm-ink); color: #fff; }

/* Hero */
.pm-hero { background: var(--pm-ink); color: #fff; border-top: 1px solid #2C2E35; overflow: hidden; }
.pm-hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 88px; }
.pm-hero__copy { flex: 1 1 480px; display: flex; flex-direction: column; gap: 24px; }
.pm-hero__eyebrow { margin: 0; font-size: 14px; font-weight: 600; color: var(--pm-yellow); }
.pm-hero__title { margin: 0; font-weight: 800; font-size: min(var(--pm-hero-size, 64px), 11vw); line-height: 1.04; letter-spacing: -0.02em; }
.pm-hero__text { margin: 0; font-size: 19px; color: #D4D2CC; max-width: 520px; }

.pm-hero__art { flex: 1 1 400px; position: relative; height: 400px; }
.pm-sheet { position: absolute; border-radius: 4px; box-shadow: 0 24px 48px rgba(0,0,0,.35); display: flex; flex-direction: column; }
.pm-sheet b { font-family: var(--pm-display); font-weight: 800; line-height: 1.05; }
.pm-sheet small { font-size: 12px; }
.pm-sheet--flyer { left: 0; top: 40px; width: 62%; height: 300px; background: var(--pm-paper); color: var(--pm-ink); transform: rotate(-4deg); padding: 28px; justify-content: space-between; }
.pm-sheet--flyer b { font-size: 30px; }
.pm-sheet--flyer i { height: 90px; background: var(--pm-cyan); border-radius: 2px; }
.pm-sheet--flyer small { color: #4A4C55; }
.pm-sheet--rollup { right: 0; top: 0; width: 46%; height: 380px; background: var(--pm-accent); color: #fff; transform: rotate(3deg); padding: 24px; justify-content: flex-end; gap: 8px; }
.pm-sheet--rollup b { font-size: 26px; }
.pm-sheet--card { left: 30%; bottom: 0; width: 200px; height: 116px; background: #fff; color: var(--pm-ink); border-radius: 6px; padding: 16px; justify-content: space-between; }
.pm-sheet--card b { font-size: 15px; font-weight: 700; }
.pm-sheet--card small { color: #4A4C55; font-size: 11px; }

/* Strip */
.pm-strip { background: #fff; border-bottom: 1px solid var(--pm-line); }
.pm-strip__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.pm-strip__item { display: flex; gap: 14px; align-items: center; }
.pm-strip__item strong { display: block; font-size: 15px; font-weight: 600; }
.pm-strip__item span { display: block; font-size: 14px; color: var(--pm-muted); }

/* Sections */
.pm-section { padding-top: 72px; padding-bottom: 24px; }
.pm-section:last-of-type { padding-bottom: 88px; }
.pm-section h2, .pm-section__title { margin: 0; font-weight: 800; font-size: clamp(30px, 4vw, 40px); }
.pm-section__title { margin-bottom: 36px; }
.pm-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 36px; }
.pm-section__head a { font-weight: 600; }

/* Categories */
.pm-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.pm-cat { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--pm-line); border-radius: 6px; overflow: hidden; text-decoration: none; color: var(--pm-ink); }
.pm-cat:hover { color: var(--pm-ink); border-color: var(--pm-ink); }
.pm-cat__art { height: 170px; display: flex; align-items: center; justify-content: center; }
.pm-cat__art i { display: block; background: #fff; border-radius: 3px; box-shadow: 0 10px 24px rgba(21,22,26,.18); }
.pm-tint--cyan { background: #DCEFF6; }
.pm-tint--pink { background: #F6E0E8; }
.pm-tint--yellow { background: #F8EFCF; }
.pm-tint--grey { background: #E4E2DC; }
.pm-shape--card { width: 150px; height: 88px; }
.pm-shape--portrait { width: 96px; height: 132px; }
.pm-shape--tall { width: 52px; height: 140px; }
.pm-shape--square { width: 96px; height: 96px; }
.pm-shape--box { width: 120px; height: 100px; }
.pm-shape--wide { width: 140px; height: 100px; }
.pm-cat__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.pm-cat__body strong { font-family: var(--pm-display); font-weight: 700; font-size: 19px; }
.pm-cat__body span { font-size: 14px; color: var(--pm-muted); }

/* Business */
.pm-business { background: var(--pm-ink); color: #fff; border-radius: 8px; padding: 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.pm-business__copy { flex: 1 1 400px; display: flex; flex-direction: column; gap: 18px; }
.pm-business__copy h2 { color: #fff; line-height: 1.08; }
.pm-business__copy p { margin: 0; font-size: 17px; color: #D4D2CC; }
.pm-business__copy .pm-hero__eyebrow { color: var(--pm-yellow); }
.pm-business__grid { flex: 1 1 360px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pm-business__grid div { background: var(--pm-ink-2); border-radius: 6px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.pm-business__grid strong { font-size: 16px; }
.pm-business__grid span { font-size: 14px; color: #BDBBB4; }

/* Steps */
.pm-steps { list-style: none; margin: 0; padding: 0; counter-reset: pm-step; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.pm-steps li { counter-increment: pm-step; border-top: 3px solid var(--pm-ink); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.pm-steps li::before { content: counter(pm-step, decimal-leading-zero); font-family: var(--pm-display); font-weight: 800; font-size: 32px; color: var(--pm-accent); }
.pm-steps strong { font-size: 18px; }
.pm-steps span { font-size: 15px; color: var(--pm-muted); }
.pm-design-cta { margin-top: 48px; background: #fff; border: 1px solid var(--pm-line); border-radius: 6px; padding: 28px 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.pm-design-cta strong { display: block; font-size: 18px; }
.pm-design-cta span { display: block; font-size: 15px; color: var(--pm-muted); }

/* Footer */
.pm-footer { background: var(--pm-ink); color: #BDBBB4; font-size: 14px; }
.pm-footer a { color: #BDBBB4; }
.pm-footer a:hover { color: #fff; }
.pm-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-top: 48px; padding-bottom: 32px; }
.pm-footer__about { max-width: 320px; }
.pm-footer__about p { margin: 10px 0 0; }
.pm-footer__name { font-family: var(--pm-display); font-weight: 800; font-size: 20px; color: #fff; text-transform: uppercase; }
.pm-footer__col { display: flex; flex-direction: column; gap: 8px; }
.pm-footer__title { color: #fff; font-weight: 600; }
.pm-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pm-footer__legal { border-top: 1px solid #2C2E35; padding-top: 18px; padding-bottom: 24px; font-size: 13px; }

.pm-wa {
	position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 56px; height: 56px; border-radius: 50%;
	background: #1B6E3A; color: #fff; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.pm-wa:hover { color: #fff; filter: brightness(1.1); }

/* Inner pages */
.pm-page { padding-top: 40px; padding-bottom: 80px; }
.pm-page__title { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin: 0 0 24px; }
.pm-content { max-width: 760px; }
.pm-page--shop .pm-content { max-width: none; }
.pm-entry { margin-bottom: 40px; }

/* WooCommerce */
.woocommerce .woocommerce-breadcrumb { font-size: 14px; color: var(--pm-muted); margin-bottom: 24px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--pm-muted); }
.woocommerce-products-header__title, .product_title { font-family: var(--pm-display); font-weight: 800; }
.product_title { font-size: clamp(32px, 4vw, 44px); }

.woocommerce ul.products li.product {
	background: #fff; border: 1px solid var(--pm-line); border-radius: 6px; padding: 0 0 18px; overflow: hidden;
}
.woocommerce ul.products li.product a img { margin: 0 0 14px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--pm-display); font-size: 19px; font-weight: 700; padding: 0 18px; }
.woocommerce ul.products li.product .price { padding: 0 18px; color: var(--pm-ink); font-weight: 600; }
.woocommerce ul.products li.product .button { margin: 8px 18px 0; }

.woocommerce div.product div.summary { color: var(--pm-ink); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--pm-ink); font-weight: 600; }

.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
	background: var(--pm-ink); color: #fff; border-radius: 4px; font-family: var(--pm-body); font-weight: 600;
	padding: 14px 24px; min-height: 48px;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: #2C2E35; color: #fff; }
.woocommerce button.button.alt, .woocommerce a.button.alt, .woocommerce #place_order, .single_add_to_cart_button.button {
	background: var(--pm-accent) !important; color: #fff !important; min-height: 52px; font-size: 16px;
}
.woocommerce button.button.alt:hover, .woocommerce a.button.alt:hover { filter: brightness(0.92); }

.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce form .form-row select, .woocommerce-page form .form-row .select2-selection {
	border: 1px solid #A9A69E; border-radius: 4px; min-height: 46px; padding: 10px 12px; font: inherit; background: #fff;
}
.woocommerce-checkout #order_review, .woocommerce .cart-collaterals .cart_totals {
	background: #fff; border: 1px solid var(--pm-line); border-radius: 8px; padding: 24px;
}
.woocommerce table.shop_table { background: #fff; border-color: var(--pm-line); border-radius: 8px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--pm-accent); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--pm-accent); }
.woocommerce span.onsale { background: var(--pm-accent); }

/* Mobile */
@media (max-width: 860px) {
	.pm-wrap { padding-left: 16px; padding-right: 16px; }
	.pm-menu-toggle { display: inline-flex; }
	.pm-header__tools { margin-left: auto; }
	.pm-nav { order: 10; flex-basis: 100%; display: none; padding-bottom: 12px; }
	.pm-nav.is-open { display: block; }
	.pm-nav__list { flex-direction: column; gap: 0; }
	.pm-nav__list a { padding: 12px 0; display: block; border-top: 1px solid #2C2E35; }
	.pm-header-light .pm-nav__list a { border-top-color: var(--pm-line); }
	.pm-hero__inner { padding-top: 48px; padding-bottom: 56px; gap: 32px; }
	.pm-hero__art { height: 300px; flex-basis: 100%; }
	.pm-sheet--flyer { height: 230px; }
	.pm-sheet--rollup { height: 290px; }
	.pm-business { padding: 32px 22px; }
	.pm-business__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

/* Uploaded images: hero and product tiles */
.pm-hero__media { flex: 1 1 400px; display: flex; align-items: center; justify-content: center; }
.pm-hero__img { display: block; width: 100%; max-height: 460px; object-fit: contain; border-radius: 6px; }
.pm-cat__art--img { background: #EEECE7; overflow: hidden; }
.pm-cat__art--img img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.pm-cat__price { color: var(--pm-ink) !important; font-weight: 600; padding-top: 4px; }
.pm-cat__price del { color: var(--pm-muted); font-weight: 400; }

/* Hero stats row */
.pm-stats { display: flex; flex-wrap: wrap; gap: 20px 44px; margin: 16px 0 0; padding-top: 28px; border-top: 1px solid #34363E; }
.pm-stats__item { display: flex; flex-direction: column-reverse; gap: 4px; }
.pm-stats dd { margin: 0; font-family: var(--pm-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 38px); line-height: 1; letter-spacing: -0.01em; color: #fff; }
.pm-stats dt { font-size: 14px; color: #BDBBB4; }
@media (max-width: 480px) {
	.pm-stats { gap: 18px 28px; }
}

/* Tiles per row (Customize → Homepage product tiles) */
@media (min-width: 1100px) {
	.pm-cats--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pm-cats--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.pm-cats--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.pm-cats--cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.pm-cats--cols-5 .pm-cat__art, .pm-cats--cols-6 .pm-cat__art { height: 150px; }
	.pm-cats--cols-6 .pm-cat__body { padding: 14px 14px 18px; }
	.pm-cats--cols-6 .pm-cat__body strong { font-size: 17px; }
}
@media (min-width: 700px) and (max-width: 1099px) {
	.pm-cats--cols-5, .pm-cats--cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Dropdown sub-menus (Appearance → Menus: drag an item slightly right under another) */
.pm-nav__list li { position: relative; }
.pm-nav__list .menu-item-has-children > a { padding-right: 18px; }
.pm-nav__list .menu-item-has-children > a::after {
	content: ""; position: absolute; right: 2px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.pm-nav__list .sub-menu {
	list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: -16px; z-index: 50;
	min-width: 220px; background: var(--pm-ink-2); border-radius: 6px; box-shadow: 0 16px 36px rgba(0,0,0,.28);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.pm-nav__list .sub-menu a { display: block; padding: 10px 18px; white-space: nowrap; }
.pm-nav__list .sub-menu .sub-menu { top: -8px; left: 100%; }
.pm-nav__list .sub-menu .menu-item-has-children > a::after { transform: rotate(-45deg); right: 12px; margin-top: -4px; }
.pm-nav__list li:hover > .sub-menu,
.pm-nav__list li:focus-within > .sub-menu,
.pm-nav__list li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

/* White header: light dropdown */
.pm-header-light .pm-nav__list .sub-menu { background: var(--pm-white); border: 1px solid var(--pm-line); box-shadow: 0 16px 36px rgba(21,22,26,.14); }
.pm-header-light .pm-nav__list .sub-menu a { color: var(--pm-ink); }
.pm-header-light .pm-nav__list .sub-menu a:hover { color: var(--pm-accent); background: var(--pm-paper); }

/* Phones and tablets: sub-items show indented under their parent */
@media (max-width: 860px) {
	.pm-nav__list .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
		background: transparent !important; padding: 0 0 0 16px; min-width: 0; display: none;
	}
	.pm-nav__list li.is-open > .sub-menu { display: block; }
	.pm-nav__list .sub-menu a { padding: 10px 0; white-space: normal; }
	.pm-nav__list .menu-item-has-children > a::after { right: 6px; }
	.pm-nav__list li.is-open > a::after { transform: rotate(-135deg); margin-top: -2px; }
}

@media (prefers-reduced-motion: reduce) {
	.pm-nav__list .sub-menu { transition: none; }
}

/* Hero slider (Customize → Hero images (slider)) */
.pm-slider { position: relative; width: 100%; aspect-ratio: 5 / 4; max-height: 480px; }
.pm-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.pm-slide.is-active { opacity: 1; visibility: visible; }
.pm-slide a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.pm-slide .pm-hero__img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.pm-slider__dots { position: absolute; left: 0; right: 0; bottom: -34px; display: flex; justify-content: center; gap: 4px; }
.pm-slider__dot { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pm-slider__dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #6B6E78; transition: background .2s ease, transform .2s ease; }
.pm-slider__dot.is-active::before { background: var(--pm-yellow); transform: scale(1.25); }
.pm-slider__dot:hover::before { background: #fff; }
.pm-slider.is-multi { margin-bottom: 34px; }
@media (prefers-reduced-motion: reduce) {
	.pm-slide { transition: none; }
}
