/*
Theme Name: Skycrest Uniforms
Theme URI: https://www.skycrestchristianschool.org/
Author: Skycrest Christian School
Description: A polished, product-first WooCommerce theme for the Skycrest uniform store.
Version: 1.3.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: skycrest-uniforms
*/

:root {
	--sc-navy-950: #0a1b35;
	--sc-navy-900: #10294f;
	--sc-navy-800: #173b6c;
	--sc-blue-500: #6f8dac;
	--sc-blue-100: #eaf0f6;
	--sc-gold-500: #b89957;
	--sc-gold-700: #685022;
	--sc-gold-100: #f5efe3;
	--sc-ink: #18202b;
	--sc-muted: #667085;
	--sc-line: #dfe5ec;
	--sc-surface: #f6f8fb;
	--sc-white: #ffffff;
	--sc-radius-sm: 8px;
	--sc-radius: 16px;
	--sc-radius-lg: 28px;
	--sc-shadow: 0 18px 45px rgba(16, 41, 79, 0.09);
	--sc-container: 1240px;
	--sc-sans: "Figtree", "Figtree Variable", -apple-system, system-ui, "Segoe UI", sans-serif;
	--sc-serif: "Fraunces", "Fraunces Variable", "Iowan Old Style", Georgia, serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--sc-white);
	color: var(--sc-ink);
	font-family: var(--sc-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--sc-navy-800);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--sc-gold-700);
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
}

button,
.button,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wc-block-components-button {
	min-height: 48px;
	padding: 0.75rem 1.25rem !important;
	border: 1px solid var(--sc-navy-900) !important;
	border-radius: var(--sc-radius-sm) !important;
	background: var(--sc-navy-900) !important;
	color: var(--sc-white) !important;
	font-weight: 700 !important;
	letter-spacing: 0.02em;
	transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

button:hover,
.button:hover,
.wp-element-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.wc-block-components-button:hover {
	border-color: var(--sc-navy-800) !important;
	background: var(--sc-navy-800) !important;
	color: var(--sc-white) !important;
	transform: translateY(-1px);
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea,
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
	min-height: 48px;
	border: 1px solid #cbd3dd !important;
	border-radius: var(--sc-radius-sm) !important;
	background: var(--sc-white) !important;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--sc-blue-500) !important;
	box-shadow: 0 0 0 3px rgba(111, 141, 172, 0.18) !important;
	outline: none;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 0.75rem;
	left: 0.75rem;
	z-index: 9999;
	width: auto;
	height: auto;
	clip: auto;
	padding: 0.75rem 1rem;
	background: var(--sc-white);
	color: var(--sc-navy-900);
}

.sc-container {
	width: min(calc(100% - 40px), var(--sc-container));
	margin-inline: auto;
}

.site-notice {
	background: var(--sc-navy-950);
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-align: center;
	text-transform: uppercase;
}

.site-notice .sc-container {
	padding-block: 0.55rem;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid rgba(16, 41, 79, 0.1);
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(16px);
}

.admin-bar .site-header {
	top: 32px;
}

.site-header-compact {
	display: none;
}

.site-header__inner {
	display: grid;
	grid-template-columns: minmax(230px, 1fr) auto;
	align-items: center;
	gap: 0.9rem 2rem;
	padding-top: 0.9rem;
}

.site-branding,
.custom-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	min-width: 0;
	text-decoration: none;
}

.custom-logo {
	width: auto;
	max-width: 310px;
	max-height: 70px;
}

.site-branding__monogram {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 2px solid var(--sc-gold-500);
	border-radius: 50%;
	color: var(--sc-navy-900);
	font-family: var(--sc-serif);
	font-size: 1.05rem;
	font-weight: 700;
}

.site-branding__text {
	display: flex;
	flex-direction: column;
	color: var(--sc-navy-900);
	line-height: 1.05;
}

.site-branding__text strong {
	font-family: var(--sc-serif);
	font-size: clamp(1.15rem, 2vw, 1.65rem);
	font-weight: 600;
	letter-spacing: 0;
}

.site-branding__text span {
	margin-top: 0.3rem;
	color: var(--sc-muted);
	font-family: var(--sc-sans);
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.01em;
}

