/*
Theme Name:   Crumby Pins (Kadence)
Theme URI:    https://crumbypins.com
Description:  Kadence child theme for Crumby Pins brand styling and the home page hero. Store behaviour lives in the Crumby Store Tweaks plugin. No WooCommerce template overrides, by design.
Author:       Jake Caputo
Author URI:   https://designcrumbs.com/
Template:     kadence
Version:      1.8.2
Requires at least: 6.6
Requires PHP: 8.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  crumbypins-kadence
*/

/*
 * Colours, container widths, header/footer layout, logo width, menu
 * colours, shop columns and page/archive layouts are set in the Customizer
 * (see SETUP.md and kadence-polish-settings.md), not here. This file only
 * covers what Kadence settings can't express cleanly.
 *
 * Since 1.1.0 this file also holds everything that used to live in
 * Customizer > Additional CSS, so that box can stay empty.
 *
 * Since 1.2.0 fonts are self-hosted (assets/fonts, SIL OFL 1.1, see OFL.txt)
 * and set in the Typography section below by overriding Kadence's font
 * custom properties. Customizer typography no longer picks the families.
 *
 * Since 1.3.0: category navigation, mobile popup menu and the home hero
 * (markup in inc/hero.php, rotation in assets/js/hero.js).
 *
 * Since 1.4.0: product cards and grids for every WooCommerce loop, and
 * the home page sections (content in build/home-content-phase3.html).
 *
 * Since 1.5.0: single product purchase box (style swatches in
 * assets/js/swatches.js, add-to-cart row, reassurance list in
 * inc/product.php); see the "Product page" section.
 *
 * Since 1.6.0: mobile shop filter drawer (assets/js/filters.js), checkout
 * polish and sticky total bar (assets/js/checkout.js), phone gallery
 * thumbnail strip (assets/js/gallery.js); see the sections at the end.
 * 1.6.1: drawer focus moves in reliably; checkout total bar comes back
 * after a shipping/insurance change (JS only).
 * 1.7.0: product cards are bordered "backing cards" (tile, rule, text,
 * CTA row); shop sidebar facets styled as ruled groups in a tint panel.
 * 1.7.1: FacetWP accessibility mode on (inc/shop.php); focus rings for
 * its focusable rows, expand toggles and "See more" links.
 * 1.7.2: desktop category nav drops underlines: hover/focus is a soft
 * pill, the current page a solid white pill; "Shop all" never shows as
 * current.
 * 1.7.3: nav pills no longer use negative margins on the links (items
 * wrapped onto two lines); links are nowrap, chevron sits inline.
 * 1.8.0: sold-out swatches keep the same height (tag straddles the top
 * edge); loop "Add to cart" is a small solid button, distinct from the
 * "Select options" link; list-view CSS removed (toggle off); header cart
 * is one translucent pill; My account layout, orders table, addresses and
 * logged-out login page (inc/account.php, "My account" sections at the end).
 * 1.8.1: "Why log in?" list flush with its heading; phone order cards keep
 * the total ("$12.12 for 1 item") as one right-aligned run.
 * 1.8.2: My account nav links are rounded links (6px) instead of pills,
 * at every screen size.
 */

:root {
	--crumby-purple: #7953ff;
	--crumby-purple-dark: #481fda; /* Kadence palette2 */
	/* Header gradient stops. Change the end stop here to darken the whole gradient. */
	--crumby-grad-start: var(--crumby-purple);
	--crumby-grad-end: #0088cc; /* was #0df (owner decision: darker end stop for white-text contrast) */
	--crumby-gradient: linear-gradient(to bottom right, var(--crumby-grad-start), var(--crumby-grad-end));
	--crumby-footer-bg: #006fd1;
	--crumby-footer-text: #d1d1d1;
	/* #717171 (Kadence palette5) = 4.9:1 on white; the lightest grey we use for text. */
	--crumby-muted-text: var(--global-palette5, #717171);
}

/* ------------------------------------------------------------------
 * Typography
 *
 * Self-hosted Bebas Neue (display) + Lato (text), latin subset WOFF2,
 * from the @fontsource packages (v5.3.0). Licence: assets/fonts/OFL.txt.
 * Bebas Neue and Lato 400 are preloaded in functions.php; keep those
 * file names in sync if a file here is renamed.
 *
 * Fonts are set by overriding Kadence's font custom properties (printed
 * on :root in the kadence-global inline CSS, which loads before this
 * file). Kadence applies them as:
 *   body, input, select, optgroup, textarea -> var(--global-body-font-family)
 *   h1-h6                                   -> var(--global-heading-font-family)
 *   buttons (global.min.css)                -> font-family: inherit
 *
 * Bebas Neue has one weight (400). Every rule that uses it sets
 * font-weight: 400 and font-synthesis: none so browsers never fake a bold.
 *
 * Sizes are fluid between a 390px phone and the 1240px container
 * (clamp(min, intercept + slope, max)), taken from the approved mockups.
 * ------------------------------------------------------------------ */
@font-face {
	font-family: "Bebas Neue";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/bebas-neue-latin-400-normal.woff2") format("woff2");
}

@font-face {
	font-family: Lato;
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/lato-latin-400-normal.woff2") format("woff2");
}

@font-face {
	font-family: Lato;
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/lato-latin-400-italic.woff2") format("woff2");
}

@font-face {
	font-family: Lato;
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/lato-latin-700-normal.woff2") format("woff2");
}

@font-face {
	font-family: Lato;
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url("assets/fonts/lato-latin-900-normal.woff2") format("woff2");
}

:root {
	/* Families. */
	--crumby-font-display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
	--crumby-font-text: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	/* Kadence overrides (Kadence prints these on :root from the Customizer). */
	--global-body-font-family: var(--crumby-font-text);
	--global-heading-font-family: var(--crumby-font-display);

	/* Display scale (Bebas Neue). Phone 390px -> desktop 1240px. */
	--crumby-fs-hero: clamp(3.25rem, 1.988rem + 5.176vw, 6rem);            /* 52 -> 96 */
	--crumby-fs-product-title: clamp(2.75rem, 1.603rem + 4.706vw, 5.25rem); /* 44 -> 84 */
	--crumby-fs-h1: clamp(2.5rem, 1.582rem + 3.765vw, 4.5rem);              /* 40 -> 72 */
	--crumby-fs-section: clamp(2.5rem, 1.812rem + 2.824vw, 4rem);           /* 40 -> 64 */
	--crumby-fs-section-sm: clamp(2.25rem, 1.676rem + 2.353vw, 3.5rem);     /* 36 -> 56 */
	--crumby-fs-h2: clamp(2rem, 1.541rem + 1.882vw, 3rem);                  /* 32 -> 48 */
	--crumby-fs-h3: clamp(1.625rem, 1.453rem + 0.706vw, 2rem);              /* 26 -> 32 */
	--crumby-fs-h4: clamp(1.375rem, 1.26rem + 0.471vw, 1.625rem);           /* 22 -> 26 */
	--crumby-fs-nav: 1.375rem;                                              /* 22 */
	--crumby-fs-button-display: 1.75rem;                                    /* 28, Bebas buttons (later phases) */

	--crumby-lh-hero: 0.9;
	--crumby-lh-display: 0.92;
	--crumby-lh-heading: 1;
	--crumby-lh-heading-sm: 1.1;

	--crumby-ls-hero: 0.01em;
	--crumby-ls-heading: 0.02em;
	--crumby-ls-heading-sm: 0.03em;
	--crumby-ls-nav: 0.04em;
	--crumby-ls-button: 0.05em;

	/* Text scale (Lato). */
	--crumby-fs-body: 1rem;        /* 16 */
	--crumby-fs-body-lg: 1.0625rem; /* 17, product description */
	--crumby-fs-small: 0.875rem;   /* 14, meta, breadcrumbs, captions */
	--crumby-fs-label: 0.8125rem;  /* 13, eyebrows, badges, card CTAs */
	--crumby-fs-cta: 0.875rem;     /* 14, "View all ->" links */
	--crumby-fs-card-title: 1rem;  /* 16 */
	--crumby-fs-price: 1.125rem;   /* 18, loops */
	--crumby-fs-price-lg: clamp(1.5rem, 1.328rem + 0.706vw, 1.875rem); /* 24 -> 30, single product */

	--crumby-lh-body: 1.6;
	--crumby-lh-body-lg: 1.65;
	--crumby-lh-card-title: 1.3;

	--crumby-ls-label: 0.14em;
	--crumby-ls-cta: 0.1em;
}

body {
	font-size: var(--crumby-fs-body);
	line-height: var(--crumby-lh-body);
}

/* Display headings: Bebas Neue. */
h1,
h2,
h3,
h4 {
	font-family: var(--global-heading-font-family);
	font-weight: 400;
	font-synthesis: none;
}

h1 {
	font-size: var(--crumby-fs-h1);
	line-height: var(--crumby-lh-heading);
	letter-spacing: var(--crumby-ls-hero);
}

h2 {
	font-size: var(--crumby-fs-h2);
	line-height: var(--crumby-lh-heading);
	letter-spacing: var(--crumby-ls-heading);
}

h3 {
	font-size: var(--crumby-fs-h3);
	line-height: var(--crumby-lh-heading-sm);
	letter-spacing: var(--crumby-ls-heading);
}

h4 {
	font-size: var(--crumby-fs-h4);
	line-height: var(--crumby-lh-heading-sm);
	letter-spacing: var(--crumby-ls-heading-sm);
}

/* Small headings: Lato label style (Bebas is unreadable this small). */
h5,
h6 {
	font-family: var(--global-body-font-family);
	font-weight: 900;
	line-height: 1.3;
	letter-spacing: var(--crumby-ls-cta);
	text-transform: uppercase;
}

h5 {
	font-size: var(--crumby-fs-small);
}

h6 {
	font-size: var(--crumby-fs-label);
}

/*
 * Page, archive and post titles. Selectors mirror Kadence's Customizer
 * output (page_title_font, product_archive_title_heading_font,
 * post_title_font, title_above_font) so these win on source order if
 * sizes are ever set there.
 */
.wp-site-blocks .page-title h1,
.wp-site-blocks .product-archive-title h1,
.wp-site-blocks .post-title h1,
.wp-site-blocks .entry-hero h1 {
	font-family: var(--global-heading-font-family);
	font-weight: 400;
	font-size: var(--crumby-fs-h1);
	line-height: var(--crumby-lh-heading);
	letter-spacing: var(--crumby-ls-hero);
}

/* Single product title (Kadence: product_title_font). */
.woocommerce div.product .product_title {
	font-family: var(--global-heading-font-family);
	font-weight: 400;
	font-synthesis: none;
	font-size: var(--crumby-fs-product-title);
	line-height: var(--crumby-lh-display);
	letter-spacing: var(--crumby-ls-hero);
}

/* "Related products" / "You may also like" section headings. */
.woocommerce .related.products > h2,
.woocommerce .up-sells.products > h2 {
	font-size: var(--crumby-fs-section-sm);
	line-height: var(--crumby-lh-heading);
}

/* Widget titles (shop sidebar, footer). Kadence: 20px / 1.5, uppercase. */
.widget-area .widget-title {
	font-family: var(--global-heading-font-family);
	font-weight: 400;
	font-synthesis: none;
	font-size: var(--crumby-fs-h4);
	line-height: var(--crumby-lh-heading-sm);
	letter-spacing: var(--crumby-ls-heading-sm);
}

/*
 * Product titles in loops stay Lato 700 16px / 1.3, as in the mockups
 * (they are <h2>, so they would otherwise pick up Bebas). Selector
 * mirrors Kadence's product_archive_title_font output.
 */
.woocommerce ul.products li.product .product-details .woocommerce-loop-product__title,
.woocommerce ul.products li.product .product-details .woocommerce-loop-category__title,
.wc-block-grid__products .wc-block-grid__product .wc-block-grid__product-title {
	font-family: var(--global-body-font-family);
	font-weight: 700;
	font-size: var(--crumby-fs-card-title);
	line-height: var(--crumby-lh-card-title);
	letter-spacing: normal;
}

/* Prices: Lato 900 (mockups). Selector mirrors product_archive_price_font. */
.woocommerce ul.products li.product .product-details .price,
.wc-block-grid__products .wc-block-grid__product .wc-block-grid__product-price {
	font-weight: 900;
	font-size: var(--crumby-fs-price);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	font-weight: 900;
	font-size: var(--crumby-fs-price-lg);
}

/* Kadence sets sale prices (ins) to 700; keep them at the price weight. */
.woocommerce ul.products li.product .price ins,
.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
	font-weight: inherit;
}

/* ------------------------------------------------------------------
 * Header: one continuous purple -> blue gradient behind all rows,
 * desktop and mobile (#mobile-header lives inside #masthead).
 * Leave the per-row background settings empty so this shows through.
 * ------------------------------------------------------------------ */
#masthead,
#masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start) > .site-header-row-container-inner {
	background-color: var(--crumby-grad-start);
	background-image: var(--crumby-gradient);
}

/* Inline product search ([crumby_product_search] in the header HTML element). */
.crumby-header-search .woocommerce-product-search {
	display: flex;
	width: min(50vw, 720px);
	max-width: 100%;
}

.crumby-header-search .search-field {
	flex: 1 1 auto;
	min-width: 0;
	background-color: #fff;
	border: 0;
	border-radius: 3px 0 0 3px;
}

.crumby-header-search button {
	border-radius: 0 3px 3px 0;
}

/*
 * Focus ring on the gradient: purple inner ring + white outer ring, so it
 * shows against both the purple and the cyan end of the header.
 */
.crumby-header-search .search-field:focus-visible,
.crumby-header-search button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
	box-shadow: 0 0 0 2px var(--crumby-purple-dark);
}

@media (max-width: 1024px) {
	.crumby-header-search .woocommerce-product-search {
		width: 100%;
	}
}

/*
 * Mobile header bottom row holds only the Mobile HTML item (the search).
 * Kadence lays the row out as a two-column auto grid (.site-header-row),
 * so the left section shrinks to its content. Give it the full row.
 */
#mobile-header .site-bottom-header-inner-wrap {
	grid-template-columns: minmax(0, 1fr) auto;
}

#mobile-header .site-bottom-header-inner-wrap .site-header-section-left,
#mobile-header .site-header-item[data-section="kadence_customizer_mobile_html"] {
	flex: 1 1 auto;
	min-width: 0;
	margin-right: 0;
}

#mobile-header .mobile-html,
#mobile-header .mobile-html-inner,
#mobile-header .crumby-header-search {
	width: 100%;
}

/* ------------------------------------------------------------------
 * Header: cart pill (since 1.8.0)
 *
 * Kadence 1.6.0 cart item, desktop (label on) and mobile (label off):
 *   div.header-cart-wrap | div.header-mobile-cart-wrap  (.kadence-header-cart)
 *     div.header-cart-inner-wrap.cart-style-link
 *       a.header-cart-button
 *         [span.header-cart-label "Cart"]
 *         span.kadence-svg-iconset > svg.kadence-shopping-cart-svg
 *         span.header-cart-total  (replaced by WooCommerce cart fragments)
 * The whole link becomes one translucent dark pill; the count is a bold
 * number in a faint white circle, 6px from the icon. #masthead beats
 * Kadence's Customizer CSS (.site-header-item .header-cart-wrap
 * .header-cart-inner-wrap .header-cart-button, 0,4,0).
 * White on the pill: >= 6:1 at both ends of the header gradient.
 * ------------------------------------------------------------------ */
#masthead .kadence-header-cart .header-cart-inner-wrap .header-cart-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 6px 12px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	background: rgba(0, 0, 0, 0.25);
	border-radius: 999px;
	transition: background-color 0.15s ease;
}

#masthead .kadence-header-cart .header-cart-inner-wrap .header-cart-button:hover {
	color: #fff;
	background: rgba(0, 0, 0, 0.35);
}

#masthead .kadence-header-cart .header-cart-inner-wrap .header-cart-button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

#masthead .kadence-header-cart .header-cart-button .header-cart-label {
	padding-right: 0; /* the flex gap spaces it */
}

