/* ==========================================================================
   Snout & Sniff — main stylesheet
   Tokens → base → layout → components → sections → WooCommerce → utilities
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
	--ink: #1B2A41;
	--butter: #F6C445;
	--amp: #C48A00;
	--sky: #E6EEF6;
	--pink: #F9E2DA;
	--mint: #E3F1EA;
	--cream: #FDF1CF;
	--muted: #33435A;
	--muted-2: #4A5A70;
	--on-dark: #D4DCE6;
	--line: #E3E8EF;
	--line-2: #C9D3DF;
	--white: #FFFFFF;
	--danger: #B42318;
	--success: #1F7A4D;

	--font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
	--font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	--radius-pill: 999px;
	--radius-card: 24px;
	--radius-sm: 20px;
	--radius-lg: 28px;
	--radius-xl: 32px;

	--max: 1280px;
	--gutter: 24px;
	--space-section: clamp(56px, 8vw, 104px);
	--touch: 48px;
	--shadow: 0 1px 2px rgba(27, 42, 65, .06), 0 8px 24px rgba(27, 42, 65, .06);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--muted); }
:focus-visible { outline: 3px solid var(--butter); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
table { border-collapse: collapse; width: 100%; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; z-index: 1000; top: 8px; left: 8px; padding: 12px 20px; background: var(--butter); color: var(--ink); border-radius: var(--radius-pill); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.site-main { min-height: 50vh; padding-bottom: var(--space-section); }
.is-home .site-main { padding-bottom: 0; }
.section { padding-block: var(--space-section) 0; }
.section--tight { padding-top: clamp(40px, 6vw, 72px); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section__title { margin: 0; }

/* ---------- Buttons & inputs ---------- */
.btn,
.button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: var(--touch); padding: 0 26px;
	border: 2px solid var(--ink); border-radius: var(--radius-pill);
	background: var(--ink); color: var(--white);
	font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: transform .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.btn:hover, .button:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
	background: #263A57; border-color: #263A57; color: var(--white); transform: translateY(-1px);
}
.btn--butter { background: var(--butter); border-color: var(--butter); color: var(--ink); }
.btn--butter:hover { background: #F2B51E; border-color: #F2B51E; color: var(--ink); }
.btn--outline,
.woocommerce a.button.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover,
.woocommerce a.button.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--block { width: 100%; }
.woocommerce a.button.added::after { margin-left: 4px; }
.woocommerce a.button.loading { opacity: .6; }
.woocommerce a.added_to_cart { display: block; text-align: center; margin-top: 8px; font-weight: 700; font-size: .9rem; }
.woocommerce button.button:disabled, .woocommerce button.button.disabled, .woocommerce button.button:disabled[disabled] { opacity: .45; padding: 0 26px; color: var(--white); }
.woocommerce button.button.alt, .woocommerce a.button.alt, .woocommerce input.button.alt,
.woocommerce button.button.alt.disabled, .woocommerce button.button.alt:disabled, .woocommerce button.button.alt:disabled[disabled],
.woocommerce button.button.alt.disabled:hover, .woocommerce button.button.alt:disabled:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.woocommerce ul.products li.product .button, .woocommerce a.button.btn--outline { display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 16px; line-height: 1.2; }
.woocommerce button.button.alt:hover, .woocommerce a.button.alt:hover { background: #263A57; border-color: #263A57; }

.input,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input[type="number"], input[type="url"], select {
	min-height: var(--touch); width: 100%;
	padding: 10px 20px;
	border: 1.5px solid var(--line-2); border-radius: var(--radius-pill);
	background: var(--white); color: var(--ink);
	font-size: 1rem; line-height: 1.3;
	transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
textarea, .woocommerce form .form-row textarea {
	width: 100%; min-height: 140px; padding: 14px 20px;
	border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--white); font-size: 1rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(246, 196, 69, .55); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231B2A41' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
label { font-weight: 500; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; accent-color: var(--ink); vertical-align: middle; }

.pill-label {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 16px; margin: 0 0 20px;
	border-radius: var(--radius-pill); background: var(--white); color: var(--muted);
	font-size: .9rem; font-weight: 700; border: 1px solid var(--line-2);
}
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; min-height: 44px; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .15s var(--ease); }

/* ---------- Announcement & header ---------- */
.announcement { background: var(--ink); color: var(--white); text-align: center; font-size: .9rem; font-weight: 500; padding: 9px 0; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; min-height: 44px; }
.logo .nose-mark { width: 40px; height: auto; }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; }
.wordmark__amp { color: var(--amp); }
.wordmark--dark { color: var(--white); }
.wordmark--dark .wordmark__amp { color: var(--butter); }

.nav { flex: 1; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav__list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--radius-pill); text-decoration: none; font-weight: 500; color: var(--muted); }
.nav__list a:hover, .nav__list .current-menu-item > a, .nav__list .current-cat > a { background: var(--sky); color: var(--ink); }
.nav__search { display: none; }

