/*
Theme Name: UnityStitches
Theme URI: https://unitystitches.com
Description: Custom WooCommerce storefront theme for UnityStitches.
Author: UnityStitches
Template: twentytwentyfive
Version: 1.0.0
Text Domain: unitystitches
*/

/*
 * Most global design settings live in theme.json.
 * WooCommerce-specific styling lives in:
 *
 * assets/css/woocommerce.css
 */


/* =========================================================
   UNITYSTITCHES HEADER
   ========================================================= */

.us-site-header {
	position: relative;
	z-index: 100;

	background: #ffffff;

	border-bottom: 1px solid #eeeaf2;
}

.us-header-inner {
	width: calc(100% - 48px);
	max-width: 1280px;

	margin-left: auto !important;
	margin-right: auto !important;

	padding-top: 18px;
	padding-bottom: 18px;
}


/* ---------- BRAND ---------- */

.us-site-title {
	margin: 0 !important;

	font-size: 1.2rem !important;
	font-weight: 750 !important;

	line-height: 1 !important;
	letter-spacing: -0.035em;
}

.us-site-title a {
	color: #171717;
	text-decoration: none;
}

.us-site-title a:hover {
	color: #6f3cff;
}


/* ---------- RIGHT SIDE ---------- */

.us-header-right {
	gap: 18px !important;
}


/* ---------- SHOP NAV ---------- */

.us-primary-nav {
	margin: 0 !important;
}

.us-primary-nav .wp-block-navigation-item__content {
	padding: 6px 2px;

	color: #292929;

	font-size: 0.95rem;
	font-weight: 600;

	text-decoration: none;

	transition: color 150ms ease;
}

.us-primary-nav .wp-block-navigation-item__content:hover {
	color: #6f3cff;
}


/* ---------- ACCOUNT ---------- */

.us-header-right .wc-block-customer-account {
	margin: 0 !important;
}

.us-header-right .wc-block-customer-account a {
	display: flex;
	align-items: center;
	justify-content: center;

	color: #171717;
}

.us-header-right .wc-block-customer-account a:hover {
	color: #6f3cff;
}

.us-header-right
.wc-block-customer-account__account-icon {
	width: 22px;
	height: 22px;
}


/* ---------- MINI CART ---------- */

.us-header-right .wc-block-mini-cart {
	margin: 0 !important;
}

.us-header-right .wc-block-mini-cart__button {
	min-width: auto !important;

	padding: 0 !important;

	color: #171717 !important;
}

.us-header-right .wc-block-mini-cart__button:hover {
	color: #6f3cff !important;
}

.us-header-right .wc-block-mini-cart__icon {
	width: 22px;
	height: 22px;
}


/* ---------- CART COUNT ---------- */

.us-header-right
.wc-block-mini-cart__badge {
	background: #6f3cff !important;
	color: #ffffff !important;

	font-size: 0.65rem !important;
	font-weight: 700 !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

	.us-header-inner {
		width: calc(100% - 32px);

		padding-top: 14px;
		padding-bottom: 14px;
	}

	.us-site-title {
		font-size: 1.05rem !important;
	}

	.us-header-right {
		gap: 12px !important;
	}

	.us-header-right
	.wc-block-customer-account__account-icon,
	.us-header-right
	.wc-block-mini-cart__icon {
		width: 21px;
		height: 21px;
	}

}

/* UnityStitches brand emphasis */
.us-site-title {
	font-size: 1.3rem !important;
	font-weight: 800 !important;
}

.us-site-title a {
	color: #6f3cff !important;
}


/* =========================================================
   CATEGORY NAVIGATION
   ========================================================= */

.us-primary-nav .wp-block-navigation__container {
	gap: 22px !important;
}

.us-primary-nav .wp-block-navigation-item__content {
	font-size: 0.92rem;
	font-weight: 600;
	white-space: nowrap;
}

/* Current page/category */
.us-primary-nav .current-menu-item > .wp-block-navigation-item__content,
.us-primary-nav .current-menu-ancestor > .wp-block-navigation-item__content {
	color: #6f3cff !important;
}


/* Give the expanded navigation more room */
@media (max-width: 950px) {

	.us-primary-nav
	.wp-block-navigation__responsive-container-open {
		display: flex;
	}

	.us-primary-nav
	.wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}

}


/* =========================================================
   UNITYSTITCHES FOOTER
   ========================================================= */

.us-site-footer {
	margin-top: clamp(70px, 8vw, 110px) !important;

	background: #f8f5ff;

	border-top: 1px solid #ebe5f5;
}