#masthead .kadence-header-cart .header-cart-button .kadence-svg-iconset {
	display: flex;
	font-size: 1.25rem; /* 20px icon */
}

#masthead .kadence-header-cart .header-cart-button .header-cart-total,
#masthead .kadence-header-cart .header-cart-button:hover .header-cart-total {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: auto;
	min-width: 1.5rem;
	height: 1.5rem;
	margin: 0;
	padding: 0 6px;
	font-family: var(--crumby-font-text);
	font-weight: 900;
	font-size: 0.8125rem; /* 13 */
	font-variant-numeric: tabular-nums;
	line-height: 1;
	color: #fff;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 999px;
}

/* Phones and tablets: a 44px tap target. */
@media (max-width: 1024px) {
	#masthead .header-mobile-cart-wrap .header-cart-inner-wrap .header-cart-button {
		min-height: 44px;
		padding: 6px 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#masthead .kadence-header-cart .header-cart-inner-wrap .header-cart-button {
		transition: none;
	}
}

/* ------------------------------------------------------------------
 * Header: category navigation (desktop bottom row, primary location,
 * "Shop Categories" menu). Bebas Neue on the header gradient, a thin
 * divider above it, "Shop all ->" pushed to the right edge.
 *
 * Selectors start at #main-header so they beat Kadence's Customizer CSS
 * (.main-navigation .primary-menu-container > ul > li.menu-item > a and
 * .header-navigation .header-menu-container ul ul ...).
 * ------------------------------------------------------------------ */
:root {
	--crumby-ink: #1d1530;       /* hero background, dark text on orange */
	--crumby-orange: #ff8a2b;
	--crumby-orange-hover: #ffa04d;
	--crumby-lavender: #d9d2ff;  /* secondary text on --crumby-ink */
	--crumby-tint: #f4f1ff;      /* hover tint on white */
}

#main-header .site-bottom-header-wrap .site-header-row-container-inner {
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

/*
 * The bottom row is a two-column auto grid with the nav in the left
 * section, which shrinks to its content. Give the nav the whole row so
 * margin-left:auto on "Shop all" reaches the right edge.
 */
#main-header .site-bottom-header-inner-wrap {
	grid-template-columns: minmax(0, 1fr) auto;
}

#main-header .site-bottom-header-inner-wrap .site-header-section-left,
#main-header .site-bottom-header-inner-wrap .site-header-item[data-section="kadence_customizer_primary_navigation"],
#main-header #site-navigation,
#main-header #site-navigation .primary-menu-container {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	margin-right: 0;
}

/*
 * Links are pills with 10px side padding, so the gap drops to 8px to keep
 * the text 28px apart. The first item and "Shop all" pull out by 10px so
 * their text stays flush with the row edges. Items never shrink or wrap.
 */
#main-header #site-navigation .primary-menu-container > ul {
	justify-content: flex-start;
	gap: 0 8px;
}

#main-header .main-navigation .primary-menu-container > ul > li.menu-item {
	flex: 0 0 auto;
}

#main-header .main-navigation .primary-menu-container > ul > li.menu-item:first-child {
	margin-left: -10px;
}

/* Pill is ~36px tall (5px + 26.4px line + 5px); the 7px margins keep the row at its old ~50px. */
#main-header .main-navigation .primary-menu-container > ul > li.menu-item > a {
	display: inline-flex;
	align-items: center;
	margin: 7px 0;
	padding: 5px 10px;
	border-radius: 6px;
	white-space: nowrap;
	font-family: var(--crumby-font-display);
	font-weight: 400;
	font-synthesis: none;
	font-size: var(--crumby-fs-nav);
	line-height: 1.2;
	letter-spacing: var(--crumby-ls-nav);
	color: #fff;
	background: transparent;
	text-decoration: none;
	transition: background-color 150ms ease-out;
}

/* Kadence's "underline" nav style draws its bar with a::after; keep it off. */
#main-header .main-navigation .primary-menu-container > ul > li.menu-item:not(.menu-item-shop-all) > a::after {
	content: none;
}

/* Hover (pointer devices) and keyboard focus: soft white pill. */
@media (hover: hover) {
	#main-header .main-navigation .primary-menu-container > ul > li.menu-item > a:hover {
		color: #fff;
		background: rgba(255, 255, 255, 0.16);
		text-decoration: none;
	}
}

#main-header .main-navigation .primary-menu-container > ul > li.menu-item > a:focus-visible {
	color: #fff;
	background: rgba(255, 255, 255, 0.16);
	text-decoration: none;
}

/*
 * Current page / section: solid white pill, ink text (17:1). Covers the
 * classes WordPress, WooCommerce and Kadence's parent-active option use.
 * "Shop all" is excluded: it is a way out, not a place, so on /shop it
 * looks like any other item. The :not() also lifts specificity above the
 * hover/focus rules so the pill stays white under the pointer.
 */
#main-header .main-navigation .primary-menu-container > ul > li.menu-item:not(.menu-item-shop-all):is(
	.current-menu-item,
	.current_page_item,
	.current-menu-ancestor,
	.current-menu-parent,
	.current_page_parent,
	.current_page_ancestor,
	.current-page-parent,
	.current-page-ancestor,
	.current-product-ancestor,
	.current-product_cat-ancestor
) > a {
	color: var(--crumby-ink);
	background: #fff;
	text-decoration: none;
}

/*
 * Dropdown chevron: inline, 6px after the text, instead of Kadence's
 * absolute right:0 inside a padded block. It follows the text colour
 * (ink on the current pill).
 */
#main-header .main-navigation .primary-menu-container > ul > li.menu-item > a .nav-drop-title-wrap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding-right: 0;
}

#main-header .main-navigation .primary-menu-container > ul > li.menu-item > a .dropdown-nav-toggle {
	position: static;
	transform: none;
	color: inherit;
}

/* Kadence's invisible dropdown toggle button: line it up over the chevron, inside the link's 10px padding. */
#main-header .main-navigation .primary-menu-container > ul > li.menu-item .dropdown-nav-special-toggle {
	right: 10px;
}

#main-header .main-navigation .primary-menu-container > ul > li.menu-item-shop-all {
	margin-left: auto;
	margin-right: -10px;
}

/* The arrow is plain inline text inside the pill; reset anything Kadence's underline style puts on a::after. */
#main-header .main-navigation .primary-menu-container > ul > li.menu-item-shop-all > a::after {
	content: "\2192";
	content: "\2192" / "";
	position: static;
	width: auto;
	height: auto;
	margin-left: 0.3em;
	background: none;
	transform: none;
	transition: none;
}

@media (prefers-reduced-motion: reduce) {
	#main-header .main-navigation .primary-menu-container > ul > li.menu-item > a {
		transition: none;
	}
}

/* Keyboard focus on the gradient: same white + purple double ring as the header search. */
#main-header .header-navigation li.menu-item > a:focus-visible,
#main-header .header-navigation .dropdown-nav-special-toggle:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
	box-shadow: 0 0 0 2px var(--crumby-purple-dark);
}

/* Dropdown panel (Magnets & Patches): dark text on white, 16:1. */
#main-header .header-navigation .header-menu-container ul ul.sub-menu {
	padding: 6px 0;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 12px 28px rgba(29, 21, 48, 0.25);
}

#main-header .header-navigation .header-menu-container ul ul li.menu-item {
	border-bottom: 1px solid #eceaf2;
}

#main-header .header-navigation .header-menu-container ul ul li.menu-item > a {
	width: 220px;
	padding: 12px 18px;
	font-family: var(--crumby-font-display);
	font-weight: 400;
	font-synthesis: none;
	font-size: 1.25rem;
	line-height: 1.2;
	letter-spacing: var(--crumby-ls-nav);
	color: var(--crumby-ink);
	background: transparent;
	text-decoration: none;
}

/* Purple on the lavender tint: 7.5:1. */
#main-header .header-navigation .header-menu-container ul ul li.menu-item > a:hover,
#main-header .header-navigation .header-menu-container ul ul li.menu-item.current-menu-item > a {
	color: var(--crumby-purple-dark);
	background: var(--crumby-tint);
}

#main-header .header-navigation .header-menu-container ul ul li.menu-item > a:focus-visible {
	color: var(--crumby-purple-dark);
	background: var(--crumby-tint);
	outline: 2px solid var(--crumby-purple-dark);
	outline-offset: -4px;
	box-shadow: none;
}

/* ------------------------------------------------------------------
 * Mobile popup menu (#mobile-drawer, mobile location, "Mobile Menu").
 * Deep purple panel, Bebas Neue, 48px+ tap targets. The drawer lives
 * outside #masthead, so it gets its own background here.
 * ------------------------------------------------------------------ */
#mobile-drawer .drawer-inner {
	background: var(--crumby-ink);
	color: #fff;
}

#mobile-site-navigation ul li {
	font-size: inherit;
}

#mobile-site-navigation ul li > a,
#mobile-site-navigation ul li.menu-item-has-children > .drawer-nav-drop-wrap {
	color: #fff;
}

#mobile-site-navigation ul li a {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 10px 4px;
	font-family: var(--crumby-font-display);
	font-weight: 400;
	font-synthesis: none;
	font-size: 1.625rem; /* 26 */
	line-height: 1.1;
	letter-spacing: var(--crumby-ls-nav);
	text-decoration: none;
}

#mobile-site-navigation ul ul li a {
	min-height: 48px;
	font-size: 1.375rem; /* 22 */
	color: var(--crumby-lavender);
}

#mobile-site-navigation ul li.menu-item-has-children .drawer-nav-drop-wrap,
#mobile-site-navigation ul li:not(.menu-item-has-children) a {
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#mobile-site-navigation ul li.menu-item-has-children .drawer-nav-drop-wrap > a {
	flex: 1 1 auto;
}

/* Sub-menu toggle (Magnets & Patches): full-height 52px square. */
#mobile-site-navigation .drawer-nav-drop-wrap .drawer-sub-toggle {
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	min-height: 52px;
	padding: 0;
	color: #fff;
	border-left: 1px solid rgba(255, 255, 255, 0.12);
}

/* Current page: orange on the deep purple, 7.4:1. */
#mobile-site-navigation ul li.current-menu-item > a,
#mobile-site-navigation ul li.current-menu-item.menu-item-has-children > .drawer-nav-drop-wrap,
#mobile-site-navigation ul li.current-menu-item.menu-item-has-children > .drawer-nav-drop-wrap > a {
	color: var(--crumby-orange);
}

#mobile-site-navigation a:hover {
	color: var(--crumby-orange);
}

#mobile-site-navigation a:focus-visible,
#mobile-site-navigation .drawer-sub-toggle:focus-visible,
#mobile-drawer .menu-toggle-close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -2px;
}

/* ------------------------------------------------------------------
 * Home hero (inc/hero.php, assets/js/hero.js). Front page only.
 * Text column (kicker, h1, sub, buttons, slide controls) beside two
 * tilted product cards; stacks below ~980px.
 * ------------------------------------------------------------------ */
.crumby-hero {
	overflow: hidden; /* rotated cards and their shadows never cause sideways scroll */
	background: var(--crumby-ink);
	color: #fff;
}

/* Slide pieces toggled by hero.js; beats the display values below. */
.crumby-hero [hidden] {
	display: none !important;
}

.crumby-hero__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 48px;
	padding-top: 72px;
	padding-bottom: 80px;
}

.crumby-hero__text {
	flex: 1 1 440px;
	min-width: 0;
}

.crumby-hero__kicker {
	display: inline-block;
	margin: 0 0 18px;
	padding: 6px 12px;
	font-weight: 900;
	font-size: var(--crumby-fs-label);
	line-height: 1.3;
	letter-spacing: var(--crumby-ls-label);
	text-transform: uppercase;
	color: var(--crumby-ink);
	background: var(--crumby-orange);
	border-radius: 3px;
}

.crumby-hero .crumby-hero__title {
	margin: 0;
	font-family: var(--crumby-font-display);
	font-weight: 400;
	font-synthesis: none;
	font-size: var(--crumby-fs-hero);
	line-height: var(--crumby-lh-hero);
	letter-spacing: var(--crumby-ls-hero);
	color: #fff;
}

.crumby-hero__sub {
	max-width: 36ch;
	min-height: 3.1em; /* two lines, so the buttons don't jump between slides */
	margin: 24px 0 0;
	font-size: clamp(1.0625rem, 1.005rem + 0.235vw, 1.1875rem); /* 17 -> 19 */
	line-height: 1.55;
	color: var(--crumby-lavender);
}

.crumby-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 32px;
}

.crumby-hero .crumby-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 0 28px;
	font-family: var(--crumby-font-display);
	font-weight: 400;
	font-synthesis: none;
	font-size: var(--crumby-fs-button-display);
	line-height: 1;
	letter-spacing: var(--crumby-ls-button);
	text-decoration: none;
	border-radius: 4px;
	transition: background-color 0.15s ease;
}

.crumby-hero .crumby-hero__btn--primary,
.crumby-hero .crumby-hero__btn--primary:hover {
	color: var(--crumby-ink);
	background: var(--crumby-orange);
}

.crumby-hero .crumby-hero__btn--primary:hover {
	background: var(--crumby-orange-hover);
}

.crumby-hero .crumby-hero__btn--ghost,
.crumby-hero .crumby-hero__btn--ghost:hover {
	color: #fff;
	border: 2px solid #fff;
}

.crumby-hero .crumby-hero__btn--ghost:hover {
	background: rgba(255, 255, 255, 0.12);
}

.crumby-hero .crumby-hero__btn:focus-visible,
.crumby-hero .crumby-hero__dot:focus-visible,
.crumby-hero .crumby-hero__toggle:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* Slide controls (revealed by hero.js). */
.crumby-hero__controls {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 28px;
}

/* Reset Kadence's global button styles (background, padding, shadow, hover). */
.crumby-hero .crumby-hero__dot,
.crumby-hero .crumby-hero__dot:hover,
.crumby-hero .crumby-hero__dot:focus,
.crumby-hero .crumby-hero__toggle,
.crumby-hero .crumby-hero__toggle:hover,
.crumby-hero .crumby-hero__toggle:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	color: var(--crumby-lavender);
	background: transparent;
	border: 0;
	border-radius: 4px;
	box-shadow: none;
	cursor: pointer;
}

/* 44px tall hit area; the visible pill is the ::before. */
.crumby-hero .crumby-hero__dot {
	min-width: 24px;
	height: 44px;
	padding: 0 4px;
}

.crumby-hero__dot::before {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	background: rgba(255, 255, 255, 0.45);
	border-radius: 5px;
	transition: width 0.3s ease, background-color 0.3s ease;
}

.crumby-hero__dot:hover::before {
	background: rgba(255, 255, 255, 0.75);
}

.crumby-hero__dot[aria-current="true"]::before {
	width: 32px;
	background: var(--crumby-orange);
}

.crumby-hero .crumby-hero__toggle {
	width: 44px;
	height: 44px;
	margin-left: 8px;
}

.crumby-hero .crumby-hero__toggle:hover {
	color: #fff;
}

.crumby-hero__toggle[data-state="playing"] .crumby-hero__icon-play,
.crumby-hero__toggle[data-state="paused"] .crumby-hero__icon-pause {
	display: none;
}

/* Product cards. */
.crumby-hero__cards {
	flex: 1 1 460px;
	min-width: 0;
	padding: 12px 0;
}

.crumby-hero__cardset {
	display: flex;
	justify-content: center;
}

.crumby-hero .crumby-hero__card {
	display: block;
	width: 44%;
	max-width: 280px;
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	transition: transform 0.5s ease;
}

.crumby-hero__card:nth-child(1) {
	transform: rotate(-5deg) translateY(12px);
}

.crumby-hero__card:nth-child(2) {
	margin-left: 5%; /* clear gap: the tilted plates and captions never overlap */
	transform: rotate(4deg) translateY(-14px);
}

.crumby-hero__card:nth-child(1):hover {
	transform: rotate(-3deg) translateY(4px);
}

.crumby-hero__card:nth-child(2):hover {
	transform: rotate(2deg) translateY(-22px);
}