.site-header__tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-search { width: 260px; flex: 0 1 260px; min-width: 150px; }
.search-field { position: relative; display: flex; align-items: center; }
.search-field .icon { position: absolute; left: 16px; color: var(--muted-2); pointer-events: none; }
.search-field input[type="search"] { padding-left: 46px; background: var(--sky); border-color: transparent; }
.search-field input[type="search"]:focus { background: var(--white); border-color: var(--ink); }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: var(--touch); height: var(--touch); border-radius: var(--radius-pill); border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--sky); color: var(--ink); }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--butter); color: var(--ink); font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center; }
.cart-count.is-empty { display: none; }
.nav-toggle { display: none; }
.nav-toggle__close { display: none; }

@media (max-width: 1320px) {
	.header-search { width: 200px; flex-basis: 200px; }
	.nav__list a { padding: 0 9px; }
	.site-header__inner { gap: 16px; }
}
@media (max-width: 1100px) {
	.site-header__inner { gap: 8px; min-height: 64px; }
	.nav-toggle { display: inline-flex; margin-left: -10px; }
	.header-search { display: none; }
	/* backdrop-filter makes the header the containing block of position:fixed children, which
	   squeezed the slide-out menu into the 64px header. Solid header on small screens instead. */
	.site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--white); }
	.wordmark { font-size: 1.25rem; }
	.logo .nose-mark { width: 34px; }
	.nav {
		position: fixed; inset: 0 0 0 0; top: var(--nav-top, 64px);
		background: var(--white); padding: 16px var(--gutter) 32px;
		transform: translateX(-100%); transition: transform .25s var(--ease);
		overflow-y: auto; z-index: 49; visibility: hidden;
	}
	.nav-open .nav { transform: none; visibility: visible; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: block; }
	.nav__list { flex-direction: column; gap: 2px; }
	.nav__list a { font-size: 1.2rem; font-family: var(--font-display); font-weight: 600; color: var(--ink); width: 100%; min-height: 52px; padding: 0 16px; }
	.nav__search { display: block; margin-top: 20px; }
	body.nav-open { overflow: hidden; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ---------- Hero ---------- */
.hero { background: var(--sky); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(32px, 5vw, 72px); padding-block: clamp(48px, 7vw, 96px); }
.hero__title { font-size: clamp(2.6rem, 6.2vw, 4.75rem); margin-bottom: 20px; }
.hero__text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34ch; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__media { display: flex; justify-content: center; }
.hero__blob {
	position: relative; width: min(100%, 560px); aspect-ratio: 1;
	background: var(--butter);
	border-radius: 62% 38% 55% 45% / 48% 58% 42% 52%;
	padding: 6%;
	display: grid; place-items: center;
}
.hero__photo { width: 100%; height: 100%; object-fit: cover; border-radius: 55% 45% 48% 52% / 52% 44% 56% 48%; }
.hero__placeholder { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 55% 45% 48% 52% / 52% 44% 56% 48%; background: rgba(255, 255, 255, .35); }
.hero__placeholder .nose-mark { width: 46%; }

@media (max-width: 767px) {
	.hero__inner { grid-template-columns: 1fr; padding-block: 40px 48px; }
	.hero__media { order: -1; }
	.hero__blob { width: min(82%, 360px); }
	.hero__actions .btn { flex: 1 1 auto; }
}

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.cat-card {
	position: relative; display: flex; flex-direction: column; gap: 8px;
	min-height: 260px; padding: 28px; border-radius: var(--radius-lg);
	text-decoration: none; color: var(--ink);
	transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.cat-card--pink { background: var(--pink); }
.cat-card--mint { background: var(--mint); }
.cat-card--cream { background: var(--cream); }
.cat-card--sky { background: var(--sky); }
.cat-card__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: rgba(255, 255, 255, .7); margin-bottom: auto; }
.cat-card__name { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1.1; margin-top: 32px; }
.cat-card__blurb { color: var(--muted); font-size: .98rem; padding-right: 48px; }
.cat-card__arrow { position: absolute; right: 22px; bottom: 22px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-pill); background: var(--ink); color: var(--white); transition: transform .2s var(--ease); }
.cat-card:hover .cat-card__arrow { transform: translateX(4px); }
@media (max-width: 1024px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr; } .cat-card { min-height: 200px; } }