.us-footer-inner {
	width: calc(100% - 48px);
	max-width: 1280px;

	margin-left: auto !important;
	margin-right: auto !important;

	padding-top: 56px;
	padding-bottom: 28px;
}


/* ---------- COLUMNS ---------- */

.us-footer-columns {
	gap: clamp(40px, 6vw, 90px) !important;

	margin: 0 !important;
}


/* ---------- BRAND ---------- */

.us-footer-site-title {
	margin: 0 0 14px !important;

	font-size: 1.45rem !important;
	font-weight: 800 !important;

	letter-spacing: -0.035em;
}

.us-footer-site-title a {
	color: #6f3cff !important;

	text-decoration: none !important;
}

.us-footer-tagline {
	max-width: 360px;

	margin: 0 !important;

	color: #65606b;

	font-size: 0.92rem;
	line-height: 1.6;
}


/* ---------- SECTION HEADINGS ---------- */

.us-footer-heading {
	margin: 0 0 16px !important;

	color: #171717;

	font-size: 0.9rem !important;
	font-weight: 750 !important;

	letter-spacing: 0.01em;
}


/* ---------- FOOTER NAV ---------- */

.us-footer-nav {
	margin: 0 !important;
}

.us-footer-nav .wp-block-navigation__container {
	gap: 9px !important;
}

.us-footer-nav .wp-block-navigation-item {
	margin: 0 !important;
}

.us-footer-nav .wp-block-navigation-item__content {
	padding: 0 !important;

	color: #625d68 !important;

	font-size: 0.88rem;
	font-weight: 500;

	line-height: 1.5;

	text-decoration: none !important;

	transition:
		color 150ms ease,
		transform 150ms ease;
}

.us-footer-nav .wp-block-navigation-item__content:hover {
	color: #6f3cff !important;

	transform: translateX(2px);
}


/* ---------- FOOTER BOTTOM ---------- */

.us-footer-bottom {
	margin-top: 46px !important;
	padding-top: 22px;

	border-top: 1px solid #e5dfee;

	color: #77717d;

	font-size: 0.78rem;
}

.us-footer-bottom p {
	margin: 0 !important;
}

.us-footer-copyright {
	display: block;
}

.us-footer-message {
	color: #77717d;
}


/* =========================================================
   FOOTER MOBILE
   ========================================================= */

@media (max-width: 780px) {

	.us-footer-inner {
		width: calc(100% - 32px);

		padding-top: 40px;
		padding-bottom: 24px;
	}

	.us-footer-columns {
		gap: 34px !important;
	}

	.us-footer-brand {
		flex-basis: 100% !important;
	}

	.us-footer-column {
		flex-basis: calc(50% - 20px) !important;
	}

}


@media (max-width: 520px) {

	.us-footer-column {
		flex-basis: 100% !important;
	}

	.us-footer-bottom {
		align-items: flex-start !important;
		flex-direction: column;

		gap: 7px !important;
	}

}

/* Tighten space before footer */
.us-site-footer {
	margin-top: clamp(48px, 5vw, 72px) !important;
}


/* =========================================================
   UNITYSTITCHES BRAND LOGO
   ========================================================= */

.us-brand-logo {
	display: inline-flex;
	align-items: center;

	flex-shrink: 0;

	text-decoration: none !important;
}

.us-brand-logo img {
	display: block;

	width: auto;
	height: 44px;

	max-width: 230px;

	object-fit: contain;
}


/* Normal site header */
.us-header-inner .us-brand-logo {
	margin: 0;
}


@media (max-width: 700px) {

	.us-brand-logo img {
		height: 36px;
		max-width: 190px;
	}

}

/* Final header logo sizing */
.us-brand-logo img {
	height: 58px !important;
	width: auto !important;
	max-width: 300px !important;
}

@media (max-width: 700px) {
	.us-brand-logo img {
		height: 46px !important;
		max-width: 230px !important;
	}
}


/* =========================================================
   UNITYSTITCHES HOMEPAGE
   ========================================================= */

.us-home-main {
	padding-top: 34px;
}

.us-home-section {
	margin-top: clamp(70px, 8vw, 110px) !important;
}


/* ---------- SHARED HEADINGS ---------- */

.us-home-eyebrow {
	margin: 0 0 8px !important;

	color: #6f3cff;

	font-size: 0.75rem;
	font-weight: 800;

	letter-spacing: 0.09em;

	text-transform: uppercase;
}