.crumby-hero .crumby-hero__card:hover {
	color: #fff;
}

.crumby-hero .crumby-hero__card:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 6px;
}

.crumby-hero__plate {
	display: block;
	padding: 14px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.crumby-hero__plate img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
}

.crumby-hero__meta {
	position: relative; /* containing block for the visually hidden price-range text */
	display: block;
	margin-top: 14px;
	font-weight: 700;
	font-size: 0.9375rem; /* 15 */
	line-height: 1.35;
}

.crumby-hero__name,
.crumby-hero__price {
	display: block;
}

/*
 * WooCommerce prints "Price range: ..." for variable products as
 * .screen-reader-text. Kadence hides it with clip:rect(1px,1px,1px,1px)
 * only, which leaks a visible dot inside the rotated card. Full
 * visually-hidden pattern; still read by screen readers.
 */
.crumby-hero .crumby-hero__meta .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.crumby-hero__price del {
	color: var(--crumby-lavender);
	opacity: 1;
}

.crumby-hero__price ins {
	text-decoration: none;
}

/* Fade the newly shown slide in (only after the first change, never on load). */
.crumby-hero.has-rotated [data-crumby-hero-slide]:not([hidden]) {
	animation: crumby-hero-in 0.45s ease both;
}

@keyframes crumby-hero-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@media (max-width: 719px) {
	.crumby-hero__inner {
		gap: 32px;
		padding-top: 48px;
		padding-bottom: 56px;
	}

	.crumby-hero .crumby-hero__btn {
		flex: 1 1 auto;
		padding: 0 20px;
	}

	/* Phones: narrower cards, wider gap, gentler tilt so plates and captions stay apart. */
	.crumby-hero .crumby-hero__card {
		width: 42%;
	}

	.crumby-hero__card:nth-child(1) {
		transform: rotate(-4deg) translateY(10px);
	}

	.crumby-hero__card:nth-child(2) {
		margin-left: 8%;
		transform: rotate(3deg) translateY(-10px);
	}

	.crumby-hero__card:nth-child(1):hover {
		transform: rotate(-2deg) translateY(4px);
	}

	.crumby-hero__card:nth-child(2):hover {
		transform: rotate(1deg) translateY(-16px);
	}

	.crumby-hero__plate {
		padding: 10px;
	}

	.crumby-hero__meta {
		margin-top: 10px;
		font-size: var(--crumby-fs-small);
	}
}

@media (prefers-reduced-motion: reduce) {
	.crumby-hero .crumby-hero__btn,
	.crumby-hero .crumby-hero__card,
	.crumby-hero__dot::before {
		transition: none;
	}

	.crumby-hero.has-rotated [data-crumby-hero-slide]:not([hidden]) {
		animation: none;
	}
}

/* ------------------------------------------------------------------
 * Product cards: every WooCommerce loop (home sections, /shop,
 * category and tag archives, related products, up-sells, cross-sells).
 *
 * Kadence 1.6.0 loop markup (inc/components/woocommerce/component.php):
 *   li.entry.content-bg.loop-entry.product[.outofstock]
 *     a.woocommerce-loop-image-link        <- the tile; span.onsale prints
 *       img                                   inside it (hook priority 10,
 *                                             between the link's 5 and 50)
 *     div.product-details.content-bg.entry-content-wrap
 *       h2.woocommerce-loop-product__title > a
 *       span.price
 *       div.product-action-wrap > a.button  (Customizer: text-style button)
 *
 * Since 1.4.0. Replaces the 1.3.x "Pages: product lists" flattening
 * rules, the sold-out fade and the home "Featured Sale" grey cards.
 * 1.8.0: "Add to cart" (simple products) is a small solid button; the
 * list-view rules are gone (shop grid/list toggle switched off).
 * Title and price fonts stay in the Typography section.
 * ------------------------------------------------------------------ */
:root {
	--crumby-card-border: 2px solid var(--crumby-ink);
	--crumby-card-radius: 10px;
	--crumby-card-pad-x: 16px;
	--crumby-card-lift: translate(-3px, -3px);
	--crumby-card-lift-shadow: 6px 6px 0 var(--crumby-orange);
}

/*
 * The card is the whole li: a "backing card" with an ink border, the tile
 * across the top and the text block below, so each product has a hard
 * start and end. A column, so the CTA row sits on the bottom edge of
 * every card in a row (grid items stretch to the row height).
 */
.woocommerce ul.products li.product.entry.loop-entry {
	position: relative; /* fallback anchor for the sale badge */
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden; /* clips the tile to the card's rounded corners */
	overflow: clip;
	background: #fff;
	border: var(--crumby-card-border);
	border-radius: var(--crumby-card-radius);
	box-shadow: none;
	transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Hover (pointer devices) and keyboard focus inside the card: lift onto a hard orange offset. */
@media (hover: hover) {
	.woocommerce ul.products li.product.entry.loop-entry:hover {
		transform: var(--crumby-card-lift);
		box-shadow: var(--crumby-card-lift-shadow);
	}
}

.woocommerce ul.products li.product.entry.loop-entry:has(:focus-visible) {
	transform: var(--crumby-card-lift);
	box-shadow: var(--crumby-card-lift-shadow);
}

/* Image tile: edge to edge inside the border, ruled off from the text. */
.woocommerce ul.products li.product a.woocommerce-loop-image-link {
	position: relative;
	display: block;
	flex: 0 0 auto;
	padding: 14px;
	background: var(--crumby-tint);
	border-bottom: var(--crumby-card-border);
	border-radius: 0;
}

/* White product photos sit on the tint (multiply drops the white). */
.woocommerce ul.products li.product a.woocommerce-loop-image-link img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
	mix-blend-mode: multiply;
}

/* Keyboard focus on any card link: purple ring (beats Kadence's .hide-focus-outline). */
.woocommerce ul.products li.product a.woocommerce-loop-image-link:focus-visible,
.woocommerce ul.products li.product .woocommerce-loop-product__title a:focus-visible,
.woocommerce ul.products li.product .product-action-wrap a:focus-visible {
	outline: 2px solid var(--crumby-purple-dark);
	outline-offset: 3px;
}

/* The card clips its overflow, so the tile's ring sits inside the tile. */
.woocommerce ul.products li.product a.woocommerce-loop-image-link:focus-visible {
	outline-offset: -5px;
}

/*
 * Text block. Kadence's unboxed archive rule
 * (.archive.content-style-unboxed .products.woo-archive-action-visible
 * li.product.content-bg.loop-entry .content-bg:not(.loop-entry), 0,9,1)
 * zeroes the side and bottom padding, so this selector carries 10 classes.
 */
.woocommerce ul.products li.product.entry.loop-entry.content-bg > .product-details.entry-content-wrap.content-bg:not(.loop-entry) {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	margin: 0;
	padding: 14px var(--crumby-card-pad-x) 0;
	background: #fff;
	border-radius: 0;
}

/* Name: two lines at most, and always two lines tall, so prices line up across a row. */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	margin: 0;
	padding: 0;
	color: var(--crumby-ink);
}

/* Clamp on the link (not the h2) so its focus ring is not clipped. */
.woocommerce ul.products li.product .woocommerce-loop-product__title a {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	min-height: calc(2em * var(--crumby-lh-card-title));
	color: inherit;
	text-decoration: none;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title a:hover {
	color: var(--crumby-purple-dark);
}

.woocommerce ul.products li.product .price {
	margin: 6px 0 14px;
	color: var(--crumby-ink);
}

/*
 * CTA footer row: "Select options ->" / "Add to cart ->" on the bottom
 * edge, under a hairline that runs the full card width (the negative
 * margins cancel the text block's side padding).
 */
.woocommerce ul.products li.product .product-action-wrap {
	margin: auto calc(-1 * var(--crumby-card-pad-x)) 0;
	padding: 6px var(--crumby-card-pad-x) 8px;
	border-top: 1px solid rgba(29, 21, 48, 0.15); /* --crumby-ink at 15% */
}

.woocommerce ul.products li.product .product-action-wrap .button:not(.kb-button),
.woocommerce ul.products li.product .product-action-wrap .added_to_cart {
	display: inline-block;
	margin: 0;
	padding: 8px 0; /* ~32px tall hit area */
	font-family: var(--global-body-font-family);
	font-weight: 900;
	font-size: var(--crumby-fs-label);
	line-height: 1.2;
	letter-spacing: var(--crumby-ls-cta);
	text-transform: uppercase;
	text-decoration: none;
	color: var(--crumby-purple-dark);
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.woocommerce ul.products li.product .product-action-wrap .button:not(.kb-button):hover,
.woocommerce ul.products li.product .product-action-wrap .added_to_cart:hover {
	color: var(--crumby-purple);
	background: transparent;
	box-shadow: none;
}

/* Keep Kadence's "added" state: label hidden, check icon shown, then WooCommerce's "View cart" link. */
.woocommerce ul.products li.product .product-action-wrap .button.added:not(.kb-button) {
	font-size: 0;
}

.woocommerce ul.products li.product .product-action-wrap .added_to_cart {
	margin-left: 0.75em;
}

/*
 * "Add to cart" (simple, purchasable, in stock: WooCommerce adds
 * .add_to_cart_button only then) is a compact solid button, so it reads
 * as a different action from "Select options ->" / "Read more ->", which
 * stay text links. Kadence prints, inside the link:
 *   label, span.kadence-svg-iconset > svg.kadence-arrow-right-alt-svg,
 *   ... > svg.kadence-spinner-svg, ... > svg.kadence-check-svg
 * The arrow is swapped for a drawn "+" (::before, currentColor mask).
 * Same line-height and vertical padding as the text links, so card
 * heights stay aligned.
 */
.woocommerce ul.products li.product .product-action-wrap .button.add_to_cart_button.product_type_simple:not(.kb-button) {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	font-size: 0.8125rem; /* 13 */
	letter-spacing: 0.08em;
	color: #fff; /* 8.5:1 on --crumby-purple-dark, 17:1 on --crumby-ink */
	background: var(--crumby-purple-dark);
	border-radius: 6px;
	transition: background-color 0.15s ease;
}

.woocommerce ul.products li.product .product-action-wrap .button.add_to_cart_button.product_type_simple:not(.kb-button)::before {
	content: "";
	flex: 0 0 auto;
	order: -1;
	width: 12px;
	height: 12px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.woocommerce ul.products li.product .product-action-wrap .button.add_to_cart_button.product_type_simple:not(.kb-button):hover,
.woocommerce ul.products li.product .product-action-wrap .button.add_to_cart_button.product_type_simple:not(.kb-button):focus-visible {
	color: #fff;
	background: var(--crumby-ink);
}

.woocommerce ul.products li.product .product-action-wrap .button.add_to_cart_button.product_type_simple:not(.kb-button) .kadence-arrow-right-alt-svg {
	display: none;
}

/* Kadence gives the icons a 0.5em left margin; the flex gap spaces them here. */
.woocommerce ul.products li.product .product-action-wrap .button.add_to_cart_button.product_type_simple:not(.kb-button) .kadence-svg-iconset svg {
	margin-left: 0;
}

/*
 * Loading: Kadence fades the link to 25% (white on pale lavender, too
 * faint); keep it solid, swap the "+" for Kadence's spinner.
 */
.woocommerce ul.products li.product .product-action-wrap .button.add_to_cart_button.product_type_simple.loading:not(.kb-button) {
	opacity: 0.8;
	cursor: progress;
}

.woocommerce ul.products li.product .product-action-wrap .button.add_to_cart_button.product_type_simple.loading:not(.kb-button)::before,
.woocommerce ul.products li.product .product-action-wrap .button.add_to_cart_button.product_type_simple.added:not(.kb-button)::before {
	display: none;
}

/*
 * Added: Kadence hides the label (font-size 0) and shows its check icon
 * (1rem); the button shrinks to a white check on purple, followed by
 * WooCommerce's "View cart ->" text link.
 */
.woocommerce ul.products li.product .product-action-wrap .button.add_to_cart_button.product_type_simple.added:not(.kb-button) {
	gap: 0;
	font-size: 0; /* this rule outranks the generic .added one above */
	min-height: calc(0.8125rem * 1.2 + 16px); /* same height as with the label */
}

.woocommerce ul.products li.product .product-action-wrap:has(.add_to_cart_button.added) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 10px;
}

.woocommerce ul.products li.product .product-action-wrap:has(.add_to_cart_button.added) .added_to_cart {
	margin-left: 0;
}

/* Sale badge on the tile (mockup badge: orange, dark text). Single product keeps the gradient badge below. */
.woocommerce ul.products li.product .onsale {
	top: 12px;
	right: auto;
	left: 12px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 5px 8px;
	font-weight: 900;
	font-size: 0.6875rem; /* 11 */
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--crumby-ink);
	background: var(--crumby-orange); /* shorthand also clears the gradient image */
	border: 0;
	border-radius: 3px;
}

/*
 * Sold out (li.product.outofstock: archives; the Crumby Store Tweaks plugin
 * hides sold-out products on the front page). Dim the photo and stamp the
 * tile; the stamp text is part of the link's accessible name. The card
 * border stays ink.
 */
.woocommerce ul.products li.product.outofstock a.woocommerce-loop-image-link img {
	opacity: 0.55;
}

.woocommerce ul.products li.product.outofstock a.woocommerce-loop-image-link::after {
	content: "Sold out";
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	padding: 0.12em 0.45em 0.04em;
	font-family: var(--crumby-font-display);
	font-weight: 400;
	font-synthesis: none;
	font-size: clamp(1.375rem, 1.088rem + 1.176vw, 2rem); /* 22 -> 32 */
	line-height: 1;
	letter-spacing: 0.06em;
	white-space: nowrap;
	color: var(--crumby-ink);
	background: rgba(255, 255, 255, 0.9);
	border: 3px solid var(--crumby-ink);
	border-radius: 4px;
	transform: translate(-50%, -50%) rotate(-12deg);
	pointer-events: none;
}

.woocommerce ul.products li.product.outofstock .woocommerce-loop-product__title,
.woocommerce ul.products li.product.outofstock .price {
	color: var(--crumby-muted-text);
}

/* Phones: two ~170px cards across, so tighter padding and CTA tracking. */
@media (max-width: 767px) {
	.woocommerce ul.products li.product.entry.loop-entry {
		--crumby-card-pad-x: 12px;
	}

	.woocommerce ul.products li.product a.woocommerce-loop-image-link {
		padding: 10px;
	}

	.woocommerce ul.products li.product.entry.loop-entry.content-bg > .product-details.entry-content-wrap.content-bg:not(.loop-entry) {
		padding-top: 12px;
	}

	.woocommerce ul.products li.product .price {
		margin-bottom: 12px;
	}

	.woocommerce ul.products li.product .product-action-wrap .button:not(.kb-button),
	.woocommerce ul.products li.product .product-action-wrap .added_to_cart {
		letter-spacing: 0.05em;
	}

	.woocommerce ul.products li.product .product-action-wrap .button.add_to_cart_button.product_type_simple:not(.kb-button) {
		padding-right: 10px;
		padding-left: 10px;
	}
}

/* Reduced motion: no lift, the offset shadow alone marks hover and focus. */
@media (prefers-reduced-motion: reduce) {
	.woocommerce ul.products li.product.entry.loop-entry,
	.woocommerce ul.products li.product .product-action-wrap .button.add_to_cart_button.product_type_simple:not(.kb-button) {
		transition: none;
	}

	.woocommerce ul.products li.product.entry.loop-entry:hover,
	.woocommerce ul.products li.product.entry.loop-entry:has(:focus-visible) {
		transform: none;
	}
}

/* ------------------------------------------------------------------
 * Product grids
 *
 * Kadence prints column classes from the loop's column count
 * (grid-lg-col-5 on /shop from the WooCommerce "products per row"
 * setting; grid-lg-col-4 for [products columns="4"] and related
 * products) and a phone two-column rule from the Customizer
 * (product_archive_mobile_columns = twocolumn, 0.5rem gaps).
 * Grids of 4+ columns are normalised here:
 *   phones (< 768)       2 across
 *   tablet (768 - 1024)  3 across; fixed-count rows (home sections,
 *                        related, up-sells) stay 4 so 8 and 4 items
 *                        always fill their rows
 *   desktop (1025+)      4 across, including /shop and archives beside
 *                        the FacetWP sidebar (~850px column: ~195px cards)
 * 2- and 3-column grids keep Kadence's columns; only the gaps change.
 * The shop's grid/list toggle is off (1.8.0), but the
 * :not(.products-list-view) guards stay: they match the specificity of
 * Kadence's own column rules, which carry the same :not().
 * ------------------------------------------------------------------ */
.woocommerce ul.products.grid-cols:not(.products-list-view) {
	column-gap: 24px;
	row-gap: 32px;
}

@media (min-width: 1025px) {
	.woocommerce ul.products:is(.grid-lg-col-4, .grid-lg-col-5, .grid-lg-col-6):not(.products-list-view) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.woocommerce ul.products:is(.grid-lg-col-4, .grid-lg-col-5, .grid-lg-col-6):not(.products-list-view) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.crumby-section ul.products:is(.grid-lg-col-4, .grid-lg-col-5, .grid-lg-col-6):not(.products-list-view),
	.woocommerce .related ul.products:is(.grid-lg-col-4, .grid-lg-col-5, .grid-lg-col-6):not(.products-list-view),
	.woocommerce .up-sells ul.products:is(.grid-lg-col-4, .grid-lg-col-5, .grid-lg-col-6):not(.products-list-view) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.woocommerce ul.products.grid-cols:not(.products-list-view) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 12px;
		row-gap: 16px;
	}
}

