/*
Theme Name: Cmsmart Phone Case Store
Theme URI: https://www.cmsmart.net/
Author: Cmsmart
Author URI: https://www.cmsmart.net/
Description: Online store for custom phone cases, built for the Cmsmart Product Designer: split hero slider, create-your-own steps, featured cases with tabs and a sale banner, shop-by-category banners, print guide, blog, customer reviews, information bar and a dark footer, plus shop, product, cart and policy pages.
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-phone-case-store
Tags: e-commerce, block-patterns, custom-colors, custom-logo, custom-menu, editor-style, translation-ready
*/

/*
 * Cmsmart Phone Case Store 2.0.0: the original phone case store layout (coral accent, Playfair Display headlines with a
 * coral strike through the first word, grey product plates, dark footer) on the Cmsmart Stores design tokens. Colours and
 * the fonts live in theme.json; radius, elevation, spacing and motion
 * come from the parent tokens (--cs-*). This file maps roles to tokens and lays out the sections: no colour, radius or shadow
 * literal belongs in it (see stores/cmsmart-phone-case-store/TOKENS.md).
 */

/* ---------- token mapping and icons ---------- */
:root {
	--cs-accent: var(--wp--preset--color--primary-dark);
	--cs-plate: var(--wp--preset--color--tertiary);
	--cs-product-title: var(--wp--preset--color--contrast);
	--cs-ring: var(--wp--preset--color--primary-dark);
	--cs-badge-bg: var(--wp--preset--color--accent-orange);
	--pc-ink: var(--wp--preset--color--contrast);
	--pc-coral: var(--wp--preset--color--primary);
	--pc-coral-dark: var(--wp--preset--color--primary-dark);
	--pc-grey: var(--wp--preset--color--tertiary);
	--pc-muted: var(--wp--preset--color--muted);
	--pc-icon-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 1h10a2 2 0 0 1 2 2v18a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2zm0 3v14h10V4zm5 15.5a1 1 0 1 0 0 2 1 1 0 0 0 0-2z'/%3E%3C/svg%3E");
	--pc-icon-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1 3 5v6c0 5.550 3.840 10.740 9 12 5.160-1.260 9-6.450 9-12V5z'/%3E%3C/svg%3E");
	--pc-icon-pencil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.250V21h3.750L17.800 9.940l-3.750-3.750L3 17.250zM20.700 7.050a1 1 0 0 0 0-1.400l-2.350-2.350a1 1 0 0 0-1.400 0l-1.830 1.830 3.750 3.750 1.830-1.830z'/%3E%3C/svg%3E");
	--pc-icon-cart: 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.600 7.600-1.350 2.400A2 2 0 0 0 7 17h12v-2H7.400l1.100-2h7.450a2 2 0 0 0 1.750-1l3.580-6.500L19.400 4H5.200l-.94-2z'/%3E%3C/svg%3E");
	--pc-icon-upload: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 20h14v-2H5zm7-17-6 6h4v6h4V9h4z'/%3E%3C/svg%3E");
	--pc-icon-truck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6h11v9H3zM14 9h4l3 3v3h-7zM7 17a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm11 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4z'/%3E%3C/svg%3E");
	--pc-icon-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 5v5.400l4 2.400-1 1.700-5-3V7z'/%3E%3C/svg%3E");
	--pc-icon-tag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.400 11.600l-9-9A2 2 0 0 0 11 2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 .6 1.400l9 9a2 2 0 0 0 2.800 0l7-7a2 2 0 0 0 0-2.800zM6.500 8A1.500 1.500 0 1 1 6.500 5a1.500 1.500 0 0 1 0 3z'/%3E%3C/svg%3E");
	--pc-icon-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 12h3v8h5v-6h4v6h5v-8h3z'/%3E%3C/svg%3E");
	--pc-icon-call: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.600 10.800a15 15 0 0 0 6.600 6.600l2.200-2.200a1 1 0 0 1 1-.25 11.400 11.400 0 0 0 3.600.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.500a1 1 0 0 1 1 1c0 1.250.2 2.450.57 3.570a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E");
	--pc-icon-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5h20v14H2zm2 2v.5l8 5 8-5V7z'/%3E%3C/svg%3E");
}

.pc-icon--phone { --pc-icon: var(--pc-icon-phone); }
.pc-icon--shield { --pc-icon: var(--pc-icon-shield); }
.pc-icon--pencil { --pc-icon: var(--pc-icon-pencil); }
.pc-icon--cart { --pc-icon: var(--pc-icon-cart); }
.pc-icon--upload { --pc-icon: var(--pc-icon-upload); }
.pc-icon--truck { --pc-icon: var(--pc-icon-truck); }
.pc-icon--clock { --pc-icon: var(--pc-icon-clock); }
.pc-icon--tag { --pc-icon: var(--pc-icon-tag); }
.pc-icon--home { --pc-icon: var(--pc-icon-home); }
.pc-icon--call { --pc-icon: var(--pc-icon-call); }
.pc-icon--mail { --pc-icon: var(--pc-icon-mail); }

