/* ==========================================================================
   Premium Scrub — homepage sections
   ========================================================================== */

/* Hero — full-bleed dark editorial plane */
.home .ps-hero,
.page-id-14 .ps-hero,
.ps-hero.wp-block-cover,
.ps-hero.wp-block-group {
	position: relative;
	min-height: min(90vh, 860px);
	padding: 0;
	margin: 0;
	background-color: #111111 !important;
	overflow: hidden;
}

.ps-hero .wp-block-cover__image-background,
.ps-hero__media {
	object-fit: cover;
	object-position: center right;
	width: 100%;
	height: 100%;
}

.ps-hero .wp-block-cover__inner-container,
.ps-hero__content {
	position: relative;
	z-index: 2;
	width: min(100%, var(--ps-max));
	margin-inline: auto;
	padding: 96px var(--ps-space-md) 120px;
}

.ps-hero__title {
	margin: 0 0 16px;
	max-width: 14ch;
	color: #fff;
	font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
	font-size: clamp(2.75rem, 6vw, 4.75rem);
	font-weight: 600 !important;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.ps-hero__sub {
	margin: 0 0 32px;
	max-width: 34rem;
	color: rgba(255, 255, 255, 0.88);
	font-size: 16px;
	line-height: 1.65;
	font-family: 'Inter', sans-serif;
}

.ps-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.ps-hero__actions .wp-block-button,
.ps-hero__actions .wp-block-button__link {
	width: fit-content !important;
}

.ps-hero .wp-block-cover__background {
	background: linear-gradient(90deg, rgba(17, 17, 17, 0.92) 0%, rgba(17, 17, 17, 0.55) 55%, rgba(17, 17, 17, 0.35) 100%) !important;
	opacity: 1 !important;
}

/* Staggered entrance */
.ps-hero__anim {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.ps-hero__title.ps-hero__anim {
	transition-delay: 0s;
}

.ps-hero__sub.ps-hero__anim {
	transition-delay: 0.1s;
}

.ps-hero__actions.ps-hero__anim {
	transition-delay: 0.2s;
}

.ps-hero__anim.is-ready {
	opacity: 1;
	transform: translateY(0);
}

.ps-hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 28px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 40px;
	height: 48px;
	margin-left: -20px;
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	animation: ps-scroll-bounce 1.6s ease-in-out infinite;
}

.ps-hero__scroll-line {
	display: block;
	width: 1px;
	height: 22px;
	background: rgba(255, 255, 255, 0.7);
}

.ps-hero__scroll::after {
	content: '';
	width: 8px;
	height: 8px;
	border-right: 1px solid rgba(255, 255, 255, 0.75);
	border-bottom: 1px solid rgba(255, 255, 255, 0.75);
	transform: rotate(45deg);
	margin-top: -4px;
}

@keyframes ps-scroll-bounce {
	0%,
	100% {
		transform: translateY(0);
		opacity: 0.55;
	}
	50% {
		transform: translateY(8px);
		opacity: 1;
	}
}

.ps-hero .wp-block-button.ps-btn--ghost-light .wp-block-button__link,
.ps-hero .ps-btn--ghost-light .wp-block-button__link {
	background: transparent !important;
	color: #ffffff !important;
	border: 1px solid #ffffff !important;
	padding: 14px 32px !important;
	font-size: 13px !important;
	letter-spacing: 0.08em !important;
	width: fit-content !important;
}

.ps-hero .wp-block-button.ps-btn--ghost-light .wp-block-button__link:hover,
.ps-hero .wp-block-button.ps-btn--ghost-light .wp-block-button__link:focus {
	background: #ffffff !important;
	color: #111111 !important;
	border-color: #ffffff !important;
	transform: scale(1.02);
}

.ps-hero .wp-block-button.ps-btn--light .wp-block-button__link,
.ps-hero .ps-btn--light .wp-block-button__link {
	background: #ffffff !important;
	color: #111111 !important;
	border-color: #ffffff !important;
	padding: 14px 32px !important;
	font-size: 13px !important;
	letter-spacing: 0.08em !important;
	width: fit-content !important;
}

.ps-hero .wp-block-button.ps-btn--light .wp-block-button__link:hover,
.ps-hero .wp-block-button.ps-btn--light .wp-block-button__link:focus {
	background: #f0f0f0 !important;
	color: #111111 !important;
	border-color: #f0f0f0 !important;
	transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
	.ps-hero__anim {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.ps-hero__scroll-line {
		animation: none;
	}
}

/* Product card title links — stay #111 vs Astra a:hover */
.ps-product-card__title,
.ps-product-card__title:link,
.ps-product-card__title:visited,
.ps-product-card__title:hover,
.ps-product-card__title:focus {
	color: #111111 !important;
	-webkit-text-fill-color: #111111 !important;
	text-decoration: none !important;
}

/* Featured scrubs — fashion cards, no Woo chrome
 * Same content rail as .ps-trust-badges__list (--ps-max / 1200px).
 * Do not use margin:0 shorthand here — it cancels margin-inline:auto.
 */
.ps-featured-scrubs,
.entry-content ul.ps-featured-scrubs,
.entry-content .ps-featured-scrubs,
.home .entry-content ul.ps-featured-scrubs,
.page-id-14 .entry-content ul.ps-featured-scrubs,
.ast-separate-container .entry-content ul.ps-featured-scrubs,
.ast-plain-container .entry-content ul.ps-featured-scrubs,
.ast-page-builder-template .entry-content ul.ps-featured-scrubs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
	align-items: stretch;
	margin-block: 0 !important;
	margin-inline: auto;
	padding: 0 !important;
	padding-inline: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	list-style: none !important;
	width: min(100%, var(--ps-max));
	max-width: var(--ps-max);
	min-width: 0;
	box-sizing: border-box;
}

/* Homepage Signature Scrub — 3-col compact grid (arrivals carousel excluded). */
.home .ps-featured-scrubs:not(.ps-featured-scrubs--arrivals):not(.ps-featured-scrubs--shop):not(.ps-featured-scrubs--related):not(.ps-featured-scrubs--scrubs-page),
.page-id-14 .ps-featured-scrubs:not(.ps-featured-scrubs--arrivals):not(.ps-featured-scrubs--shop):not(.ps-featured-scrubs--related):not(.ps-featured-scrubs--scrubs-page),
.home .entry-content ul.ps-featured-scrubs:not(.ps-featured-scrubs--arrivals):not(.ps-featured-scrubs--shop):not(.ps-featured-scrubs--related):not(.ps-featured-scrubs--scrubs-page),
.page-id-14 .entry-content ul.ps-featured-scrubs:not(.ps-featured-scrubs--arrivals):not(.ps-featured-scrubs--shop):not(.ps-featured-scrubs--related):not(.ps-featured-scrubs--scrubs-page) {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

/*
 * New Arrivals — transform carousel (ALL breakpoints).
 * No native overflow-x scroll: real pointer/touch on overflow tracks was
 * freezing input 30s+ even after scroll-listener throttling. Viewport clips;
 * the ul track translates via JS (translate3d). Specificity beats base 2-col grid.
 *
 * Rail was capped at --ps-max (1200px), leaving unused space in the section.
 * Lift Gutenberg contentSize and let the 4-up track fill the section width
 * up to --ps-wide (1440px). Column count stays 4.
 */
.home .ps-section:has(.ps-arrivals-carousel),
.page-id-14 .ps-section:has(.ps-arrivals-carousel),
.home .entry-content .ps-section.wp-block-group:has(.ps-arrivals-carousel),
.page-id-14 .entry-content .ps-section.wp-block-group:has(.ps-arrivals-carousel) {
	max-width: var(--ps-wide) !important;
	width: min(100%, var(--ps-wide));
	margin-inline: auto;
	box-sizing: border-box;
}

.ps-arrivals-carousel {
	position: relative;
	width: 100%;
	max-width: none;
	margin-inline: auto;
	min-width: 0;
	box-sizing: border-box;
}

.ps-arrivals-carousel__viewport {
	overflow: hidden;
	width: 100%;
	min-width: 0;
	/* Allow vertical page scroll; horizontal swipe claimed by JS after axis lock */
	touch-action: pan-y;
	cursor: grab;
	-webkit-user-select: none;
	user-select: none;
}

.ps-arrivals-carousel.is-dragging .ps-arrivals-carousel__viewport,
.ps-arrivals-carousel.is-dragging .ps-featured-scrubs--arrivals {
	/* Fully claim the gesture once horizontal drag is locked */
	touch-action: none;
	cursor: grabbing;
}

.ps-arrivals-carousel.is-dragging a {
	pointer-events: none;
}

.ps-featured-scrubs.ps-featured-scrubs--arrivals,
ul.ps-featured-scrubs.ps-featured-scrubs--arrivals,
.entry-content ul.ps-featured-scrubs.ps-featured-scrubs--arrivals,
.home .entry-content ul.ps-featured-scrubs.ps-featured-scrubs--arrivals,
.page-id-14 .entry-content ul.ps-featured-scrubs.ps-featured-scrubs--arrivals,
.ast-separate-container .entry-content ul.ps-featured-scrubs.ps-featured-scrubs--arrivals,
.ast-plain-container .entry-content ul.ps-featured-scrubs.ps-featured-scrubs--arrivals,
.ast-page-builder-template .entry-content ul.ps-featured-scrubs.ps-featured-scrubs--arrivals {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	grid-template-columns: none !important;
	gap: 24px;
	align-items: stretch;
	width: max-content;
	max-width: none;
	margin-block: 0 !important;
	margin-inline: 0 !important;
	min-width: 0;
	box-sizing: border-box;
	overflow: visible;
	padding-bottom: 8px !important;
	transform: translate3d(0, 0, 0);
	will-change: transform;
	/* No scroll-snap / no overflow scroll — avoids mobile input freezes */
	scroll-snap-type: none;
	touch-action: pan-y;
}

.ps-featured-scrubs.ps-featured-scrubs--arrivals > .ps-product-card,
ul.ps-featured-scrubs.ps-featured-scrubs--arrivals > .ps-product-card,
.entry-content ul.ps-featured-scrubs.ps-featured-scrubs--arrivals > .ps-product-card {
	/* Width from --ps-arrivals-vp (px) set on the carousel root by JS */
	flex: 0 0 calc((var(--ps-arrivals-vp, 1440px) - 72px) / 4);
	width: calc((var(--ps-arrivals-vp, 1440px) - 72px) / 4);
	max-width: calc((var(--ps-arrivals-vp, 1440px) - 72px) / 4);
	min-width: 0;
	overflow: hidden;
}

.ps-featured-scrubs.ps-featured-scrubs--arrivals .ps-product-card__media,
.ps-featured-scrubs.ps-featured-scrubs--arrivals .ps-product-card__media-link {
	overflow: hidden;
	max-width: 100%;
	aspect-ratio: 3 / 4;
}

.ps-featured-scrubs.ps-featured-scrubs--arrivals .ps-product-card__media img,
.ps-featured-scrubs.ps-featured-scrubs--arrivals .ps-product-card:hover .ps-product-card__media img,
.ps-featured-scrubs.ps-featured-scrubs--arrivals .ps-product-card:focus-within .ps-product-card__media img {
	transform: none;
	object-fit: cover;
	object-position: center 18%;
	width: 100%;
	height: 100%;
}

/* Keep secondary-image opacity swap on arrivals (do not kill opacity transitions). */
.ps-featured-scrubs.ps-featured-scrubs--arrivals .ps-product-card__img--secondary {
	transform: none;
}

.ps-featured-scrubs--arrivals .ps-reveal,
.ps-featured-scrubs--arrivals .ps-reveal.is-pending,
.ps-featured-scrubs--arrivals .ps-reveal.is-inview {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}

.ps-arrivals-carousel__btn {
	position: absolute;
	top: 42%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 1px solid #111111;
	border-radius: 0;
	background: #ffffff;
	color: #111111;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
	touch-action: manipulation;
}

.ps-arrivals-carousel__btn svg {
	display: block;
	width: 14px;
	height: 14px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.75;
	pointer-events: none;
}

.ps-arrivals-carousel__btn--prev {
	left: 0;
}

.ps-arrivals-carousel__btn--next {
	right: 0;
}

.ps-arrivals-carousel__btn:hover,
.ps-arrivals-carousel__btn:focus-visible {
	background: #111111;
	color: #ffffff;
	outline: none;
}

.ps-arrivals-carousel__btn.is-disabled,
.ps-arrivals-carousel__btn:disabled {
	opacity: 0.28;
	cursor: default;
	pointer-events: none;
}

.ps-arrivals-carousel:not(.is-scrollable) .ps-arrivals-carousel__btn {
	display: none;
}

@media (max-width: 921px) {
	.ps-featured-scrubs.ps-featured-scrubs--arrivals > .ps-product-card,
	ul.ps-featured-scrubs.ps-featured-scrubs--arrivals > .ps-product-card,
	.entry-content ul.ps-featured-scrubs.ps-featured-scrubs--arrivals > .ps-product-card {
		flex: 0 0 calc(var(--ps-arrivals-vp, 375px) * 0.78);
		width: calc(var(--ps-arrivals-vp, 375px) * 0.78);
		max-width: calc(var(--ps-arrivals-vp, 375px) * 0.78);
	}

	.ps-arrivals-carousel__btn {
		width: 32px;
		height: 32px;
	}
}

@media (max-width: 544px) {
	.ps-arrivals-carousel__btn--prev {
		left: 4px;
	}

	.ps-arrivals-carousel__btn--next {
		right: 4px;
	}
}

.ps-product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	border-radius: 0;
	max-width: 100%;
	min-width: 0;
	overflow: hidden; /* contain scaled media so transforms cannot widen the page */
}

/*
 * Source photos are 1:1 with baked-in badge/icon strips at the bottom.
 * Scale up + top-biased origin so the garment fills the frame and the
 * chrome is cropped out of the thumbnail.
 */
.ps-product-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f5f5f5;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	flex-shrink: 0;
}