/* ---------- Product grid & cards ---------- */
.woocommerce ul.products, .woocommerce-page ul.products, ul.products {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px;
	list-style: none; margin: 0 0 32px; padding: 0;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product, .woocommerce-page ul.products[class*="columns-"] li.product {
	width: auto; float: none; clear: none; margin: 0; padding: 0; display: flex; flex-direction: column;
}
.product-card__media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden; }
.product-card__media--pink { background: var(--pink); }
.product-card__media--mint { background: var(--mint); }
.product-card__media--cream { background: var(--cream); }
.product-card__media--sky { background: var(--sky); }
.woocommerce ul.products li.product .product-card__media img,
.product-card__media img { width: 100%; height: 100%; object-fit: cover; margin: 0; transition: transform .35s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.tag-pill { position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--white); color: var(--ink); font-size: .78rem; font-weight: 700; letter-spacing: .01em; }
.tag-pill--sale { background: var(--butter); }
.product-card__body { display: flex; flex-direction: column; flex: 1; padding-top: 14px; }
.product-card__cat { margin: 0 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.woocommerce ul.products li.product .product-card__title, .product-card__title { font-family: var(--font-body); font-size: 1.05rem; font-weight: 500; line-height: 1.35; margin: 0 0 6px; padding: 0; letter-spacing: 0; }
.product-card__title a { text-decoration: none; }
.product-card__title a:hover { text-decoration: underline; }
.woocommerce ul.products li.product .price, .product-card__price { color: var(--ink); font-weight: 700; font-size: 1.05rem; margin: 0 0 14px; }
.woocommerce ul.products li.product .price del { color: var(--muted-2); font-weight: 400; opacity: 1; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.product-card__action { margin-top: auto; }
.woocommerce ul.products li.product .button { margin-top: 0; }
@media (max-width: 1024px) { .woocommerce ul.products, ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .woocommerce ul.products, ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } .product-card__title { font-size: .98rem; } .woocommerce ul.products li.product .button { padding: 0 12px; font-size: .92rem; } }

/* ---------- Promise strip ---------- */
.promise { background: var(--ink); color: var(--on-dark); margin-top: var(--space-section); }
.promise__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-block: clamp(48px, 6vw, 72px); }
.promise__item .icon { color: var(--butter); margin-bottom: 16px; }
.promise__item h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 8px; }
.promise__item p { margin: 0; max-width: 34ch; }
@media (max-width: 767px) { .promise__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Newsletter ---------- */
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; background: var(--butter); border-radius: var(--radius-xl); padding: clamp(32px, 5vw, 56px); }
.newsletter__title { margin-bottom: 10px; }
.newsletter__copy p { margin: 0; color: var(--ink); max-width: 44ch; }
.newsletter__form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter__form .input { flex: 1 1 220px; border-color: transparent; }
.newsletter__form .btn { flex: 0 0 auto; }
.newsletter__msg { flex-basis: 100%; margin: 4px 0 0; font-weight: 700; }
.newsletter__msg--invalid, .newsletter__msg--error { color: var(--danger); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 767px) { .newsletter { grid-template-columns: 1fr; } .newsletter__form .btn { flex: 1 1 100%; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding-top: clamp(56px, 7vw, 88px); margin-top: var(--space-section); }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.site-footer__brand p { margin-top: 16px; max-width: 32ch; }
.site-footer__brand .logo { color: var(--white); }
.site-footer__title { font-family: var(--font-body); font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--butter); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 40px; }
.site-footer__bottom { border-top: 1px solid rgba(212, 220, 230, .2); margin-top: 48px; padding: 24px 0 32px; font-size: .9rem; }
.site-footer__bottom p { margin: 0; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* ---------- Generic pages, posts, search, 404 ---------- */
.page-head { padding-top: clamp(32px, 5vw, 64px); margin-bottom: 28px; }
.page-title { font-size: clamp(2rem, 4.4vw, 3.25rem); margin-bottom: 12px; }
.page-intro { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
.entry-content { font-size: 1.05rem; color: var(--muted); }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; color: var(--ink); }
.entry-content h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.entry-content a { color: var(--ink); font-weight: 500; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote { margin: 1.5em 0; padding: 20px 24px; background: var(--sky); border-radius: var(--radius-sm); color: var(--ink); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; border-radius: var(--radius-card); background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.post-card__link:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: var(--ink); }
.post-card__media { aspect-ratio: 16 / 10; background: var(--cream); display: grid; place-items: center; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 22px 24px 26px; }
.post-card__meta { font-size: .85rem; color: var(--muted-2); margin: 0 0 6px; font-weight: 500; }
.post-card__title { font-size: 1.3rem; margin-bottom: 8px; }
.post-card__excerpt { color: var(--muted); margin: 0; font-size: .98rem; }
.post-hero img { border-radius: var(--radius-card); margin-bottom: 32px; width: 100%; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

.empty-state { background: var(--sky); border-radius: var(--radius-card); padding: 40px 28px; text-align: center; color: var(--muted); font-weight: 500; }
.empty-state p { margin: 0; }
.page-search { max-width: 520px; margin-top: 16px; }
.search-results { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.search-result a { display: flex; gap: 16px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line); text-decoration: none; min-height: 56px; }
.search-result a:hover { background: var(--sky); }
.search-result__type { flex: 0 0 auto; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--cream); font-size: .8rem; font-weight: 700; }
.search-result__title { font-weight: 500; font-size: 1.1rem; }

.not-found { text-align: center; padding: clamp(48px, 8vw, 96px) 0 0; display: flex; flex-direction: column; align-items: center; }
.not-found .nose-mark { margin-bottom: 24px; }
.not-found .page-intro { margin-inline: auto; }
.not-found__search { width: min(100%, 460px); margin: 8px 0 24px; }
.not-found .hero__actions { justify-content: center; }

.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-2); text-decoration: none; font-weight: 700; }
.nav-links .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Contact form (snout-core shortcode) */
.contact-form { display: grid; gap: 18px; margin-top: 24px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: block; margin-bottom: 6px; color: var(--ink); }
.contact-form .btn { justify-self: start; }
.form-notice { padding: 14px 20px; border-radius: var(--radius-sm); font-weight: 500; }
.form-notice--ok { background: var(--mint); color: var(--success); }
.form-notice--err { background: var(--pink); color: var(--danger); }
@media (max-width: 600px) { .contact-form__row { grid-template-columns: 1fr; } }