/* ---------- top bar ---------- */
.pc-topbar {
	padding-block: var(--cs-space-2);
	font-size: var(--cs-fs-meta);
}

.pc-topbar p {
	margin: 0;
}

.pc-topbar a {
	color: var(--wp--preset--color--topbar-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pc-topbar__account {
	display: flex;
	align-items: center;
	gap: var(--cs-space-3);
}

.pc-topbar__sep {
	align-self: stretch;
	min-height: 1em;
	border-inline-start: 1px solid currentColor;
	opacity: 0.5;
}

.pc-topbar__promo {
	align-items: center;
	gap: var(--cs-space-4);
}

.pc-topbar .pc-topbar__cta a {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 0 var(--cs-space-4);
	border-radius: var(--cs-r-sm);
	background: var(--pc-coral-dark);
	color: var(--wp--preset--color--base);
	font-weight: 600;
	text-decoration: none;
}

.pc-topbar .pc-topbar__cta a:hover {
	background: var(--wp--preset--color--base);
	color: var(--pc-ink);
}

/* ---------- header ---------- */
.pc-header {
	padding-block: var(--cs-space-4);
	border-bottom: 1px solid var(--cs-line);
}

.pc-header .wp-block-navigation {
	text-transform: uppercase;
	letter-spacing: var(--cs-track-nav);
	font-size: 0.9375rem;
	font-weight: 600;
}

.pc-header .wp-block-navigation .wp-block-navigation-item__content:hover,
.pc-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	color: var(--pc-coral-dark);
}

.pc-header__tools {
	gap: var(--cs-space-2);
}

.pc-header .wp-block-search__button {
	background: transparent;
	border-color: transparent;
	color: var(--pc-ink);
	box-shadow: none;
}

.pc-header .wc-block-mini-cart__badge {
	background: var(--pc-coral-dark);
	color: var(--wp--preset--color--base);
}

.pc-cart-link a {
	display: inline-block;
	min-width: var(--cs-target);
	min-height: var(--cs-target);
}

/* ---------- section rhythm and the coral headline bar ---------- */
.pc-section {
	padding-block: var(--cs-section-y);
}

.pc-headline {
	margin: 0 0 var(--cs-space-4);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

/* the original store struck the first word through in coral; the bar now sits across the lower half of the word */
/* the original store's script strike: a coral marker stroke through the first word, a little tilted and longer than it */
.pc-hl {
	position: relative;
	display: inline-block;
}

.pc-hl::after {
	content: "";
	position: absolute;
	left: -0.08em;
	right: -0.12em;
	top: 52%;
	height: 0.11em;
	border-radius: 0.06em 0.12em 0.08em 0.1em;
	background: var(--pc-coral-dark);
	transform: rotate(-2.5deg);
	pointer-events: none;
}

.pc-lead {
	max-width: 62ch;
	margin: 0 0 var(--cs-space-6);
	color: var(--pc-muted);
}

/* the constrained layout centres every narrow child; the lead lines up with the headline, as in the original store */
.pc-section.is-layout-constrained > .pc-lead {
	margin-inline-start: max(0px, calc((100% - 1260px) / 2)) !important;
}

.pc-button .wp-block-button__link {
	border-radius: var(--cs-r-sm);
	letter-spacing: var(--cs-track-button);
}

/* ---------- hero: colour panel with one large case on the left, title on the grey panel on the right ---------- */
.pc-hero .cmsmart-slide__bg {
	object-fit: cover;
	object-position: center;
}

.pc-hero .swiper-slide::after {
	display: none;
}

.pc-hero .cmsmart-slide {
	align-items: flex-start;
	color: var(--pc-ink);
}

/* "html .pc-hero.cmsmart-slider" beats the parent's tablet and phone slider polish (gutters, text shadow over photos) */
html .pc-hero.cmsmart-slider .cmsmart-slide .cmsmart-slide__content {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--cs-space-4);
	max-width: none;
	margin: 0;
	/* the legacy slides carry three small cases in the lower right: title and buttons stay in the upper half */
	padding: clamp(var(--cs-space-6), 5vw, 88px) clamp(var(--cs-space-5), 4vw, 64px) 0 calc(54% + clamp(var(--cs-space-4), 2vw, 32px));
}

html .pc-hero.cmsmart-slider .cmsmart-slide__text {
	text-shadow: none;
}

html .pc-hero.cmsmart-slider .cmsmart-slide__heading {
	flex: 0 0 100%;
	margin: 0 0 var(--cs-space-2);
	font-size: clamp(2rem, 1rem + 2.6vw, 3.5rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.05;
	color: var(--pc-ink);
	text-shadow: none;
	text-wrap: balance;
}

/* badge and small line are set in the body sans, as on the original slides; only the title is Playfair */
.pc-hero__badge,
.pc-hero__kicker {
	font-family: var(--wp--preset--font-family--lato);
}

.pc-hero__badge {
	display: block;
	width: fit-content;
	margin: 0 0 var(--cs-space-3);
	padding: var(--cs-space-1) var(--cs-space-3);
	background: var(--pc-ink);
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: var(--cs-track-caps);
	line-height: 1.6;
	text-transform: uppercase;
}

.pc-hero__kicker {
	display: block;
	margin: 0 0 var(--cs-space-3);
	color: var(--pc-muted);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 400;
	letter-spacing: 0.02em;
	line-height: 1.3;
	text-transform: uppercase;
}

.pc-hero .cmsmart-slide__button,
.pc-hero .pc-hero__alt {
	display: inline-flex;
	align-items: center;
	min-height: var(--cs-target);
	padding: 0 1.6em;
	box-sizing: border-box;
	border-radius: var(--cs-r-sm);
	color: var(--wp--preset--color--base);
	font-weight: 600;
	text-decoration: none;
	transition: background-color var(--cs-dur) var(--cs-ease);
}

.pc-hero .cmsmart-slide__button {
	order: 1;
	background: var(--pc-coral-dark);
	border: 0;
}

.pc-hero .cmsmart-slide__text {
	order: 2;
	margin: 0;
	font-size: inherit;
	text-shadow: none;
}

.pc-hero .pc-hero__alt {
	background: var(--pc-ink);
}

.pc-hero .cmsmart-slide__button:hover,
.pc-hero .pc-hero__alt:hover {
	background: var(--pc-muted);
}

.pc-hero .swiper-pagination-bullet {
	background-color: var(--pc-ink);
}

.pc-hero .swiper-button-next,
.pc-hero .swiper-button-prev {
	background: var(--wp--preset--color--base);
	color: var(--pc-ink);
	box-shadow: var(--cs-shadow-1);
}

/* ---------- split sections: framed picture next to icon steps ---------- */
.pc-split {
	gap: clamp(var(--cs-space-6), 5vw, 80px);
}

.pc-framed {
	padding: var(--cs-space-5);
}

.pc-framed .wp-block-image {
	position: relative;
	margin: 0;
}

/* the blush frame offset behind the picture, as in the original "Create your own" and seller blocks */
.pc-framed .wp-block-image::before {
	content: "";
	position: absolute;
	border: 10px solid var(--wp--preset--color--secondary);
	pointer-events: none;
}

.pc-framed--left .wp-block-image::before {
	inset: calc(var(--cs-space-5) * -1) calc(var(--cs-space-5) * -1) calc(var(--cs-space-5) * -1) 38%;
}

.pc-framed--right .wp-block-image::before {
	inset: calc(var(--cs-space-5) * -1) calc(var(--cs-space-5) * -1) calc(var(--cs-space-5) * -1) 38%;
}

.pc-framed img {
	position: relative;
	display: block;
	width: 85%;
	height: auto;
	box-shadow: var(--cs-shadow-1);
}

.pc-framed--right img {
	margin-inline-start: auto;
	width: 88%;
}

.pc-steps {
	gap: var(--cs-space-5) var(--cs-space-6);
	margin-bottom: var(--cs-space-6);
}

.pc-step {
	position: relative;
	min-height: 48px;
	padding-inline-start: 64px;
}

.pc-step::before,
.pc-step::after {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
}

.pc-step::before {
	width: 48px;
	height: 48px;
	border-radius: var(--cs-r-pill);
	background: var(--pc-grey);
}

.pc-step::after {
	inset-block-start: 12px;
	inset-inline-start: 12px;
	width: 24px;
	height: 24px;
	background: var(--pc-ink);
	-webkit-mask: var(--pc-icon) center / contain no-repeat;
	mask: var(--pc-icon) center / contain no-repeat;
}

.pc-step__title {
	margin: 0 0 var(--cs-space-1);
	font-size: var(--wp--preset--font-size--medium);
	letter-spacing: var(--cs-track-caps);
	text-transform: uppercase;
}

.pc-step__text {
	margin: 0;
	font-size: var(--cs-fs-meta);
}

/* ---------- featured products: tabs at the right of the headline, sale card on the left ---------- */
.pc-featured__columns {
	position: relative;
	gap: var(--cs-space-6);
	align-items: stretch;
}

.pc-sale-card {
	height: 100%;
	min-height: 480px;
	padding: var(--cs-space-6) 0;
}

.pc-sale-card .wp-block-cover__inner-container {
	width: 100%;
}

.pc-sale-card__tag {
	display: inline-block;
	margin: 0 0 var(--cs-space-2);
	padding: var(--cs-space-2) var(--cs-space-5);
	background: var(--pc-ink);
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	letter-spacing: var(--cs-track-caps);
	text-transform: uppercase;
}

.pc-sale-card__link {
	margin: 0;
	padding-inline-start: var(--cs-space-5);
}

.pc-sale-card__link a {
	color: var(--pc-ink);
	font-weight: 600;
	letter-spacing: var(--cs-track-caps);
	text-transform: uppercase;
}

.pc-sale-card__link a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.wp-block-cmsmart-product-tabs.pc-product-tabs {
	--cmsmart-ptabs-accent: var(--pc-coral-dark);
	--cmsmart-ptabs-gap: var(--cs-space-5);
}

.pc-product-tabs .cmsmart-ptabs__list {
	justify-content: flex-end;
	gap: var(--cs-space-5);
	margin-bottom: var(--cs-space-5);
}

.pc-product-tabs .cmsmart-ptabs__tab,
.pc-product-tabs .cmsmart-ptabs__tab:hover,
.pc-product-tabs .cmsmart-ptabs__tab.is-active {
	min-height: var(--cs-target);
	padding: 0 0 var(--cs-space-1);
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	color: var(--pc-muted);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: var(--cs-track-caps);
	text-transform: uppercase;
}

.pc-product-tabs .cmsmart-ptabs__tab:hover,
.pc-product-tabs .cmsmart-ptabs__tab.is-active {
	color: var(--pc-ink);
	border-bottom-color: var(--pc-coral);
}

@media (min-width: 782px) {
	.pc-product-tabs .cmsmart-ptabs__list {
		position: absolute;
		inset-block-start: calc(-1 * (var(--cs-space-4) + 3.6rem));
		inset-inline-end: 0;
	}
}

/* product tiles (home tabs, shop grid, related): grey plate, title and coral price on the left */
.pc-product-tabs .cmsmart-ptabs__item {
	text-align: start;
}

.pc-product-tabs .cmsmart-ptabs__media img {
	background: var(--pc-grey);
}

.pc-product-tabs .cmsmart-ptabs__title {
	margin: var(--cs-space-3) 0 var(--cs-space-1);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
}

.pc-product-tabs .cmsmart-ptabs__title a {
	color: var(--pc-ink);
	text-decoration: none;
}

.pc-product-tabs .cmsmart-ptabs__price,
.pc-product-tabs .cmsmart-ptabs__price ins {
	color: var(--pc-coral-dark);
	font-weight: 600;
	text-decoration: none;
}

.pc-product-tabs .cmsmart-ptabs__price del {
	color: var(--pc-muted);
	font-weight: 400;
	margin-inline-end: var(--cs-space-2);
}

.pc-product-tabs .cmsmart-ptabs__button {
	display: none;
}

/* ---------- shop by category: mosaic of tall and short banners ---------- */
.pc-mosaic {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-auto-rows: 70px;
	gap: var(--cs-space-5);
}

.pc-banner--character-cases { grid-column: 1; grid-row: 1 / span 5; }
.pc-banner--flower-fruit-cases { grid-column: 2; grid-row: 1 / span 3; }
.pc-banner--pattern-cases { grid-column: 1; grid-row: 6 / span 3; }
.pc-banner--seasonal-cases { grid-column: 2; grid-row: 4 / span 5; }

.wp-block-cover.pc-banner {
	min-height: 0;
	height: 100%;
	padding: var(--cs-space-6);
	overflow: hidden;
	transition: box-shadow var(--cs-dur) var(--cs-ease);
}

.wp-block-cover.pc-banner:hover {
	box-shadow: var(--cs-shadow-2);
}

.pc-banner .wp-block-cover__image-background {
	transition: transform 200ms var(--cs-ease);
}

.pc-banner:hover .wp-block-cover__image-background {
	transform: scale(1.03);
}

.pc-banner .wp-block-cover__inner-container {
	max-width: 46%;
	color: var(--pc-ink);
}

.pc-banner__title {
	margin: 0 0 var(--cs-space-2);
	font-size: var(--wp--preset--font-size--x-large);
}

.pc-banner__title a {
	color: var(--pc-ink);
	text-decoration: none;
}

.pc-banner__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.pc-banner__text {
	margin: 0 0 var(--cs-space-4);
	color: var(--pc-ink);
	font-size: var(--cs-fs-meta);
}

.pc-banner__cta {
	display: inline-block;
	margin: 0;
	padding: var(--cs-space-2) var(--cs-space-4);
	background: var(--pc-ink);
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

/* ---------- blog teasers: picture left, text right ---------- */
.pc-posts {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--cs-space-6);
}

.pc-post {
	display: grid;
	grid-template-columns: 38% 1fr;
	gap: var(--cs-space-5);
	align-items: start;
}

.pc-post__photo {
	display: block;
	overflow: hidden;
	background: var(--pc-grey);
	aspect-ratio: 4 / 3;
}

.pc-post__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pc-post__cat,
.pc-post__meta {
	margin: 0 0 var(--cs-space-1);
	font-size: var(--cs-fs-meta);
}

.pc-post__title {
	margin: 0 0 var(--cs-space-1);
	font-size: var(--wp--preset--font-size--large);
}

.pc-post__title a {
	color: var(--pc-ink);
	text-decoration: none;
}

.pc-post__excerpt {
	margin: var(--cs-space-2) 0 var(--cs-space-4);
}

.pc-post__more {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 var(--cs-space-4);
	border-radius: var(--cs-r-sm);
	background: var(--pc-coral-dark);
	color: var(--wp--preset--color--base);
	font-weight: 600;
	text-decoration: none;
}

.pc-post__more:hover {
	background: var(--pc-ink);
	color: var(--wp--preset--color--base);
}

/* ---------- reviews: grey cards with a blush corner ---------- */
.pc-review-cards {
	gap: var(--cs-space-5);
}

.pc-review {
	position: relative;
	height: 100%;
	box-sizing: border-box;
	overflow: hidden;
	padding: var(--cs-space-6) var(--cs-space-6) var(--cs-space-5);
	background: var(--pc-grey);
}

.pc-review::before {
	content: "";
	position: absolute;
	inset-block-end: -60px;
	inset-inline-start: -40px;
	width: 200px;
	height: 150px;
	border-radius: var(--cs-r-pill);
	background: var(--wp--preset--color--secondary);
}

.pc-review > * {
	position: relative;
}

.pc-review__quote {
	margin: 0 0 var(--cs-space-5);
	padding: 0;
	border: 0;
}

.pc-review__quote::before {
	content: "\201C";
	display: block;
	height: 0.5em;
	font-size: 3.5rem;
	font-weight: 700;
	line-height: 1;
	color: var(--pc-muted);
}

.pc-review__author {
	display: grid;
	grid-template-columns: 64px 1fr;
	column-gap: var(--cs-space-4);
	align-items: center;
	margin: 0;
	color: var(--pc-ink);
}

.pc-review__avatar {
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border: 3px solid var(--wp--preset--color--base);
	border-radius: var(--cs-r-pill);
	background: var(--pc-coral);
	color: var(--pc-ink);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
}

.pc-review__author strong {
	text-transform: uppercase;
	letter-spacing: var(--cs-track-caps);
	align-self: end;
}

.pc-review__product {
	color: var(--pc-muted);
	font-size: var(--cs-fs-meta);
	align-self: start;
}

.pc-review__stars {
	color: var(--pc-coral-dark);
	letter-spacing: 0.08em;
}

/* a store without reviews: three cards that say how real reviews reach this block (nothing made up) */
.pc-review--how {
	padding-block-end: 104px;
}

.pc-review__title {
	position: relative;
	min-height: 48px;
	margin: 0 0 var(--cs-space-3);
	padding-block-start: 64px;
	color: var(--pc-ink);
	font-size: var(--wp--preset--font-size--large);
}

.pc-review__title::before,
.pc-review__title::after {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
}

.pc-review__title::before {
	width: 48px;
	height: 48px;
	border-radius: var(--cs-r-pill);
	background: var(--wp--preset--color--base);
}

.pc-review__title::after {
	inset-block-start: 12px;
	inset-inline-start: 12px;
	width: 24px;
	height: 24px;
	background: var(--pc-coral-dark);
	-webkit-mask: var(--pc-icon) center / contain no-repeat;
	mask: var(--pc-icon) center / contain no-repeat;
}

.pc-review--how p {
	margin: 0;
	font-size: var(--cs-fs-meta);
}

/* ---------- FAQ ---------- */
.pc-faq__list {
	columns: 2;
	column-gap: var(--cs-space-7);
}

.pc-faq__item {
	break-inside: avoid;
	border-bottom: 1px solid var(--cs-line-strong);
	padding: var(--cs-space-2) 0;
}

.pc-faq__item summary {
	display: flex;
	align-items: center;
	min-height: var(--cs-target);
	color: var(--pc-ink);
	font-weight: 600;
	cursor: pointer;
}

.pc-faq__item p {
	margin: var(--cs-space-1) 0 var(--cs-space-3);
}

.pc-faq__more {
	margin: var(--cs-space-5) 0 0;
	font-weight: 600;
}

/* ---------- information bar ---------- */
.pc-info {
	padding-block: var(--cs-space-6);
}

.pc-info__columns {
	margin: 0;
	gap: var(--cs-space-5);
}

.pc-info__item {
	position: relative;
	min-height: 48px;
	padding-inline-start: 64px;
}

.pc-info__item::before {
	content: "";
	position: absolute;
	inset-block-start: 4px;
	inset-inline-start: 0;
	width: 40px;
	height: 40px;
	background: var(--pc-ink);
	-webkit-mask: var(--pc-icon) center / contain no-repeat;
	mask: var(--pc-icon) center / contain no-repeat;
}

.pc-info__title,
.pc-info__text {
	margin: 0;
}

.pc-info__title {
	color: var(--pc-ink);
	letter-spacing: var(--cs-track-caps);
	text-transform: uppercase;
}

/* ---------- footer: dark, newsletter row, four columns ---------- */
.pc-footer {
	padding-block: var(--cs-space-6) var(--cs-space-5);
}

.pc-footer.cmsmart-footer :is(p, li, .wp-block-navigation-item__content),
.pc-footer__bottom :is(p, .wp-block-navigation-item__content) {
	color: var(--wp--preset--color--footer-text);
}

.pc-footer.cmsmart-footer a,
.pc-footer__bottom a {
	color: var(--wp--preset--color--footer-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pc-footer.cmsmart-footer a:hover,
.pc-footer__bottom a:hover {
	color: var(--wp--preset--color--footer-accent);
}

.pc-footer.cmsmart-footer :is(h2, h3) {
	color: var(--wp--preset--color--base);
	border-bottom-color: color-mix(in srgb, var(--wp--preset--color--footer-text) 25%, transparent);
}

.pc-footer__join {
	align-items: center;
	gap: var(--cs-space-5);
	padding-block-end: var(--cs-space-5);
	margin-block-end: var(--cs-space-6);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--footer-text) 25%, transparent);
}

.pc-footer__join-text {
	align-items: center;
	gap: var(--cs-space-5);
}

.pc-footer__join-text p {
	margin: 0;
}

.pc-footer.cmsmart-footer .pc-footer__join-title {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: var(--wp--preset--font-size--x-large);
	letter-spacing: 0;
	text-transform: none;
}

.pc-footer.cmsmart-footer .pc-footer__join-button .wp-block-button__link {
	border-radius: var(--cs-r-pill);
	background: var(--pc-coral-dark);
	color: var(--wp--preset--color--base);
	text-decoration: none;
}

.pc-footer__social .wp-social-link {
	color: var(--wp--preset--color--footer-text);
	background: transparent;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--footer-text) 60%, transparent);
	border-radius: var(--cs-r-pill);
	padding: var(--cs-space-2);
}

