/*
Theme Name: Cmsmart Photobook Store
Theme URI: https://www.cmsmart.net/
Author: Cmsmart
Author URI: https://www.cmsmart.net/
Description: Online store for custom photo books (layflat, hardcover, softcover, guest books and journals), built for the Cmsmart web-to-print plugin: PHOTO BOOKS hero, dark feature bar, hot deals with a countdown, category tabs, featured products, three design steps, photo book banners, six service cards, blog, shop and product pages with printing options and the online designer.
Template: cmsmart-stores
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.0
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cmsmart-photobook-store
Tags: e-commerce, block-patterns, custom-colors, custom-logo, custom-menu, editor-style, translation-ready
*/

/* Cmsmart Photobook Store. Tokens live in theme.json; the radius / elevation / button system lives in the parent polish.css.
   This file holds the identity of the legacy Printshop home (two-panel PHOTO BOOKS hero on soft pastel shapes, dark feature bar, hot-deal row,
   pastel banners, service cards, dark footer with a blue bottom bar; the photo book build derives from the mug home of that demo) and what theme.json cannot express. */

:root {
	--pb-blue: #2f5fd6;
	--pb-blue-bright: #3f74f0;
	--pb-ink: #171a3a;
	--pb-muted: #5c6180;
	--pb-lavender: #e4e7ff;
	--pb-cream: #f3edd9;
	--pb-band: #e8e7da;
	--pb-plate: #f7f7f7;
	--cs-accent: #2f5fd6;
	--cs-plate: #f7f7f7;
	--cs-product-title: #171a3a;
	--cs-ring: #2f5fd6;
	--cs-badge-bg: #ffa63e;
	--pb-icon-truck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6h11v10H2zM13 9h4.5L21 12.5V16h-8'/%3E%3Ccircle cx='6.5' cy='17.5' r='1.8'/%3E%3Ccircle cx='17.5' cy='17.5' r='1.8'/%3E%3C/svg%3E");
	--pb-icon-card: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2.5'/%3E%3Cpath d='M2.5 10h19M6 15h4'/%3E%3C/svg%3E");
	--pb-icon-award: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='6'/%3E%3Cpath d='M8.5 14 7 22l5-3 5 3-1.5-8'/%3E%3Cpath d='m9.5 9 1.7 1.7L14.5 7.5'/%3E%3C/svg%3E");
	--pb-icon-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
	--pb-icon-printer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V3h12v6M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M6 14h12v7H6z'/%3E%3C/svg%3E");
	--pb-icon-pen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3a2.8 2.8 0 0 1 4 4L7.5 20.5 2 22l1.5-5.5z'/%3E%3Cpath d='m15 5 4 4'/%3E%3C/svg%3E");
	--pb-icon-brand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='9' r='5'/%3E%3Ccircle cx='16' cy='9' r='5'/%3E%3Ccircle cx='12' cy='15' r='5'/%3E%3C/svg%3E");
	--pb-icon-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8L12 21l8.8-8.6a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E");
	--pb-icon-gift: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h18v4H3zM5 12v9h14v-9M12 8v13'/%3E%3Cpath d='M12 8S10.5 3 8 3.5 7 8 12 8zM12 8s1.5-5 4-4.5S17 8 12 8z'/%3E%3C/svg%3E");
	--pb-icon-file: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M9 15l2 2 4-4'/%3E%3C/svg%3E");
	--pb-icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
	--pb-indigo: #4a4fc4;
}

body {
	font-family: "Fira Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	color: var(--pb-ink);
}

/* ---------- section rhythm ---------- */
.pb-section {
	padding-block: clamp(40px, 5vw, 72px);
}

.pb-kicker {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--pb-muted);
	display: flex;
	align-items: center;
	gap: 14px;
}

.pb-kicker::after {
	content: "";
	flex: 0 0 clamp(40px, 8vw, 120px);
	height: 1px;
	background: currentColor;
	opacity: 0.45;
}

.pb-headline {
	position: relative;
	margin: 0 0 36px;
	padding-bottom: 14px;
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--pb-ink);
}

.pb-headline::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 44px;
	height: 3px;
	border-radius: 3px;
	background: var(--pb-blue-bright);
}

