/* ==========================================================================
   The Doggos — theme stylesheet
   --------------------------------------------------------------------------
   One bundle. Modern CSS — custom properties, native nesting, container
   queries, color-mix(). No reset library, no Bootstrap, no jQuery UI.

   Brand tokens come from theme.json as --wp--preset--* CSS vars. We alias
   the ones we use frequently so the rest of this file reads cleanly.
   ========================================================================== */

/* ---------- Local aliases for theme.json tokens ----------- */
:root {
	--ink:        var(--wp--preset--color--ink);
	--ink-soft:   var(--wp--preset--color--ink-soft);
	--ink-mute:   var(--wp--preset--color--ink-mute);
	--sage:       var(--wp--preset--color--sage);
	--sage-deep:  var(--wp--preset--color--sage-deep);
	--moss:       var(--wp--preset--color--moss);
	--cream:      var(--wp--preset--color--cream);
	--bone:       var(--wp--preset--color--bone);
	--ivory:      var(--wp--preset--color--ivory);
	--terracotta: var(--wp--preset--color--terracotta);
	--turmeric:   var(--wp--preset--color--turmeric);
	--lime:       var(--wp--preset--color--lime);
	--white:      var(--wp--preset--color--white);

	--font-display: var(--wp--preset--font-family--display);
	--font-brand:   var(--wp--preset--font-family--brand);
	--font-body:    var(--wp--preset--font-family--body);
	--font-mono:    var(--wp--preset--font-family--mono);

	--radius-sm:   8px;
	--radius:      14px;
	--radius-lg:   22px;
	--radius-pill: 999px;

	--shadow-soft: 0 1px 2px rgba(31, 42, 20, 0.06), 0 4px 12px rgba(31, 42, 20, 0.08);
	--shadow-lift: 0 6px 24px rgba(31, 42, 20, 0.12);

	--ease:    cubic-bezier(0.22, 1, 0.36, 1);
	--ease-io: cubic-bezier(0.65, 0, 0.35, 1);

	--container-w: 1200px;
	--container-px: clamp(1rem, 4vw, 2.5rem);
}

/* ---------- Self-hosted fonts -----------
   Brand fonts (peeboo-child legacy, kept):
     Clash Display, DM Serif Display
   Editorial fonts (cinematic plugins, formerly via Google Fonts CDN):
     Fraunces, Bricolage Grotesque, JetBrains Mono — now self-hosted
   All 9 files total ~248KB; preload list in inc/perf.php ships only the
   above-the-fold subset (Clash 500/600/700 + DM Serif 400 + Fraunces).
---------------------------------------------- */