/* ------------------------------------------------------------------
 * Home page sections (post 7 content: build/home-content-phase3.html,
 * one Custom HTML block per section, so wpautop never runs on it).
 *   section.crumby-section
 *     div.crumby-section__head  h2.crumby-section__title + a.crumby-cta
 *     [products ...]
 * Since 1.4.0. Replaces the 1.3.x "Featured Sale", "View All ... ->",
 * "View the entire shop", Cotton Bureau image/heading and
 * .flats_shipping_flag rules.
 * ------------------------------------------------------------------ */
.crumby-section + .crumby-section {
	margin-top: clamp(3.5rem, 2.353rem + 4.706vw, 6rem); /* 56 -> 96 */
}

.crumby-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 32px;
}

.crumby-section__head--tagged {
	align-items: center;
}

.crumby-section__title-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 20px;
	min-width: 0;
}

.crumby-section .crumby-section__title {
	margin: 0;
	font-size: var(--crumby-fs-section);
	line-height: var(--crumby-lh-heading);
}

.crumby-section__links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 22px;
}

/* "View all pins ->", "Stickers ->" ... */
.crumby-section .crumby-cta {
	display: inline-block;
	padding: 6px 0;
	font-weight: 900;
	font-size: var(--crumby-fs-cta);
	line-height: 1.2;
	letter-spacing: var(--crumby-ls-cta);
	text-transform: uppercase;
	text-decoration: none;
	color: var(--crumby-purple-dark);
}

.crumby-section .crumby-cta:hover {
	color: var(--crumby-purple);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.crumby-section .crumby-cta:focus-visible,
.crumby-section .crumby-shirts a:focus-visible {
	outline: 2px solid var(--crumby-purple-dark);
	outline-offset: 2px;
}

/* Tilted orange tag beside "The latest flats". */
.crumby-section .crumby-tag {
	display: inline-block;
	max-width: 100%;
	margin: 0;
	padding: 8px 12px;
	font-weight: 900;
	font-size: var(--crumby-fs-label);
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--crumby-ink);
	background: var(--crumby-orange);
	border-radius: 3px;
	transform: rotate(-2deg);
}

/* "See the whole shop ->": big orange Bebas bar. */
.crumby-section .crumby-shop-all {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.3em; /* space before the arrow span */
	min-height: clamp(4.5rem, 3.812rem + 2.824vw, 6rem); /* 72 -> 96 */
	padding: 12px 24px;
	font-family: var(--crumby-font-display);
	font-weight: 400;
	font-synthesis: none;
	font-size: var(--crumby-fs-h2); /* 32 -> 48 */
	line-height: 1;
	letter-spacing: 0.03em;
	text-align: center;
	text-decoration: none;
	color: var(--crumby-ink);
	background: var(--crumby-orange);
	border-radius: 6px;
	transition: background-color 0.15s ease;
}

.crumby-section .crumby-shop-all:hover,
.crumby-section .crumby-shop-all:focus {
	color: var(--crumby-ink);
	background: var(--crumby-orange-hover);
}

.crumby-section .crumby-shop-all:focus-visible {
	outline: 3px solid var(--crumby-purple-dark);
	outline-offset: 3px;
}

/* "Looking for shirts? They live at Cotton Bureau." */
.crumby-section .crumby-shirts {
	margin: 20px 0 0;
	text-align: center;
	color: var(--global-palette4, #565656);
}

.crumby-section .crumby-shirts a {
	font-weight: 700;
	color: var(--crumby-purple-dark);
}

.crumby-section .crumby-shirts a:hover {
	color: var(--crumby-purple);
}

@media (max-width: 767px) {
	.crumby-section__head {
		margin-bottom: 24px;
	}

	.crumby-section .crumby-tag {
		letter-spacing: 0.08em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.crumby-section .crumby-shop-all {
		transition: none;
	}
}

/* ------------------------------------------------------------------
 * Product blocks
 * ------------------------------------------------------------------ */
/* Handpicked Products block: images only. */
.wp-block-handpicked-products .wc-block-grid__products,
.wp-block-handpicked-products .wc-block-grid__product-image {
	margin-bottom: 0 !important; /* Carried over: beats the block's own margin utility. */
}

.wp-block-handpicked-products .wc-block-grid__product-title,
.wp-block-handpicked-products .wc-block-grid__product-price,
.wp-block-handpicked-products .wp-block-button {
	display: none;
}

/* ------------------------------------------------------------------
 * Legacy content blocks (carried over from the BigBox Additional CSS;
 * still referenced in page/post content). !important flags are kept
 * as they were; they beat core block spacing utilities.
 * ------------------------------------------------------------------ */
.sale_notice {
	display: block;
	width: 100%;
	padding: 15px 0;
	font-size: 0.9em;
	letter-spacing: 1px;
	text-align: center;
	color: #000;
	background-color: #94dba3;
	border-top: 1px solid #2d843f;
	border-bottom: 1px solid #2d843f;
	border-radius: 2px;
}

#ship_notice {
	padding: 5px;
	font-size: 0.8em;
	letter-spacing: 1px;
	text-align: center;
	text-transform: uppercase;
	color: #f5f5f5;
	background-color: #202020;
}

#ship_notice a {
	color: #f5f5f5;
	text-decoration: none;
	border-bottom: 1px dashed #f5f5f5;
}

.kickstarter-cover .button {
	padding: 10px 20px;
	font-size: 0.5em;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.kickstarter-cover .wp-block-cover-text {
	padding-left: 50px;
}

.headleft_img {
	float: left;
	width: 240px;
}

.headleft {
	float: left;
	width: calc(100% - 300px);
	margin-left: 60px;
	text-align: left;
}

.headleft h2 {
	margin-top: 0 !important;
}

.headleft .button {
	margin-top: 40px;
	padding: 15px 20px;
	text-transform: uppercase;
	letter-spacing: 2px;
}

#header_cta .container p {
	margin: 0 !important;
	font-size: 26px;
	letter-spacing: 1px;
}

@media screen and (max-width: 650px) {
	.headleft_img {
		float: none;
		margin: 0 auto 40px !important;
	}

	.headleft {
		width: 100%;
		margin: 0;
		text-align: center;
	}

	.headleft .button {
		width: 100%;
	}

	#header_cta .container p {
		font-size: 18px;
	}
}

/* ------------------------------------------------------------------
 * Legacy upsell plugin (woocommerce-conditional-upsell) popup.
 * !important overrides the plugin's own inline/ID-level colours.
 * ------------------------------------------------------------------ */
[data-value="upsell"],
.post-51713,
#wc-upsell-popup .fancybox-close-small {
	display: none;
}

#wc-upsell-popup .modal-title {
	color: #066fcf !important;
}

.upsell-add-to-cart {
	background-color: var(--crumby-purple) !important;
}

/* ------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------ */
#colophon {
	background-color: var(--crumby-footer-bg);
	color: var(--crumby-footer-text);
}

#colophon .site-footer-row-container-inner {
	background: transparent;
}

#colophon h1,
#colophon h2,
#colophon h3,
#colophon h4,
#colophon h5,
#colophon h6,
#colophon .widget-title {
	color: #fff;
	text-transform: uppercase;
}

#colophon a:not(.button):not(.social-button) {
	color: #fff;
	transition: color 0.1s linear;
}

#colophon a:not(.button):not(.social-button):hover,
#colophon a:not(.button):not(.social-button):focus {
	color: #151515;
}

/* Footer logo at the old size. */
#colophon #footer-logo {
	height: 60px;
	width: auto;
}

/*
 * Bottom row (Social + HTML copyright in one column). Kadence's "row"
 * direction sets the two items to flex:unset with a 30px gap, left-packed
 * (footer.min.css .ft-ro-dir-row .footer-section-inner-items-2 ...).
 * Desktop: centre the pair. Phone: stack them, icons in one centred row
 * above the centred copyright.
 */
#colophon .site-bottom-footer-inner-wrap .site-footer-section {
	justify-content: center;
	align-items: center;
}

#colophon .site-bottom-footer-inner-wrap .site-info {
	text-align: center;
}

@media screen and (max-width: 719px) {
	#colophon .site-bottom-footer-inner-wrap .site-footer-section {
		flex-direction: column;
		gap: 1rem;
	}

	#colophon .site-bottom-footer-inner-wrap .footer-widget-area {
		flex: 0 0 auto;
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}

	#colophon .footer-social .footer-social-inner-wrap {
		flex-wrap: nowrap;
		justify-content: center;
	}
}

/* ------------------------------------------------------------------
 * Sale badge (single product, product blocks). Loop cards override
 * this with the orange badge in the Product cards section.
 * ------------------------------------------------------------------ */
.woocommerce span.onsale,
.wc-block-grid__product-onsale,
.wc-block-components-product-sale-badge {
	background-color: var(--crumby-grad-start);
	background-image: var(--crumby-gradient);
	color: #fff;
	border: 0;
}

/* ------------------------------------------------------------------
 * Shop sidebar: FacetWP filters (since 1.7.0)
 *
 * aside#secondary holds one text widget (#text-3) whose content is
 *   p > strong "CATEGORY" | div.facetwp-facet.facetwp-type-checkboxes
 *   p > strong "TAG"      | div.facetwp-facet.facetwp-type-checkboxes
 *   p > strong "PRICES"   | div.facetwp-facet.facetwp-type-slider
 * FacetWP 4.5 renders, per option:
 *   div.facetwp-checkbox[.checked] > span.facetwp-display-value
 *     + span.facetwp-counter "(62)" [+ span.facetwp-expand "[-]"]
 *   then div.facetwp-depth[.visible] holding the child options;
 *   overflow: div.facetwp-overflow[.facetwp-hidden] + a.facetwp-toggle x2
 *   slider: .facetwp-slider (noUiSlider) + span.facetwp-slider-label
 *     + input.facetwp-slider-reset[.facetwp-hidden]
 * Display rules skip .facetwp-hidden so FacetWP's show/hide still wins.
 * Desktop (1025+): the whole sidebar is a tint panel echoing the cards.
 * Drawer (below 1025): same groups, no panel (see "mobile filter drawer").
 * ------------------------------------------------------------------ */
:root {
	--crumby-facet-muted: #635b78; /* 5.7:1 on --crumby-tint, 6.4:1 on white */
	--crumby-facet-row: 32px;
	--crumby-facet-expand: 28px;
}

/* Group headings (the p > strong labels): Bebas, ink, ruled underneath. */
#secondary .textwidget > p:has(> strong:only-child) {
	margin: 30px 0 10px;
	padding: 0 0 6px;
	font-family: var(--crumby-font-display);
	font-weight: 400;
	font-synthesis: none;
	font-size: 1.375rem; /* 22 */
	line-height: 1;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--crumby-ink);
	border-bottom: 2px solid var(--crumby-ink);
}

#secondary .textwidget > p:has(> strong:only-child):first-child {
	margin-top: 0;
}

#secondary .textwidget > p > strong {
	font-weight: inherit;
}

#secondary .facetwp-facet {
	margin-bottom: 0;
}

/* Option rows: drawn checkbox, label, count pushed right. */
#secondary .facetwp-checkbox {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: var(--crumby-facet-row);
	margin: 0;
	padding: 4px 0;
	font-family: var(--crumby-font-text);
	font-weight: 400;
	font-size: 0.9375rem; /* 15 */
	line-height: 1.3;
	color: var(--crumby-ink);
	background: none; /* FacetWP's checkbox.png */
	cursor: pointer;
}

#secondary .facetwp-checkbox::before {
	content: "";
	flex: 0 0 18px;
	box-sizing: border-box;
	width: 18px;
	height: 18px;
	background: #fff no-repeat center / 12px 12px;
	border: 2px solid var(--crumby-ink);
	border-radius: 4px;
	transition: background-color 0.12s ease, border-color 0.12s ease;
}

#secondary .facetwp-checkbox.checked::before {
	background-color: var(--crumby-purple-dark);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2l2.6 2.6L10 3.4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	border-color: var(--crumby-purple-dark);
}

#secondary .facetwp-checkbox.checked > .facetwp-display-value {
	font-weight: 700;
}

@media (hover: hover) {
	#secondary .facetwp-checkbox:not(.disabled):hover > .facetwp-display-value {
		color: var(--crumby-purple-dark);
	}

	#secondary .facetwp-checkbox:not(.disabled):hover::before {
		border-color: var(--crumby-purple-dark);
	}
}

/*
 * Keyboard focus. FacetWP's accessibility mode (facetwp_load_a11y, on in
 * inc/shop.php) makes the rows, expand toggles and "See more" links
 * focusable; the id beats Kadence's .hide-focus-outline reset.
 */
#secondary .facetwp-checkbox:focus-visible,
#secondary .facetwp-expand:focus-visible,
#secondary .facetwp-toggle:focus-visible {
	outline: 2px solid var(--crumby-purple-dark);
	outline-offset: 2px;
	border-radius: 4px;
}

/* The toggle sits on the row's right edge; keep its ring inside the panel's scroll box. */
#secondary .facetwp-expand:focus-visible {
	outline-offset: -2px;
}

#secondary .facetwp-display-value {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0;
}

#secondary .facetwp-counter {
	flex: 0 0 auto;
	margin-left: auto;
	padding-left: 8px;
	font-size: 0.8125rem; /* 13 */
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--crumby-facet-muted);
}

/*
 * Hierarchical facets: reserve the expand column on every row so the
 * counts line up, and swap FacetWP's "[-]"/"[+]" text for a chevron.
 * FacetWP flips the text and toggles .visible on the next .facetwp-depth,
 * so the open state is read from that sibling.
 */
#secondary .facetwp-type-checkboxes:has(.facetwp-expand) .facetwp-checkbox {
	padding-right: var(--crumby-facet-expand);
}

#secondary .facetwp-expand {
	position: absolute;
	top: 50%;
	right: 0;
	width: var(--crumby-facet-expand);
	height: var(--crumby-facet-expand);
	margin: calc(var(--crumby-facet-expand) / -2) 0 0;
	font-size: 0; /* hides the bracket text; still in the DOM */
	color: var(--crumby-ink);
	border-radius: 4px;
	cursor: pointer;
}

#secondary .facetwp-expand::before {
	content: "";
	position: absolute;
	inset: 0;
	width: 8px;
	height: 8px;
	margin: auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg); /* closed: points down */
	transition: transform 0.15s ease;
}

#secondary .facetwp-checkbox:has(+ .facetwp-depth.visible) .facetwp-expand::before {
	transform: translateY(2px) rotate(-135deg); /* open: points up */
}