/* ==========================================================================
   WooCommerce
   ========================================================================== */
.shop-main .page-title, .woocommerce-products-header__title { font-size: clamp(2rem, 4.4vw, 3.25rem); margin: 8px 0 12px; }
.woocommerce-products-header { margin-bottom: 8px; }
.term-description { color: var(--muted); max-width: 60ch; font-size: 1.05rem; }
.breadcrumb, .woocommerce .woocommerce-breadcrumb { padding-top: 28px; margin: 0 0 20px; font-size: .9rem; color: var(--muted-2); }
.breadcrumb a, .woocommerce .woocommerce-breadcrumb a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.breadcrumb a:hover { text-decoration: underline; color: var(--ink); }
.breadcrumb__sep { margin: 0 8px; color: var(--line-2); }
.woocommerce .woocommerce-result-count { color: var(--muted-2); font-size: .95rem; margin: 10px 0 24px; }
.woocommerce .woocommerce-ordering { margin: 0 0 24px; }
.woocommerce .woocommerce-ordering select { min-width: 220px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: flex; gap: 8px; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: var(--radius-pill); border: 1.5px solid var(--line-2); font-weight: 700; padding: 0 12px; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.woocommerce-info, .woocommerce-message, .woocommerce-error, .woocommerce-noreviews, p.no-comments {
	border: 0; border-radius: var(--radius-sm); background: var(--sky); color: var(--ink);
	padding: 16px 20px 16px 52px; margin: 0 0 24px; list-style: none; font-weight: 500;
}
.woocommerce-message { background: var(--mint); }
.woocommerce-error { background: var(--pink); }
.woocommerce-info::before, .woocommerce-message::before, .woocommerce-error::before { top: 16px; left: 20px; color: var(--ink); }
.woocommerce-message .button, .woocommerce-info .button { float: right; min-height: 40px; padding: 0 18px; margin-left: 12px; }
.woocommerce-store-notice, p.demo_store { background: var(--ink); }

/* Single product */
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto; float: none; margin: 0; }
.woocommerce div.product div.images.woocommerce-product-gallery { position: sticky; top: 100px; }
.woocommerce div.product div.images .flex-viewport, .woocommerce div.product div.images > .woocommerce-product-gallery__wrapper { border-radius: var(--radius-card); overflow: hidden; }
.woocommerce div.product div.images .woocommerce-product-gallery__image img { border-radius: 0; }
/* Every main photo in the same square frame (tall size charts no longer stretch the gallery). */
.woocommerce div.product div.images .woocommerce-product-gallery__image > a { display: block; aspect-ratio: 1; background: var(--white); }
.woocommerce div.product div.images .woocommerce-product-gallery__image > a img { width: 100%; height: 100%; object-fit: contain; }
.woocommerce .related.products, .woocommerce .upsells.products { clear: both; margin-top: clamp(40px, 6vw, 72px); }
.woocommerce div.product div.images img { border-radius: var(--radius-card); }
.woocommerce div.product div.images .flex-control-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 36px) / 4); gap: 12px; margin-top: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 4px; }
.woocommerce div.product div.images .flex-control-thumbs li { scroll-snap-align: start; }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto; float: none; margin: 0; }
.woocommerce div.product div.images .flex-control-thumbs li img { border-radius: 14px; opacity: .6; aspect-ratio: 1; object-fit: cover; transition: opacity .15s var(--ease); }
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active, .woocommerce div.product div.images .flex-control-thumbs li img:hover { opacity: 1; outline: 2px solid var(--ink); outline-offset: -2px; }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { top: 16px; right: 16px; background: var(--white); width: 44px; height: 44px; }
.woocommerce div.product .product_title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 12px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-size: 1.6rem; font-weight: 700; margin-bottom: 16px; }
.woocommerce div.product p.price del { color: var(--muted-2); font-weight: 400; font-size: 1.2rem; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce-product-details__short-description { color: var(--muted); font-size: 1.05rem; }
.woocommerce .woocommerce-product-rating { margin-bottom: 12px; }
.woocommerce .star-rating span::before, .woocommerce .star-rating::before { color: var(--amp); }

/* Variations as pills */
.woocommerce div.product form.cart .variations { margin-bottom: 8px; border: 0; }
.woocommerce div.product form.cart .variations tr { display: block; margin-bottom: 18px; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { display: block; padding: 0; text-align: left; line-height: 1.4; }
.woocommerce div.product form.cart .variations th label { font-weight: 700; margin-bottom: 8px; display: block; }
.variation-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.variation-pill { min-height: 44px; min-width: 52px; padding: 0 18px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-2); background: var(--white); color: var(--ink); font-weight: 500; cursor: pointer; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.variation-pill:hover { border-color: var(--ink); }
.variation-pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.variation-pill[disabled] { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.woocommerce div.product form.cart .variations td.has-pills { position: relative; }
.woocommerce div.product form.cart .variations .has-pills select { position: absolute !important; left: 0; top: 0; width: 1px !important; min-width: 0 !important; height: 1px; min-height: 0; padding: 0; margin: 0; border: 0; opacity: 0; pointer-events: none; overflow: hidden; clip-path: inset(50%); }
.woocommerce div.product form.cart .reset_variations { display: inline-block; margin-top: 4px; font-size: .9rem; }
.woocommerce div.product form.cart .single_variation_wrap .woocommerce-variation-price { margin-bottom: 12px; }

/* Quantity stepper + add to cart */
.woocommerce div.product form.cart { margin-bottom: 20px; }
.woocommerce div.product form.cart:not(.variations_form), .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.woocommerce div.product form.cart div.quantity, .woocommerce .quantity { display: inline-flex; align-items: center; float: none; margin: 0; border: 1.5px solid var(--line-2); border-radius: var(--radius-pill); height: var(--touch); padding: 0 4px; background: var(--white); }
.woocommerce .quantity .qty { width: 44px; min-height: 0; height: 40px; border: 0; padding: 0; text-align: center; background: transparent; -moz-appearance: textfield; font-weight: 700; }
.woocommerce .quantity .qty::-webkit-outer-spin-button, .woocommerce .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.woocommerce .quantity .qty:focus { box-shadow: none; }
.qty-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-pill); border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.qty-btn:hover { background: var(--sky); }
.woocommerce div.product form.cart .button.single_add_to_cart_button { flex: 1 1 220px; float: none; min-height: 56px; font-size: 1.05rem; }
.woocommerce div.product form.cart .single_variation_wrap { flex-basis: 100%; }

.info-box { display: flex; gap: 14px; align-items: flex-start; background: var(--sky); border-radius: var(--radius-sm); padding: 18px 20px; margin: 8px 0 24px; }
.info-box .icon { flex-shrink: 0; margin-top: 2px; }
.info-box p { margin: 0; color: var(--ink); }
.info-box__small { color: var(--muted) !important; font-size: .93rem; margin-top: 4px !important; }

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; min-height: 60px; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { transition: transform .2s var(--ease); }
.accordion details[open] summary .icon { transform: rotate(180deg); }
.accordion__body { padding: 0 0 20px; color: var(--muted); }
.accordion__body table.shop_attributes { border: 0; margin: 0; }
.accordion__body table.shop_attributes th, .accordion__body table.shop_attributes td { border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; background: none !important; font-style: normal; text-align: left; }
.accordion__body table.shop_attributes th { width: 40%; color: var(--ink); font-weight: 700; }
.accordion__body table.shop_attributes td p { margin: 0; padding: 0; }

.woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; margin-top: var(--space-section); }
.woocommerce div.product .related > h2, .woocommerce div.product .upsells > h2 { margin-bottom: 24px; }
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; }
.woocommerce #reviews { grid-column: 1 / -1; }
.woocommerce span.onsale { display: none; }