/* Clash Display — fixed weights */
@font-face {
	font-family: 'Clash Display';
	src: url('../fonts/clash-display-500.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Clash Display';
	src: url('../fonts/clash-display-600.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Clash Display';
	src: url('../fonts/clash-display-700.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* DM Serif Display — fixed weight, two unicode subsets */
@font-face {
	font-family: 'DM Serif Display';
	src: url('../fonts/dm-serif-display-400-latin.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'DM Serif Display';
	src: url('../fonts/dm-serif-display-400-latin-ext.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Fraunces — variable axis, latin only */
@font-face {
	font-family: 'Fraunces';
	src: url('../fonts/fraunces-variable.woff2') format('woff2-variations');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Fraunces';
	src: url('../fonts/fraunces-variable-italic.woff2') format('woff2-variations');
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Bricolage Grotesque — variable axis, latin only */
@font-face {
	font-family: 'Bricolage Grotesque';
	src: url('../fonts/bricolage-grotesque-variable.woff2') format('woff2-variations');
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono — variable axis, latin only */
@font-face {
	font-family: 'JetBrains Mono';
	src: url('../fonts/jetbrains-mono-variable.woff2') format('woff2-variations');
	font-weight: 100 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Modern minimal reset ----------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

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

body {
	margin: 0;
	min-height: 100dvh;
	background: var(--bone);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--wp--preset--font-size--md);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

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

a {
	color: var(--moss);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;

	&:hover, &:focus-visible {
		color: var(--terracotta);
	}
}

button {
	font: inherit;
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid var(--sage);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Visually-hidden helper, accessible to screen readers */
.screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	background: var(--ink);
	color: var(--cream);
	padding: 0.75rem 1rem;
	border-radius: var(--radius-sm);
	font-weight: 600;
	z-index: 9999;
	transition: top 0.15s var(--ease);

	&:focus {
		top: 1rem;
	}
}

/* ---------- Headings ----------- */
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em 0;
	color: var(--ink);
	letter-spacing: -0.015em;
}

h1 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: var(--wp--preset--font-size--3xl);
	line-height: 1.05;
	letter-spacing: -0.025em;
}
h2 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: var(--wp--preset--font-size--2xl);
	line-height: 1.1;
	letter-spacing: -0.02em;
}
h3 {
	font-family: var(--font-brand);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--xl);
	line-height: 1.15;
}
h4, h5, h6 {
	font-family: var(--font-brand);
	font-weight: 600;
}

p { margin: 0 0 1em 0; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout primitives ----------- */
.site-main {
	max-width: var(--container-w);
	margin: 0 auto;
	padding: 0 var(--container-px);
	min-height: 60vh;
}

/* Full-bleed contexts: front-page, monthly-box, our-story render
   plugin shortcodes that own their own widths and section backgrounds.
   Strip the container constraint so dcx-shell / doggos-sub-* / our-story
   sections can stretch edge-to-edge as designed. */
.site-main--front,
.site-main--monthly-box,
.site-main--our-story {
	max-width: none;
	padding: 0;
}

/* ---------- Header ----------- */
.site-header {
	background: var(--bone);
	border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-header__inner {
	max-width: var(--container-w);
	margin: 0 auto;
	padding: 1rem var(--container-px);
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1.5rem;
}

.site-header__brand img,
.site-header__brand .custom-logo {
	max-height: 48px;
	width: auto;
}

.site-header__title {
	font-family: var(--font-display);
	font-size: var(--wp--preset--font-size--xl);
	color: var(--ink);
	text-decoration: none;

	&:hover { color: var(--moss); }
}

.site-header__nav .menu {
	display: flex;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;

	a {
		color: var(--ink);
		font-family: var(--font-brand);
		font-weight: 600;
		font-size: 0.95rem;
		text-decoration: none;
		padding: 0.5rem 0;
		position: relative;

		&:hover, &:focus-visible {
			color: var(--moss);
		}
	}
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.site-header__menu-toggle {
	background: transparent;
	border: 0;
	width: 44px;
	height: 44px;
	display: none;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-sm);

	&:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
}

.site-header__menu-icon,
.site-header__menu-icon::before,
.site-header__menu-icon::after {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--ink);
	border-radius: 2px;
	position: relative;
}
.site-header__menu-icon::before,
.site-header__menu-icon::after {
	content: '';
	position: absolute;
	left: 0;
}
.site-header__menu-icon::before { top: -7px; }
.site-header__menu-icon::after  { top: 7px; }

@media (max-width: 768px) {
	.site-header__nav { display: none; }
	.site-header__menu-toggle { display: inline-flex; }
}

/* ---------- Mobile menu (native <dialog>) ----------- */
.mobile-menu {
	border: 0;
	padding: 0;
	max-width: 100vw;
	max-height: 100dvh;
	width: min(420px, 100vw);
	height: 100dvh;
	margin: 0;
	margin-left: auto;
	background: var(--bone);
	color: var(--ink);

	&::backdrop {
		background: color-mix(in srgb, var(--ink) 60%, transparent);
		backdrop-filter: blur(4px);
	}

	.menu {
		list-style: none;
		margin: 4rem 0 0 0;
		padding: 0 1.5rem;
		display: flex;
		flex-direction: column;
		gap: 0.5rem;

		a {
			display: block;
			padding: 1rem 0.5rem;
			font-family: var(--font-brand);
			font-size: 1.125rem;
			font-weight: 600;
			color: var(--ink);
			text-decoration: none;
			border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);

			&:hover, &:focus-visible {
				color: var(--moss);
				background: color-mix(in srgb, var(--sage) 12%, transparent);
				border-radius: var(--radius-sm);
				padding-left: 1rem;
			}
		}
	}
}

.mobile-menu__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: transparent;
	border: 0;
	font-size: 2rem;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ink);
	border-radius: var(--radius-sm);

	&:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
}

/* ---------- Buttons ----------- */
.button,
button.button,
input[type="submit"].button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.875rem 1.75rem;
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	font-family: var(--font-brand);
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease);

	&:hover { transform: translateY(-1px); }
	&:active { transform: translateY(0); }
}

.button--primary {
	background: var(--moss);
	color: var(--cream);

	&:hover { background: var(--ink); color: var(--cream); }
}
.button--secondary {
	background: var(--sage);
	color: var(--ink);

	&:hover { background: var(--sage-deep); }
}
.button--ghost {
	background: transparent;
	color: var(--ink);
	border-color: color-mix(in srgb, var(--ink) 20%, transparent);

	&:hover {
		background: color-mix(in srgb, var(--ink) 5%, transparent);
		border-color: var(--ink);
	}
}

/* ---------- Footer ----------- */
.site-footer {
	margin-top: 6rem;
	background: var(--ink);
	color: var(--cream);
	padding: 4rem 0 2rem;
}

.site-footer__inner {
	max-width: var(--container-w);
	margin: 0 auto;
	padding: 0 var(--container-px);
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;

	@media (min-width: 768px) {
		grid-template-columns: 1fr auto 1fr;
		align-items: start;
	}
}

.site-footer__tagline {
	font-family: var(--font-display);
	font-size: var(--wp--preset--font-size--lg);
	color: color-mix(in srgb, var(--cream) 85%, transparent);
	max-width: 28ch;
}

.site-footer__nav .menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.625rem;

	a {
		color: color-mix(in srgb, var(--cream) 80%, transparent);
		text-decoration: none;
		font-family: var(--font-brand);
		font-size: 0.95rem;

		&:hover, &:focus-visible { color: var(--cream); }
	}
}

.site-footer__legal {
	font-size: 0.8125rem;
	color: color-mix(in srgb, var(--cream) 60%, transparent);

	@media (min-width: 768px) {
		text-align: right;
	}
}

/* ---------- Page article (page.php) ----------- */
.page-article {
	padding: 2.5rem 0 4rem;
}
.page-article__title {
	margin-bottom: 2rem;
}
.page-article__content {
	font-size: var(--wp--preset--font-size--md);
	line-height: 1.7;
	max-width: 64ch;
}

/* ---------- Single post (single.php) ----------- */
.post-article {
	padding: 2.5rem 0 4rem;
	max-width: 720px;
	margin: 0 auto;
}
.post-article__meta {
	color: var(--ink-mute);
	font-size: 0.875rem;
	font-family: var(--font-mono);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.post-article__hero {
	margin: 2rem -1rem;
	border-radius: var(--radius-lg);
	overflow: hidden;

	img {
		width: 100%;
		height: auto;
		object-fit: cover;
	}
}
.post-article__content {
	font-size: 1.0625rem;
	line-height: 1.7;
}

/* ---------- Archive (archive.php) ----------- */
.archive-header {
	padding: 3rem 0 2rem;
	text-align: center;
}
.archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 2rem;
	padding-bottom: 4rem;
}
.archive-card {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;

	&__media {
		display: block;
		border-radius: var(--radius);
		overflow: hidden;
		aspect-ratio: 4 / 3;

		img {
			width: 100%;
			height: 100%;
			object-fit: cover;
			transition: transform 0.4s var(--ease);
		}

		&:hover img { transform: scale(1.04); }
	}

	&__title {
		margin: 0;

		a {
			color: var(--ink);
			text-decoration: none;

			&:hover { color: var(--moss); }
		}
	}

	&__excerpt {
		color: var(--ink-soft);
		font-size: 0.9375rem;
		line-height: 1.55;
	}
}

/* ---------- 404 ----------- */
.not-found {
	text-align: center;
	padding: 6rem 1rem;
	max-width: 540px;
	margin: 0 auto;

	&__kicker {
		font-family: var(--font-mono);
		font-size: 0.875rem;
		color: var(--terracotta);
		letter-spacing: 0.2em;
		text-transform: uppercase;
		margin-bottom: 1rem;
	}
	&__title {
		font-family: var(--font-display);
		margin-bottom: 1rem;
	}
	&__body {
		color: var(--ink-soft);
		margin-bottom: 2rem;
	}
	&__actions {
		display: flex;
		flex-direction: column;
		gap: 1rem;
		align-items: center;

		.search-form { width: 100%; max-width: 360px; }
	}
}

/* ---------- Search form ----------- */
.search-form {
	display: flex;
	gap: 0.5rem;

	&__input {
		flex: 1;
		padding: 0.75rem 1rem;
		border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
		border-radius: var(--radius-pill);
		font: inherit;
		background: var(--white);
		color: var(--ink);

		&:focus {
			outline: 2px solid var(--sage);
			outline-offset: 2px;
			border-color: var(--sage-deep);
		}
	}
	&__submit {
		padding: 0.75rem 1.5rem;
		background: var(--moss);
		color: var(--cream);
		border: 0;
		border-radius: var(--radius-pill);
		font-family: var(--font-brand);
		font-weight: 600;

		&:hover { background: var(--ink); }
	}
}

.search-results {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	padding: 2rem 0;
}
.search-result {
	padding: 1.25rem;
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);

	&__title { margin: 0 0 0.5rem; }
	&__title a { color: var(--ink); text-decoration: none; }
	&__title a:hover { color: var(--moss); }
	&__excerpt { color: var(--ink-soft); margin: 0 0 0.5rem; }
	&__meta {
		font-family: var(--font-mono);
		font-size: 0.75rem;
		color: var(--ink-mute);
		letter-spacing: 0.1em;
		text-transform: uppercase;
		margin: 0;
	}
}