@media (hover: hover) {
	#secondary .facetwp-expand:hover {
		color: var(--crumby-purple-dark);
		background: rgba(72, 31, 218, 0.08);
	}
}

/* Child options: indented on a lavender guide line. Display stays FacetWP's. */
#secondary .facetwp-depth {
	margin: 0 0 4px 8px;
	padding-left: 12px;
	border-left: 2px solid var(--crumby-lavender);
}

/* "See 45 more" / "See less". */
#secondary .facetwp-toggle:not(.facetwp-hidden) {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: var(--crumby-facet-row);
	margin-top: 4px;
	font-family: var(--crumby-font-text);
	font-weight: 900;
	font-size: var(--crumby-fs-label);
	line-height: 1.2;
	letter-spacing: var(--crumby-ls-cta);
	text-transform: uppercase;
	text-decoration: none;
	color: var(--crumby-purple-dark);
	cursor: pointer;
}

#secondary .facetwp-toggle::after {
	content: "";
	width: 6px;
	height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}

#secondary .facetwp-toggle + .facetwp-toggle::after {
	transform: translateY(1px) rotate(-135deg);
}

@media (hover: hover) {
	#secondary .facetwp-toggle:hover {
		color: var(--crumby-purple);
	}
}

/* Price slider (noUiSlider): purple range on a muted track, white ink-ringed handles. */
#secondary .facetwp-slider-wrap {
	padding: 0;
}

#secondary .facetwp-slider.noUi-horizontal {
	height: 6px;
	margin: 18px 10px 0; /* half a handle each side so the ends don't overhang */
	background: #8a83a3; /* 3.2:1 on --crumby-tint */
	border: 0;
	border-radius: 999px;
	box-shadow: none;
}

#secondary .facetwp-slider .noUi-connects {
	border-radius: 999px;
}

#secondary .facetwp-slider .noUi-connect {
	background: var(--crumby-purple-dark);
}

#secondary .facetwp-slider.noUi-horizontal .noUi-handle {
	top: -7px;
	right: -10px;
	width: 20px;
	height: 20px;
	background: #fff;
	border: 2px solid var(--crumby-ink);
	border-radius: 50%;
	box-shadow: none;
	cursor: grab;
}

#secondary .facetwp-slider .noUi-handle:active {
	cursor: grabbing;
}

#secondary .facetwp-slider .noUi-handle::before,
#secondary .facetwp-slider .noUi-handle::after {
	display: none; /* noUiSlider's grip lines */
}

/* 44px touch target around the 20px handle. */
#secondary .facetwp-slider .noUi-touch-area {
	position: absolute;
	inset: -12px;
	width: auto;
	height: auto;
}

@media (hover: hover) {
	#secondary .facetwp-slider .noUi-handle:hover {
		background: var(--crumby-tint);
		border-color: var(--crumby-purple-dark);
	}
}

#secondary .facetwp-slider .noUi-handle:focus-visible {
	outline: 2px solid var(--crumby-purple-dark);
	outline-offset: 2px;
}

#secondary .facetwp-slider-label {
	display: block;
	margin-top: 14px;
	font-family: var(--crumby-font-text);
	font-weight: 700;
	font-size: 0.9375rem; /* 15 */
	font-variant-numeric: tabular-nums;
	color: var(--crumby-ink);
}

/* Reset: secondary button (Kadence's input[type=button] rules are 0,1,1). */
#secondary input.facetwp-slider-reset,
#secondary input.facetwp-slider-reset:hover,
#secondary input.facetwp-slider-reset:focus,
#secondary input.facetwp-slider-reset:active {
	min-height: 40px;
	margin: 12px 0 0;
	padding: 8px 18px 6px;
	font-family: var(--crumby-font-display);
	font-weight: 400;
	font-synthesis: none;
	font-size: 1.25rem; /* 20 */
	line-height: 1;
	letter-spacing: var(--crumby-ls-button);
	text-transform: uppercase;
	color: var(--crumby-ink);
	background: transparent;
	border: 2px solid var(--crumby-ink);
	border-radius: 6px;
	box-shadow: none;
	cursor: pointer;
}

#secondary input.facetwp-slider-reset:hover {
	color: var(--crumby-purple-dark);
	background: #fff;
	border-color: var(--crumby-purple-dark);
}

#secondary input.facetwp-slider-reset:focus-visible {
	outline: 2px solid var(--crumby-purple-dark);
	outline-offset: 2px;
}

/* Desktop: the sidebar as one tint panel, sticky, scrolling inside itself if taller than the window. */
@media screen and (min-width: 1025px) {
	#secondary .sidebar-inner-wrap {
		--crumby-sidebar-top: calc(24px + var(--wp-admin--admin-bar--height, 0px));
		position: sticky;
		top: var(--crumby-sidebar-top);
		max-height: calc(100vh - var(--crumby-sidebar-top) - 24px);
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 20px;
		background: var(--crumby-tint);
		border: 2px solid var(--crumby-ink);
		border-radius: 10px;
		scrollbar-width: thin;
		scrollbar-color: #8a83a3 transparent;
	}

	#secondary .sidebar-inner-wrap > .widget:last-child {
		margin-bottom: 0;
	}
}

/* ------------------------------------------------------------------
 * Single product
 * ------------------------------------------------------------------ */

/* Hide SKU. */
.woocommerce div.product .product_meta .sku_wrapper {
	display: none;
}

/* Divider between the description and categories/tags. */
.woocommerce div.product .product_meta {
	margin-top: 2.5rem;
	padding-top: 2.5rem;
	border-top: 1px solid #909090;
}

/* Categories/Tags: Kadence sets 70% in palette6 (#999, ~11px, 2.8:1). */
.woocommerce div.product .product_meta > span {
	font-size: 0.875rem;
	color: var(--global-palette4, #565656);
}

/* Gallery images. */
.woocommerce div.product div.images img {
	border: 1px solid #efefef;
}

/*
 * The gallery slider is disabled (Crumby Store Tweaks plugin), so WooCommerce
 * prints every gallery image in the wrapper. Kadence's stylesheet assumes the
 * slider will load and collapses images 2+ into 65px placeholders; lay them out
 * instead as the large image with a 3-up grid of thumbnails beneath it.
 * Selectors deliberately mirror Kadence's so they win on source order.
 *
 * Since 1.6.0 assets/js/gallery.js wraps images 2+ in .crumby-gallery-strip
 * (display: contents here, a scroll strip on phones: "Product page: gallery
 * strip" below), so the first-child rule uses ">" and the thumbnail rules
 * also match the strip's children (nth-child counts restart inside it).
 */
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child {
	grid-column: 1 / -1;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:nth-child(n+2),
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper .crumby-gallery-strip > .woocommerce-product-gallery__image {
	display: block;
	width: auto;
	height: auto;
	margin: 0;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:nth-child(n+2) img,
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper .crumby-gallery-strip > .woocommerce-product-gallery__image img {
	height: auto;
}

/* Desktop and tablet: the strip's images join the 3-up grid as before. */
.woocommerce div.product div.images .crumby-gallery-strip {
	display: contents;
}

/* ------------------------------------------------------------------
 * Product page: purchase box (since 1.5.0)
 *
 * Style swatches (assets/js/swatches.js), the add-to-cart row and the
 * reassurance list (inc/product.php), per the approved Product mockup.
 * WooCommerce markup is untouched; swatches.js adds .crumby-has-swatches
 * to form.variations_form when it renders, and only then is the select
 * row hidden (it stays in the form and keeps driving the variation).
 * ------------------------------------------------------------------ */

/* Swatches replace the select row and its "Clear" link. */
.woocommerce div.product form.cart.crumby-has-swatches table.variations,
.woocommerce div.product form.cart.crumby-has-swatches .reset_variations {
	display: none;
}

/*
 * The swatches drive the top price instead; keep WooCommerce's copy in
 * its live region for screen readers only.
 */
.woocommerce div.product form.cart.crumby-has-swatches .woocommerce-variation-price {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.crumby-swatches {
	min-width: 0;
	margin: 0 0 24px;
	padding: 0;
	border: 0;
}

.crumby-swatches__legend {
	padding: 0;
	font-weight: 900;
	font-size: var(--crumby-fs-small);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--crumby-ink);
}

.crumby-swatches__picked {
	color: var(--crumby-purple-dark);
}

.crumby-swatches__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 16px 10px; /* rows: room for a SOLD OUT tag straddling the top edge */
	margin-top: 18px; /* same, for the first row */
}

/* Reset Kadence's global button look (background, padding, shadow, hover). */
.crumby-swatches .crumby-swatch {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 64px;
	margin: 0;
	padding: 8px 10px;
	overflow: visible; /* the SOLD OUT tag straddles the top edge */
	font-family: var(--crumby-font-text);
	font-weight: 700;
	font-size: 0.9375rem; /* 15 */
	line-height: 1.25;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	color: var(--crumby-ink);
	background: #fff;
	border: 2px solid #e4def8;
	border-radius: 8px;
	box-shadow: none;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.crumby-swatches .crumby-swatch:hover {
	color: var(--crumby-ink);
	background: #fff;
	border-color: var(--crumby-purple);
	box-shadow: none;
}

.crumby-swatches .crumby-swatch[aria-pressed="true"],
.crumby-swatches .crumby-swatch[aria-pressed="true"]:hover {
	background: var(--crumby-tint);
	border-color: var(--crumby-purple-dark);
}

.crumby-swatches .crumby-swatch:focus-visible {
	outline: 2px solid var(--crumby-purple-dark);
	outline-offset: 3px;
}

.crumby-swatch__img {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	object-fit: contain;
}

.crumby-swatch__name {
	min-width: 0;
	overflow-wrap: anywhere;
}

/*
 * Sold out: visible, not selectable (aria-disabled, ignored by swatches.js).
 * Same size as every other swatch (1.8.0): the tilted tag straddles the
 * top edge (half above the border, ~10px inside it at its lowest corner),
 * so it sits above the image and name instead of pushing them down. The
 * list's 16px row gap keeps it clear of the row above.
 */
.crumby-swatches .crumby-swatch.is-sold-out,
.crumby-swatches .crumby-swatch.is-sold-out:hover {
	background: #f7f7f7;
	border-color: #e4def8;
	cursor: not-allowed;
}

.crumby-swatch.is-sold-out .crumby-swatch__img {
	opacity: 0.45;
}

.crumby-swatch__tag {
	position: absolute;
	z-index: 1;
	top: -11px;
	right: 10px;
	padding: 3px 7px 2px;
	font-family: var(--crumby-font-display);
	font-weight: 400;
	font-synthesis: none;
	font-size: 0.9375rem; /* 15 */
	line-height: 1;
	white-space: nowrap;
	letter-spacing: 0.06em;
	color: #fff;
	background: var(--crumby-ink);
	border-radius: 2px;
	transform: rotate(6deg);
	pointer-events: none;
}

/* Variation details (stock line, and the price when no swatches render). */
.woocommerce div.product form.cart .woocommerce-variation-price .price {
	display: block;
	margin: 0 0 8px;
	font-family: var(--crumby-font-text);
	font-weight: 900;
}

.woocommerce div.product form.cart .woocommerce-variation-availability p.stock {
	margin: 0 0 12px;
	font-size: var(--crumby-fs-small);
}

/*
 * Add-to-cart row (simple and variable): 72x60 quantity beside a 60px
 * Bebas button that takes the rest of the row. Flex replaces Kadence's
 * floats; its clearfix pseudo-elements would otherwise become flex items.
 */
.woocommerce div.product form.cart:not(.variations_form),
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
}

.woocommerce div.product form.cart:not(.variations_form)::before,
.woocommerce div.product form.cart:not(.variations_form)::after,
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart::before,
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart::after {
	content: none;
	display: none;
}

.woocommerce div.product form.cart div.quantity {
	flex: 0 0 auto;
	float: none;
	margin: 0;
}

/* "Sold individually" products print a hidden quantity input. */
.woocommerce div.product form.cart div.quantity:has(> input[type="hidden"]:only-child) {
	display: none;
}

.woocommerce div.product form.cart div.quantity .qty {
	width: 72px;
	height: 60px;
	padding: 0 4px;
	font-family: var(--crumby-font-text);
	font-weight: 700;
	font-size: 1.125rem;
	text-align: center;
	color: var(--crumby-ink);
	background: #fff;
	border: 2px solid var(--crumby-lavender);
	border-radius: 6px;
	box-shadow: none;
}

.woocommerce div.product form.cart div.quantity .qty:focus {
	border-color: var(--crumby-purple-dark);
	outline: 2px solid var(--crumby-purple-dark);
	outline-offset: 2px;
}

/* Kadence "custom quantity" (+/-) buttons, if that option is ever turned on. */
.woocommerce div.product form.cart div.quantity.spinners-added {
	display: flex;
	height: 60px;
	border: 2px solid var(--crumby-lavender);
	border-radius: 6px;
}

.woocommerce div.product form.cart div.quantity.spinners-added .qty {
	height: 56px;
	border: 0;
}

.woocommerce div.product form.cart .button.single_add_to_cart_button {
	flex: 1 1 240px;
	float: none;
	height: 60px;
	margin: 0;
	padding: 0 24px;
	font-family: var(--crumby-font-display);
	font-weight: 400;
	font-synthesis: none;
	font-size: var(--crumby-fs-button-display); /* 28 */
	line-height: 1;
	letter-spacing: var(--crumby-ls-button);
	text-transform: none;
	color: #fff; /* 8.5:1 on --crumby-purple-dark */
	background: var(--crumby-purple-dark);
	border: 0;
	border-radius: 6px;
	box-shadow: none;
	opacity: 1;
	transition: background-color 0.15s ease;
}

.woocommerce div.product form.cart .button.single_add_to_cart_button:hover,
.woocommerce div.product form.cart .button.single_add_to_cart_button:focus {
	color: #fff;
	background: var(--crumby-ink);
	box-shadow: none;
}

.woocommerce div.product form.cart .button.single_add_to_cart_button:focus-visible {
	outline: 2px solid var(--crumby-purple-dark);
	outline-offset: 3px;
}

/*
 * Disabled (no style chosen, or chosen style unavailable). WooCommerce adds
 * .disabled; Kadence fades it to 50%, which leaves white on pale lavender
 * (fails contrast). Instead: flat grey-lavender, dashed edge, dark text 6:1.
 */
.woocommerce div.product form.cart .button.single_add_to_cart_button.disabled,
.woocommerce div.product form.cart .button.single_add_to_cart_button:disabled,
.woocommerce div.product form.cart .button.single_add_to_cart_button.disabled:hover,
.woocommerce div.product form.cart .button.single_add_to_cart_button:disabled:hover {
	color: #565656;
	background: #ece9f5;
	box-shadow: inset 0 0 0 2px #8f86a8;
	opacity: 1;
	cursor: not-allowed;
}

/* Reassurance list (inc/product.php), right after the add-to-cart form. */
.crumby-reassure {
	display: grid;
	gap: 12px;
	margin: 0 0 2.5rem;
	padding: 18px 20px;
	list-style: none;
	font-size: 0.9375rem; /* 15 */
	line-height: 1.45;
	color: var(--crumby-ink);
	background: var(--crumby-tint);
	border-radius: 8px;
}

.crumby-reassure__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
}

.crumby-reassure__icon {
	flex: 0 0 22px;
	color: var(--crumby-purple-dark);
}

.crumby-reassure a {
	font-weight: 700;
	color: var(--crumby-purple-dark); /* 7.6:1 on the tint */
}

.crumby-reassure a:hover {
	color: var(--crumby-purple);
}

@media (prefers-reduced-motion: reduce) {
	.crumby-swatches .crumby-swatch,
	.woocommerce div.product form.cart .button.single_add_to_cart_button {
		transition: none;
	}
}

/* ------------------------------------------------------------------
 * Cart actions: "Apply coupon" (and "Update cart" once enabled) as a
 * secondary outline button. Kadence paints the coupon button pale grey
 * (woocommerce.min.css .woocommerce-cart table.cart .coupon
 * .button:not(:hover)), identical to the disabled Update cart. The
 * disabled Update cart keeps Kadence's grey.
 * ------------------------------------------------------------------ */
.woocommerce-cart table.cart td.actions .button[name="apply_coupon"],
.woocommerce-cart table.cart td.actions .button[name="update_cart"]:not(:disabled) {
	color: var(--crumby-purple-dark);
	background: #fff;
	border: 2px solid var(--crumby-purple);
	line-height: 34px; /* Kadence: height 38px, line-height 38px, no border. */
}

.woocommerce-cart table.cart td.actions .button[name="apply_coupon"]:hover,
.woocommerce-cart table.cart td.actions .button[name="apply_coupon"]:focus-visible,
.woocommerce-cart table.cart td.actions .button[name="update_cart"]:not(:disabled):hover,
.woocommerce-cart table.cart td.actions .button[name="update_cart"]:not(:disabled):focus-visible {
	color: #fff;
	background: var(--crumby-purple);
}

.woocommerce-cart table.cart td.actions .button:focus-visible {
	outline: 2px solid var(--crumby-purple-dark);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------
 * Shipping methods (cart totals + checkout order review): radio beside
 * its label, labels left-aligned. Kadence allows wrapping (radio drops
 * onto its own line) and right-justifies on phones.
 * ------------------------------------------------------------------ */
.woocommerce table.shop_table ul#shipping_method li {
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 0.5em;
	text-align: left;
}

.woocommerce table.shop_table ul#shipping_method li input {
	flex: 0 0 auto;
	margin: 0.3em 0 0;
}