@media (max-width: 900px) {
	.woocommerce div.product { grid-template-columns: 1fr; }
	.woocommerce div.product div.images.woocommerce-product-gallery { position: relative; top: 0; }
}

/* Cart */
.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: var(--radius-sm); border-collapse: separate; overflow: hidden; }
.woocommerce table.shop_table th { font-weight: 700; background: var(--sky); padding: 14px 16px; }
.woocommerce table.shop_table td { border-top: 1px solid var(--line); padding: 16px; }
.woocommerce table.cart img { width: 72px; border-radius: 14px; }
.woocommerce a.remove { color: var(--muted) !important; width: 32px; height: 32px; line-height: 30px; font-size: 1.4rem; border: 1.5px solid var(--line-2); }
.woocommerce a.remove:hover { background: var(--pink); color: var(--danger) !important; }
.woocommerce table.cart td.actions .coupon .input-text { width: 200px; margin-right: 8px; padding: 10px 20px; border: 1.5px solid var(--line-2); }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals { width: min(100%, 460px); }
.woocommerce .cart_totals h2 { font-size: 1.6rem; }
.woocommerce .wc-proceed-to-checkout a.checkout-button { font-size: 1.1rem; min-height: 56px; margin-bottom: 0; }
@media (max-width: 767px) {
	.woocommerce table.shop_table_responsive tr td::before { font-weight: 700; }
	.woocommerce table.cart td.actions .coupon .input-text { width: 100%; margin: 0 0 8px; }
	.woocommerce table.cart td.actions .coupon .button, .woocommerce table.cart td.actions > .button { width: 100%; }
}