/* ==========================================================================
   WooCommerce — shop archive, product card, cart/checkout wrappers
   ========================================================================== */

/* ---------- Shop archive ----------- */
.shop-header {
	padding: 3rem 0 2rem;
	text-align: center;

	&__title {
		margin-bottom: 0.5rem;
	}
}

.shop-grid,
.products,
ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 2rem 1.5rem;
	padding: 1rem 0 4rem;
	margin: 0;
	list-style: none;
}
@media (min-width: 768px) {
	.shop-grid,
	.products,
	ul.products {
		gap: 3rem 2rem;
	}
}

/* ---------- Product card ----------- */
.product-card,
li.product {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	background: transparent;
	margin: 0 !important;
	padding: 0 !important;
	width: auto !important;

	&__media {
		display: block;
		border-radius: var(--radius);
		overflow: hidden;
		aspect-ratio: 1 / 1;
		background: color-mix(in srgb, var(--ink) 4%, var(--bone));

		img {
			width: 100%;
			height: 100%;
			object-fit: cover;
			transition: transform 0.4s var(--ease);
		}

		&:hover img { transform: scale(1.04); }

		&--placeholder {
			background:
				linear-gradient(135deg, color-mix(in srgb, var(--sage) 30%, transparent), color-mix(in srgb, var(--cream) 80%, transparent));
		}
	}

	&__body {
		display: flex;
		flex-direction: column;
		gap: 0.5rem;
		padding: 0 0.25rem;
	}

	&__title {
		margin: 0;
		font-family: var(--font-brand);
		font-weight: 600;
		font-size: 1rem;
		line-height: 1.3;

		a {
			color: var(--ink);
			text-decoration: none;

			&:hover { color: var(--moss); }
		}
	}

	.price,
	.woocommerce-Price-amount {
		font-family: var(--font-brand);
		font-weight: 600;
		color: var(--moss);
		font-size: 1rem;
	}

	del {
		color: var(--ink-mute);
		opacity: 0.7;
		margin-right: 0.25rem;
	}
	ins {
		text-decoration: none;
		color: var(--terracotta);
	}

	.star-rating {
		font-size: 0.75rem;
		opacity: 0.8;
	}

	&__atc,
	.button-modern {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 0.625rem 1.25rem;
		margin-top: 0.5rem;
		background: var(--ink);
		color: var(--cream);
		border-radius: var(--radius-pill);
		font-family: var(--font-brand);
		font-weight: 600;
		font-size: 0.875rem;
		text-decoration: none;
		text-align: center;
		transition: background 0.15s var(--ease), transform 0.15s var(--ease);

		&:hover {
			background: var(--moss);
			transform: translateY(-1px);
		}

		&.added { background: var(--sage-deep); color: var(--ink); }
		&.loading { opacity: 0.7; pointer-events: none; }
	}
}