.primary-nav .menu,
.primary-nav ul {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(0.15rem, 1vw, 0.75rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav {
	grid-column: 1 / -1;
	grid-row: 2;
	padding-block: 0.75rem;
	border-top: 1px solid var(--sc-line);
}

@media (min-width: 1051px) {
	.site-header--full {
		position: relative;
		top: auto;
	}

	.site-header-compact {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 100;
		display: block;
		visibility: hidden;
		border-bottom: 1px solid rgba(16, 41, 79, 0.1);
		background: rgba(255, 255, 255, 0.97);
		box-shadow: 0 8px 24px rgba(16, 41, 79, 0.08);
		opacity: 0;
		pointer-events: none;
		transform: translateY(-105%);
		backdrop-filter: blur(16px);
	}

	.site-header-compact.is-ready {
		transition: transform 240ms ease-out, opacity 180ms ease-out, visibility 0s linear 240ms;
	}

	.site-header-compact.is-visible {
		visibility: visible;
		opacity: 1;
		pointer-events: auto;
		transform: translateY(0);
		transition-delay: 0s;
	}

	.admin-bar .site-header-compact {
		top: 32px;
	}

	.site-header-compact__inner {
		display: grid;
		grid-template-columns: minmax(190px, auto) 1fr auto;
		align-items: center;
		gap: 1.25rem;
		min-height: 68px;
	}

	.site-header-compact .primary-nav {
		grid-column: 2;
		grid-row: 1;
		padding-block: 0.45rem;
		border-top: 0;
	}

	.site-header-compact .header-actions {
		grid-column: 3;
		grid-row: 1;
	}

	.site-header-compact .custom-logo {
		max-height: 46px;
	}

	.site-header-compact .site-branding__monogram {
		width: 42px;
		height: 42px;
		font-size: 0.86rem;
	}

	.site-header-compact .site-branding__text strong {
		font-size: 1.15rem;
	}

	.site-header-compact .site-branding__text span {
		display: none;
	}
}

.primary-nav a {
	position: relative;
	display: inline-block;
	padding: 0.5rem 0.75rem;
	color: var(--sc-ink);
	font-family: var(--sc-sans);
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: normal;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Underline that grows from the left on hover (matches the preschool site) */
.primary-nav a::after {
	content: "";
	position: absolute;
	left: 0.75rem;
	right: 0.75rem;
	bottom: 0.25rem;
	height: 1px;
	background: var(--sc-gold-500);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav .current-menu-item > a {
	color: var(--sc-gold-700);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav .current-menu-item > a::after {
	transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
	.primary-nav a,
	.primary-nav a::after {
		transition: none;
	}
}

.header-actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 0.65rem;
}

.header-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	border: 1px solid var(--sc-line);
	border-radius: 50%;
	color: var(--sc-navy-900);
	text-decoration: none;
}

.header-action:hover {
	border-color: var(--sc-blue-500);
	background: var(--sc-blue-100);
	color: var(--sc-navy-900);
}

.header-action svg,
.menu-toggle svg {
	width: 20px;
	height: 20px;
}

.cart-link {
	position: relative;
}

.cart-count {
	position: absolute;
	top: -4px;
	right: -3px;
	display: grid;
	place-items: center;
	min-width: 19px;
	height: 19px;
	padding-inline: 4px;
	border: 2px solid var(--sc-white);
	border-radius: 99px;
	background: var(--sc-gold-500);
	color: var(--sc-white);
	font-size: 0.65rem;
	font-weight: 800;
}

.menu-toggle {
	display: none;
	min-width: 44px;
	min-height: 44px;
	padding: 0 !important;
}

.site-main {
	min-height: 58vh;
}

.page-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 76% 26%, rgba(184, 153, 87, 0.2), transparent 19rem),
		linear-gradient(135deg, var(--sc-navy-950), var(--sc-navy-800));
	color: var(--sc-white);
}

.page-hero::after {
	content: "SCS";
	position: absolute;
	right: -0.05em;
	bottom: -0.38em;
	color: rgba(255, 255, 255, 0.045);
	font-family: var(--sc-serif);
	font-size: clamp(12rem, 32vw, 32rem);
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
}

.page-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
	gap: clamp(3rem, 8vw, 8rem);
	align-items: center;
	min-height: 520px;
	padding-block: clamp(5rem, 10vw, 8.5rem);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1rem;
	color: var(--sc-gold-700);
	font-size: 0.75rem;
	font-family: var(--sc-sans);
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.eyebrow::before {
	content: "";
	width: 36px;
	height: 1px;
	background: var(--sc-gold-500);
}

.page-hero h1 {
	max-width: 760px;
	margin: 0;
	font-family: var(--sc-serif);
	font-size: clamp(3.3rem, 7.5vw, 6.7rem);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 0.96;
}

.page-hero__copy {
	max-width: 650px;
	margin: 1.5rem 0 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.page-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-top: 2.25rem;
}

.page-hero .button--primary {
	border-color: var(--sc-gold-500) !important;
	background: var(--sc-gold-500) !important;
	color: var(--sc-navy-950) !important;
	text-decoration: none;
}

.page-hero .button--secondary {
	border-color: rgba(255, 255, 255, 0.35) !important;
	background: transparent !important;
	color: var(--sc-white) !important;
	text-decoration: none;
}

.page-hero__card {
	padding: clamp(1.75rem, 4vw, 2.5rem);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--sc-radius-lg);
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
	backdrop-filter: blur(12px);
}

.page-hero__card h2 {
	margin: 0 0 0.5rem;
	font-family: var(--sc-serif);
	font-size: 1.65rem;
	font-weight: 600;
}

.page-hero__card p {
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
}

.page-hero__steps {
	display: grid;
	gap: 1rem;
	margin: 1.8rem 0 0;
	padding: 0;
	list-style: none;
}

.page-hero__steps li {
	display: grid;
	grid-template-columns: 34px 1fr;
	gap: 0.8rem;
	align-items: center;
	font-weight: 700;
}

.page-hero__steps span {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	color: var(--sc-gold-500);
	font-size: 0.8rem;
}

.store-benefits {
	border-bottom: 1px solid var(--sc-line);
	background: var(--sc-white);
}

.store-benefits__inner {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
}

.store-benefit {
	padding: 1.35rem clamp(1rem, 3vw, 2.5rem);
	border-right: 1px solid var(--sc-line);
	text-align: center;
}

.store-benefit:last-child {
	border-right: 0;
}

.store-benefit strong {
	display: block;
	color: var(--sc-navy-900);
	font-size: 0.82rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.store-benefit span {
	color: var(--sc-muted);
	font-size: 0.88rem;
}

.shop-section {
	padding-block: clamp(4.5rem, 8vw, 7rem);
}

.shop-section--tint {
	background: var(--sc-surface);
}

.section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: 2rem;
}

.section-heading h2,
.entry-title,
.woocommerce-products-header__title,
.woocommerce .woocommerce-billing-fields h3,
.woocommerce .woocommerce-additional-fields h3,
.woocommerce-checkout h2,
.cart_totals h2 {
	margin: 0;
	color: var(--sc-navy-900);
	font-family: var(--sc-serif);
	font-size: clamp(2.1rem, 4vw, 3.4rem);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.08;
}

.section-heading p {
	max-width: 560px;
	margin: 0.75rem 0 0;
	color: var(--sc-muted);
}

.section-heading > a {
	flex: 0 0 auto;
	font-size: 0.8rem;
	font-family: var(--sc-sans);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
}

.category-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
}

.category-card {
	position: relative;
	display: flex;
	min-height: 300px;
	overflow: hidden;
	align-items: flex-end;
	padding: 1.4rem;
	border-radius: var(--sc-radius);
	background: linear-gradient(145deg, var(--sc-blue-100), #d5e0eb);
	color: var(--sc-white);
	text-decoration: none;
}

.category-card::after {
	content: "";
	position: absolute;
	inset: 35% 0 0;
	background: linear-gradient(transparent, rgba(10, 27, 53, 0.9));
}

.category-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms ease;
}