.us-home-section-title {
	margin: 0 0 28px !important;

	font-size: clamp(2rem, 3.5vw, 3rem) !important;
	font-weight: 700 !important;

	letter-spacing: -0.045em;
}


/* =========================================================
   HERO
   ========================================================= */

.us-home-hero {
	box-sizing: border-box;

	padding: clamp(34px, 5vw, 70px);

	border: 1px solid #ebe5f5;
	border-radius: 24px;

	background:
		linear-gradient(
			135deg,
			#faf8ff 0%,
			#fff 60%,
			#f7fbff 100%
		);
}

.us-home-hero__columns {
	gap: clamp(36px, 6vw, 80px) !important;
}

.us-home-title {
	margin: 0 0 20px !important;

	font-size: clamp(2.8rem, 5.5vw, 5rem) !important;
	font-weight: 750 !important;
	line-height: 0.98 !important;

	letter-spacing: -0.065em;
}

.us-home-lead {
	max-width: 590px;

	margin: 0 0 30px !important;

	color: #665f6b;

	font-size: clamp(1rem, 1.3vw, 1.12rem);
	line-height: 1.7;
}

.us-home-actions {
	gap: 12px !important;
}

.us-home-primary .wp-block-button__link {
	background: #6f3cff !important;
}

.us-home-secondary .wp-block-button__link {
	border-color: #d5c8f5 !important;

	color: #4f2aa8 !important;
}


/* ---------- HERO PRODUCT COLLAGE ---------- */

.us-home-hero-products {
	display: grid;

	grid-template-columns:
		1.15fr 0.85fr;

	grid-template-rows:
		1fr 1fr;

	gap: 12px;
}

.us-home-hero-product {
	display: block;

	overflow: hidden;

	border: 1px solid #eee7f4;
	border-radius: 16px;

	background: #fff;
}

.us-home-hero-product:first-child {
	grid-row: 1 / span 2;
}

.us-home-hero-product img {
	display: block;

	width: 100%;
	height: 100%;

	aspect-ratio: 1 / 1;

	object-fit: cover;

	transition: transform 220ms ease;
}

.us-home-hero-product:hover img {
	transform: scale(1.025);
}


/* =========================================================
   BEST SELLERS
   ========================================================= */

.us-home-products {
	display: grid;

	grid-template-columns:
		repeat(4, minmax(0, 1fr));

	gap: 24px;
}

.us-home-product {
	display: flex;
	flex-direction: column;

	min-width: 0;
}

.us-home-product__image-link {
	display: block;

	overflow: hidden;

	border: 1px solid #eee7f4;
	border-radius: 16px;

	background: #faf9fc;
}

.us-home-product__image {
	display: block;

	width: 100% !important;
	height: auto !important;

	aspect-ratio: 1 / 1;

	object-fit: contain;

	transition: transform 180ms ease;
}

.us-home-product:hover .us-home-product__image {
	transform: scale(1.025);
}

.us-home-product__content {
	display: flex;
	flex: 1;
	flex-direction: column;

	padding-top: 14px;
}

.us-home-product__badge {
	align-self: flex-start;

	margin-bottom: 7px;
	padding: 4px 8px;

	border-radius: 999px;

	background: #f1eaff;
	color: #6f3cff;

	font-size: 0.68rem;
	font-weight: 750;

	letter-spacing: 0.03em;

	text-transform: uppercase;
}

.us-home-product__title {
	margin: 0 0 7px !important;

	font-size: 0.98rem !important;
	font-weight: 650 !important;
	line-height: 1.38 !important;
}

.us-home-product__title a {
	color: #171717 !important;

	text-decoration: none !important;
}

.us-home-product__title a:hover {
	color: #6f3cff !important;
}

.us-home-product__price {
	margin-bottom: 15px;

	color: #6f3cff;

	font-size: 0.95rem;
	font-weight: 700;
}

.us-home-product__button {
	display: block;

	width: 100%;

	box-sizing: border-box;

	margin-top: auto;
	padding: 11px 16px;

	border-radius: 10px;

	background: #171717;
	color: #fff !important;

	font-size: 0.88rem;
	font-weight: 650;

	text-align: center;
	text-decoration: none !important;
}

.us-home-product__button:hover {
	background: #6f3cff;
}


/* =========================================================
   HOME CATEGORY CARDS
   ========================================================= */

.us-home-categories-section .us-shop-categories {
	margin-top: 0;
	margin-bottom: 0;
}


/* =========================================================
   MISSION
   ========================================================= */

.us-home-mission {
	box-sizing: border-box;

	margin-top: clamp(70px, 8vw, 110px) !important;
	padding: clamp(34px, 5vw, 64px);

	border-radius: 22px;

	background: #f8f5ff;
}