.ps-product-card__media-link {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
}

.ps-product-card__media img,
.ps-product-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 28%;
	/* Zoom past 1:1 so the baked-in bottom badge/icon strip is fully cropped out. */
	transform: scale(1.52);
	transform-origin: center 18%;
	transition: transform 0.4s ease, opacity 0.35s ease;
}

.ps-product-card__img--secondary {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
}

.ps-product-card.has-secondary-image:hover .ps-product-card__img--primary,
.ps-product-card.has-secondary-image:focus-within .ps-product-card__img--primary {
	opacity: 0;
}

.ps-product-card.has-secondary-image:hover .ps-product-card__img--secondary,
.ps-product-card.has-secondary-image:focus-within .ps-product-card__img--secondary {
	opacity: 1;
}

.ps-product-card:hover .ps-product-card__media img,
.ps-product-card:focus-within .ps-product-card__media img {
	transform: scale(1.58);
}

@media (max-width: 768px) {
	.ps-product-card__media {
		isolation: isolate;
		z-index: 0;
	}

	.ps-product-card__media img,
	.ps-product-card__img {
		/* Tighter crop on narrow cards — baked-in “Premium Quality Fabric” chrome must never show. */
		transform: scale(1.62);
		transform-origin: center 16%;
		object-position: center 26%;
	}

	.ps-product-card:hover .ps-product-card__media img,
	.ps-product-card:focus-within .ps-product-card__media img {
		transform: scale(1.66);
	}
}