.category-card:hover img {
	transform: scale(1.035);
}

.category-card__fallback {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: rgba(16, 41, 79, 0.12);
	font-family: var(--sc-serif);
	font-size: 7rem;
	font-weight: 700;
}

.category-card__content {
	position: relative;
	z-index: 1;
}

.category-card__content strong {
	display: block;
	font-family: var(--sc-serif);
	font-size: 1.5rem;
	font-weight: 600;
}

.category-card__content span {
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.site-content {
	padding-block: clamp(3.5rem, 7vw, 6rem);
}

.site-content > .woocommerce,
.site-content > article,
.site-content > .page-header,
.woocommerce .site-main,
.woocommerce-page .site-main {
	width: min(calc(100% - 40px), var(--sc-container));
	margin-inline: auto;
}

.breadcrumbs,
.woocommerce .woocommerce-breadcrumb {
	margin: 0 0 2rem;
	color: var(--sc-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.woocommerce .woocommerce-breadcrumb a {
	color: var(--sc-muted);
	text-decoration: none;
}

.woocommerce .woocommerce-breadcrumb a:hover {
	color: var(--sc-navy-900);
}

.sc-breadcrumb-separator {
	margin-inline: 0.65rem;
	color: #a9b1bc;
}

.woocommerce-products-header {
	padding: 0 0 2.5rem;
	text-align: center;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
	margin-bottom: 2rem;
	color: var(--sc-muted);
}

.woocommerce .woocommerce-ordering select {
	padding-inline: 0.85rem 2.5rem;
}

.woocommerce ul.products,
.wc-block-product-template {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 3.25rem 1.25rem;
	margin: 0 !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none !important;
}

.woocommerce ul.products li.product,
.wc-block-product {
	position: relative;
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	text-align: center;
}

.woocommerce ul.products li.product a img,
.wc-block-components-product-image img {
	width: 100%;
	margin: 0 0 1.15rem !important;
	border-radius: var(--sc-radius);
	background: var(--sc-white);
	aspect-ratio: 1 / 1.08;
	object-fit: contain;
	transition: transform 220ms ease, box-shadow 220ms ease;
}

.woocommerce ul.products li.product:hover a img,
.wc-block-product:hover .wc-block-components-product-image img {
	box-shadow: var(--sc-shadow);
	transform: translateY(-4px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-components-product-name {
	padding: 0 !important;
	color: var(--sc-ink);
	font-family: var(--sc-sans);
	font-size: 0.95rem !important;
	font-weight: 500 !important;
	line-height: 1.4;
}

.woocommerce ul.products li.product .price,
.wc-block-components-product-price {
	margin-top: 0.45rem;
	color: var(--sc-navy-900) !important;
	font-size: 1rem !important;
	font-family: var(--sc-sans);
	font-weight: 600;
}

/* WooCommerce uses an <ins> element for sale prices; keep it emphasized without a browser-default underline. */
.woocommerce .price ins,
.wc-block-components-product-price ins {
	text-decoration: none;
}

.woocommerce ul.products li.product .button {
	display: none;
}

.sc-stock-badge {
	position: absolute;
	top: 0.8rem;
	left: 0.8rem;
	z-index: 3;
	padding: 0.4rem 0.7rem;
	border-radius: 99px;
	background: var(--sc-gold-500);
	box-shadow: 0 4px 12px rgba(16, 41, 79, 0.14);
	color: var(--sc-navy-900);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
}

.woocommerce span.onsale {
	top: 0.8rem;
	right: 0.8rem;
	left: auto;
	min-width: auto;
	min-height: auto;
	padding: 0.35rem 0.65rem;
	border-radius: 99px;
	background: var(--sc-gold-500);
	font-size: 0.7rem;
	line-height: 1.3;
	text-transform: uppercase;
}

.woocommerce nav.woocommerce-pagination ul {
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
	border: 0;
	margin: 0.2rem;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--sc-line);
	border-radius: 50%;
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover {
	background: var(--sc-navy-900);
	color: var(--sc-white);
}

.woocommerce div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(350px, 0.8fr);
	gap: clamp(3rem, 7vw, 7rem);
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
	float: none;
	width: auto;
}

.woocommerce div.product div.images img {
	border-radius: var(--sc-radius);
	background: var(--sc-surface);
}

.woocommerce div.product .product_title {
	color: var(--sc-navy-900);
	font-family: var(--sc-serif);
	font-size: clamp(2.25rem, 4vw, 3.7rem);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.05;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--sc-navy-800);
	font-size: 1.4rem;
	font-weight: 800;
}

.woocommerce div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-block: 2rem;
}

.woocommerce div.product form.cart .variations {
	width: 100%;
}

.woocommerce .quantity .qty {
	width: 5rem;
	padding-inline: 0.5rem;
}

.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related {
	grid-column: 1 / -1;
}

/* Product-first home page. */
.store-intro {
	border-bottom: 1px solid var(--sc-line);
	background: var(--sc-white);
}

.store-intro__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 3rem;
	padding-block: clamp(1.35rem, 2.5vw, 2rem);
}

.store-intro .eyebrow {
	margin-bottom: 0.3rem;
}

.store-intro h1 {
	margin: 0;
	color: var(--sc-navy-900);
	font-family: var(--sc-serif);
	font-size: clamp(1.9rem, 3.3vw, 3rem);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1;
}

.store-intro__inner > p {
	max-width: 420px;
	margin: 0 0 0.25rem;
	color: var(--sc-muted);
}

.home-products {
	padding-block: clamp(2rem, 4vw, 3.5rem);
}

.home-products__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: 2rem;
}

.home-products__heading h2 {
	margin: 0;
	color: var(--sc-navy-900);
	font-size: 1.4rem;
	letter-spacing: 0.01em;
}

.home-products__heading a {
	font-size: 0.9rem;
	font-family: var(--sc-sans);
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;
}