.woocommerce table.shop_table ul#shipping_method li label {
	flex: 1 1 auto;
	min-width: 0;
}

@media screen and (max-width: 719px) {
	/*
	 * Responsive cart totals: put the "Shipment:" label on its own line and
	 * the options left-aligned under it. !important because Kadence forces
	 * text-align:right !important on every responsive table cell.
	 */
	.woocommerce table.shop_table_responsive tr.woocommerce-shipping-totals td {
		text-align: left !important;
	}

	.woocommerce table.shop_table_responsive tr.woocommerce-shipping-totals td::before {
		display: block;
		float: none;
		margin-bottom: 0.5em;
	}
}

/* ------------------------------------------------------------------
 * Cart: locking pin-back upsell (markup from Crumby Store Tweaks)
 * ------------------------------------------------------------------ */
.crumby-upsell {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 1.5rem 0;
	padding: 10px;
	background-color: #fff;
	border: 5px solid var(--crumby-purple);
	border-radius: 3px;
	box-shadow: 0 3px 3px 3px rgba(0, 0, 0, 0.15);
	text-align: left;
}

.crumby-upsell__image {
	flex: 0 0 105px;
	display: block;
}

.crumby-upsell__image img {
	display: block;
	width: 105px;
	height: 105px;
	object-fit: cover;
}

.crumby-upsell__body p {
	margin: 0 0 10px;
}

.crumby-upsell__body p:last-child {
	margin-bottom: 0;
}

.crumby-upsell a:not(.button) {
	text-decoration: underline;
}

.crumby-upsell a:focus-visible {
	outline: 2px solid var(--crumby-purple-dark);
	outline-offset: 2px;
}

.crumby-upsell__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

/* ------------------------------------------------------------------
 * Shop: mobile filter drawer (since 1.6.0)
 *
 * assets/js/filters.js (enqueued by inc/shop.php) adds .crumby-filters-js
 * to <html>, a "Filter" button to the shop toolbar, and a head (title,
 * close) and sticky "Show results" footer inside aside#secondary. Below
 * 1025px, where Kadence stacks the sidebar under the grid, the same aside
 * becomes an off-canvas dialog from the left. Without the script nothing
 * here applies. Facet group styling (rows, headings, slider) lives in
 * "Shop sidebar: FacetWP filters"; only the shell is set here.
 *
 * Kadence's global button rules include button:hover / button:focus
 * (0,1,1), so button selectors here carry two classes or an id.
 * ------------------------------------------------------------------ */
.crumby-filter-item,
#secondary .crumby-drawer__head,
#secondary .crumby-drawer__foot {
	display: none;
}

@media screen and (max-width: 1024px) {
	.crumby-filters-js .kadence-shop-top-row {
		align-items: center;
		gap: 12px;
	}

	.crumby-filters-js .crumby-filter-item {
		display: block;
	}

	.crumby-filters-js .crumby-filter-toggle {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		min-height: 44px;
		margin: 0;
		padding: 6px 16px 4px;
		font-family: var(--crumby-font-display);
		font-weight: 400;
		font-synthesis: none;
		font-size: 1.375rem; /* 22 */
		line-height: 1;
		letter-spacing: var(--crumby-ls-button);
		text-transform: uppercase;
		color: var(--crumby-ink);
		background: #fff;
		border: 2px solid var(--crumby-ink);
		border-radius: 6px;
		box-shadow: none;
		transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	}

	.crumby-filters-js .crumby-filter-toggle:hover,
	.crumby-filters-js .crumby-filter-toggle:focus,
	.crumby-filters-js .crumby-filter-toggle:active {
		color: var(--crumby-purple-dark);
		background: var(--crumby-tint);
		border-color: var(--crumby-purple-dark);
		box-shadow: none;
	}

	.crumby-filters-js .crumby-filter-toggle:focus-visible {
		outline: 2px solid var(--crumby-purple-dark);
		outline-offset: 2px;
	}

	.crumby-filter-toggle svg {
		flex: 0 0 auto;
		margin-top: -2px;
	}

	/* Active selections: Lato on orange, ink text (7.4:1). */
	.crumby-filter-toggle__count {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 22px;
		height: 22px;
		margin-top: -2px;
		padding: 0 6px;
		font-family: var(--crumby-font-text);
		font-weight: 900;
		font-size: var(--crumby-fs-label);
		letter-spacing: 0;
		color: var(--crumby-ink);
		background: var(--crumby-orange);
		border-radius: 999px;
	}

	.crumby-filter-toggle__count[hidden] {
		display: none;
	}

	/* The drawer: Kadence's aside#secondary, fixed to the left edge. */
	.crumby-filters-js #secondary {
		/* FacetWP rows and expand toggles: 44px tap targets inside the drawer. */
		--crumby-facet-row: 44px;
		--crumby-facet-expand: 44px;
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 100010; /* above Kadence's header (up to 100000) and #kt-scroll-up (1000) */
		display: flex;
		flex-direction: column;
		width: min(88vw, 380px);
		max-width: none;
		margin: 0;
		padding: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		background: #fff;
		box-shadow: 0 0 40px rgba(29, 21, 48, 0.28);
		transform: translateX(-105%);
		visibility: hidden;
		transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.28s;
	}

	.crumby-filters-open #secondary {
		transform: none;
		visibility: visible;
		transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
	}

	.crumby-filters-js #secondary:focus {
		outline: 0;
	}

	.crumby-filters-js #secondary .sidebar-inner-wrap {
		flex: 1 0 auto;
		padding: 16px 20px 24px;
	}

	.crumby-filters-js #secondary .crumby-drawer__head {
		position: sticky;
		top: 0;
		z-index: 2;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 10px 10px 10px 20px;
		background: #fff;
		border-bottom: 1px solid #e4def8;
	}

	.crumby-filters-js #secondary .crumby-drawer__title {
		margin: 0;
		font-family: var(--crumby-font-display);
		font-weight: 400;
		font-synthesis: none;
		font-size: var(--crumby-fs-h4);
		line-height: var(--crumby-lh-heading);
		letter-spacing: var(--crumby-ls-heading-sm);
		color: var(--crumby-ink);
	}

	#secondary .crumby-drawer__close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 44px;
		width: 44px;
		height: 44px;
		margin: 0;
		padding: 0;
		color: var(--crumby-ink);
		background: transparent;
		border: 0;
		border-radius: 6px;
		box-shadow: none;
	}

	#secondary .crumby-drawer__close:hover,
	#secondary .crumby-drawer__close:focus,
	#secondary .crumby-drawer__close:active {
		color: var(--crumby-purple-dark);
		background: var(--crumby-tint);
		box-shadow: none;
	}

	#secondary .crumby-drawer__close:focus-visible,
	#secondary .crumby-drawer__done:focus-visible {
		outline: 2px solid var(--crumby-purple-dark);
		outline-offset: 2px;
	}

	/* Sticky "Show results" footer; margin-top:auto keeps it at the bottom when the list is short. */
	.crumby-filters-js #secondary .crumby-drawer__foot {
		position: sticky;
		bottom: 0;
		z-index: 2;
		display: block;
		margin-top: auto;
		padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
		background: #fff;
		border-top: 1px solid #e4def8;
	}

	#secondary .crumby-drawer__done {
		display: block;
		width: 100%;
		min-height: 52px;
		margin: 0;
		padding: 6px 20px 4px;
		font-family: var(--crumby-font-display);
		font-weight: 400;
		font-synthesis: none;
		font-size: 1.5rem; /* 24 */
		line-height: 1;
		letter-spacing: var(--crumby-ls-button);
		color: #fff; /* 8.5:1 on --crumby-purple-dark */
		background: var(--crumby-purple-dark);
		border: 0;
		border-radius: 6px;
		box-shadow: none;
	}

	#secondary .crumby-drawer__done:hover,
	#secondary .crumby-drawer__done:focus,
	#secondary .crumby-drawer__done:active {
		color: #fff;
		background: var(--crumby-ink);
		box-shadow: none;
	}

	.crumby-drawer-backdrop {
		position: fixed;
		inset: 0;
		z-index: 100009;
		background: rgba(29, 21, 48, 0.55); /* --crumby-ink */
		opacity: 0;
		transition: opacity 0.28s ease;
	}

	.crumby-drawer-backdrop.is-visible {
		opacity: 1;
	}

	/* Background scroll lock while the drawer is open. */
	html.crumby-filters-open,
	html.crumby-filters-open body {
		overflow: hidden;
	}
}

/* Phones: results count on its own line, Filter + Sort by side by side under it. */
@media screen and (max-width: 767px) {
	.crumby-filters-js .kadence-shop-top-row .kadence-woo-results-count {
		flex: 1 0 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.crumby-filters-js #secondary,
	.crumby-filters-open #secondary,
	.crumby-drawer-backdrop,
	.crumby-filters-js .crumby-filter-toggle {
		transition: none;
	}
}

/* ------------------------------------------------------------------
 * Checkout: order review (since 1.6.0)
 *
 * Classic shortcode checkout; WooCommerce markup, field names and IDs
 * are untouched and the payment box (Stripe / WooPayments) is not styled
 * here. Selectors start at table.woocommerce-checkout-review-order-table
 * so the cart totals keep the "Shipping methods" rules above.
 * ------------------------------------------------------------------ */

/*
 * Shipping methods as full-width selectable cards. The radio sits over
 * the label's left padding, so the whole card is the tap target.
 */
.woocommerce table.woocommerce-checkout-review-order-table ul#shipping_method li {
	position: relative;
	display: block;
	margin: 0 0 8px;
	text-align: left;
}

.woocommerce table.woocommerce-checkout-review-order-table ul#shipping_method li:last-child {
	margin-bottom: 0;
}

.woocommerce table.woocommerce-checkout-review-order-table ul#shipping_method li input {
	position: absolute;
	top: 15px;
	left: 14px;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--crumby-purple-dark);
	cursor: pointer;
}

.woocommerce table.woocommerce-checkout-review-order-table ul#shipping_method li label {
	display: block;
	min-height: 52px;
	margin: 0;
	padding: 13px 14px 13px 46px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--crumby-ink);
	background: #fff;
	border: 2px solid #e4def8;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.woocommerce table.woocommerce-checkout-review-order-table ul#shipping_method li label .amount {
	font-weight: 900;
	white-space: nowrap;
}

.woocommerce table.woocommerce-checkout-review-order-table ul#shipping_method li label:hover {
	border-color: var(--crumby-purple);
}

.woocommerce table.woocommerce-checkout-review-order-table ul#shipping_method li input:checked + label {
	background: var(--crumby-tint);
	border-color: var(--crumby-purple-dark);
}

.woocommerce table.woocommerce-checkout-review-order-table ul#shipping_method li input:focus-visible + label {
	outline: 2px solid var(--crumby-purple-dark);
	outline-offset: 2px;
}

/* Only one method: WooCommerce prints a hidden input, no radio. */
.woocommerce table.woocommerce-checkout-review-order-table ul#shipping_method li input[type="hidden"] + label {
	padding-left: 14px;
	background: var(--crumby-tint);
	cursor: default;
}

/*
 * Shipping insurance row (Crumby Store Tweaks: tr.crumby-insurance >
 * td[colspan=2] > label.checkbox > input#crumby_insurance + span). Tinted
 * card, checkbox lined up with the shipping radios, shield icon drawn
 * before the text with a mask (inline data: SVG, no request).
 */
.woocommerce table.woocommerce-checkout-review-order-table tr.crumby-insurance label.checkbox {
	position: relative;
	display: block;
	min-height: 52px;
	margin: 0;
	padding: 13px 14px 13px 46px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--crumby-ink);
	background: var(--crumby-tint);
	border: 2px solid #e4def8;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.15s ease;
}

.woocommerce table.woocommerce-checkout-review-order-table tr.crumby-insurance label.checkbox:hover {
	border-color: var(--crumby-purple);
}

.woocommerce table.woocommerce-checkout-review-order-table tr.crumby-insurance label.checkbox:has(input:checked) {
	border-color: var(--crumby-purple-dark);
}

.woocommerce table.woocommerce-checkout-review-order-table tr.crumby-insurance label.checkbox:has(input:focus-visible) {
	outline: 2px solid var(--crumby-purple-dark);
	outline-offset: 2px;
}

.woocommerce table.woocommerce-checkout-review-order-table tr.crumby-insurance input#crumby_insurance {
	position: absolute;
	top: 15px;
	left: 14px;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--crumby-purple-dark);
	cursor: pointer;
}

.woocommerce table.woocommerce-checkout-review-order-table tr.crumby-insurance label.checkbox > span::before {
	content: "";
	display: inline-block;
	width: 20px;
	height: 20px;
	margin: 0 6px 0 0;
	vertical-align: -4px;
	background-color: var(--crumby-purple-dark);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.4 7.8-8 9-4.6-1.2-8-4.5-8-9V6z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.4 7.8-8 9-4.6-1.2-8-4.5-8-9V6z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/*
 * Phones: the review table as stacked rows (label left, amount right) so
 * the shipping row and the insurance card can use the full width instead
 * of the right-hand column.
 */
@media screen and (max-width: 719px) {
	.woocommerce table.woocommerce-checkout-review-order-table,
	.woocommerce table.woocommerce-checkout-review-order-table thead,
	.woocommerce table.woocommerce-checkout-review-order-table tbody,
	.woocommerce table.woocommerce-checkout-review-order-table tfoot {
		display: block;
		width: 100%;
	}

	.woocommerce table.woocommerce-checkout-review-order-table tr {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		justify-content: space-between;
	}

	.woocommerce table.woocommerce-checkout-review-order-table th,
	.woocommerce table.woocommerce-checkout-review-order-table td {
		display: block;
		flex: 1 1 auto;
		min-width: 0;
	}

	.woocommerce table.woocommerce-checkout-review-order-table th:last-child,
	.woocommerce table.woocommerce-checkout-review-order-table td:last-child {
		flex: 0 0 auto;
		max-width: 50%;
		text-align: right;
	}

	.woocommerce table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals th,
	.woocommerce table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td,
	.woocommerce table.woocommerce-checkout-review-order-table tr.crumby-insurance td {
		flex: 1 0 100%;
		max-width: none;
		text-align: left;
	}

	.woocommerce table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals th {
		padding-bottom: 4px;
	}

	.woocommerce table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td {
		padding-top: 4px;
		border-top: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.woocommerce table.woocommerce-checkout-review-order-table ul#shipping_method li label,
	.woocommerce table.woocommerce-checkout-review-order-table tr.crumby-insurance label.checkbox {
		transition: none;
	}
}

/* ------------------------------------------------------------------
 * Checkout: headings and notices (since 1.6.0)
 * ------------------------------------------------------------------ */

/*
 * "Ship to a different address?" is an h3 holding a checkbox; at the
 * global h3 size it is a huge Bebas line. Lato 900 label style instead,
 * checkbox centred on the text. Selector mirrors Kadence's float rule
 * (woocommerce.min.css) so it wins on source order.
 */
.woocommerce-checkout .checkout .col-2 h3#ship-to-different-address {
	float: none;
	margin: 1.5rem 0 1rem;
	font-family: var(--crumby-font-text);
	font-weight: 900;
	font-size: var(--crumby-fs-small);
	line-height: 1.4;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--crumby-ink);
}