.pc-footer.cmsmart-footer .pc-footer__title {
	font-size: var(--wp--preset--font-size--medium);
	letter-spacing: var(--cs-track-caps);
	text-transform: uppercase;
}

.pc-footer__contact {
	list-style: none;
	padding: 0;
}

.pc-footer__contact li {
	position: relative;
	margin-bottom: var(--cs-space-2);
	padding-inline-start: 28px;
}

.pc-footer__contact li::before {
	content: "";
	position: absolute;
	inset-block-start: 0.3em;
	inset-inline-start: 0;
	width: 16px;
	height: 16px;
	background: var(--wp--preset--color--footer-text);
	-webkit-mask: var(--pc-icon) center / contain no-repeat;
	mask: var(--pc-icon) center / contain no-repeat;
}

.pc-footer__gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--cs-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.pc-footer__gallery li {
	margin: 0;
}

.pc-footer__gallery a {
	display: block;
}

.pc-footer__gallery img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.pc-footer__note {
	font-size: var(--cs-fs-meta);
}

.pc-footer__bottom {
	padding-block: var(--cs-space-4);
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--footer-text) 25%, transparent);
}

.pc-footer__bottom p {
	margin: 0;
}

.pc-footer__legal {
	gap: var(--cs-space-4);
}

/* WooCommerce demo-store notice: ink bar with white text */
.woocommerce-store-notice,
p.demo_store {
	background: var(--pc-ink);
	color: var(--wp--preset--color--base);
	font-size: var(--cs-fs-meta);
}