.store-assurance {
	border-top: 1px solid var(--sc-line);
	background: var(--sc-surface);
}

.store-assurance__inner {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.store-assurance__inner > div {
	padding: 1.6rem 2rem;
	border-right: 1px solid var(--sc-line);
	text-align: center;
}

.store-assurance__inner > div:last-child {
	border-right: 0;
}

.store-assurance strong,
.store-assurance span {
	display: block;
}

.store-assurance strong {
	color: var(--sc-navy-900);
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.store-assurance span {
	margin-top: 0.2rem;
	color: var(--sc-muted);
	font-size: 0.85rem;
}

/* Oakbrook-inspired catalog cards. */
.woocommerce ul.products li.product a img,
.wc-block-components-product-image img {
	border-radius: 0;
	box-shadow: none;
}

.woocommerce ul.products li.product:hover a img,
.wc-block-product:hover .wc-block-components-product-image img {
	box-shadow: none;
	transform: translateY(-3px);
}

.sc-card-swatches {
	display: flex;
	justify-content: center;
	gap: 0.42rem;
	margin: 0.8rem 0 0.35rem;
}

.sc-card-swatch {
	position: relative;
	min-width: 24px !important;
	width: 24px;
	min-height: 24px !important;
	height: 24px;
	padding: 0 !important;
	border: 2px solid var(--sc-white) !important;
	border-radius: 50% !important;
	background: var(--swatch-color) !important;
	box-shadow: 0 0 0 1px #c8ced7;
}

.sc-card-swatch::after,
.sc-color-choice::after {
	content: "✓";
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--sc-white);
	font-size: 0.82rem;
	font-weight: 900;
	line-height: 1;
	opacity: 0;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.48);
	transition: opacity 140ms ease;
}

.sc-card-swatch.is-selected,
.sc-card-swatch:hover,
.sc-card-swatch:focus-visible {
	box-shadow: 0 0 0 2px var(--sc-navy-900);
}

.sc-card-swatch:hover {
	transform: scale(1.08);
}

.sc-card-swatch:hover::after,
.sc-card-swatch:focus-visible::after,
.sc-card-swatch.is-selected::after {
	opacity: 1;
}

button.sc-card-swatch:hover,
button.sc-card-swatch:focus-visible,
button.sc-card-swatch.is-selected,
button.sc-color-choice:hover,
button.sc-color-choice:focus-visible,
button.sc-color-choice.is-selected {
	border-color: var(--sc-white) !important;
	background: var(--swatch-color) !important;
}

/* Product choice controls. */
.single-product .site-content {
	padding-block: clamp(2rem, 4vw, 3.75rem);
}

.woocommerce div.product {
	grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.85fr);
	gap: clamp(2.5rem, 6vw, 6rem);
}

.woocommerce div.product div.summary {
	align-self: start;
	padding-top: 0.5rem;
}

.woocommerce div.product div.images img {
	border-radius: 0;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs {
	display: none;
}

body.sc-show-gallery-thumbnails .woocommerce-product-gallery .flex-control-thumbs {
	display: flex;
	gap: 0.75rem;
	margin-top: 1rem;
}

body.sc-show-gallery-thumbnails .woocommerce-product-gallery .flex-control-thumbs li {
	float: none;
	width: 84px;
}

.woocommerce div.product .product_title {
	font-family: var(--sc-sans);
	font-size: clamp(2rem, 3.6vw, 3.25rem);
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1.08;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	margin-block: 0.6rem 1.4rem;
	color: var(--sc-ink);
	font-size: clamp(2rem, 3vw, 2.85rem);
	font-family: var(--sc-sans);
	font-weight: 600;
}

.woocommerce div.product form.cart.variations_form {
	display: block;
	margin-top: 1.7rem;
}

.woocommerce div.product form.cart .variations {
	display: block;
	margin: 0 0 1.5rem;
}

.woocommerce div.product form.cart .variations tbody,
.woocommerce div.product form.cart .variations tr,
.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
}

.woocommerce div.product form.cart .variations th.label {
	display: none;
}

.woocommerce div.product form.cart .variations tr + tr {
	margin-top: 1.2rem;
}

.sc-native-variation-select {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	min-height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0 !important;
}

.sc-option-label {
	margin-bottom: 0.6rem;
	color: var(--sc-ink);
	font-size: 0.92rem;
}

.sc-option-label strong {
	font-weight: 700;
}

.sc-option-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.sc-color-choice {
	position: relative;
	display: grid !important;
	place-items: center;
	min-width: 34px !important;
	width: 34px;
	min-height: 34px !important;
	height: 34px;
	padding: 0 !important;
	border: 2px solid var(--sc-white) !important;
	border-radius: 50% !important;
	background: var(--swatch-color) !important;
	box-shadow: 0 0 0 1px #c7cdd5;
}

.sc-color-choice.is-selected,
.sc-color-choice:hover,
.sc-color-choice:focus-visible {
	box-shadow: 0 0 0 2px var(--sc-navy-900);
}

.sc-color-choice:hover::after,
.sc-color-choice:focus-visible::after,
.sc-color-choice.is-selected::after {
	opacity: 1;
}

.sc-color-choice[style*="#ffffff"]::after,
.sc-card-swatch[style*="#ffffff"]::after {
	color: var(--sc-navy-900);
	text-shadow: none;
}

.sc-size-choice {
	min-width: 48px !important;
	min-height: 42px !important;
	padding: 0.5rem 0.75rem !important;
	border: 1px solid #cfd5dd !important;
	border-radius: 4px !important;
	background: var(--sc-white) !important;
	color: var(--sc-ink) !important;
	font-size: 0.82rem;
	font-weight: 700 !important;
	letter-spacing: 0;
}

.sc-size-choice:hover,
.sc-size-choice.is-selected {
	border-color: var(--sc-navy-900) !important;
	background: var(--sc-navy-900) !important;
	color: var(--sc-white) !important;
	transform: none;
}

.sc-size-choice:disabled {
	cursor: not-allowed;
	opacity: 0.3;
}