.ps-product-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	padding: 5px 9px;
	border-radius: 6px;
	background: #b42318;
	color: #fff;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1;
	text-transform: uppercase;
	pointer-events: none;
}

.ps-product-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 8px;
	padding: 16px 0 0;
	min-height: 0;
}

.ps-product-card__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	min-height: calc(1.35em * 2);
	margin: 0;
	color: #111111 !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	line-height: 1.35;
	letter-spacing: 0;
	text-decoration: none !important;
}

.ps-product-card__title:hover,
.ps-product-card__title:focus {
	color: #111111 !important;
	text-decoration: none !important;
}

.ps-product-card__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin: 0;
	color: #111111;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
}

.ps-product-card__price del,
.ps-product-card__price del .amount,
.ps-product-card__price del bdi {
	color: #8a8a8a;
	font-size: 13px;
	font-weight: 400;
	text-decoration: line-through;
}

.ps-product-card__price ins {
	background: none;
	text-decoration: none;
	padding: 0;
}

.ps-product-card__price ins,
.ps-product-card__price ins .amount,
.ps-product-card__price ins bdi,
.ps-product-card__price > .amount,
.ps-product-card__price > bdi {
	color: #111111;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}

.ps-product-card__atc,
.ps-product-card a.ps-product-card__atc,
.ps-product-card a.button.ps-product-card__atc {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	max-width: 100%;
	margin-top: auto;
	padding: 14px 24px !important;
	border: 1px solid #111111 !important;
	border-radius: 0 !important;
	background: #fff !important;
	color: #111111 !important;
	-webkit-text-fill-color: currentColor !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 13px !important;
	font-weight: 500;
	letter-spacing: 0.08em !important;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.ps-product-card__atc:hover,
.ps-product-card__atc:focus,
.ps-product-card a.ps-product-card__atc:hover,
.ps-product-card a.button.ps-product-card__atc:hover {
	background: #111111 !important;
	border-color: #111111 !important;
	color: #fff !important;
	-webkit-text-fill-color: currentColor !important;
}

.ps-product-card__atc.loading,
.ps-product-card__atc.added {
	opacity: 0.72;
	pointer-events: none;
}

/* Shop by color — cinematic edge-to-edge tiles */
.home .ps-section:has(.ps-color-tiles),
.page-id-14 .ps-section:has(.ps-color-tiles) {
	padding-left: 12px !important;
	padding-right: 12px !important;
}

.ps-color-tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.ps-color-tile,
.ps-color-tile:link,
.ps-color-tile:visited,
.ps-color-tile:hover,
.ps-color-tile:focus,
.ps-color-tile:focus-visible,
.ps-color-tile:active {
	position: relative;
	display: block;
	/*
	 * Dedicated color lifestyle shots are portrait (~1792×2400).
	 * Do not pair aspect-ratio with min-height (forces width collapse on mobile).
	 */
	aspect-ratio: 3 / 4;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 0;
	height: auto;
	overflow: hidden;
	background: var(--ps-soft);
	text-decoration: none !important;
	/* Beat Astra global a / a:hover link colors */
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	box-sizing: border-box;
	border-radius: 0;
}

.ps-color-tile__media {
	position: absolute;
	inset: 0;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	transform: scale(1);
	transition: transform 0.4s ease;
}

.ps-color-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		180deg,
		rgba(17, 17, 17, 0.05) 0%,
		rgba(17, 17, 17, 0.2) 40%,
		rgba(17, 17, 17, 0.82) 100%
	);
	transition: background 0.3s ease;
	pointer-events: none;
}