.woocommerce-store-notice a,
p.demo_store a {
	color: var(--wp--preset--color--base);
}

/* ---------- inner pages: title band, breadcrumbs ---------- */
.pc-page-title {
	padding-block: var(--cs-space-7);
	text-align: center;
}

.pc-page-title h1 {
	margin: 0 0 var(--cs-space-2);
	font-size: var(--wp--preset--font-size--xx-large);
}

.pc-page-title .woocommerce-breadcrumb,
.pc-crumbs .woocommerce-breadcrumb {
	margin: 0;
	color: var(--pc-muted);
	font-size: var(--cs-fs-meta);
}

.pc-page-title .woocommerce-breadcrumb a,
.pc-crumbs .woocommerce-breadcrumb a {
	color: var(--pc-muted);
}

.pc-crumbs {
	padding-block: var(--cs-space-4);
}

/* ---------- shop: sidebar left, 3 columns ---------- */
.pc-shop-columns {
	gap: var(--cs-space-6);
}

.pc-widget-title {
	margin: var(--cs-space-6) 0 var(--cs-space-3);
	padding-bottom: var(--cs-space-2);
	border-bottom: 1px solid var(--cs-line-strong);
	font-size: var(--wp--preset--font-size--medium);
	letter-spacing: var(--cs-track-caps);
	text-transform: uppercase;
}