.pb-headline--center {
	text-align: center;
}

.pb-headline--center::after {
	left: 50%;
	transform: translateX(-50%);
}

/* ---------- top bar: light grey, account links on the right (legacy) ---------- */
.pb-topbar {
	padding-block: 7px;
	font-size: 13px;
	border-bottom: 1px solid var(--cs-line, rgba(17, 17, 17, 0.06));
}

.pb-topbar p {
	margin: 0;
}

.pb-topbar a {
	color: var(--pb-muted);
	text-decoration: none;
}

.pb-topbar a:hover {
	color: var(--pb-blue);
	text-decoration: underline;
}

.pb-topbar__links {
	gap: 0;
}

.pb-topbar__links p + p::before {
	content: "|";
	margin: 0 10px;
	opacity: 0.5;
}

/* ---------- header: logo, product search with categories, account + cart; menu on its own row; static ---------- */
.pb-header {
	padding-block: 14px;
}

.pb-header__row {
	gap: clamp(16px, 3vw, 40px);
}

.pb-header .wp-block-site-logo {
	flex: none;
}

.pb-header .wp-block-site-logo img {
	height: auto;
	width: 170px;
	max-width: 100%;
}

.pb-search {
	flex: 1 1 auto;
	max-width: 560px;
	display: flex;
	align-items: stretch;
	height: 44px;
	border: 1px solid var(--cs-line-strong, rgba(17, 17, 17, 0.16));
	border-radius: var(--cs-r-pill, 999px);
	background: #fff;
	overflow: hidden;
}

.pb-search__q {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	padding: 0 18px;
	font: inherit;
	font-size: 14px;
	color: var(--pb-ink);
	background: transparent;
}

.pb-search__q::placeholder {
	color: var(--pb-muted);
	opacity: 1;
}

.pb-search__cat {
	flex: 0 0 150px;
	border: 0;
	border-left: 1px solid var(--cs-line-strong, rgba(17, 17, 17, 0.16));
	padding: 0 12px;
	font: inherit;
	font-size: 14px;
	color: var(--pb-ink);
	background: transparent;
}

.pb-search__btn {
	flex: 0 0 54px;
	border: 0;
	border-left: 1px solid var(--cs-line-strong, rgba(17, 17, 17, 0.16));
	background: transparent;
	cursor: pointer;
	position: relative;
}

.pb-search__btn::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 20px;
	height: 20px;
	background: var(--pb-ink);
	-webkit-mask: var(--pb-icon-search) center / contain no-repeat;
	mask: var(--pb-icon-search) center / contain no-repeat;
}

.pb-search :focus-visible {
	outline: 2px solid var(--pb-blue);
	outline-offset: -2px;
}

.pb-header__tools {
	flex: none;
	gap: 8px;
}

.pb-site-header > *,
header.wp-block-template-part > * {
	margin-block-start: 0;
}

.ps-cart-link {
	margin: 0;
}

/* cart and checkout show a plain cart link instead of the mini-cart (header pattern): the same cart icon */
.ps-cart-link a {
	display: block;
	width: 24px;
	height: 24px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm10 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4zM1 2v2h2l3.6 7.6L5.2 14c-.1.3-.2.6-.2 1 0 1.1.9 2 2 2h12v-2H7.4a.25.25 0 0 1-.2-.4l.9-1.6h7.5c.8 0 1.4-.4 1.7-1l3.6-6.5A1 1 0 0 0 20 4H5.2l-.9-2z'/%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 24 24'%3E%3Cpath d='M7 18a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm10 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4zM1 2v2h2l3.6 7.6L5.2 14c-.1.3-.2.6-.2 1 0 1.1.9 2 2 2h12v-2H7.4a.25.25 0 0 1-.2-.4l.9-1.6h7.5c.8 0 1.4-.4 1.7-1l3.6-6.5A1 1 0 0 0 20 4H5.2l-.9-2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pb-navbar {
	padding-block: 0;
	border-top: 1px solid var(--cs-line, rgba(17, 17, 17, 0.08));
	border-bottom: 1px solid var(--cs-line, rgba(17, 17, 17, 0.08));
	box-shadow: 0 2px 6px rgba(23, 26, 58, 0.04);
}