.woocommerce-checkout .checkout .col-2 h3#ship-to-different-address label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	margin: 0;
	font: inherit;
	letter-spacing: inherit;
	cursor: pointer;
}

.woocommerce-checkout .checkout .col-2 h3#ship-to-different-address input {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--crumby-purple-dark);
}

/* "Returning customer?" / "Have a coupon?": tint card instead of grey + purple bar. */
.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info,
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
	padding: 14px 18px;
	color: var(--crumby-ink);
	background: var(--crumby-tint);
	border: 1px solid #e4def8;
	border-radius: 8px;
}

.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info a,
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info a {
	font-weight: 700;
	color: var(--crumby-purple-dark);
}

/* ------------------------------------------------------------------
 * Checkout: sticky total bar, phones (since 1.6.0)
 *
 * Markup from assets/js/checkout.js (inc/checkout.php). The script adds
 * .is-visible while neither the review table's total row nor the Place
 * order button has been reached, and body.crumby-total-bar-on so the
 * scroll-to-top button can move up out of its way.
 * ------------------------------------------------------------------ */
.crumby-total-bar {
	display: none;
}

@media screen and (max-width: 719px) {
	.crumby-total-bar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 999; /* under #kt-scroll-up (1000) and the header drawers */
		display: block;
		padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
		background: #fff;
		border-top: 1px solid #e4def8;
		box-shadow: 0 -6px 20px rgba(29, 21, 48, 0.12);
		transform: translateY(110%);
		visibility: hidden;
		transition: transform 0.2s ease, visibility 0s linear 0.2s;
	}

	.crumby-total-bar.is-visible {
		transform: none;
		visibility: visible;
		transition: transform 0.2s ease;
	}

	.crumby-total-bar .crumby-total-bar__button {
		display: flex;
		align-items: center;
		gap: 8px;
		width: 100%;
		min-height: 48px;
		margin: 0;
		padding: 8px 14px;
		font-family: var(--crumby-font-text);
		font-size: var(--crumby-fs-small);
		line-height: 1.2;
		letter-spacing: normal;
		text-align: left;
		text-transform: none;
		color: #fff;
		background: var(--crumby-ink);
		border: 0;
		border-radius: 8px;
		box-shadow: none;
	}

	.crumby-total-bar .crumby-total-bar__button:hover,
	.crumby-total-bar .crumby-total-bar__button:focus,
	.crumby-total-bar .crumby-total-bar__button:active {
		color: #fff;
		background: #2c2147; /* lighter ink; orange CTA stays above 6:1 */
		box-shadow: none;
	}

	.crumby-total-bar .crumby-total-bar__button:focus-visible {
		outline: 2px solid var(--crumby-purple-dark);
		outline-offset: 2px;
	}

	.crumby-total-bar__label {
		font-weight: 700;
		color: var(--crumby-lavender);
	}

	.crumby-total-bar__amount {
		font-weight: 900;
		font-size: 1.125rem;
		color: #fff;
	}

	.crumby-total-bar__cta {
		display: inline-flex;
		align-items: center;
		gap: 4px;
		margin-left: auto;
		font-weight: 900;
		font-size: var(--crumby-fs-label);
		letter-spacing: var(--crumby-ls-cta);
		text-transform: uppercase;
		white-space: nowrap;
		color: var(--crumby-orange);
	}

	/* Kadence's scroll-to-top button (position: fixed, bottom set in the Customizer CSS). */
	.crumby-total-bar-on #kt-scroll-up {
		margin-bottom: 72px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.crumby-total-bar,
	.crumby-total-bar.is-visible {
		transition: none;
	}
}

/* ------------------------------------------------------------------
 * Product page: gallery strip, phones (since 1.6.0)
 *
 * assets/js/gallery.js wraps gallery images 2+ in .crumby-gallery-strip.
 * Below 720px they become one horizontal scroll-snap row of 72px thumbs
 * under the main image instead of a 3-column grid, so the title and the
 * swatches come up sooner. Desktop: see "Single product" above.
 * ------------------------------------------------------------------ */
@media screen and (max-width: 719px) {
	.woocommerce div.product div.images .woocommerce-product-gallery__wrapper.crumby-has-strip {
		display: block;
	}

	.woocommerce div.product div.images .woocommerce-product-gallery__wrapper .crumby-gallery-strip {
		display: flex;
		gap: 8px;
		margin-top: 8px;
		padding-bottom: 6px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: thin;
		-webkit-overflow-scrolling: touch;
	}

	.woocommerce div.product div.images .woocommerce-product-gallery__wrapper .crumby-gallery-strip > .woocommerce-product-gallery__image {
		flex: 0 0 72px;
		width: 72px;
		height: 72px;
		margin: 0;
		scroll-snap-align: start;
	}

	.woocommerce div.product div.images .woocommerce-product-gallery__wrapper .crumby-gallery-strip > .woocommerce-product-gallery__image img {
		display: block;
		width: 72px;
		height: 72px;
		object-fit: cover;
	}

	.woocommerce div.product div.images .crumby-gallery-strip a:focus-visible {
		display: block;
		outline: 2px solid var(--crumby-purple-dark);
		outline-offset: -2px;
	}
}

/* ------------------------------------------------------------------
 * My account (logged in) (since 1.8.0)
 *
 * WooCommerce 11.3 classic markup inside the [woocommerce_my_account]
 * shortcode's div.woocommerce, with Kadence 1.6.0's wrap and avatar:
 *   div.account-navigation-wrap
 *     div.kadence-account-avatar > .kadence-customer-image + .kadence-customer-name
 *     nav.woocommerce-MyAccount-navigation > ul > li.is-active > a
 *   div.woocommerce-MyAccount-content
 * Kadence floats the nav right (Customizer: woo_account_navigation_layout
 * "right", body.kadence-account-nav-right) with a hairline. Here: a grid
 * from 900px, nav as a 220px tint panel on the left (it comes first in
 * the DOM, so visual and focus order agree), content takes the rest.
 * Below 900px the nav is a horizontal scroll row of rounded links (6px)
 * above content.
 * Downloads is removed from the menu in inc/account.php.
 * The parent selector needs :has(); without it Kadence's float layout
 * stays as it was.
 * ------------------------------------------------------------------ */
:root {
	--crumby-rule: rgba(29, 21, 48, 0.15); /* --crumby-ink at 15% */
	--crumby-field-border: #8a83a3;        /* 3.7:1 on white (3:1 UI minimum) */
}

/* Kadence's clearfix pseudo-elements would become grid items. */
body.woocommerce-account .woocommerce:has(> .account-navigation-wrap)::before,
body.woocommerce-account .woocommerce:has(> .account-navigation-wrap)::after {
	display: none;
}

body.woocommerce-account .woocommerce:has(> .account-navigation-wrap) > .account-navigation-wrap {
	float: none;
	width: auto;
	margin: 0 0 24px;
	border: 0;
}

body.woocommerce-account .woocommerce:has(> .account-navigation-wrap) > .woocommerce-MyAccount-content {
	float: none;
	width: auto;
	min-width: 0;
	padding: 0;
}

body.woocommerce-account .woocommerce:has(> .account-navigation-wrap) > .account-navigation-wrap ul {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.woocommerce-account .woocommerce:has(> .account-navigation-wrap) > .account-navigation-wrap li {
	margin: 0;
}

body.woocommerce-account .woocommerce:has(> .account-navigation-wrap) > .account-navigation-wrap li a,
body.woocommerce-account .woocommerce:has(> .account-navigation-wrap) > .account-navigation-wrap li:hover a {
	display: flex;
	align-items: center;
	min-height: 44px;
	margin: 0;
	padding: 8px 14px;
	font-family: var(--crumby-font-text);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.25;
	color: var(--crumby-ink);
	text-decoration: none;
	border: 0;
	border-radius: 6px;
	transition: background-color 0.15s ease;
}

body.woocommerce-account .woocommerce:has(> .account-navigation-wrap) > .account-navigation-wrap li:not(.is-active) a:hover {
	background: rgba(29, 21, 48, 0.08);
}

/* Current item: solid ink rounded link (6px), mirroring the header's current pill. */
body.woocommerce-account .woocommerce:has(> .account-navigation-wrap) > .account-navigation-wrap li.is-active a,
body.woocommerce-account .woocommerce:has(> .account-navigation-wrap) > .account-navigation-wrap li.is-active a:hover {
	color: #fff;
	background: var(--crumby-ink);
	border: 0;
}

body.woocommerce-account .woocommerce:has(> .account-navigation-wrap) > .account-navigation-wrap li a:focus-visible {
	outline: 2px solid var(--crumby-purple-dark);
	outline-offset: 2px;
}

/* Avatar and name: lined up with the link text, ruled off from the links. */
body.woocommerce-account .woocommerce:has(> .account-navigation-wrap) .kadence-account-avatar {
	margin: 0 0 10px;
	padding: 0 0 12px 14px;
	border-bottom: 1px solid var(--crumby-rule);
}

body.woocommerce-account .woocommerce:has(> .account-navigation-wrap) .kadence-customer-image {
	left: 14px;
}

body.woocommerce-account .woocommerce:has(> .account-navigation-wrap) .kadence-account-avatar .kadence-customer-name {
	min-width: 0;
	font-weight: 700;
	line-height: 1.3;
	overflow-wrap: anywhere;
	color: var(--crumby-ink);
}

body.woocommerce-account .woocommerce:has(> .account-navigation-wrap) .kadence-customer-image a:focus-visible {
	display: block;
	border-radius: 50%;
	outline: 2px solid var(--crumby-purple-dark);
	outline-offset: 2px;
}

/* Below 900px: one horizontal scroll row of outlined rounded links (6px). */
@media (max-width: 899px) {
	body.woocommerce-account .woocommerce:has(> .account-navigation-wrap) > .account-navigation-wrap ul {
		gap: 8px;
		margin: 0 -4px;
		padding: 4px 4px 8px; /* room for focus rings */
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: thin;
		scrollbar-color: #8a83a3 transparent;
		-webkit-overflow-scrolling: touch;
	}

	body.woocommerce-account .woocommerce:has(> .account-navigation-wrap) > .account-navigation-wrap li {
		flex: 0 0 auto;
	}

	body.woocommerce-account .woocommerce:has(> .account-navigation-wrap) > .account-navigation-wrap li a,
	body.woocommerce-account .woocommerce:has(> .account-navigation-wrap) > .account-navigation-wrap li:hover a {
		white-space: nowrap;
		box-shadow: inset 0 0 0 2px var(--crumby-ink);
	}

	body.woocommerce-account .woocommerce:has(> .account-navigation-wrap) .kadence-account-avatar {
		padding-left: 0;
		border-bottom: 0;
	}

	body.woocommerce-account .woocommerce:has(> .account-navigation-wrap) .kadence-customer-image {
		left: 0;
	}
}

/* 900px+: nav panel left, content right. */
@media (min-width: 900px) {
	body.woocommerce-account .woocommerce:has(> .account-navigation-wrap) {
		display: grid;
		grid-template-columns: 220px minmax(0, 1fr);
		column-gap: 40px;
		align-items: start;
	}

	body.woocommerce-account .woocommerce:has(> .account-navigation-wrap) > :not(.account-navigation-wrap) {
		grid-column: 2;
	}

	body.woocommerce-account .woocommerce:has(> .account-navigation-wrap) > .account-navigation-wrap {
		grid-column: 1;
		grid-row: 1 / span 10;
		margin: 0;
		padding: 16px 12px;
		background: var(--crumby-tint);
		border: 2px solid var(--crumby-ink);
		border-radius: 10px;
	}

	body.woocommerce-account .woocommerce:has(> .account-navigation-wrap) > .account-navigation-wrap ul {
		flex-direction: column;
	}
}

/* Dashboard intro (and the addresses intro): a comfortable measure. */
.woocommerce-account .woocommerce-MyAccount-content > p {
	max-width: 60ch;
	line-height: 1.6;
}

/*
 * Notices on account pages (incl. WooCommerce 11's "Confirm your email
 * address to check for past orders..." notice and its button): tint card
 * like the checkout notices, no grey box or purple left bar; the button
 * small and solid. Error notices keep a red edge on all sides.
 */
body.woocommerce-account .woocommerce :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	padding: 14px 18px;
	line-height: 1.5;
	color: var(--crumby-ink);
	background: var(--crumby-tint);
	border: 1px solid #e4def8;
	border-radius: 8px;
}

body.woocommerce-account .woocommerce :is(.woocommerce-info, .woocommerce-message, .woocommerce-error)::before,
body.woocommerce-account .woocommerce :is(.woocommerce-info, .woocommerce-message, .woocommerce-error)::after {
	display: none;
}

body.woocommerce-account .woocommerce .woocommerce-error {
	display: block; /* a list of messages */
	background: #fff5f5;
	border-color: #b81c23;
}

body.woocommerce-account .woocommerce :is(.woocommerce-info, .woocommerce-message, .woocommerce-error) a:not(.button) {
	font-weight: 700;
	color: var(--crumby-purple-dark);
}

body.woocommerce-account .woocommerce :is(.woocommerce-info, .woocommerce-message) .button {
	float: none;
	flex: 0 0 auto;
	order: 2;
	margin: 0;
	padding: 9px 14px;
	font-family: var(--crumby-font-text);
	font-weight: 900;
	font-size: 0.75rem; /* 12 */
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	background: var(--crumby-purple-dark);
	border: 0;
	border-radius: 6px;
	box-shadow: none;
}

body.woocommerce-account .woocommerce :is(.woocommerce-info, .woocommerce-message) .button:hover,
body.woocommerce-account .woocommerce :is(.woocommerce-info, .woocommerce-message) .button:focus-visible {
	color: #fff;
	background: var(--crumby-ink);
}

body.woocommerce-account .woocommerce :is(.woocommerce-info, .woocommerce-message) .button:focus-visible {
	outline: 2px solid var(--crumby-purple-dark);
	outline-offset: 2px;
}

/*
 * Small outline button: orders table actions, pagination, address
 * "Edit"/"Add" links. "Pay" is the solid primary.
 */
.woocommerce-account .woocommerce-MyAccount-content :is(table.my_account_orders .woocommerce-button.button, .woocommerce-pagination .woocommerce-button.button, .woocommerce-Address-title a.edit) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	float: none;
	min-height: 32px;
	margin: 0;
	padding: 6px 10px;
	font-family: var(--crumby-font-text);
	font-weight: 900;
	font-size: 0.75rem; /* 12 */
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	color: var(--crumby-ink);
	background: transparent;
	border: 2px solid var(--crumby-ink);
	border-radius: 6px;
	box-shadow: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.woocommerce-account .woocommerce-MyAccount-content :is(table.my_account_orders .woocommerce-button.button, .woocommerce-pagination .woocommerce-button.button, .woocommerce-Address-title a.edit):hover {
	color: #fff;
	background: var(--crumby-ink);
}

.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders .woocommerce-button.button.pay {
	color: #fff;
	background: var(--crumby-purple-dark);
	border-color: var(--crumby-purple-dark);
}

.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders .woocommerce-button.button.pay:hover {
	background: var(--crumby-ink);
	border-color: var(--crumby-ink);
}