.pc-shop-sidebar > .pc-widget-title:first-child {
	margin-top: 0;
}

.pc-cat-list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pc-cat-list li {
	display: flex;
	justify-content: space-between;
	padding: var(--cs-space-1) 0;
	font-size: var(--cs-fs-meta);
}

.pc-cat-list a {
	color: var(--pc-ink);
	text-decoration: none;
}

.pc-cat-list a:hover {
	color: var(--pc-coral-dark);
}

.pc-mini-product {
	gap: var(--cs-space-3);
	margin-bottom: var(--cs-space-3);
}

.pc-mini-product .wc-block-components-product-image img {
	background: var(--pc-grey);
}

.pc-mini-product h3 {
	margin: 0 0 var(--cs-space-1);
}

.pc-mini-product h3 a {
	color: var(--pc-ink);
	text-decoration: none;
}

.pc-promo-box {
	margin-top: var(--cs-space-6);
	padding: var(--cs-space-5);
	background: var(--wp--preset--color--surface);
	color: var(--pc-ink);
}

.pc-promo-box__kicker {
	margin: 0 0 var(--cs-space-1);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: var(--cs-track-caps);
	text-transform: uppercase;
}

.pc-promo-box__title {
	margin: 0 0 var(--cs-space-2);
	font-size: var(--wp--preset--font-size--large);
}