.pb-main-nav {
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	gap: 0 34px;
	min-height: 48px;
}

/* ---------- hero: PHOTO BOOKS on soft pastel shapes, two books on the right (legacy two-panel slide) ---------- */
.pb-hero {
	margin: 0;
	overflow: hidden;
	background:
		radial-gradient(ellipse 34% 58% at 4% 6%, rgba(250, 178, 158, 0.85), transparent 70%),
		radial-gradient(ellipse 30% 40% at 12% 100%, rgba(246, 168, 190, 0.7), transparent 70%),
		radial-gradient(ellipse 42% 70% at 96% 18%, rgba(241, 156, 205, 0.75), transparent 70%),
		radial-gradient(ellipse 38% 60% at 82% 96%, rgba(170, 226, 205, 0.85), transparent 70%),
		#ececec;
}

.pb-hero__inner {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	align-items: center;
	min-height: clamp(360px, 36vw, 520px);
	gap: 24px;
}

.pb-hero__text,
.pb-hero__art {
	margin: 0;
}

.pb-hero__title.wp-block-heading {
	margin: 0;
	font-size: clamp(3rem, 1.6rem + 5vw, 6.75rem);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -0.01em;
	color: var(--pb-indigo);
}

.pb-hero__lead {
	margin: 10px 0 8px;
	font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.6rem);
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: var(--pb-ink);
}

.pb-hero__sub {
	margin: 0 0 26px;
	max-width: 42ch;
	font-size: 16px;
	color: var(--pb-ink);
}

.pb-hero__art {
	display: flex;
	justify-content: center;
}

.pb-hero__book {
	margin: 0;
	width: min(100%, 560px);
}

.pb-hero__book img {
	display: block;
	width: 100%;
	height: auto;
	mix-blend-mode: multiply;
}

.pb-hero__cta .wp-block-button__link {
	background: var(--pb-indigo);
	color: #fff;
	padding: 12px 26px;
	border-radius: var(--cs-r-sm, 6px);
	font-weight: 500;
	font-size: 15px;
}

.pb-hero__cta .wp-block-button__link:hover {
	background: var(--pb-ink);
}

/* ---------- feature bar: dark, four icons (legacy) ---------- */
.pb-features {
	padding-block: 26px;
	background: #333438;
	color: #fff;
}

.pb-features__columns {
	margin: 0;
	gap: 20px;
}

.pb-feature {
	position: relative;
	padding-left: 50px;
	min-height: 40px;
}

.pb-feature::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 34px;
	height: 34px;
	background: #fff;
	-webkit-mask: var(--pb-icon) center / contain no-repeat;
	mask: var(--pb-icon) center / contain no-repeat;
}

.pb-feature--award { --pb-icon: var(--pb-icon-award); }
.pb-feature--clock { --pb-icon: var(--pb-icon-clock); }
.pb-feature--truck { --pb-icon: var(--pb-icon-truck); }
.pb-feature--card { --pb-icon: var(--pb-icon-card); }

.pb-feature__title.wp-block-heading {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	color: #fff;
}

.pb-feature__text {
	margin: 2px 0 0;
	font-size: 14px;
	color: #e1e2ea;
}

/* ---------- product plates and cards ---------- */
.ps-products li.wc-block-product .wc-block-components-product-image,
.wp-block-woocommerce-product-template .wc-block-components-product-image,
.wp-block-woocommerce-product-image {
	background: var(--pb-plate);
	border-radius: var(--cs-r-md, 16px);
	overflow: hidden;
}

.wp-block-woocommerce-product-template .wc-block-components-product-image img,
.wp-block-woocommerce-product-image img,
.cmsmart-ptabs__item img {
	mix-blend-mode: multiply;
}

.wp-block-woocommerce-product-template .wp-block-post-title,
.wp-block-woocommerce-product-template .wp-block-post-title a {
	font-size: 16px;
	font-weight: 600;
	color: var(--pb-ink);
}