.us-home-mission-copy {
	max-width: 700px;

	color: #615b66;

	font-size: 1rem;
	line-height: 1.7;
}

.us-home-values {
	display: grid;

	gap: 12px;
}

.us-home-values p {
	margin: 0 !important;
	padding: 17px 19px;

	border: 1px solid #e8def8;
	border-radius: 13px;

	background: #fff;

	color: #665f6b;

	font-size: 0.88rem;
	line-height: 1.55;
}

.us-home-values strong {
	color: #171717;

	font-size: 0.94rem;
}


/* =========================================================
   HOME REVIEWS
   ========================================================= */

.us-home-review-note {
	max-width: 540px;

	margin-top: -18px !important;
	margin-bottom: 24px !important;

	color: #7a737e;

	font-size: 0.8rem;
}

.us-home-reviews {
	display: grid;

	grid-template-columns:
		repeat(3, minmax(0, 1fr));

	gap: 16px;
}

.us-home-review {
	display: flex;
	flex-direction: column;

	min-height: 180px;

	box-sizing: border-box;

	padding: 22px;

	border: 1px solid #ebe5f5;
	border-radius: 15px;

	background: #faf8ff;
}

.us-home-review__stars {
	margin-bottom: 13px;

	color: #6f3cff;

	letter-spacing: 0.07em;
}

.us-home-review blockquote {
	flex: 1;

	margin: 0 0 18px;

	color: #292929;

	font-size: 0.94rem;
	line-height: 1.6;
}

.us-home-review__meta {
	display: flex;
	flex-direction: column;

	gap: 3px;

	color: #7a737e;

	font-size: 0.73rem;
}

.us-home-review__meta strong {
	color: #171717;

	font-size: 0.8rem;
}

.us-home-review__product {
	display: inline-block;

	margin-top: 11px;

	color: #6f3cff !important;

	font-size: 0.75rem;
	font-weight: 600;

	text-decoration: none !important;
}


/* =========================================================
   CTA
   ========================================================= */

.us-home-cta {
	box-sizing: border-box;

	margin-top: clamp(70px, 8vw, 110px) !important;
	padding: clamp(44px, 6vw, 74px);

	border-radius: 22px;

	background: #171717;
	color: #fff;

	text-align: center;
}

.us-home-cta h2 {
	margin-bottom: 10px !important;

	color: #fff !important;

	font-size: clamp(2rem, 4vw, 3rem) !important;

	letter-spacing: -0.045em;
}

.us-home-cta p {
	margin-bottom: 26px !important;

	color: #d6d2da;
}

.us-home-cta .wp-block-button__link {
	background: #6f3cff !important;
	color: #fff !important;
}


/* =========================================================
   HOMEPAGE RESPONSIVE
   ========================================================= */

@media (max-width: 950px) {

	.us-home-products {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));
	}

	.us-home-reviews {
		grid-template-columns:
			repeat(2, minmax(0, 1fr));
	}

}


@media (max-width: 780px) {

	.us-home-main {
		padding-top: 20px;
	}

	.us-home-hero__columns {
		flex-direction: column;
	}

	.us-home-hero__columns > .wp-block-column {
		flex-basis: 100% !important;
	}

	.us-home-title {
		font-size: clamp(2.6rem, 12vw, 4rem) !important;
	}

}


@media (max-width: 560px) {

	.us-home-hero {
		padding: 26px 20px;
	}

	.us-home-products,
	.us-home-reviews {
		grid-template-columns: 1fr;
	}

	.us-home-hero-products {
		grid-template-columns: 1fr 1fr;
	}

	.us-home-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.us-home-actions .wp-block-button {
		width: 100%;
	}

	.us-home-actions .wp-block-button__link {
		width: 100%;
		box-sizing: border-box;
	}

}


/* =========================================================
   HOMEPAGE HERO LAYOUT CORRECTION
   ========================================================= */

.us-home-hero {
	max-width: 1280px !important;
}


/* Use a predictable grid instead of WP column sizing */
.us-home-hero__columns {
	display: grid !important;

	grid-template-columns:
		minmax(0, 1.05fr)
		minmax(0, 0.95fr);

	align-items: center;

	width: 100%;

	gap: clamp(42px, 6vw, 84px) !important;
}


/* Stop WordPress flex-basis from constraining the columns */
.us-home-hero__columns > .wp-block-column {
	width: 100% !important;
	max-width: none !important;

	flex-basis: auto !important;
}