.pc-shop-toolbar {
	align-items: center;
	margin-bottom: var(--cs-space-3);
}

.pc-shop-title {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-large);
}

.pc-products .wc-block-components-product-image img {
	background: var(--pc-grey);
}

.pc-products .wp-block-post-title {
	margin-top: var(--cs-space-3);
	text-align: start;
	font-weight: 600;
}

.pc-products .wp-block-post-title a {
	color: var(--pc-ink);
	text-decoration: none;
}

.pc-products .wc-block-components-product-price {
	text-align: start;
	font-weight: 600;
}

.pc-products .pc-card-action,
.pc-products .pc-card-action.wp-block-button {
	justify-content: flex-start;
	align-items: flex-start;
	margin-inline: 0;
	text-align: start;
}

/* ---------- product page ---------- */
.pc-product-top {
	gap: var(--cs-space-7);
}

.pc-product-gallery img {
	background: var(--pc-grey);
}

.pc-product-summary .wp-block-post-title {
	margin: 0 0 var(--cs-space-2);
	font-size: var(--wp--preset--font-size--xx-large);
}

.pc-product-summary .wc-block-components-product-price {
	font-weight: 600;
}

.pc-product-stock {
	gap: var(--cs-space-4);
	font-size: var(--cs-fs-meta);
}