.wp-block-woocommerce-product-template .wp-block-woocommerce-product-price,
.wp-block-woocommerce-product-template .wc-block-components-product-price {
	color: var(--pb-blue);
	font-weight: 700;
}

.wp-block-woocommerce-product-template .wp-block-woocommerce-product-button .wp-element-button,
.wp-block-woocommerce-product-template .wp-block-woocommerce-product-button .wc-block-components-product-button__button {
	background: var(--pb-blue);
	color: #fff;
	border-radius: var(--cs-r-sm, 10px);
}

.wp-block-woocommerce-product-template .wp-block-woocommerce-product-button .wp-element-button:hover {
	background: var(--pb-ink);
}

/* ---------- hot deals: travel cup card, deal of the day with a countdown, percent-off banner ---------- */
.pb-deals__row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.pb-deal-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 420px;
	border-radius: var(--cs-r-md, 12px);
	overflow: hidden;
	background: var(--pb-plate);
	color: var(--pb-ink);
	text-decoration: none;
	box-shadow: var(--cs-shadow-0);
}

.pb-deal-card img {
	display: block;
	width: 100%;
	height: auto;
	mix-blend-mode: multiply;
}

.pb-deal-card--photo img {
	position: absolute;
	inset: 0;
	height: 100%;
	object-fit: cover;
}

.pb-deal-card__ribbon {
	position: relative;
	align-self: flex-end;
	margin-top: 26px;
	padding: 7px 14px;
	background: var(--pb-indigo);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
}

.pb-deal-card__off {
	position: relative;
	align-self: flex-end;
	margin-top: 4px;
	padding: 4px 14px;
	background: rgba(255, 255, 255, 0.9);
	color: var(--pb-indigo);
	font-size: 22px;
}

.pb-deal-card--deal {
	align-items: center;
	padding-bottom: 22px;
	text-align: center;
}

.pb-deal-card__img {
	display: block;
	width: 100%;
}

.pb-deal-card__badge {
	position: absolute;
	top: 18px;
	right: 0;
	padding: 6px 12px;
	background: var(--pb-indigo);
	color: #fff;
	font-weight: 600;
}

.pb-countdown {
	display: flex;
	gap: 8px;
	margin-top: -36px;
	position: relative;
}

.pb-countdown__box {
	display: grid;
	min-width: 56px;
	padding: 6px 4px;
	background: var(--pb-indigo);
	color: #fff;
	text-align: center;
	border-radius: 4px;
}

.pb-countdown__box b {
	font-size: 20px;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.pb-countdown__box small {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.pb-deal-card__name {
	margin: 16px 0 4px;
	font-size: 17px;
	font-weight: 600;
	text-transform: uppercase;
}

.pb-deal-card__name a {
	color: var(--pb-ink);
	text-decoration: none;
}

.pb-deal-card__price {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--pb-blue);
}

.pb-deal-card__price del {
	margin-right: 8px;
	font-weight: 400;
}

.pb-deal-card__price ins {
	text-decoration: none;
}

.pb-deal-card--banner {
	align-items: center;
	padding: 18px 18px 26px;
	background: linear-gradient(160deg, #fde6df 0%, #f6ecd8 55%, #e3f3ec 100%);
}

.pb-deal-card__big {
	margin: 0;
	display: flex;
	align-items: baseline;
	gap: 10px;
	line-height: 1;
}

.pb-deal-card__pct {
	font-size: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
	font-weight: 800;
	color: #fff;
	-webkit-text-stroke: 2px var(--pb-indigo);
	paint-order: stroke fill;
}

.pb-deal-card__word {
	font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem);
	color: var(--pb-indigo);
}

.pb-deal-card__what {
	margin: 8px 0 0;
	font-size: 15px;
}

.pb-deal-card--banner img {
	width: 78%;
	margin: auto;
}

.pb-deal-card__btn.wp-element-button {
	padding: 10px 26px;
	background: var(--pb-indigo);
	color: #fff;
	text-decoration: none;
	border-radius: var(--cs-r-sm, 6px);
}

.pb-deal-card__btn.wp-element-button:hover {
	background: var(--pb-ink);
}

/* ---------- product grids: buttons follow the left-aligned titles and prices ---------- */
/* (the designer replaces the button of a design product with its own full-width "Start Design" link: a.button) */
.ps-products li.wc-block-product > a.button {
	display: inline-block;
	text-align: left;
}

.ps-products .wp-block-woocommerce-product-button,
.ps-products .wc-block-components-product-button {
	justify-content: flex-start;
	align-items: flex-start;
	text-align: left;
}

/* ---------- category tabs ---------- */
.pb-tabs .cmsmart-ptabs__tab {
	text-transform: uppercase;
	font-size: 14px;
	font-weight: 500;
}

/* ---------- layflat banner + small product cards ---------- */
.pb-spot__cols {
	gap: 28px;
	margin: 0;
	align-items: stretch !important;
}

.pb-spot__banner {
	position: relative;
	padding: 28px 24px 0;
	border-radius: var(--cs-r-md, 12px);
	background: linear-gradient(160deg, #c9c7ff 0%, #b9d4ff 100%);
	text-align: right;
	overflow: hidden;
}

.pb-spot__new {
	margin: 0;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--pb-indigo);
}

.pb-spot__title.wp-block-heading {
	margin: 2px 0 14px;
	font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);
	font-weight: 800;
	line-height: 1.05;
	text-transform: uppercase;
	color: var(--pb-ink);
}