/* ---------- HERO TITLE ---------- */

.us-home-title {
	max-width: 650px;

	word-break: normal !important;
	overflow-wrap: normal !important;
	hyphens: none !important;

	font-size: clamp(3rem, 4.8vw, 4.75rem) !important;
	line-height: 0.98 !important;
}


/* Keep each phrase together more naturally */
.us-home-title br {
	display: block;
}


/* ---------- PRODUCT COLLAGE ---------- */

.us-home-hero-products {
	width: 100%;
	max-width: 560px;

	margin-left: auto;
}


/* Give the featured image a little more presence */
.us-home-hero-product:first-child {
	min-height: 420px;
}

.us-home-hero-product:first-child img {
	object-fit: cover;
}


/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {

	.us-home-hero__columns {
		grid-template-columns: 1fr;
	}

	.us-home-hero-products {
		max-width: none;

		margin-left: 0;
	}

	.us-home-hero-product:first-child {
		min-height: auto;
	}

}


@media (max-width: 560px) {

	.us-home-title {
		font-size: clamp(2.6rem, 13vw, 3.6rem) !important;
	}

}


/* =========================================================
   HOMEPAGE FINAL POLISH
   ========================================================= */

/* Slightly tighter rhythm between homepage sections */
.us-home-section {
	margin-top: clamp(58px, 6vw, 88px) !important;
}

.us-home-mission,
.us-home-cta {
	margin-top: clamp(58px, 6vw, 88px) !important;
}


/* Give best sellers a little more visual weight */
.us-home-products {
	gap: 28px;
}

.us-home-product__image-link {
	background: #faf8ff;

	box-shadow:
		0 8px 24px rgba(50, 25, 85, 0.035);
}

.us-home-product__button {
	min-height: 44px;

	display: flex;
	align-items: center;
	justify-content: center;
}


/* Review cards should stay visually balanced */
.us-home-review {
	min-height: 210px;
}

.us-home-review blockquote {
	font-size: 0.96rem;
}


/* Slightly stronger category hover */
.us-home-categories-section .us-category-card:hover {
	transform: translateY(-3px);

	box-shadow:
		0 10px 26px rgba(80, 45, 130, 0.08);
}

/* Footer brand logo */
.us-site-footer .us-brand-logo img {
	height: 52px !important;
	max-width: 270px !important;
}

@media (max-width: 700px) {
	.us-site-footer .us-brand-logo img {
		height: 44px !important;
		max-width: 225px !important;
	}
}


/* =========================================================
   UNITYSTITCHES 404
   ========================================================= */

.us-404 {
	max-width: 760px;

	box-sizing: border-box;

	margin-top: 70px !important;
	margin-bottom: 90px !important;
	padding: clamp(42px, 7vw, 80px);

	border: 1px solid #ebe5f5;
	border-radius: 22px;

	background: #faf8ff;

	text-align: center;
}

.us-404 h1 {
	margin: 0 0 18px !important;

	font-size: clamp(2.4rem, 6vw, 4.5rem) !important;
	font-weight: 750 !important;
	line-height: 1 !important;

	letter-spacing: -0.06em;
}

.us-404 > p:not(.us-home-eyebrow) {
	max-width: 570px;

	margin: 0 auto 28px !important;

	color: #6b6470;

	line-height: 1.7;
}


/* =========================================================
   UNITYSTITCHES BEST SELLER CARD ALIGNMENT
   Keep titles, prices and CTA buttons visually aligned.
   ========================================================= */

.us-home-products {
	align-items: stretch;
}

.us-home-product {
	height: 100%;
}

.us-home-product__content {
	height: 100%;
}


/*
 * Reserve four lines for product names on desktop.
 * This keeps the price row aligned even when one product
 * has a substantially longer title.
 */
.us-home-product__title {
	min-height: 5.4em;
	line-height: 1.35;
}


/* Keep the price row consistent too. */
.us-home-product__price {
	min-height: 1.5em;
}


/*
 * Use the remaining vertical space above the CTA,
 * so all "Shop now" buttons finish on the same baseline.
 */
.us-home-product__button {
	margin-top: auto;
}


/*
 * Cards become wider at tablet sizes, so they need less
 * reserved title height.
 */
@media (max-width: 900px) {

	.us-home-product__title {
		min-height: 4.05em;
	}

}


/*
 * On a single-column/mobile layout, natural title height
 * looks better than artificial empty space.
 */
@media (max-width: 600px) {

	.us-home-product__title,
	.us-home-product__price {
		min-height: 0;
	}

}