/* Unavailable colors keep their real color (fading made navy look grey) and get a diagonal slash instead. */
.sc-color-choice:disabled {
	cursor: not-allowed;
	opacity: 1;
}

.sc-color-choice:disabled::before {
	content: "";
	position: absolute;
	top: -4px;
	bottom: -4px;
	left: 50%;
	width: 2px;
	margin-left: -1px;
	border-radius: 1px;
	background: var(--sc-muted);
	box-shadow: 0 0 0 1px var(--sc-white);
	transform: rotate(45deg);
	pointer-events: none;
}

.sc-color-choice:disabled:not(.is-selected):hover {
	box-shadow: 0 0 0 1px #c7cdd5;
}

.sc-color-choice:disabled:not(.is-selected):hover::after {
	opacity: 0;
}

/* Sold-out sizes are crossed out on every product (matches the Pop-Up Shop). */
.sc-size-choice:disabled {
	text-decoration: line-through 2px;
}

.woocommerce div.product form.cart .reset_variations {
	display: inline-block;
	margin-top: 0.75rem;
	color: var(--sc-muted);
	font-size: 0.78rem;
}

.woocommerce div.product .single_variation_wrap {
	padding-top: 1.25rem;
	border-top: 1px solid var(--sc-line);
}

.woocommerce div.product .woocommerce-variation-price {
	display: none;
}

.woocommerce div.product .woocommerce-variation-availability p {
	margin: 0 0 0.8rem;
	color: var(--sc-muted);
	font-size: 0.85rem;
	font-weight: 700;
}

.woocommerce div.product .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* Quantity: round light-blue - and + with the number between, no box (Oct 30). */
.woocommerce div.product .quantity {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-height: 48px;
}

.woocommerce div.product .quantity .qty {
	width: 40px;
	min-height: 40px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 6px !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--sc-ink);
	font-size: 1.05rem;
	font-weight: 700;
	text-align: center;
	-moz-appearance: textfield;
}

.woocommerce div.product .quantity .qty:focus-visible {
	outline: 2px solid var(--sc-gold-500);
	outline-offset: 2px;
}

.woocommerce div.product .quantity .qty::-webkit-inner-spin-button,
.woocommerce div.product .quantity .qty::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.sc-quantity-button {
	width: 40px !important;
	min-width: 40px !important;
	height: 40px !important;
	min-height: 40px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--sc-blue-100) !important;
	color: var(--sc-navy-900) !important;
	font-size: 1.2rem;
	font-weight: 500 !important;
	line-height: 1 !important;
	transition: background-color 140ms ease;
}

.sc-quantity-button:hover,
.sc-quantity-button:focus-visible {
	background: #d6e1ec !important;
	color: var(--sc-navy-900) !important;
	transform: none;
}

.sc-quantity-button:focus-visible {
	outline: 2px solid var(--sc-gold-500);
	outline-offset: 2px;
}

/* Cart page +/- : keep the symbol navy on hover (the general button hover turns text white) */
.wc-block-cart-item__quantity .wc-block-components-quantity-selector__button:hover:not(:disabled),
.wc-block-cart-item__quantity .wc-block-components-quantity-selector__button:focus-visible {
	background: var(--sc-blue-100) !important;
	color: var(--sc-navy-900) !important;
}

.woocommerce div.product .single_add_to_cart_button {
	min-width: 230px;
	text-transform: uppercase;
}

.woocommerce div.product .product_meta {
	display: none !important;
}

.woocommerce div.product .woocommerce-tabs {
	display: none !important;
}

.woocommerce div.product .woocommerce-product-details__short-description {
	margin: 0 0 1.4rem;
	color: var(--sc-muted);
	line-height: 1.65;
}

.woocommerce table.shop_table,
.wc-block-components-order-summary,
.wc-block-components-totals-wrapper,
.wc-block-checkout__order-notes {
	border-color: var(--sc-line) !important;
	border-radius: var(--sc-radius) !important;
}

.woocommerce-cart-form,
.cart_totals,
.wc-block-cart__main,
.wc-block-cart__sidebar,
.wc-block-checkout__main,
.wc-block-checkout__sidebar {
	padding: clamp(1rem, 3vw, 2rem);
	border: 1px solid var(--sc-line);
	border-radius: var(--sc-radius);
	background: var(--sc-white);
}

.woocommerce-cart .site-content,
.woocommerce-checkout .site-content {
	background: var(--sc-surface);
}

.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content {
	max-width: none;
}

/* A calm, useful empty state in place of WooCommerce's generic product grid. */
.sc-empty-cart {
	display: grid;
	justify-items: center;
	max-width: 720px;
	margin: clamp(2rem, 7vw, 5rem) auto;
	padding: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
	border: 1px solid var(--sc-line);
	border-radius: var(--sc-radius);
	background: var(--sc-white);
	box-shadow: 0 18px 45px rgba(16, 41, 79, 0.07);
	text-align: center;
}

/* Respect the visibility state applied by WooCommerce when the cart has items. */
.sc-empty-cart[hidden] {
	display: none !important;
}

/* The Cart block can leave its empty-state block mounted after items load. */
.wp-block-woocommerce-cart:has(.wc-block-cart__main) .sc-empty-cart {
	display: none !important;
}

.sc-empty-cart__icon {
	display: grid;
	place-items: center;
	width: 70px;
	height: 70px;
	margin-bottom: 1.5rem;
	border-radius: 50%;
	background: var(--sc-blue-100);
	color: var(--sc-navy-900);
}