.pb-spot__banner .wp-block-buttons {
	justify-content: flex-end;
}

.pb-spot__btn .wp-block-button__link {
	padding: 9px 20px;
	background: var(--pb-indigo);
	border-radius: var(--cs-r-sm, 6px);
	font-size: 14px;
	text-transform: uppercase;
}

.pb-spot__img {
	margin: 12px -24px 0 auto;
	width: 82%;
	max-width: 300px;
}

.pb-spot__img img {
	display: block;
	width: 100%;
	height: auto;
	mix-blend-mode: multiply;
}

.pb-minis .wc-block-product-template,
.pb-minis ul.wp-block-woocommerce-product-template {
	gap: 20px !important;
}

.pb-mini {
	gap: 16px;
	height: 100%;
	padding: 14px;
	background: var(--pb-plate);
	border-radius: var(--cs-r-md, 12px);
}

.pb-mini .wp-block-post-title {
	margin: 0 0 4px;
}

.pb-mini .wp-block-post-title a {
	font-size: 15px;
	font-weight: 600;
	color: var(--pb-ink);
	text-decoration: none;
}

.pb-mini__cats {
	margin: 0 0 6px;
	color: var(--pb-muted);
}

.pb-mini .wp-block-woocommerce-product-image {
	flex: 0 0 96px;
	background: #fff;
}

.pb-featured__lead {
	margin-top: -18px !important;
	margin-bottom: 30px !important;
	color: var(--pb-muted);
}

/* ---------- design your own: three steps ---------- */
.pb-how__steps {
	gap: 22px;
	margin: 0 0 34px;
}

.pb-step {
	padding: 22px 22px 24px;
	background: var(--pb-plate);
	border-radius: var(--cs-r-md, 12px);
}

.pb-step__num {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--pb-blue);
}

.pb-step__title.wp-block-heading {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 600;
}

.pb-step__text {
	margin: 0;
	color: var(--pb-muted);
	font-size: 15px;
}

/* ---------- three pastel photo book banners ---------- */
.pb-banners__row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.pb-banner-card {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 200px;
	padding: 14px;
	border-radius: var(--cs-r-md, 12px);
	color: var(--pb-ink);
	text-decoration: none;
	overflow: hidden;
}