.ps-color-tile__content {
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 24px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}

.ps-color-tile__label,
.ps-color-tile:hover .ps-color-tile__label,
.ps-color-tile:focus .ps-color-tile__label {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.ps-color-tile__cta,
.ps-color-tile:hover .ps-color-tile__cta,
.ps-color-tile:focus .ps-color-tile__cta,
.ps-color-tile:focus-visible .ps-color-tile__cta {
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-bottom: 1px solid transparent;
	width: fit-content;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	transition: border-color 0.2s ease;
}

.ps-color-tile:hover .ps-color-tile__cta,
.ps-color-tile:focus .ps-color-tile__cta {
	border-bottom-color: #ffffff;
}

.ps-color-tile:hover .ps-color-tile__media,
.ps-color-tile:focus .ps-color-tile__media {
	transform: scale(1.03);
}

.ps-color-tile:hover::after,
.ps-color-tile:focus::after {
	background: linear-gradient(
		180deg,
		rgba(17, 17, 17, 0.1) 0%,
		rgba(17, 17, 17, 0.32) 40%,
		rgba(17, 17, 17, 0.88) 100%
	);
}

/* Benefits */
.ps-benefits {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ps-benefit {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	max-width: 16rem;
}

.ps-benefit__icon {
	display: block;
	width: 28px;
	height: 28px;
	color: var(--ps-black);
}

.ps-benefit__icon svg {
	display: block;
	width: 100%;
	height: 100%;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.5;
}

.ps-benefit__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.ps-benefit__text {
	margin: 0;
	color: var(--ps-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

/* Bulk / teams feature — same two-column shell as former accessories teaser */
.ps-bulk,
.ps-accessories {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 64px;
	align-items: center;
}

.ps-bulk__media,
.ps-accessories__panel {
	position: relative;
	display: block;
	min-height: 320px;
	overflow: hidden;
	background: #f5f5f5;
}

.ps-bulk__media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 320px;
	object-fit: cover;
	object-position: center;
}

.ps-bulk__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(245, 245, 245, 0.08) 0%, rgba(17, 17, 17, 0.12) 100%);
	pointer-events: none;
}

.ps-bulk__content .ps-section__lead {
	margin-bottom: 1.5rem;
}

.ps-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.65rem;
	border: 1px solid var(--ps-border);
	color: var(--ps-muted);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Trust / brand story helpers */
.ps-trust-points {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ps-trust-points li {
	padding-top: 1.25rem;
	border-top: 1px solid var(--ps-border);
}

.ps-trust-points strong {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 1.05rem;
}

.ps-trust-points p {
	margin: 0;
	color: var(--ps-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

.ps-final-cta {
	text-align: center;
}

.ps-final-cta .ps-section__title {
	margin-inline: auto;
	margin-bottom: 32px;
	max-width: 16ch;
}

.ps-final-cta .ps-section__lead {
	margin-inline: auto;
}

.ps-final-cta .wp-block-buttons {
	justify-content: center;
}

.ps-final-cta .wp-block-button,
.ps-final-cta .wp-block-button.ps-btn,
.ps-final-cta .wp-block-button.ps-btn--light {
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

.ps-final-cta .wp-block-button__link {
	padding: 14px 32px !important;
	font-size: 13px !important;
	letter-spacing: 0.08em !important;
	width: fit-content !important;
}

/* Newsletter */
.ps-newsletter {
	background: #f5f5f5 !important;
}

.ps-newsletter__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.ps-newsletter__title {
	margin-bottom: 12px;
}

.ps-newsletter__lead {
	margin-bottom: 32px;
	max-width: 28rem;
	margin-inline: auto;
}

.ps-newsletter__form {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: center;
	gap: 12px;
	width: 100%;
	max-width: 520px;
}

.ps-newsletter__input {
	flex: 1 1 240px; /* row layout: basis is WIDTH */
	min-width: 0;
	max-width: 100%;
	height: auto;
	min-height: 0;
	padding: 14px 16px;
	border: 1px solid #111111;
	border-radius: 0;
	background: #ffffff;
	color: #111111;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	line-height: 1.2;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
}

.ps-newsletter__input::placeholder {
	color: #8a8a8a;
}

.ps-newsletter__form .ps-btn,
.ps-newsletter__form button.ps-btn {
	flex: 0 0 auto;
	padding: 14px 32px !important;
	font-size: 13px !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	width: fit-content !important;
}

.ps-newsletter__status {
	flex: 1 1 100%;
	margin: 4px 0 0;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	line-height: 1.45;
	color: #111111;
}

.ps-newsletter__status.is-error {
	color: #8a1f1f;
}

.ps-newsletter__form.is-done {
	display: flex;
	justify-content: center;
}

.ps-newsletter__done {
	margin: 0;
	padding: 16px 20px;
	width: 100%;
	max-width: 520px;
	background: #ffffff;
	border: 1px solid #111111;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
	color: #111111;
	text-align: center;
	box-sizing: border-box;
}

/* Trust badges — post-hero strip */
.ps-trust-badges {
	padding: 32px var(--ps-space-md);
	border-bottom: 1px solid var(--ps-border);
	background: #fff;
}

.ps-trust-badges__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px 48px;
	align-items: start;
	width: min(100%, var(--ps-max));
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.ps-trust-badges__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
}

.ps-trust-badges__icon {
	display: block;
	width: 28px;
	height: 28px;
	color: #111111 !important;
}

.ps-trust-badges__icon svg {
	display: block;
	width: 100%;
	height: 100%;
	stroke: currentColor;
}

.ps-trust-badges__label {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: #111111 !important;
	-webkit-text-fill-color: #111111 !important;
}

.ps-trust-badges__item,
.ps-trust-badges__item * {
	color: #111111 !important;
	-webkit-text-fill-color: #111111 !important;
}

.ps-trust-badges__icon svg {
	stroke: #111111 !important;
}

/* Brand story — copy + photo/quote panel (image column leads) */
.ps-brand-story__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.28fr);
	gap: 48px;
	align-items: center;
}

.ps-brand-story__content .ps-section__lead {
	margin-bottom: 32px;
	color: rgba(255, 255, 255, 0.72);
}

.ps-brand-story__content a.ps-btn,
.ps-brand-story__content a.ps-btn--light {
	background: #ffffff !important;
	color: #111111 !important;
	-webkit-text-fill-color: #111111 !important;
	border-color: #ffffff !important;
}

.ps-brand-story__aside {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 360px;
	padding: 40px;
	overflow: hidden;
	background:
		radial-gradient(ellipse at 20% 20%, rgba(255, 255, 255, 0.08), transparent 55%),
		linear-gradient(160deg, #1c1c1c 0%, #111111 55%, #0a0a0a 100%);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.ps-brand-story__aside::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 32px 32px;
	pointer-events: none;
}

.ps-brand-story__aside--photo {
	padding: 0;
	min-height: 0;
	aspect-ratio: 1448 / 1086;
	background: #111111;
	overflow: hidden;
}

.ps-brand-story__aside--photo::before {
	display: none;
}

.ps-brand-story__img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: cover;
	object-position: center;
}

.ps-brand-story__quote {
	position: relative;
	z-index: 1;
	margin: 0;
	max-width: 12ch;
	color: #ffffff;
	font-family: 'Playfair Display', Georgia, serif !important;
	font-size: clamp(1.75rem, 3vw, 2.35rem);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.ps-brand-story__mark {
	position: relative;
	z-index: 1;
	align-self: flex-end;
	color: rgba(255, 255, 255, 0.55);
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: 0.18em;
}

/* FAQ accordion */
.ps-faq-section .ps-section__title {
	margin-bottom: 32px;
}

.ps-faq {
	border-top: 1px solid var(--ps-border);
}

.ps-faq__item {
	border-bottom: 1px solid var(--ps-border);
}

.ps-faq__question {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 24px;
	width: 100%;
	margin: 0;
	padding: 20px 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	cursor: pointer;
	font-family: 'Inter', sans-serif !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: #111111 !important;
	line-height: 1.4;
	text-align: left !important;
}

.ps-faq__question > span:first-child {
	flex: 1 1 auto;
	min-width: 0;
	text-align: left !important;
}

.ps-faq__question:hover,
.ps-faq__question:focus {
	background: transparent !important;
	color: #111111 !important;
	transform: none !important;
}

.ps-faq__icon {
	display: inline-flex;
	flex-shrink: 0;
	margin-left: auto;
	width: 20px;
	height: 20px;
	color: #111111;
	transition: transform 0.3s ease;
}

.ps-faq__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.ps-faq__item.is-open .ps-faq__icon {
	transform: rotate(180deg);
}

.ps-faq__answer {
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transition: max-height 0.3s ease, opacity 0.3s ease;
}

.ps-faq__item.is-open .ps-faq__answer {
	opacity: 1;
}

.ps-faq__answer p {
	margin: 0;
	padding: 0 0 20px;
	max-width: 40rem;
	color: var(--ps-muted);
	font-size: 15px;
	line-height: 1.65;
}

/* Mobile */
@media (max-width: 921px) {
	.ps-featured-scrubs,
	.ps-color-tiles,
	.ps-bulk,
	.ps-accessories,
	.ps-trust-points,
	.ps-brand-story__grid {
		grid-template-columns: 1fr;
	}

	/* Beat the homepage 3-col desktop rule (same :not() chain, in this query). */
	.home .ps-featured-scrubs:not(.ps-featured-scrubs--arrivals):not(.ps-featured-scrubs--shop):not(.ps-featured-scrubs--related):not(.ps-featured-scrubs--scrubs-page),
	.page-id-14 .ps-featured-scrubs:not(.ps-featured-scrubs--arrivals):not(.ps-featured-scrubs--shop):not(.ps-featured-scrubs--related):not(.ps-featured-scrubs--scrubs-page),
	.home .entry-content ul.ps-featured-scrubs:not(.ps-featured-scrubs--arrivals):not(.ps-featured-scrubs--shop):not(.ps-featured-scrubs--related):not(.ps-featured-scrubs--scrubs-page),
	.page-id-14 .entry-content ul.ps-featured-scrubs:not(.ps-featured-scrubs--arrivals):not(.ps-featured-scrubs--shop):not(.ps-featured-scrubs--related):not(.ps-featured-scrubs--scrubs-page) {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.home .ps-featured-scrubs:not(.ps-featured-scrubs--arrivals) > .ps-product-card,
	.page-id-14 .ps-featured-scrubs:not(.ps-featured-scrubs--arrivals) > .ps-product-card {
		width: 100%;
		max-width: 100%;
	}

	.ps-color-tile {
		min-height: 0;
	}

	.ps-bulk,
	.ps-accessories {
		gap: 40px;
	}

	.ps-bulk__media,
	.ps-accessories__panel {
		min-height: 240px;
		order: -1;
	}

	.ps-bulk__media img {
		min-height: 240px;
	}

	.ps-trust-badges__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 32px;
	}

	.ps-benefits {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ps-hero,
	.home .ps-hero,
	.page-id-14 .ps-hero {
		min-height: min(78vh, 680px);
	}

	/*
	 * Cover `is-position-center-left` shrink-wraps the inner container, so
	 * padding is no longer viewport-symmetric and 14ch titles clip (overflow:hidden).
	 */
	.home .ps-hero.wp-block-cover.has-custom-content-position,
	.page-id-14 .ps-hero.wp-block-cover.has-custom-content-position,
	.ps-hero.wp-block-cover.is-position-center-left {
		align-items: center !important;
		justify-content: stretch !important;
	}

	.home .ps-hero .wp-block-cover__inner-container,
	.page-id-14 .ps-hero .wp-block-cover__inner-container,
	.ps-hero .wp-block-cover__inner-container,
	.ps-hero__content {
		width: 100% !important;
		max-width: none !important;
		margin-inline: 0 !important;
		padding: 72px 20px 96px !important;
		box-sizing: border-box;
	}

	.home .ps-hero .wp-block-cover__inner-container > .wp-block-group,
	.page-id-14 .ps-hero .wp-block-cover__inner-container > .wp-block-group {
		width: 100% !important;
		max-width: none !important;
		margin-inline: 0 !important;
		padding-inline: 0 !important;
	}

	.home .ps-hero__title,
	.page-id-14 .ps-hero__title,
	.ps-hero__title {
		max-width: none;
		width: 100%;
		font-size: clamp(2.15rem, 8.4vw, 2.75rem);
		overflow-wrap: break-word;
		word-break: normal;
		padding-right: 0.12em;
		box-sizing: border-box;
	}

	.home .ps-hero__sub,
	.page-id-14 .ps-hero__sub,
	.ps-hero__sub {
		max-width: none;
		width: 100%;
	}

	.ps-brand-story__grid {
		gap: 40px;
	}

	.ps-brand-story__aside:not(.ps-brand-story__aside--photo) {
		min-height: 280px;
		order: -1;
	}

	.ps-brand-story__aside--photo {
		order: -1;
	}
}

@media (max-width: 544px) {
	.ps-benefits {
		grid-template-columns: 1fr;
	}

	.ps-trust-badges__list {
		grid-template-columns: 1fr 1fr;
		gap: 24px 16px;
	}

	.ps-featured-scrubs {
		gap: 32px;
		width: min(100%, var(--ps-max));
		max-width: var(--ps-max);
		margin-inline: auto !important;
		min-width: 0;
		box-sizing: border-box;
	}

	.ps-newsletter__form {
		flex-direction: column;
		align-items: stretch;
	}

	/*
	 * Column flex: flex-basis becomes HEIGHT. The desktop `1 1 240px` was
	 * stretching the email field to ~240px tall on mobile.
	 */
	.ps-newsletter__input {
		flex: 0 0 auto;
		width: 100%;
		max-width: 100%;
		height: 48px;
		min-height: 48px;
		max-height: 48px;
		padding: 12px 14px;
		line-height: 1.2;
		box-sizing: border-box;
	}

	.ps-newsletter__form .ps-btn,
	.ps-newsletter__form button.ps-btn {
		width: 100% !important;
	}

	/* Signature Scrub / featured grid — even horizontal inset, full-bleed cards */
	.home .ps-section:has(.ps-featured-scrubs:not(.ps-featured-scrubs--arrivals)),
	.page-id-14 .ps-section:has(.ps-featured-scrubs:not(.ps-featured-scrubs--arrivals)) {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}

	.home .ps-section:has(.ps-featured-scrubs:not(.ps-featured-scrubs--arrivals)) .ps-section__title,
	.page-id-14 .ps-section:has(.ps-featured-scrubs:not(.ps-featured-scrubs--arrivals)) .ps-section__title,
	.home .ps-section:has(.ps-featured-scrubs:not(.ps-featured-scrubs--arrivals)) .ps-section__lead,
	.page-id-14 .ps-section:has(.ps-featured-scrubs:not(.ps-featured-scrubs--arrivals)) .ps-section__lead {
		text-align: left;
		margin-left: 0;
		margin-right: 0;
		max-width: none;
		width: 100%;
	}

	.ps-featured-scrubs:not(.ps-featured-scrubs--arrivals) {
		width: min(100%, var(--ps-max));
		max-width: var(--ps-max);
		margin-inline: auto !important;
	}

	.ps-featured-scrubs:not(.ps-featured-scrubs--arrivals) .ps-product-card {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
	}

	.ps-hero__actions {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-start;
	}

	.ps-hero__actions .ps-btn,
	.ps-hero__actions .wp-block-button__link {
		width: fit-content !important;
	}

	.ps-hero .wp-block-cover__inner-container {
		padding-top: 72px;
		padding-bottom: 96px;
	}
}