.sc-empty-cart__icon svg {
	width: 31px;
	height: 31px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.sc-empty-cart h2 {
	margin: 0;
	color: var(--sc-navy-900);
	font-family: var(--sc-sans);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 600;
	letter-spacing: -0.025em;
}

.sc-empty-cart p {
	max-width: 500px;
	margin: 0.8rem 0 1.75rem;
	color: var(--sc-muted);
	font-size: 1rem;
}

.sc-empty-cart .sc-empty-cart__button {
	min-width: 190px;
	margin: 0;
	text-transform: uppercase;
}

.wc-block-checkout__main,
.wc-block-cart__main {
	width: 62% !important;
}

.wc-block-checkout__sidebar,
.wc-block-cart__sidebar {
	width: 36% !important;
}

/* Keep the cart quantity stepper and remove control evenly aligned. */
.wc-block-cart-item__quantity {
	display: flex !important;
	align-items: center !important;
	flex-wrap: wrap;
	gap: 0.9rem !important;
}

.wc-block-cart-item__quantity .wc-block-components-quantity-selector {
	display: inline-flex;
	align-items: stretch;
	width: auto !important;
	min-height: 36px;
	margin: 0 !important;
	border: 1px solid #cbd3dd !important;
	border-radius: 5px !important;
	background: var(--sc-white) !important;
	overflow: hidden;
}

.wc-block-cart-item__quantity .wc-block-components-quantity-selector::after {
	display: none !important;
}

.wc-block-cart-item__quantity .wc-block-components-quantity-selector__button {
	width: 34px !important;
	min-width: 34px !important;
	height: 36px !important;
	min-height: 36px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--sc-white) !important;
	color: var(--sc-navy-900) !important;
	transform: none !important;
}

.wc-block-cart-item__quantity .wc-block-components-quantity-selector__input {
	width: 38px !important;
	min-width: 38px !important;
	height: 36px !important;
	min-height: 36px !important;
	padding: 0 !important;
	border: 0 !important;
	border-right: 1px solid #e1e5ea !important;
	border-left: 1px solid #e1e5ea !important;
	border-radius: 0 !important;
	background: var(--sc-white) !important;
	text-align: center;
}

.wc-block-cart-item__quantity .wc-block-cart-item__remove-link {
	display: inline-grid !important;
	place-items: center;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	min-width: 36px !important;
	min-height: 36px !important;
	margin: 0 !important;
	padding: 0 !important;
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
	border-top: 0;
	border-left: 4px solid var(--sc-blue-500);
	border-radius: var(--sc-radius-sm);
	background: var(--sc-blue-100);
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--sc-navy-800);
}

.entry-content {
	max-width: 820px;
	margin-top: 2rem;
}

.entry-content > * + * {
	margin-top: 1.25em;
}

.site-footer {
	background: var(--sc-navy-950);
	color: rgba(255, 255, 255, 0.7);
}

.site-footer a {
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--sc-gold-500);
}

.site-footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: center;
	padding-block: 1.5rem;
	font-size: 0.8rem;
}

.site-footer__policies {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}

/* Phone and email in the footer (replaces the Contact Us page). */
.site-footer__contact {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.5rem;
}

.site-footer__contact strong {
	color: var(--sc-white, #fff);
	font-weight: 600;
}

@media (max-width: 1050px) {
	.site-header__inner {
		grid-template-columns: 1fr auto;
		min-height: 78px;
		padding-top: 0;
	}

	.menu-toggle {
		display: inline-grid;
		place-items: center;
	}

	.primary-nav {
		position: absolute;
		top: 100%;
		left: 0;
		display: none;
		width: 100%;
		padding: 1.25rem 20px 1.75rem;
		border-top: 1px solid var(--sc-line);
		background: var(--sc-white);
		box-shadow: var(--sc-shadow);
	}

	.primary-nav.is-open {
		display: block;
	}

	.primary-nav .menu,
	.primary-nav ul {
		align-items: flex-start;
		flex-direction: column;
	}

	.header-actions {
		grid-column: 2;
		grid-row: 1;
	}

	.category-grid,
	.woocommerce ul.products,
	.wc-block-product-template {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}

	.site-notice {
		display: none;
	}

	.site-header__inner {
		min-height: 78px;
		gap: 0.75rem;
	}

	.site-branding__monogram {
		width: 44px;
		height: 44px;
	}

	.site-branding__text strong {
		font-size: 1.15rem;
	}

	.site-branding__text span {
		font-size: 0.75rem;
	}

	.page-hero__inner,
	.woocommerce div.product {
		grid-template-columns: 1fr;
	}

	.woocommerce div.product div.summary {
		position: static;
	}

	.page-hero__inner {
		min-height: auto;
	}

	.page-hero__card {
		max-width: 520px;
	}

	.category-grid,
	.woocommerce ul.products,
	.wc-block-product-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.store-intro__inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 1rem;
	}

	.store-assurance__inner {
		grid-template-columns: 1fr;
	}

	.store-assurance__inner > div {
		border-right: 0;
		border-bottom: 1px solid var(--sc-line);
	}

	.store-assurance__inner > div:last-child {
		border-bottom: 0;
	}

	.store-benefits__inner {
		grid-template-columns: 1fr;
	}

	.store-benefit {
		border-right: 0;
		border-bottom: 1px solid var(--sc-line);
	}

	.store-benefit:last-child {
		border-bottom: 0;
	}

	.wc-block-checkout__main,
	.wc-block-checkout__sidebar,
	.wc-block-cart__main,
	.wc-block-cart__sidebar {
		width: 100% !important;
	}

}

@media (max-width: 520px) {
	.sc-container,
	.site-content > .woocommerce,
	.site-content > article,
	.site-content > .page-header,
	.woocommerce .site-main,
	.woocommerce-page .site-main {
		width: min(calc(100% - 28px), var(--sc-container));
	}

	.site-branding__text span {
		display: none;
	}

	.page-hero h1 {
		font-size: 3.15rem;
	}

	.category-grid {
		grid-template-columns: 1fr;
	}

	.category-card {
		min-height: 240px;
	}

	.woocommerce ul.products,
	.wc-block-product-template {
		gap: 2rem 0.75rem;
	}

	.section-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.home-products__heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.5rem;
	}

	.woocommerce div.product .woocommerce-variation-add-to-cart {
		align-items: stretch;
		flex-direction: column;
	}

	.woocommerce div.product .quantity {
		align-self: flex-start;
	}

	.site-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