.pb-banner-card--friends { background: linear-gradient(120deg, #b9c6ff 0%, #d9e8ff 100%); }
.pb-banner-card--family { background: linear-gradient(120deg, #d7c9f5 0%, #f6dfc8 100%); }
.pb-banner-card--motivational { background: linear-gradient(120deg, #cfeaf2 0%, #f8e6c4 100%); }

.pb-banner-card__frame {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-self: stretch;
	width: 100%;
	padding: 16px 18px;
	border: 1.5px solid rgba(255, 255, 255, 0.95);
}

.pb-banner-card__title {
	max-width: 9ch;
	font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.9rem);
	font-weight: 400;
	line-height: 1.05;
	text-transform: uppercase;
}

.pb-banner-card__more {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.pb-banner-card img {
	position: absolute;
	right: 4%;
	bottom: 6%;
	width: 46%;
	height: auto;
	mix-blend-mode: multiply;
}

.pb-banner-card:hover .pb-banner-card__more {
	text-decoration: underline;
}

/* ---------- what we do: six service cards ---------- */
.pb-services__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.pb-service {
	margin: 0 !important;
	padding: 76px 26px 28px;
	position: relative;
	background: #f4f3ef;
	border-radius: var(--cs-r-md, 12px);
}

.pb-service::before {
	content: "";
	position: absolute;
	left: 26px;
	top: 26px;
	width: 34px;
	height: 34px;
	background: var(--pb-ink);
	-webkit-mask: var(--pb-icon) center / contain no-repeat;
	mask: var(--pb-icon) center / contain no-repeat;
}

.pb-service--printer { --pb-icon: var(--pb-icon-printer); }
.pb-service--pen { --pb-icon: var(--pb-icon-pen); }
.pb-service--brand { --pb-icon: var(--pb-icon-brand); }
.pb-service--heart { --pb-icon: var(--pb-icon-heart); }
.pb-service--gift { --pb-icon: var(--pb-icon-gift); }
.pb-service--file { --pb-icon: var(--pb-icon-file); }

.pb-service__title.wp-block-heading {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
}

.pb-service__text {
	margin: 0;
	font-size: 15px;
	color: var(--pb-muted);
}

/* ---------- blog cards ---------- */
.pb-blog__lead {
	margin: -22px 0 32px;
	color: var(--pb-muted);
}

.pb-blog__query .wp-block-post-template {
	gap: 28px;
}

.pb-blog__img img {
	border-radius: var(--cs-r-md, 16px);
}

.pb-blog__date {
	margin: 10px 0 4px;
	color: var(--pb-muted);
}

.pb-blog__query .wp-block-post-title a {
	color: var(--pb-ink);
	text-decoration: none;
	font-weight: 600;
}

.pb-blog__query .wp-block-post-title a:hover {
	color: var(--pb-blue);
}

/* ---------- inner pages: photo banner, crumbs ---------- */
.pb-banner {
	margin: 0;
}

.pb-banner .pb-banner__title {
	font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
	font-weight: 800;
	color: #fff;
}

.pb-banner__crumbs {
	margin-top: 6px;
	font-size: 14px;
}

.pb-banner__crumbs,
.pb-banner__crumbs a {
	color: #fff;
}

.pb-crumbs {
	padding-block: 14px;
	font-size: 14px;
}

.pb-shop__intro {
	color: var(--pb-muted);
	margin: 0;
}

.pb-demo-note {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--pb-muted);
}

/* ---------- footer: black, four columns ---------- */
.pb-footer {
	padding-top: clamp(40px, 5vw, 64px);
}

.pb-footer .ps-footer__title {
	color: #fff;
	font-size: 18px;
	font-weight: 600;
}

.pb-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-block: 18px;
}

/* ---------- shop and product sidebar ---------- */
.pb-widget-title.wp-block-heading {
	margin: 0 0 14px;
	padding-bottom: 10px;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	border-bottom: 1px solid var(--cs-line, rgba(17, 17, 17, 0.1));
}

.pb-catlist {
	margin-bottom: 34px;
	font-size: 15px;
}

.pb-catlist ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pb-catlist li {
	padding: 5px 0;
}

.pb-catlist a {
	color: var(--pb-ink);
	text-decoration: none;
}

.pb-catlist a:hover {
	color: var(--pb-blue);
}

.pb-shop__title.wp-block-query-title {
	margin: 0;
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
	font-weight: 600;
}

/* ---------- footer bottom bar: blue (legacy) ---------- */
.pb-footer__bottom {
	background: var(--pb-indigo) !important;
	color: #fff !important;
}

/* ---------- phones ---------- */
@media (max-width: 781px) {
	.pb-topbar__promo {
		display: none;
	}

	.pb-header__row {
		flex-wrap: wrap !important;
	}

	.pb-search {
		order: 3;
		flex: 1 1 100%;
		max-width: none;
	}

	.pb-search__cat {
		display: none;
	}

	.pb-header .wp-block-site-logo img {
		width: 140px;
	}

	.pb-navbar {
		position: absolute;
		top: 44px;
		right: 108px;
		border: 0;
		box-shadow: none;
		background: transparent !important;
		padding: 0 !important;
	}

	.pb-site-header,
	header.wp-block-template-part {
		position: relative;
	}

	.pb-main-nav {
		min-height: 0;
	}

	.pb-hero__inner {
		grid-template-columns: 1fr;
		min-height: 0;
		padding-block: 32px 8px;
		text-align: center;
	}

	.pb-hero .wp-block-buttons {
		justify-content: center;
	}

	.pb-hero__sub {
		margin-inline: auto;
	}

	.pb-hero__book {
		width: min(70%, 280px);
	}

	.pb-features__columns {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 18px 14px !important;
	}

	.pb-feature {
		padding-left: 42px;
	}

	.pb-feature::before {
		width: 28px;
		height: 28px;
	}

	.pb-feature__title.wp-block-heading {
		font-size: 15px;
	}

	.pb-feature__text {
		font-size: 13px;
	}

	.pb-deals__row,
	.pb-banners__row,
	.pb-services__grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.pb-deal-card {
		min-height: 300px;
	}

	.pb-deal-card--deal .pb-deal-card__img,
	.pb-deal-card--banner img {
		width: 72%;
		margin-inline: auto;
	}

	.pb-deal-card--photo {
		min-height: 260px;
	}

	.pb-spot__img {
		max-width: 200px;
	}

	.pb-banner-card {
		min-height: 170px;
	}

	.pb-service {
		padding: 22px 20px 22px 76px;
	}

	.pb-service::before {
		left: 22px;
		top: 24px;
	}
}

/* Printing option "Sides to print": the plugin draws picture swatches; a book has no swatch picture, so show labelled pills. */
.nbo-checkbox-wrap .nbo-checkbox {
	width: auto;
	height: auto;
	min-width: 96px;
	padding: 11px 20px;
	margin-right: 8px;
	border: 1.5px solid #c9cfe6;
	border-radius: 999px;
	background: #fff !important;
	color: var(--pb-ink);
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
}
.nbo-checkbox-wrap .nbo-checkbox::before {
	content: attr(title);
}
.nbo-checkbox-wrap input[type="checkbox"]:checked + label.nbo-checkbox {
	background: var(--pb-blue) !important;
	border-color: var(--pb-blue);
	color: #fff;
}
.nbo-checkbox-wrap input[type="checkbox"]:checked + label.nbo-checkbox::after {
	display: none;
}

/* Struck-through regular price: WooCommerce fades it (about 2.4:1); keep it readable (6:1). */
.wp-block-woocommerce-product-price del,
.wc-block-components-product-price del,
.price del {
	color: var(--pb-muted);
	opacity: 1 !important;
}

/* Delivery price table of the printing options: the plugin greys the per-item price (3.5:1). */
.nbd-option-wrapper .nbo-delivery-date-selector:not(.active):not(:hover) .nbo-delivery-price-item,
.nbd-option-wrapper .nbo-delivery-date-selector:not(.active):not(:hover) .nbo-delivery-price-item span {
	color: #595959 !important;
}

/* Phones: the quantity / delivery price table of the printing options is wider than the screen; let it scroll inside its box. */
@media (max-width: 781px) {
	.pb-product .wp-block-column {
		min-width: 0;
	}

	.nbo-wrapper,
	.nbd-option-wrapper {
		max-width: 100%;
		min-width: 0;
	}

	.nbo-delivery {
		max-width: 100%;
		overflow-x: auto;
	}
}

/* Sale badge: the inner span kept WooCommerce's blue fill (4.2:1); let the pill colour show through */
.wc-block-components-product-sale-badge .wc-block-components-product-sale-badge__text {
	background: transparent !important;
	color: var(--cs-badge-fg, #1a1a1a) !important;
}