/* Sale flash */
.onsale {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	background: var(--terracotta);
	color: var(--cream);
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0.25rem 0.625rem;
	border-radius: var(--radius-pill);
	z-index: 2;
}

/* ---------- Cart + checkout wrappers — fast-checkout owns the inner UI ----------- */
.thedoggos-cart-wrapper,
.thedoggos-checkout-wrapper {
	max-width: var(--container-w);
	margin: 0 auto;
	padding: 2rem var(--container-px) 4rem;
}

/* ---------- Single product fallback (non-cinematic SKUs) ----------- */
.woocommerce-product-gallery {
	margin-bottom: 2rem;
	border-radius: var(--radius);
	overflow: hidden;
}

.product_meta {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
	font-size: 0.875rem;
	color: var(--ink-mute);

	> span { display: block; margin-bottom: 0.25rem; }
}

.summary form.cart {
	margin: 1.5rem 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: stretch;

	.quantity {
		display: inline-flex;
		align-items: stretch;
		border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
		border-radius: var(--radius-pill);
		overflow: hidden;
		background: var(--white);

		input {
			width: 4rem;
			padding: 0.625rem 0.875rem;
			border: 0;
			background: transparent;
			text-align: center;
			font: inherit;
			font-weight: 600;

			&:focus { outline: none; }
		}
	}

	.single_add_to_cart_button {
		flex: 1;
		min-width: 200px;
		padding: 0.875rem 1.75rem;
		background: var(--ink);
		color: var(--cream);
		border: 0;
		border-radius: var(--radius-pill);
		font-family: var(--font-brand);
		font-weight: 600;
		font-size: 0.95rem;
		cursor: pointer;
		transition: background 0.15s var(--ease), transform 0.15s var(--ease);

		&:hover { background: var(--moss); transform: translateY(-1px); }
	}
}