/* School crest and responsive store identity. */
.sc-school-brand { gap: 16px; }
.sc-school-brand .sc-school-crest { display: block; width: 70px; height: 70px; object-fit: contain; flex: 0 0 auto; }
.site-header--full .sc-school-brand .site-branding__text strong { font-size: clamp(20px, 2.1vw, 29px); letter-spacing: 0; line-height: 1.12; }
.site-header--full .sc-school-brand .site-branding__text span { margin-top: 6px; font-size: 14px; letter-spacing: 0.01em; }
.site-header-compact .sc-school-brand { gap: 10px; }
.site-header-compact .sc-school-crest { width: 36px; height: 36px; }
.site-header-compact .sc-school-brand .site-branding__text strong { font-size: 18px; white-space: nowrap; }
@media (max-width: 600px) {
 .site-header--full .sc-school-crest { width: 52px; height: 52px; }
 .sc-school-brand { gap: 10px; }
 .site-header--full .sc-school-brand .site-branding__text strong { font-size: 18px; max-width: 210px; }
 .site-header--full .sc-school-brand .site-branding__text span { font-size: 12px; letter-spacing: 0.01em; margin-top: 4px; }
}
@media (max-width: 380px) {
 .site-header--full .sc-school-crest { width: 42px; height: 42px; }
 .site-header--full .sc-school-brand .site-branding__text strong { max-width: 160px; font-size: 16px; }
}

@media (max-width: 600px) { .site-header--full .sc-school-brand .site-branding__text span { display: block; } }

/* Homepage banner: 1-2-3 ordering steps */
.store-intro__inner {
	padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
}

.store-steps {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2.2vw, 1.75rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.store-steps__item {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	max-width: 10rem;
	color: var(--sc-navy-900);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.3;
}

.store-steps__text {
	/* Keep each label's box as wide as its longest line, so the space between steps looks even. */
	max-width: 5.9rem;
}

.store-steps__number {
	display: grid;
	flex: none;
	place-items: center;
	width: 2.15rem;
	height: 2.15rem;
	border-radius: 50%;
	background: var(--sc-navy-800);
	color: var(--sc-white);
	font-size: 0.95rem;
	font-weight: 700;
	box-shadow: 0 0 0 3px var(--sc-gold-100), 0 0 0 4px var(--sc-gold-500);
}

@media (max-width: 782px) {
	.store-steps {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}

	.store-steps__item,
	.store-steps__text {
		max-width: none;
	}
}

/* Button hover: light sweep + gentle lift (matches the preschool site) */
.button,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.wc-block-components-button:not(.wc-block-components-quantity-selector__button),
.sc-popup-shop-button,
.sc-popup-card-button {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.button::before,
.wp-element-button::before,
.woocommerce a.button::before,
.woocommerce button.button::before,
.wc-block-components-button:not(.wc-block-components-quantity-selector__button)::before,
.sc-popup-shop-button::before,
.sc-popup-card-button::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.22) 50%, transparent 100%);
	transform: translateX(-100%);
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
}

.button:hover,
.wp-element-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.wc-block-components-button:not(.wc-block-components-quantity-selector__button):hover,
.sc-popup-shop-button:hover,
.sc-popup-card-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(16, 41, 79, 0.18);
}

.button:hover::before,
.wp-element-button:hover::before,
.woocommerce a.button:hover::before,
.woocommerce button.button:hover::before,
.wc-block-components-button:not(.wc-block-components-quantity-selector__button):hover::before,
.sc-popup-shop-button:hover::before,
.sc-popup-card-button:hover::before {
	transform: translateX(100%);
}

/* Arrow nudges right on hover */
.sc-popup-shop-button span[aria-hidden="true"] {
	display: inline-block;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sc-popup-shop-button:hover span[aria-hidden="true"] {
	transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
	.button,
	.wp-element-button,
	.woocommerce a.button,
	.woocommerce button.button,
	.wc-block-components-button,
	.sc-popup-shop-button,
	.sc-popup-card-button,
	.sc-popup-shop-button span[aria-hidden="true"] {
		transform: none !important;
	}

	.button::before,
	.wp-element-button::before,
	.woocommerce a.button::before,
	.woocommerce button.button::before,
	.wc-block-components-button::before,
	.sc-popup-shop-button::before,
	.sc-popup-card-button::before {
		display: none;
	}
}

/* Slightly smaller page titles and order-page section headings */
.entry-title,
.woocommerce-products-header__title {
	font-size: clamp(1.85rem, 3vw, 2.6rem);
}

.woocommerce-checkout h2,
.woocommerce-order-details__title,
.woocommerce-column__title,
.woocommerce-customer-details h2,
.cart_totals h2 {
	font-size: clamp(1.35rem, 2vw, 1.65rem);
}

/* Secondary (outline) buttons – Keep Shopping, Print Order, Return to Store:
   gold fill + navy text on hover, with the same sweep and lift as the main buttons. */
body .sc-cart-drawer__keep,
body #skycrest-order-actions a,
body #skycrest-order-actions button {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body .sc-cart-drawer__keep::before,
body #skycrest-order-actions a::before,
body #skycrest-order-actions button::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
	transform: translateX(-100%);
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
}

body .sc-cart-drawer__keep:hover,
body #skycrest-order-actions a:hover,
body #skycrest-order-actions button:hover,
body .sc-cart-drawer__keep:focus-visible,
body #skycrest-order-actions a:focus-visible,
body #skycrest-order-actions button:focus-visible {
	background: var(--sc-gold-500, #b89957) !important;
	border-color: var(--sc-gold-500, #b89957) !important;
	color: var(--sc-navy-900, #10294f) !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 8px 18px rgba(16, 41, 79, 0.18);
}

body .sc-cart-drawer__keep:hover::before,
body #skycrest-order-actions a:hover::before,
body #skycrest-order-actions button:hover::before {
	transform: translateX(100%);
}

@media (prefers-reduced-motion: reduce) {
	body .sc-cart-drawer__keep:hover,
	body #skycrest-order-actions a:hover,
	body #skycrest-order-actions button:hover {
		transform: none !important;
	}
	body .sc-cart-drawer__keep::before,
	body #skycrest-order-actions a::before,
	body #skycrest-order-actions button::before {
		display: none;
	}
}