.woocommerce-account .woocommerce-MyAccount-content :is(table.my_account_orders .woocommerce-button.button, .woocommerce-pagination .woocommerce-button.button, .woocommerce-Address-title a.edit):focus-visible {
	outline: 2px solid var(--crumby-purple-dark);
	outline-offset: 2px;
}

/*
 * Orders table (woocommerce-orders-table shop_table shop_table_responsive
 * my_account_orders): full width of the content column; order number
 * is a tbody th[scope=row]; Status prints a span.crumby-order-status
 * (inc/account.php); Actions right-aligned, 8px apart.
 */
.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders {
	width: 100%;
	margin: 0 0 24px;
	font-size: 1rem;
	border: 0;
	border-collapse: collapse;
	border-radius: 0;
}

.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders thead th {
	padding: 0 12px 10px;
	font-family: var(--crumby-font-text);
	font-weight: 900;
	font-size: 0.75rem; /* 12 */
	line-height: 1.3;
	letter-spacing: 0.08em;
	text-align: left;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--crumby-facet-muted); /* 6.4:1 on white */
	border: 0;
	border-bottom: 2px solid var(--crumby-ink);
}

.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders tbody :is(th, td) {
	padding: 14px 12px;
	font-weight: 400;
	line-height: 1.4;
	text-align: left;
	vertical-align: middle;
	color: var(--crumby-ink);
	background: transparent;
	border: 0;
	border-top: 1px solid var(--crumby-rule);
}

.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders tbody tr:first-child :is(th, td) {
	border-top: 0;
}

.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders :is(th, td):first-child {
	padding-left: 0;
}

.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders :is(th, td):last-child {
	padding-right: 0;
}

.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders .woocommerce-orders-table__cell-order-number a {
	font-weight: 700;
	color: var(--crumby-purple-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders .woocommerce-orders-table__cell-order-number a:hover {
	color: var(--crumby-ink);
}

.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders .woocommerce-orders-table__cell-order-number a:focus-visible {
	outline: 2px solid var(--crumby-purple-dark);
	outline-offset: 2px;
}

.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders .woocommerce-orders-table__cell-order-date {
	white-space: nowrap;
}

.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders .woocommerce-orders-table__cell-order-total {
	font-variant-numeric: tabular-nums;
}

.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders :is(.woocommerce-orders-table__header-order-actions, .woocommerce-orders-table__cell-order-actions) {
	text-align: right;
	white-space: nowrap;
}

.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders .woocommerce-orders-table__cell-order-actions .button + .button {
	margin-left: 8px;
}

/* Status badge. */
.crumby-order-status {
	display: inline-block;
	padding: 3px 10px;
	font-weight: 700;
	font-size: 0.8125rem; /* 13 */
	line-height: 1.3;
	white-space: nowrap;
	color: var(--crumby-ink);
	background: var(--crumby-tint);
	border: 1px solid #e4def8;
	border-radius: 999px;
}

.crumby-order-status--completed {
	color: var(--crumby-purple-dark); /* 7.6:1 on the tint */
}

.crumby-order-status--cancelled,
.crumby-order-status--failed,
.crumby-order-status--refunded {
	color: var(--crumby-facet-muted); /* 6.4:1 on white */
	background: #fff;
}

/* Pagination (Previous / Next). */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-pagination {
	display: flex;
	gap: 8px;
}

/*
 * Phones: WooCommerce's responsive table (Kadence woocommerce.min.css,
 * below 720px) hides the head and the tbody th (the order number!) and
 * stacks cells with "Label:" floats. Each order becomes a bordered card
 * of label / value rows instead.
 */
@media screen and (max-width: 719px) {
	.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders {
		display: block;
	}

	.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders tbody {
		display: grid;
		gap: 12px;
	}

	.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders tbody tr {
		display: block;
		padding: 4px 16px;
		background: #fff;
		border: 2px solid var(--crumby-ink);
		border-radius: 10px;
	}

	.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders tbody tr :is(th, td),
	.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders tbody tr:first-child :is(th, td) {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		padding: 10px 0;
		white-space: normal;
		background: transparent;
		border-top: 1px solid var(--crumby-rule);
	}

	.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders tbody tr > :first-child,
	.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders tbody tr:first-child > :first-child {
		border-top: 0;
	}

	.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders tbody tr :is(th, td)::before {
		content: attr(data-title);
		float: none;
		flex: 0 0 auto;
		font-weight: 900;
		font-size: 0.75rem; /* 12 */
		letter-spacing: 0.08em;
		text-align: left;
		text-transform: uppercase;
		color: var(--crumby-facet-muted);
	}

	/* Actions: no label, buttons in a row, 44px tall. */
	.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders tbody tr .woocommerce-orders-table__cell-order-actions {
		justify-content: flex-start;
		flex-wrap: wrap;
		gap: 8px;
		padding-bottom: 14px;
	}

	.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders tbody tr .woocommerce-orders-table__cell-order-actions::before {
		display: none;
	}

	/*
	 * Total: the price span and the " for 1 item" text node would be
	 * separate flex items pushed apart; a block with the label floated
	 * keeps the value one right-aligned run.
	 */
	.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders tbody tr .woocommerce-orders-table__cell-order-total,
	.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders tbody tr:first-child .woocommerce-orders-table__cell-order-total {
		display: block;
		text-align: right;
	}

	.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders tbody tr .woocommerce-orders-table__cell-order-total::before {
		float: left;
		margin-right: 12px;
		line-height: 1.4rem; /* matches the value's line box (1rem x 1.4) */
	}

	.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders .woocommerce-orders-table__cell-order-actions .button,
	.woocommerce-account .woocommerce-MyAccount-content table.my_account_orders .woocommerce-orders-table__cell-order-actions .button + .button {
		min-height: 44px;
		margin: 0;
		padding: 8px 16px;
	}
}

/*
 * Addresses: two backing cards side by side (stacked when the column is
 * narrow), heading left, "Edit"/"Add" outline button right.
 *   div.u-columns.woocommerce-Addresses.col2-set.addresses
 *     div.woocommerce-Address > header.woocommerce-Address-title.title > h2|h3 + a.edit
 *                              + address
 */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 24px;
	width: auto;
	margin-top: 24px;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses::after,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title::before,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title::after {
	display: none;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address {
	float: none;
	width: auto;
	margin: 0;
	padding: 20px;
	background: #fff;
	border: 2px solid var(--crumby-ink);
	border-radius: 10px;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px 16px;
	margin: 0 0 14px;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title :is(h2, h3) {
	float: none;
	margin: 0;
	font-family: var(--crumby-font-display);
	font-weight: 400;
	font-synthesis: none;
	font-size: 1.625rem; /* 26 */
	line-height: 1;
	letter-spacing: var(--crumby-ls-heading-sm);
	color: var(--crumby-ink);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address address {
	margin: 0;
	font-style: normal;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--crumby-ink);
}

/* Edit address / account details forms: a readable width; first/last fields in two columns. */
.woocommerce-account .woocommerce-MyAccount-content form:has(.woocommerce-address-fields),
.woocommerce-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm {
	max-width: 720px;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: 20px;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper > * {
	grid-column: 1 / -1;
	float: none;
	width: auto;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper > .form-row-first {
	grid-column: 1;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper > .form-row-last {
	grid-column: 2;
}

@media (max-width: 599px) {
	.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper > :is(.form-row-first, .form-row-last) {
		grid-column: 1 / -1;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.woocommerce-account .woocommerce:has(> .account-navigation-wrap) > .account-navigation-wrap li a,
	.woocommerce-account .woocommerce-MyAccount-content :is(table.my_account_orders .woocommerce-button.button, .woocommerce-pagination .woocommerce-button.button, .woocommerce-Address-title a.edit) {
		transition: none;
	}
}

/* ------------------------------------------------------------------
 * My account: login, lost and reset password (logged out) (since 1.8.0)
 *
 * inc/account.php wraps WooCommerce's "Login" h2 + form.woocommerce-form-login
 * in .crumby-login > .crumby-login__card, and adds .crumby-login__why
 * (only when account-page registration is off). Lost / reset password
 * (form.lost_reset_password) get the same card look on their own.
 * The page sits in a centred 960px column; the page h1 drops to the h2
 * size so "My account" and the card's "Login" are not two huge headings.
 * ------------------------------------------------------------------ */
body.woocommerce-account:not(.logged-in) .entry-content > .woocommerce,
body.woocommerce-account:not(.logged-in) .entry-header {
	max-width: 960px;
	margin-right: auto;
	margin-left: auto;
}

body.woocommerce-account:not(.logged-in) .wp-site-blocks .page-title h1 {
	font-size: var(--crumby-fs-h2); /* 32 -> 48 */
}

.crumby-login {
	display: grid;
	gap: 24px;
	align-items: start;
}

@media (min-width: 900px) {
	.crumby-login {
		grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
		gap: 32px;
	}
}

.crumby-login__card,
.woocommerce form.lost_reset_password {
	padding: 32px;
	background: #fff;
	border: 2px solid var(--crumby-ink);
	border-radius: 10px;
}

.woocommerce form.lost_reset_password {
	max-width: 560px;
	margin: 0;
}

.crumby-login__card > h2 {
	margin: 0 0 20px;
	font-family: var(--crumby-font-display);
	font-weight: 400;
	font-synthesis: none;
	font-size: 2rem; /* 32 */
	line-height: 1;
	letter-spacing: var(--crumby-ls-heading);
	color: var(--crumby-ink);
}

/* Kadence boxes form.login (border, padding, margin); the card does that now. */
.woocommerce .crumby-login__card form.login {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
}

.woocommerce form.lost_reset_password > p:first-child {
	margin: 0 0 20px;
	line-height: 1.6;
	color: var(--crumby-ink);
}

.woocommerce :is(.crumby-login__card, .lost_reset_password) .form-row {
	float: none;
	width: auto;
	margin: 0 0 18px;
	padding: 0;
}

.woocommerce :is(.crumby-login__card, .lost_reset_password) .form-row label {
	display: block;
	margin: 0 0 6px;
	font-family: var(--crumby-font-text);
	font-weight: 700;
	font-size: 0.9375rem; /* 15 */
	line-height: 1.4;
	color: var(--crumby-ink);
}

.woocommerce :is(.crumby-login__card, .lost_reset_password) .form-row input.input-text {
	height: 48px;
	margin: 0;
	padding: 0 14px;
	font-family: var(--crumby-font-text);
	font-size: 1rem;
	color: var(--crumby-ink);
	background: #fff;
	border: 2px solid var(--crumby-field-border);
	border-radius: 6px;
	box-shadow: none;
}

.woocommerce :is(.crumby-login__card, .lost_reset_password) .form-row input.input-text:focus {
	border-color: var(--crumby-purple-dark);
	outline: 2px solid var(--crumby-purple-dark);
	outline-offset: 2px;
}

.woocommerce :is(.crumby-login__card, .lost_reset_password) .password-input input.input-text {
	padding-right: 52px;
}

/* WooCommerce's show/hide password eye: a 44px target, centred in the field. */
.woocommerce :is(.crumby-login__card, .lost_reset_password) .show-password-input {
	right: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 6px;
}

.woocommerce :is(.crumby-login__card, .lost_reset_password) .show-password-input::after {
	min-width: 20px;
	min-height: 20px;
	background-color: var(--crumby-facet-muted);
	mask-size: 20px;
}

.woocommerce :is(.crumby-login__card, .lost_reset_password) .show-password-input:hover::after {
	background-color: var(--crumby-ink);
}

.woocommerce :is(.crumby-login__card, .lost_reset_password) .show-password-input:focus-visible {
	outline: 2px solid var(--crumby-purple-dark);
	outline-offset: -4px;
}

/* Remember me, then the full-width Log in button. */
.woocommerce .crumby-login__card form.login .form-row:has(.woocommerce-form-login__submit) {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
	margin-bottom: 16px;
}

.woocommerce .crumby-login__card form.login .form-row:has(.woocommerce-form-login__submit)::before,
.woocommerce .crumby-login__card form.login .form-row:has(.woocommerce-form-login__submit)::after {
	display: none;
}

.woocommerce .crumby-login__card form.login .form-row label.woocommerce-form-login__rememberme {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 10px;
	min-height: 32px;
	margin: 0;
	cursor: pointer;
}

/* Drawn 18px checkbox, as in the shop facets. */
.woocommerce .crumby-login__card form.login input.woocommerce-form__input-checkbox {
	flex: 0 0 18px;
	box-sizing: border-box;
	width: 18px;
	height: 18px;
	margin: 0;
	background: #fff no-repeat center / 12px 12px;
	border: 2px solid var(--crumby-ink);
	border-radius: 4px;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.woocommerce .crumby-login__card form.login input.woocommerce-form__input-checkbox:checked {
	background-color: var(--crumby-purple-dark);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2l2.6 2.6L10 3.4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	border-color: var(--crumby-purple-dark);
}

.woocommerce .crumby-login__card form.login input.woocommerce-form__input-checkbox:focus-visible {
	outline: 2px solid var(--crumby-purple-dark);
	outline-offset: 2px;
}

.woocommerce .crumby-login__card form .form-row .button.woocommerce-form-login__submit,
.woocommerce form.lost_reset_password .form-row .button.woocommerce-Button {
	display: block;
	float: none;
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 24px;
	font-family: var(--crumby-font-display);
	font-weight: 400;
	font-synthesis: none;
	font-size: 1.625rem; /* 26 */
	line-height: 1;
	letter-spacing: var(--crumby-ls-button);
	text-transform: none;
	color: #fff; /* 8.5:1 */
	background: var(--crumby-purple-dark);
	border: 0;
	border-radius: 6px;
	box-shadow: none;
	transition: background-color 0.15s ease;
}

.woocommerce .crumby-login__card form .form-row .button.woocommerce-form-login__submit:hover,
.woocommerce .crumby-login__card form .form-row .button.woocommerce-form-login__submit:focus-visible,
.woocommerce form.lost_reset_password .form-row .button.woocommerce-Button:hover,
.woocommerce form.lost_reset_password .form-row .button.woocommerce-Button:focus-visible {
	color: #fff;
	background: var(--crumby-ink);
}

.woocommerce .crumby-login__card form .form-row .button.woocommerce-form-login__submit:focus-visible,
.woocommerce form.lost_reset_password .form-row .button.woocommerce-Button:focus-visible {
	outline: 2px solid var(--crumby-purple-dark);
	outline-offset: 3px;
}

.woocommerce .crumby-login__card .woocommerce-LostPassword {
	margin: 0;
}

.woocommerce .crumby-login__card .woocommerce-LostPassword a {
	font-weight: 700;
	font-size: 0.9375rem; /* 15 */
	color: var(--crumby-purple-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.woocommerce .crumby-login__card .woocommerce-LostPassword a:hover {
	color: var(--crumby-ink);
}

.woocommerce .crumby-login__card .woocommerce-LostPassword a:focus-visible {
	outline: 2px solid var(--crumby-purple-dark);
	outline-offset: 2px;
}

/* "Why log in?" panel. */
.crumby-login__why {
	padding: 28px;
	color: var(--crumby-ink);
	background: var(--crumby-tint);
	border-radius: 10px;
}

.crumby-login__why-title {
	margin: 0 0 18px;
	font-family: var(--crumby-font-display);
	font-weight: 400;
	font-synthesis: none;
	font-size: 1.625rem; /* 26 */
	line-height: 1;
	letter-spacing: var(--crumby-ls-heading-sm);
	color: var(--crumby-ink);
}

/* Beats Kadence's content list indent (.entry-content ul padding). */
.woocommerce .crumby-login__why ul.crumby-login__list {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.crumby-login__list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.45;
}

.crumby-login__icon {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	color: var(--crumby-ink);
}

@media (max-width: 599px) {
	.crumby-login__card,
	.woocommerce form.lost_reset_password,
	.crumby-login__why {
		padding: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.woocommerce .crumby-login__card form .form-row .button.woocommerce-form-login__submit,
	.woocommerce form.lost_reset_password .form-row .button.woocommerce-Button {
		transition: none;
	}
}