/* Checkout */
.woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { width: 100%; float: none; }
.woocommerce form.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 48px; align-items: start; }
.woocommerce form.checkout > .col2-set { grid-column: 1; grid-row: 1 / span 2; }
.woocommerce form.checkout > #order_review_heading { grid-column: 2; grid-row: 1; margin: 0 0 12px; font-size: 1.6rem; }
.woocommerce form.checkout > #order_review { grid-column: 2; grid-row: 2; align-self: start; background: var(--sky); border-radius: var(--radius-card); padding: 24px; position: sticky; top: 100px; }
.woocommerce-checkout h3 { font-size: 1.5rem; margin-top: 8px; }
.woocommerce form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
.woocommerce form .form-row { padding: 0; margin: 0 0 16px; }
.woocommerce form .form-row label { font-weight: 500; margin-bottom: 6px; display: block; }
.woocommerce form .form-row .required { color: var(--danger); text-decoration: none; }
.woocommerce-checkout #payment { background: var(--white); border-radius: var(--radius-sm); }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid var(--line); padding: 16px 20px; }
.woocommerce-checkout #payment div.payment_box { background: var(--sky); border-radius: 14px; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--sky); }
.woocommerce-checkout #payment div.form-row { padding: 20px; }
.woocommerce #payment #place_order { width: 100%; min-height: 56px; font-size: 1.1rem; float: none; }
.woocommerce-checkout #order_review table.shop_table { background: var(--white); }
.select2-container--default .select2-selection--single { min-height: var(--touch); border: 1.5px solid var(--line-2); border-radius: var(--radius-pill); display: flex; align-items: center; padding: 0 12px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; right: 12px; }
.select2-dropdown { border-color: var(--line-2); border-radius: 16px; overflow: hidden; }
.snout-agreement { background: var(--cream); border-radius: var(--radius-sm); padding: 16px 18px; margin: 0 0 16px; }
.snout-agreement p { margin: 0 0 10px; color: var(--ink); font-size: .95rem; }
.snout-agreement label { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; cursor: pointer; }
.snout-agreement input { margin-top: 2px; flex-shrink: 0; }
@media (max-width: 900px) {
	.woocommerce form.checkout { grid-template-columns: 1fr; }
	.woocommerce form.checkout > #order_review_heading, .woocommerce form.checkout > #order_review { grid-column: 1; grid-row: auto; position: static; }
}