/* Pay Through FACTS button (styled inline so it also works in emails): match the main button hover on the site. */
a.skycrest-pay-link {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a.skycrest-pay-link::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.22) 50%, transparent 100%);
	transform: translateX(-100%);
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
}

a.skycrest-pay-link:hover,
a.skycrest-pay-link:focus-visible {
	background-color: var(--sc-navy-800) !important;
	color: #ffffff !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(16, 41, 79, 0.18);
}

a.skycrest-pay-link:hover::before {
	transform: translateX(100%);
}

@media (prefers-reduced-motion: reduce) {
	a.skycrest-pay-link:hover {
		transform: none;
	}
	a.skycrest-pay-link::before {
		display: none;
	}
}

/* ---------- Homepage: Pop-Up feature placement ---------- */
.home-popup {
	padding-top: clamp(2rem, 4vw, 3.5rem);
}

.home-popup .sc-popup-feature {
	margin-bottom: 0;
}

/* ---------- Homepage: Popular Items ---------- */
.home-popular {
	padding-block: clamp(2rem, 4vw, 3.5rem) 0;
	background: var(--sc-white);
}

.home-popular__heading {
	margin-bottom: 1.75rem;
}

.home-popular__heading h2 {
	margin: 0;
	color: var(--sc-navy-900);
	font-size: 1.4rem;
	letter-spacing: 0.01em;
}

/* Subtle gold accent under the heading */
.home-popular__heading h2::after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin-top: 0.6rem;
	border-radius: 3px;
	background: var(--sc-gold-500);
}

.home-popular__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-popular__item {
	margin: 0;
	padding: 0;
}

.home-popular__link {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	color: inherit;
	text-align: center;
	text-decoration: none;
}

.home-popular__image {
	display: block;
	margin-bottom: 0.8rem;
	overflow: hidden;
	border: 1px solid var(--sc-line);
	border-radius: var(--sc-radius);
	background: var(--sc-white);
	aspect-ratio: 1 / 1.08;
}

.home-popular__image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
	transition: transform 220ms ease;
}

.home-popular__link:hover .home-popular__image img,
.home-popular__link:focus-visible .home-popular__image img {
	transform: scale(1.03);
}

.home-popular__name {
	color: var(--sc-navy-900);
	font-family: var(--sc-sans);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
}

.home-popular__price {
	color: var(--sc-ink);
	font-size: 0.95rem;
	font-weight: 700;
}

.home-popular__price ins {
	text-decoration: none;
}

.home-popular__price del {
	margin-right: 0.3rem;
	color: var(--sc-muted);
	font-weight: 500;
}

.home-popular__link:focus-visible {
	outline: 3px solid var(--sc-gold-500);
	outline-offset: 4px;
	border-radius: var(--sc-radius);
}

@media (max-width: 768px) {
	.home-popular__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}

	.home-popular__name,
	.home-popular__price {
		font-size: 0.88rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-popular__image img {
		transition: none;
	}
}

/* ---------- Section headings: same gold bar as "Popular Items" ---------- */
.home-products__heading h2::after,
.related.products > h2::after,
.upsells.products > h2::after,
.woocommerce-order-received .woocommerce-order-details__title::after,
.woocommerce-order-received .woocommerce-column__title::after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin-top: 0.6rem;
	border-radius: 3px;
	background: var(--sc-gold-500);
}

/* ---------- Buttons in Title Case (no all-caps) ---------- */
.woocommerce div.product .single_add_to_cart_button,
.sc-empty-cart .sc-empty-cart__button {
	text-transform: none;
}

/* ---------- Homepage: Featured Item (hidden while the Pop-Up Shop is open) ---------- */
.home-featured {
	padding-top: clamp(2rem, 4vw, 3.5rem);
}

.home-featured .sc-feat {
	margin-bottom: 0;
}

/* Featured product spotlight — quieter than the Pop-Up block: white card, single product, no urgency. */
.sc-feat{--feat-navy:#10294f;--feat-gold:#b89957;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:40px;align-items:center;background:#fff;border:1px solid #e3e8ee;border-radius:20px;padding:28px;margin:0 0 44px;clear:both;color:#18202b}
.sc-feat-image{display:block;background:#f6f7f9;border-radius:14px;aspect-ratio:1;overflow:hidden}
.sc-feat-image img{display:block;width:100%;height:100%;object-fit:contain;margin:0;transition:transform .35s ease}
.sc-feat-image:hover img{transform:scale(1.03)}
.sc-feat-body{max-width:520px}
.sc-feat-eyebrow{display:flex;align-items:center;gap:10px;font-size:11px!important;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:#685022;margin:0 0 12px!important}
.sc-feat-eyebrow::before{content:"";width:28px;height:2px;background:var(--feat-gold)}
.sc-feat h2{font-size:clamp(25px,2.6vw,36px);line-height:1.2;margin:0 0 10px}
.sc-feat h2 a{color:var(--feat-navy);text-decoration:none}
.sc-feat h2 a:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.sc-feat-price{font-size:18px;font-weight:600;margin:0 0 14px}
.sc-feat-price del{opacity:.55;font-weight:400;margin-right:6px}
.sc-feat-price ins{text-decoration:none}
.sc-feat-blurb{margin:0 0 22px;color:#4a5566;line-height:1.6}
.sc-feat-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 24px}
/* "Shop Now" uses the theme's own .button style (sweep + lift on hover); only layout is set here. */
.sc-feat .sc-feat-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.sc-feat-link{font-size:14px;font-weight:600;color:var(--feat-navy)!important;text-decoration:none!important;border-bottom:2px solid var(--feat-gold);padding-bottom:2px}
.sc-feat-link:hover{color:#685022!important}
.sc-feat a:focus-visible{outline:3px solid var(--feat-gold);outline-offset:3px}
@media(max-width:800px){.sc-feat{grid-template-columns:1fr;gap:22px;padding:20px}.sc-feat-image{max-width:420px;width:100%;margin:0 auto}}
@media print{.sc-feat{display:none!important}}