/* WC notices — toned to brand */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	padding: 1rem 1.25rem;
	border-radius: var(--radius);
	margin: 1rem 0;
	font-size: 0.9375rem;
	border: 1px solid transparent;
}
.woocommerce-message { background: color-mix(in srgb, var(--sage) 22%, transparent); border-color: var(--sage-deep); color: var(--moss); }
.woocommerce-info    { background: color-mix(in srgb, var(--sage) 12%, transparent); color: var(--ink-soft); }
.woocommerce-error   { background: color-mix(in srgb, var(--terracotta) 12%, transparent); border-color: var(--terracotta); color: var(--rust-deep, var(--terracotta)); }

/* ---------- Result count + ordering ----------- */
.woocommerce-result-count {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--ink-mute);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0;
}
.woocommerce-ordering select {
	padding: 0.5rem 0.75rem;
	border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
	border-radius: var(--radius-pill);
	background: var(--white);
	font: inherit;
	font-size: 0.875rem;
}

.woocommerce-pagination {
	display: flex;
	justify-content: center;
	padding: 2rem 0 4rem;

	ul.page-numbers {
		display: flex;
		gap: 0.5rem;
		list-style: none;
		margin: 0;
		padding: 0;

		.page-numbers {
			display: inline-flex;
			align-items: center;
			justify-content: center;
			min-width: 2.25rem;
			height: 2.25rem;
			padding: 0 0.625rem;
			border-radius: var(--radius-pill);
			color: var(--ink);
			text-decoration: none;
			font-family: var(--font-brand);
			font-weight: 600;
			font-size: 0.875rem;

			&:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
			&.current { background: var(--ink); color: var(--cream); }
		}
	}
}

/* ---------- Instagram in-app browser fixes ----------- */
/* Triggered by inc/perf.php's UA detector adding .in-app-browser to <html> */
.in-app-browser {
	overflow-x: hidden;

	body { overflow-x: hidden; max-width: 100vw; }

	img, video, iframe { max-width: 100%; }
}