/* My account */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { width: auto; float: none; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.woocommerce-MyAccount-navigation a { display: flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: var(--radius-pill); text-decoration: none; font-weight: 500; color: var(--muted); }
.woocommerce-MyAccount-navigation a:hover { background: var(--sky); color: var(--ink); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: var(--white); }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; }
.woocommerce-account .u-columns.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.woocommerce-account .u-columns .u-column1, .woocommerce-account .u-columns .u-column2 { width: auto; float: none; }
.woocommerce form.login, .woocommerce form.register, .woocommerce form.lost_reset_password { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; margin: 0; }
.woocommerce-orders-table .button, .woocommerce table.my_account_orders .button { min-height: 40px; padding: 0 16px; margin: 2px 4px 2px 0; font-size: .9rem; }
.woocommerce table.my_account_orders .button.snout_cancel, .snout-cancel-btn { background: var(--white); color: var(--danger); border-color: var(--danger); }
.woocommerce table.my_account_orders .button.snout_cancel:hover, .snout-cancel-btn:hover { background: var(--danger); color: var(--white); border-color: var(--danger); }
.woocommerce-order-details, .woocommerce-customer-details { margin-top: 32px; }
.woocommerce ul.order_details { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; }
.woocommerce ul.order_details li { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; margin: 0; float: none; }
.woocommerce .woocommerce-customer-details address { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.snout-cancel-box { background: var(--cream); border-radius: var(--radius-sm); padding: 20px; margin: 24px 0; }
.snout-cancel-box p { margin: 0 0 12px; color: var(--ink); }
@media (max-width: 900px) {
	.woocommerce-account .woocommerce { grid-template-columns: 1fr; }
	.woocommerce-MyAccount-navigation ul { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
	.woocommerce-MyAccount-navigation a { white-space: nowrap; }
	.woocommerce-account .u-columns.col2-set { grid-template-columns: 1fr; }
}

/* Empty cart / no products */
.woocommerce .cart-empty, .woocommerce-info.woocommerce-no-products-found { text-align: center; }
.woocommerce .return-to-shop { text-align: center; }
.wc-block-components-notice-banner { border-radius: var(--radius-sm); }

/* ---------- Delivery promise & shipping badges ---------- */
.product-card__ship { display: flex; align-items: center; gap: 6px; margin: -8px 0 12px; font-size: .82rem; font-weight: 500; color: var(--muted-2); }
.product-card__ship.is-us { color: var(--success); }
.product-card__ship .icon { flex-shrink: 0; }
.ship-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; margin: 0 0 14px; border-radius: var(--radius-pill); background: var(--mint); color: var(--success); font-size: .85rem; font-weight: 700; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; margin: 0 12px 24px 0; border-radius: var(--radius-pill); border: 1.5px solid var(--line-2); text-decoration: none; font-weight: 500; font-size: .92rem; float: left; }
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.woocommerce .woocommerce-result-count { clear: none; }
.snout-delivery-notice { background: var(--mint) !important; }
.woocommerce td.product-name dl.variation, .woocommerce-checkout-review-order-table dl.variation { font-size: .85rem; color: var(--muted-2); margin: 6px 0 0; }
.woocommerce td.product-name dl.variation dt, .woocommerce-checkout-review-order-table dl.variation dt { font-weight: 700; }

/* ---------- PayPal buttons (checkout only) ---------- */
.woocommerce-checkout #payment .ppc-button-wrapper, .woocommerce-checkout #ppc-button-ppcp-gateway { margin-top: 16px; }
.wc-proceed-to-checkout .ppc-button-wrapper, .wc-proceed-to-checkout .ppcp-button-apm { margin-top: 14px; }
.ship-badge--cn { background: var(--cream); color: #6b4b00; }
@media (min-width: 961px) {
	.nav__list { flex-wrap: nowrap; }
	.nav__list a { white-space: nowrap; }
}
@media (min-width: 961px) and (max-width: 1240px) {
	.nav__list a { padding: 0 8px; font-size: .95rem; }
	.header-search { width: 180px; }
}

/* Category cards with a photo */
.cat-card.has-img { padding: 12px 12px 24px; min-height: 0; }
.cat-card__img { display: block; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; margin-bottom: 4px; }
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.cat-card.has-img:hover .cat-card__img img { transform: scale(1.04); }
.cat-card.has-img .cat-card__name { margin-top: 14px; padding: 0 12px; }
.cat-card.has-img .cat-card__blurb { padding: 0 60px 0 12px; }
.cat-card.has-img .cat-card__arrow { right: 18px; bottom: 20px; }

/* Product answers, specs table, 404 category chips */
.quick-answer { background: var(--sky); border-radius: 14px; padding: 14px 16px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line, #e3e8ef); }
.spec-table th { width: 38%; font-weight: 700; color: var(--ink); }
.snout-guide-link { font-weight: 600; }
.not-found__cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 24px; }
.chip { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--sky); color: var(--ink); font-weight: 600; text-decoration: none; }
.chip:hover, .chip:focus-visible { background: var(--butter); }

/* Speed: WooCommerce hides the whole gallery until its script runs (slow LCP on phones).
   Show the first photo at once; the other slides stay hidden until the slider wraps them. */
.woocommerce div.product div.images.woocommerce-product-gallery { opacity: 1 !important; }
.woocommerce-product-gallery > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:nth-child(n+2) { display: none; }
/* The gallery keeps one shape from first paint to after the slider starts, so the text below
   never jumps (CLS): square photo + a row of 4 square thumbnails ≈ 4:5. Single-photo galleries: square. */
.woocommerce div.product div.images.woocommerce-product-gallery { aspect-ratio: 1 / 1; overflow: hidden; } /* overflow:hidden makes the ratio strict */
.woocommerce div.product div.images.woocommerce-product-gallery:has(.woocommerce-product-gallery__image:nth-child(2)) { aspect-ratio: 4 / 5; }
.woocommerce div.product div.images .flex-control-thumbs { margin-top: 8px; padding-bottom: 0; } /* photo + thumbs = 1.25 × width, fits 4:5 */
/* Accessible contrast for the "choose options first" Add to cart state. */
.woocommerce button.button.alt.disabled, .woocommerce button.button.alt:disabled, .woocommerce button.button.alt:disabled[disabled],
.woocommerce button.button.alt.disabled:hover, .woocommerce button.button.alt:disabled:hover { background: #5B677A; border-color: #5B677A; color: var(--white); opacity: 1; }