.pc-product-stock p {
	margin: 0;
}

.pc-product-excerpt {
	padding-block: var(--cs-space-4);
	border-block: 1px solid var(--cs-line);
}

.pc-product-excerpt ul {
	padding-inline-start: var(--cs-space-5);
}

.pc-design-box {
	margin-top: var(--cs-space-2);
}

.pc-design-box__title {
	margin: 0 0 var(--cs-space-1);
	font-size: var(--wp--preset--font-size--large);
	letter-spacing: var(--cs-track-caps);
	text-transform: uppercase;
}

.pc-design-box__text {
	margin: 0;
	font-size: var(--cs-fs-meta);
}

html body .pc-details.wp-block-woocommerce-product-details ul.tabs.wc-tabs {
	gap: var(--cs-space-5);
	border-bottom: 1px solid var(--cs-line);
}

html body .pc-details.wp-block-woocommerce-product-details ul.tabs.wc-tabs li {
	opacity: 1;
	text-transform: uppercase;
	letter-spacing: var(--cs-track-caps);
}

html body .pc-details.wp-block-woocommerce-product-details ul.tabs.wc-tabs li.active {
	border-bottom: 2px solid var(--pc-coral);
}

html body .pc-details.wp-block-woocommerce-product-details ul.tabs.wc-tabs li a {
	color: var(--pc-ink);
}

.pc-details .woocommerce-Tabs-panel ul {
	padding-inline-start: var(--cs-space-5);
}

/* ---------- AA fixes kept from 0.2.0 (struck-through price, plugin fine print) ---------- */
.wc-block-components-product-price.wc-block-components-product-price del,
.wc-block-components-product-price.wc-block-components-product-price del .amount,
.single-product main .wc-block-components-product-price.wc-block-components-product-price del {
	color: var(--pc-muted);
	opacity: 1;
}

.nbo-delivery-wrapper .nbo-delivery-date-selector:not(.active):not(:hover) span.nbo-delivery-price-item,
.nbo-delivery-wrapper .nbo-delivery-date-selector:not(.active):not(:hover) span.nbo-delivery-price-item span,
.nbo-delivery .nbo-delivery-date-selector span.nbo-delivery-price-item {
	color: var(--pc-muted) !important;
}

/* the option form must not widen the grid column of the cart form (390 px viewport scrolled sideways) */
.single-product .wp-block-woocommerce-add-to-cart-form form.cart {
	grid-template-columns: minmax(0, auto) minmax(0, 1fr);
}

.single-product .nbo-wrapper {
	justify-self: stretch;
	max-width: 100%;
	min-width: 0;
	width: 100%;
}

.single-product .nbo-wrapper .nbo-fields-wrapper {
	grid-template-columns: minmax(0, 1fr);
}

.single-product .nbo-wrapper .nbd-option-field {
	min-width: 0;
}

.single-product .nbo-wrapper select {
	box-sizing: border-box;
	max-width: 100%;
	width: 100%;
}

/* ---------- tablets and phones ---------- */
@media (max-width: 1024px) {
	html .pc-hero.cmsmart-slider .cmsmart-slide .cmsmart-slide__content {
		padding-top: var(--cs-space-6);
	}
}

@media (max-width: 781px) {
	.pc-topbar__text {
		display: none;
	}

	/* phones: title and buttons on grey, then the large case below, never under the text */
	.pc-hero .cmsmart-slide {
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
		background: var(--pc-grey);
	}

	.pc-hero .cmsmart-slide__bg {
		position: static;
		order: 2;
		height: 300px;
		object-position: 18% 50%;
	}

	html .pc-hero.cmsmart-slider .cmsmart-slide .cmsmart-slide__content {
		padding: var(--cs-space-6) var(--cs-space-5) var(--cs-space-5);
	}

	html .pc-hero.cmsmart-slider .cmsmart-slide__heading {
		font-size: clamp(2rem, 8vw, 2.75rem);
	}

	/* category banners become cards: text on the grey plate, the picture strip below it */
	.wp-block-cover.pc-banner {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		padding: 0;
		background: var(--pc-grey);
	}

	.pc-banner .wp-block-cover__image-background {
		position: static;
		order: 2;
		height: 190px;
	}

	.pc-banner .wp-block-cover__inner-container {
		max-width: none;
		padding: var(--cs-space-5);
	}

	.pc-framed {
		padding: var(--cs-space-3);
	}

	.pc-steps {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.pc-sale-card {
		min-height: 360px;
	}

	.pc-product-tabs .cmsmart-ptabs__list {
		justify-content: flex-start;
		gap: var(--cs-space-4);
	}

	.wp-block-cmsmart-product-tabs.pc-product-tabs {
		--cmsmart-ptabs-cols: 2;
	}

	.pc-mosaic {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;
	}

	.pc-banner--character-cases,
	.pc-banner--flower-fruit-cases,
	.pc-banner--pattern-cases,
	.pc-banner--seasonal-cases {
		grid-column: 1;
		grid-row: auto;
		min-height: 0;
	}

	.pc-banner--text-left .wp-block-cover__image-background {
		object-position: 85% 50%;
	}

	.pc-banner--text-right .wp-block-cover__image-background {
		object-position: 15% 50%;
	}

	.pc-posts {
		grid-template-columns: 1fr;
	}

	.pc-post {
		grid-template-columns: 34% 1fr;
		gap: var(--cs-space-4);
	}

	.pc-faq__list {
		columns: 1;
	}

	.pc-shop-columns {
		flex-direction: column-reverse;
	}
}

/* the quantity box the printing-options Quantity field locks: the designer's inline .nbo-disabled {opacity: .5 !important}
   faded the number below AA; keep the parent's dashed "locked" look at full contrast */
.single-product form.cart .quantity input.qty.nbo-disabled {
	opacity: 1 !important;
}

/* contact form: CF7's size="40" / cols="40" fields ran 5px past a 390 screen */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
