/*
Theme Name:   The Easy Design (Neve child)
Theme URI:    https://theeasydesign.com
Description:  Design layer for theeasydesign.com on top of Neve + Neve Pro. Colours and fonts are set in the Customizer; this file refines what the Customizer can't.
Author:       The Easy Design
Template:     neve
Version:      1.0.0
Text Domain:  ted-child
*/

/* Colours come from Neve's global palette (Customizer → Colors), so they stay editable there:
   --nv-primary-accent  brand berry      --nv-secondary-accent  darker berry (buttons, hovers)
   --nv-light-bg        oatmeal sections --nv-dark-bg           footer
   --custom-8           mid berry (sale) --custom-9             blush (soft sections)          */

:root {
	--ted-radius: 10px;
	--ted-shadow: 0 1px 2px rgba(42, 28, 35, .06), 0 8px 24px rgba(42, 28, 35, .06);
}

/* ---------- Type ---------- */
h1, h2, h3, h4, .woocommerce-products-header__title, .product_title {
	letter-spacing: -0.01em;
	text-transform: none;
}
.site-logo .brand .nv-title-tagline-wrap .site-title { letter-spacing: -0.01em; }
.site-logo .brand .nv-title-tagline-wrap small { color: var(--nv-text-color); opacity: .75; }

/* ---------- Buttons ---------- */
.button, button, input[type="submit"], .wp-block-button__link, .wp-block-themeisle-blocks-button .wp-block-button__link {
	transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.button:hover, .wp-block-button__link:hover { transform: translateY(-1px); }

/* ---------- Shop: product cards ---------- */
ul.products li.product .sp-product-image,
ul.products li.product .sp-product-image img { border-radius: var(--ted-radius); }
ul.products li.product .sp-product-image { overflow: hidden; box-shadow: var(--ted-shadow); }
ul.products li.product .sp-product-image img { transition: transform .5s ease; }
ul.products li.product:hover .sp-product-image img { transform: scale(1.04); }

ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--bodyfontfamily), var(--nv-fallback-ff); /* the serif is for headings only */
	font-weight: 700;
	font-size: 1.02rem !important;
	line-height: 1.35;
	text-transform: none;
	margin-top: 14px;
}
ul.products li.product .price { font-size: .95rem; }
ul.products li.product .price del { opacity: .55; margin-right: 4px; }
ul.products li.product .price ins { font-weight: 700; text-decoration: none; color: var(--nv-primary-accent); }

/* Sale badge: small pill instead of a loud block */
.woocommerce span.onsale, span.onsale {
	border-radius: 999px;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1.6;
	min-height: 0;
	top: 10px !important;
	left: 10px !important;
	background: var(--custom-8);
	color: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

/* Wishlist heart: round white button instead of an orange square */
.products .sp-wl-wrap .add-to-wl {
	display: flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; padding: 0 !important;
	background: rgba(255, 255, 255, .94) !important;
	color: var(--nv-primary-accent) !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.products .sp-wl-wrap .add-to-wl path { fill: currentColor !important; } /* Sparks paints it white */
.products .sp-wl-wrap .add-to-wl.item-added { background: var(--nv-primary-accent) !important; color: #fff !important; }

/* Shop sidebar: "Uncategorized" never belongs in front of customers */
.wc-block-product-categories-list-item:has(> a[href$="/uncategorized/"]) { display: none; }
.wc-block-product-categories-list-item a { text-decoration: none; }

/* ---------- Product page ---------- */
.single-product .product_title { font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1.2; }
.single-product .summary .price { font-size: 1.35rem; }
.single-product .summary .price ins { font-weight: 700; text-decoration: none; color: var(--nv-primary-accent); }
.single-product .woocommerce-product-gallery img { border-radius: var(--ted-radius); }
.single-product .flex-control-thumbs img { border-radius: 6px; }
.single-product .summary form.cart { margin-top: 1.5em; }
.woocommerce-breadcrumb a, .nv-breadcrumbs-wrap a { text-decoration: none; }

/* ---------- Cookie banner (Complianz): brand colour instead of its own magenta ---------- */
body .cmplz-cookiebanner {
	--cmplz_button_accept_background_color: var(--nv-primary-accent);
	--cmplz_button_accept_border_color: var(--nv-primary-accent);
	--cmplz_hyperlink_color: var(--nv-primary-accent);
	border-radius: 14px;
}

/* ---------- Footer ---------- */
.site-footer, .site-footer p, .site-footer li, .site-footer .widget-title { color: rgba(255, 255, 255, .86); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .widget p.widget-title, .site-footer .widget-title { color: #fff; font-weight: 600; letter-spacing: .04em; }

/* ---------- New homepage (page "Home (2026)") ---------- */
.ted-eyebrow {
	text-transform: uppercase;
	letter-spacing: .14em;
	font-size: .78rem;
	font-weight: 700;
	color: var(--nv-primary-accent);
	margin-bottom: .6em;
}
.ted-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.1; margin-bottom: .45em; }
.ted-hero .ted-lead { font-size: 1.12rem; max-width: 34em; }
.ted-hero img { border-radius: 18px; box-shadow: var(--ted-shadow); }
.ted-trust { font-size: .95rem; opacity: .9; }
.ted-trust strong { color: var(--nv-primary-accent); }

.ted-usp .wp-block-column { text-align: center; }
.ted-usp h3 { font-size: 1.15rem; margin-bottom: .3em; }
.ted-usp p { font-size: .95rem; margin: 0; opacity: .85; }
.ted-usp .ted-usp-icon { font-size: 1.6rem; line-height: 1; margin-bottom: .4em; }

.ted-section-title { text-align: center; margin-bottom: .2em; }
.ted-section-sub { text-align: center; opacity: .8; margin-top: 0; }

.ted-cat .wp-block-cover { border-radius: var(--ted-radius); overflow: hidden; min-height: 280px; }
.ted-cat .wp-block-cover .wp-block-cover__inner-container a { color: #fff; text-decoration: none; }
.ted-cat .wp-block-cover h3 { color: #fff; font-size: 1.35rem; margin: 0; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.ted-cat .wp-block-cover:hover img { transform: scale(1.04); }
.ted-cat .wp-block-cover img { transition: transform .5s ease; }

.ted-about img { border-radius: 18px; }
.ted-newsletter { text-align: center; }
.ted-newsletter .af-form, .ted-newsletter form { max-width: 520px; margin: 0 auto; }
.ted-elsewhere { text-align: center; font-size: .95rem; }
.ted-elsewhere a { font-weight: 600; }

/* Product grids inside the homepage blocks match the shop cards */
.wc-block-grid__product-image img { border-radius: var(--ted-radius); }
.wc-block-grid__product-title { font-weight: 600; font-size: 1rem; }
.wc-block-grid__product-link { text-decoration: none; }
.wc-block-grid .wc-block-grid__product-onsale, .wc-block-grid__product-image .wc-block-grid__product-onsale {
	border-radius: 999px !important; background: var(--custom-8) !important; color: #fff !important; border: 0 !important;
	font-size: 12px !important; font-weight: 700; padding: 3px 10px !important; text-transform: none;
}

/* Full-width bands: centre their content (Neve doesn't apply the block "content width") */
/* (classic theme: WordPress wraps group content in .wp-block-group__inner-container;
    Neve caps it at the container width but leaves it on the left) */
.ted-hero > .wp-block-group__inner-container, .ted-usp > .wp-block-group__inner-container,
.ted-about > .wp-block-group__inner-container { margin-left: auto; margin-right: auto; }
.ted-hero .wp-block-group__inner-container > .wp-block-columns,
.ted-usp .wp-block-group__inner-container > .wp-block-columns { max-width: 1170px; margin-left: auto !important; margin-right: auto !important; }
.ted-about .wp-block-group__inner-container > .wp-block-columns { max-width: 1000px; margin-left: auto !important; margin-right: auto !important; }
.ted-hero .wp-block-columns { gap: 56px; }

/* Secondary buttons in content: outline, so there's one clear main action */
.entry-content .wp-block-button.is-style-secondary .wp-block-button__link {
	background: transparent !important;
	color: var(--nv-primary-accent) !important;
	border: 2px solid var(--nv-primary-accent) !important;
}
.entry-content .wp-block-button.is-style-secondary .wp-block-button__link:hover {
	background: var(--nv-primary-accent) !important;
	color: #fff !important;
}

/* Product grids in blocks: same square images everywhere */
.wc-block-grid__product-image img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }

/* Newsletter (AWeber injects its own pink/orange form): bring it into the design */
.ted-newsletter .af-form, .ted-newsletter .af-body, .ted-newsletter .af-header, .ted-newsletter .af-footer,
.ted-newsletter [class^="AW-Form"] form, .ted-newsletter [class^="AW-Form"] form > div {
	background: transparent !important; border: 0 !important; box-shadow: none !important; padding-left: 0 !important; padding-right: 0 !important;
}
.ted-newsletter input[type="text"], .ted-newsletter input[type="email"] {
	border: 1px solid #d9cdd3 !important; border-radius: 8px !important; padding: 12px 14px !important; background: #fff !important;
}
.ted-newsletter input[type="submit"], .ted-newsletter input.submit, .ted-newsletter button {
	background: var(--nv-secondary-accent) !important; color: #fff !important; border: 0 !important;
	border-radius: 8px !important; padding: 13px 18px !important; font-weight: 700 !important; box-shadow: none !important; text-shadow: none !important;
}

/* Footer: the logo is black on a white square (shown with an inline mix-blend-mode: multiply);
   on the dark footer: invert it and "screen" away the (now black) square → white logo */
.site-footer .builder-item.cr img { filter: invert(1); mix-blend-mode: screen !important; opacity: .9; }
/* Copyright line: the Customizer sets the bottom row's text to black, unreadable on the berry footer */
.site-footer .footer-bottom, .site-footer .builder-item.cr, .site-footer .builder-item.cr div { color: rgba(255, 255, 255, .86) !important; }
/* …and centred (logo + copyright), on every screen size */
.site-footer .footer-bottom .builder-item.cr, .site-footer .footer-bottom .builder-item.cr div { text-align: center !important; }
.site-footer .footer-bottom .builder-item.cr { width: 100%; }
.site-footer .footer-bottom .builder-item.cr .component-wrap { justify-content: center !important; }
.site-footer .footer-bottom .builder-item.cr img { display: block; margin: 0 auto 12px; }
/* Same rules for the markup Neve renders on production and in the deploy (2026-11-17):
   <div class="builder-item …-center"><div class="item--inner builder-item--footer_copyright"> (no .cr) */
.site-footer .builder-item--footer_copyright img { filter: invert(1); mix-blend-mode: screen !important; opacity: .9; display: block; margin: 0 auto 12px; }
.site-footer .builder-item--footer_copyright, .site-footer .builder-item--footer_copyright div { color: rgba(255, 255, 255, .86) !important; text-align: center !important; }
.site-footer .builder-item--footer_copyright .component-wrap { justify-content: center !important; }
.ted-newsletter input:not([type="submit"]):not([type="hidden"]) {
	border: 1px solid #d9cdd3 !important; border-radius: 8px !important; padding: 12px 14px !important; background: #fff !important;
}

@media (max-width: 781px) {
	.ted-hero .wp-block-buttons { justify-content: flex-start; }
	.ted-hero .wp-block-columns { gap: 32px; }
	.ted-cat .wp-block-cover { min-height: 170px; }
	/* 2 per row on phones instead of one long column */
	.ted-cat .wp-block-columns { flex-wrap: wrap !important; gap: 12px; }
	.ted-cat .wp-block-columns > .wp-block-column { flex-basis: calc(50% - 6px) !important; flex-grow: 0; }
	.ted-cat .wp-block-cover h3 { font-size: 1.05rem; }
	.ted-usp .wp-block-columns { flex-wrap: wrap !important; gap: 20px 12px; }
	.ted-usp .wp-block-columns > .wp-block-column { flex-basis: calc(50% - 6px) !important; flex-grow: 0; }
	.wc-block-grid .wc-block-grid__products { display: flex !important; flex-wrap: wrap !important; }
	.wc-block-grid.has-4-columns .wc-block-grid__product,
	.wc-block-grid .wc-block-grid__product { flex: 0 0 50% !important; max-width: 50% !important; }
	.wc-block-grid__product-title { font-size: .9rem; }
}

/* =====================================================================
   Round 2 (2026-11-17)
   ===================================================================== */
:root {
	--ted-line: #ecdfe5;          /* hairlines and card borders */
	--ted-gold: #c9a96e;          /* stars */
	--ted-shadow-lg: 0 24px 60px rgba(42, 28, 35, .16);
}

/* ---------- Announcement bar ---------- */
.ted-announce { margin: 0; font-size: .9rem; letter-spacing: .01em; }
.ted-announce a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; margin-left: 6px; white-space: nowrap; }
.ted-announce-tag {
	display: inline-block; margin-right: 8px; padding: 1px 9px; border-radius: 999px;
	background: rgba(255, 255, 255, .18); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; vertical-align: 1px;
}

/* ---------- Header + menu ---------- */
.header-main { transition: box-shadow .25s ease; }
body.ted-scrolled .header-main { box-shadow: 0 6px 24px rgba(42, 28, 35, .08); }
.header-main .menu-desktop > li > .wrap > a { font-weight: 600; position: relative; }
.header-main .menu-desktop > li:not(.menu-item-nav-cart):not(.menu-item-nav-search) > .wrap > a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px;
	background: var(--nv-primary-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.header-main .menu-desktop > li:hover > .wrap > a::after,
.header-main .menu-desktop > li.current-menu-item > .wrap > a::after { transform: scaleX(1); }
.menu-item-nav-cart .cart-count {
	background: var(--nv-primary-accent) !important; color: #fff !important; border-radius: 999px;
	min-width: 17px; height: 17px; line-height: 17px; font-size: 10px; font-weight: 800; text-align: center;
}

/* "Patterns" mega menu: 3 columns + a featured pattern, as a floating card */
.menu-desktop li.neve-mega-menu > .sub-menu {
	display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) 250px; gap: 0 36px;
	padding: 30px 34px !important; border: 0 !important; border-radius: 16px; box-shadow: var(--ted-shadow-lg) !important;
	background: #fff !important;
}
.menu-desktop li.neve-mega-menu .neve-mm-col { width: auto !important; max-width: none !important; padding: 0 !important; }
.menu-desktop li.neve-mega-menu .neve-mm-col > .sub-menu { position: static !important; box-shadow: none !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
.menu-desktop li.neve-mega-menu .neve-mm-heading > .wrap > a {
	font-family: var(--headingsfontfamily), serif !important; font-size: 1.2rem !important; font-weight: 500; text-transform: none !important;
	color: var(--nv-text-color) !important; padding: 0 0 10px !important; margin-bottom: 6px; border-bottom: 1px solid var(--ted-line);
}
.menu-desktop li.neve-mega-menu .neve-mm-heading .nv-icon { display: none; }
.menu-desktop li.neve-mega-menu .neve-mm-col li > .wrap { padding: 0 !important; min-height: 0 !important; }
.menu-desktop li.neve-mega-menu .neve-mm-col li > .wrap > a { min-height: 0 !important; line-height: 1.4; }
.ted-mm-card > span, .ted-mm-all { display: block !important; }
.menu-desktop li.neve-mega-menu .neve-mm-col li:not(.neve-mm-heading) > .wrap > a {
	color: var(--nv-text-color) !important; padding: 6px 0 !important; font-size: .95rem; transition: color .2s, transform .2s;
}
.menu-desktop li.neve-mega-menu .neve-mm-col li:not(.neve-mm-heading) > .wrap > a:hover { color: var(--nv-primary-accent) !important; transform: translateX(3px); }
.ted-mm-promo { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ted-mm-card { display: block !important; min-height: 0 !important; background: var(--nv-light-bg); border-radius: 12px; padding: 12px; text-decoration: none !important; color: var(--nv-text-color) !important; }
.ted-mm-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.ted-mm-label { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--nv-primary-accent); }
.ted-mm-title { display: block; font-family: var(--headingsfontfamily), serif; font-size: 1.15rem; margin: 2px 0 4px; }
.ted-mm-cta { font-size: .85rem; font-weight: 700; color: var(--nv-primary-accent); }
.ted-mm-all { font-size: .85rem; font-weight: 700; color: var(--nv-primary-accent) !important; padding-left: 4px; }
/* footer bar of the Patterns panel (ted.js): spans all columns */
.ted-mm-foot {
	grid-column: 1 / -1; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
	margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ted-line);
}
.menu-desktop li.neve-mega-menu > .sub-menu > li.ted-mm-foot { display: flex !important; } /* Neve: menu items are display:block */
.ted-mm-note { font-size: .85rem; opacity: .7; }
.ted-mm-actions { display: flex; gap: 10px; margin-left: auto; }
.menu-desktop .ted-mm-foot a.ted-mm-btn {
	display: inline-flex !important; width: auto !important; flex: 0 0 auto; align-items: center; min-height: 0 !important; padding: 9px 18px !important; border-radius: 999px;
	background: var(--nv-primary-accent); color: #fff !important; font-size: .88rem; font-weight: 700; line-height: 1.2; text-decoration: none !important;
	border: 2px solid var(--nv-primary-accent); transition: background-color .2s, color .2s, border-color .2s;
}
.menu-desktop .ted-mm-foot a.ted-mm-btn:hover { background: var(--nv-secondary-accent); border-color: var(--nv-secondary-accent); }
.menu-desktop .ted-mm-foot a.ted-mm-btn--ghost { background: transparent; color: var(--nv-primary-accent) !important; }
.menu-desktop .ted-mm-foot a.ted-mm-btn--ghost:hover { background: var(--custom-9); color: var(--nv-primary-accent) !important; border-color: var(--nv-primary-accent); }
/* "Tools" mega menu (design/tools-menu.php): 2 columns, the second (Deals → Coupons) as a light card */
/* Neve leaves menu items unpositioned and places mega panels from the header row (top ≈ 66px),
   so the item is made the anchor (!important) and the panel starts right at its bottom edge. */
.menu-desktop li.neve-mega-menu.ted-mm-tools { position: relative !important; }
.menu-desktop li.neve-mega-menu.ted-mm-tools > .sub-menu {
	width: max-content !important; max-width: calc(100vw - 40px); top: 100% !important; left: 50% !important; right: auto !important; transform: translateX(-50%) !important;
	grid-template-columns: 210px 180px; gap: 0 24px; padding: 24px 26px !important;
	/* Neve opens on :hover only, with no delay: a short grace period before closing, so a diagonal
	   move from "Tools" to the first column doesn't close it */
	transition: opacity .15s ease .2s, visibility 0s linear .35s !important;
	pointer-events: auto !important; /* Neve sets none on a closed panel: then the grace period can't catch the mouse (a hidden panel isn't clickable anyway) */
}
.menu-desktop li.neve-mega-menu.ted-mm-tools:hover > .sub-menu,
.menu-desktop li.neve-mega-menu.ted-mm-tools:focus-within > .sub-menu { transition: opacity .15s ease 0s, visibility 0s linear 0s !important; }
.menu-desktop li.neve-mega-menu.ted-mm-tools:focus-within > .sub-menu { opacity: 1; visibility: visible; } /* keyboard */
.menu-desktop li.neve-mega-menu.ted-mm-tools .neve-mm-col:last-child { background: var(--nv-light-bg) !important; border-radius: 12px; padding: 14px 18px !important; align-self: start; }

/* ---------- Notices (cart, checkout, account) ---------- */
.woocommerce-info, .woocommerce-message, .woocommerce-error, .woocommerce-notices-wrapper > div {
	background: var(--custom-9) !important; color: var(--nv-text-color) !important;
	border: 0 !important; border-left: 4px solid var(--nv-primary-accent) !important; border-radius: 10px !important;
	padding: 14px 18px !important; display: flex !important; flex-direction: row !important; align-items: center; justify-content: flex-start !important;
	gap: 8px 14px; flex-wrap: wrap; text-align: left !important;
}
.woocommerce-error { border-left-color: #b3261e !important; background: #fdf1f0 !important; }
.woocommerce-info::before, .woocommerce-message::before, .woocommerce-error::before { display: none !important; } /* icon font glyph shows as a box */
.woocommerce-info a:not(.button), .woocommerce-message a:not(.button) { color: var(--nv-primary-accent) !important; font-weight: 700; }
.woocommerce-info .button, .woocommerce-message .button, .woocommerce-info a.showlogin, .woocommerce-info a.showcoupon {
	order: 2; margin-left: auto !important; float: none !important; background: transparent !important; color: var(--nv-primary-accent) !important; border: 2px solid var(--nv-primary-accent) !important;
	border-radius: 8px !important; padding: 7px 14px !important; font-weight: 700; text-decoration: none !important; box-shadow: none !important;
}

/* ---------- Shop / category pages ---------- */
.ted-archive-head { background: var(--custom-9); padding: 52px 0 40px; text-align: center; margin: 0 0 8px; }
.ted-archive-head .container { max-width: 900px; }
.ted-archive-title { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.1; margin: 0 0 .3em; }
.ted-archive-desc { max-width: 620px; margin: 0 auto; opacity: .85; }
.ted-archive-desc p:last-child { margin-bottom: 0; }
.ted-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 24px; }
.ted-chip {
	padding: 7px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--ted-line);
	color: var(--nv-text-color); font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s;
}
.ted-chip:hover, .ted-chip.is-active { background: var(--nv-primary-accent); border-color: var(--nv-primary-accent); color: #fff; }
.ted-archive-head ~ .shop-container .nv-shop, .ted-archive-head ~ .shop-container .nv-sidebar-wrap { margin-top: 36px !important; }

/* sidebar: quieter section titles; the "Size" filter is hidden (every size matches a single product) */
.shop-sidebar details.wp-block-themeisle-blocks-accordion-item:has(.wp-block-woocommerce-attribute-filter) { display: none; }
.shop-sidebar .wp-block-themeisle-blocks-accordion-item { border: 0 !important; border-top: 1px solid var(--ted-line) !important; }
.shop-sidebar .wp-block-themeisle-blocks-accordion-item__title { padding-left: 0 !important; padding-right: 0 !important; background: transparent !important; }
.shop-sidebar .wp-block-themeisle-blocks-accordion-item__title div { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--nv-text-color); }
.shop-sidebar .wp-block-themeisle-blocks-accordion-item__content { padding-left: 0 !important; padding-right: 0 !important; }
.shop-sidebar .wc-block-product-categories-list-item a { color: var(--nv-text-color); font-size: .95rem; }
.shop-sidebar .wc-block-product-categories-list-item a:hover { color: var(--nv-primary-accent); }
.shop-sidebar .wc-block-product-categories-list--depth-0 > .wc-block-product-categories-list-item > a { font-weight: 700; }
.wc-block-components-price-slider__range-input-progress { --range-color: var(--nv-primary-accent) !important; }
.shop-sidebar input.wc-block-components-price-slider__amount { border-radius: 8px !important; border: 1px solid #d9cdd3 !important; }
.shop-sidebar .wp-block-themeisle-blocks-accordion-item:first-child { border-top: 0 !important; }
.woocommerce-ordering select { border-radius: 8px; border: 1px solid #d9cdd3; padding: 10px 14px; background-color: #fff; }
.woocommerce-result-count { font-size: .9rem; opacity: .7; }

.woocommerce-pagination ul.page-numbers { border: 0 !important; display: flex; gap: 8px; justify-content: center; }
.woocommerce-pagination ul.page-numbers li { border: 0 !important; }
.woocommerce-pagination .page-numbers a, .woocommerce-pagination .page-numbers span {
	display: flex !important; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0 !important;
	border-radius: 50%; background: var(--nv-light-bg) !important; color: var(--nv-text-color) !important; font-weight: 700;
}
.woocommerce-pagination .page-numbers span.current, .woocommerce-pagination .page-numbers a:hover { background: var(--nv-primary-accent) !important; color: #fff !important; }

/* ---------- Product page ---------- */
@media (min-width: 960px) {
	/* the summary follows the (taller) gallery while scrolling, so there's no empty column */
	/* z-index: "sticky" makes the summary a stacking context, and Neve Pro's fixed "Add to cart" bar lives
	   inside it, so the bar's own z-index (20) only counts within the summary. Without this, "You may also
	   love" (later in the page, badges at z 11) paints over the bar. 30 = above those, far below the header
	   (99999), popup (10000) and cookie banner. */
	.single-product div.product .summary { position: sticky; top: 120px; align-self: flex-start; z-index: 30; }
}
.single-product div.product .summary { display: flex; flex-direction: column; }
.single-product .summary .product_title { order: 1; margin-bottom: .25em; }
.single-product .summary .price { order: 2; margin-bottom: 1em; }
.single-product .summary .woocommerce-product-details__short-description { order: 3; }
.single-product .summary form.cart { order: 4; }
.single-product .summary .ppc-button-wrapper { order: 5; }
/* PayPal Payments' buttons (Pay with PayPal / Pay Later) had no space before the promise list.
   Only when the buttons actually rendered: the wrapper stays empty without PayPal's script. */
.single-product .summary .ppc-button-wrapper:has(paypal-button, paypal-pay-later-button, iframe, .paypal-buttons) { margin-bottom: 24px; }
.single-product .summary .ted-promise { order: 6; }
.single-product .summary .ted-proof { order: 7; }
.single-product .summary .product_meta { order: 8; }

.single-product .woocommerce-product-details__short-description {
	background: var(--nv-light-bg); border-radius: 12px; padding: 16px 20px; line-height: 1.9; font-size: .97rem;
}
.single-product .woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }
.single-product .summary form.cart { border: 0 !important; padding-bottom: 0 !important; margin-bottom: 18px; }
.single-product .summary .quantity input.qty { border-radius: 8px; border: 1px solid #d9cdd3; height: 100%; }
.single-product .summary .single_add_to_cart_button { border-radius: 8px !important; font-size: 1.02rem; letter-spacing: .01em; }

.ted-promise { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.ted-promise li { display: flex; align-items: center; gap: 12px; font-size: .95rem; line-height: 1.4; }
.ted-promise svg {
	flex: 0 0 34px; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--custom-9);
	fill: none; stroke: var(--nv-primary-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ted-proof { font-size: .9rem; margin: 0 0 18px; opacity: .9; }
.ted-stars { color: var(--ted-gold); letter-spacing: 2px; }
/* Product meta (template override woocommerce/single-product/meta.php): no SKU, categories as chips */
.single-product .summary .product_meta.ted-meta { border-top: 1px solid var(--ted-line); padding-top: 16px; margin-top: 4px; }
.ted-meta__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ted-meta__label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.ted-meta__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ted-meta .ted-chip { padding: 5px 13px; font-size: .82rem; background: var(--nv-light-bg); border-color: transparent; }
.ted-meta .ted-chip:hover, .ted-meta .ted-chip:focus-visible { background: var(--nv-primary-accent); border-color: var(--nv-primary-accent); color: #fff; }

/* description: one readable column instead of a full-width wall of text */
.single-product .woocommerce-tabs { max-width: 780px; margin: 64px auto 0; }
.single-product .woocommerce-tabs ul.tabs { justify-content: center; border-bottom: 1px solid var(--ted-line); }
.single-product .woocommerce-tabs ul.tabs li a { font-family: var(--headingsfontfamily), serif; font-size: 1.35rem; }
.single-product .woocommerce-tabs .panel { font-size: 1.03rem; line-height: 1.75; }
.single-product .related.products > h2, .single-product .upsells.products > h2 { text-align: center; margin-top: 56px; }
.single-product .flex-control-thumbs li img { opacity: .75; transition: opacity .2s; }
.single-product .flex-control-thumbs li img.flex-active, .single-product .flex-control-thumbs li img:hover { opacity: 1; }

/* Neve Pro sticky "Add to cart" bar */
.sticky-add-to-cart--active, .sticky-add-to-cart { box-shadow: 0 -6px 24px rgba(42, 28, 35, .1); }

/* ---------- Cart, checkout, account ---------- */
.ted-empty-cart { margin-top: 56px; text-align: center; }
.ted-empty-cart h2 { margin-bottom: .2em; }
.ted-empty-cart > p { opacity: .8; }
.ted-empty-cart ul.products { text-align: left; margin-top: 28px; }
.woocommerce-cart .return-to-shop { margin-top: 18px; }

.woocommerce-checkout .col2-set, .woocommerce-checkout .woocommerce-checkout-review-order,
.woocommerce-checkout .woocommerce-checkout-review-order-table {
	background: #fff !important;
}
.woocommerce-checkout .col2-set, .woocommerce-checkout .woocommerce-checkout-review-order {
	border: 1px solid var(--ted-line); border-radius: 16px; box-shadow: var(--ted-shadow);
}
.woocommerce-checkout #order_review_heading, .woocommerce-checkout h3 { font-size: 1.4rem; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.woocommerce form .form-row .select2-selection {
	border-radius: 8px !important; border: 1px solid #d9cdd3 !important;
}
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus {
	border-color: var(--nv-primary-accent) !important; box-shadow: 0 0 0 3px rgba(154, 37, 96, .12) !important; outline: 0;
}
.woocommerce-checkout #payment .payment_box { background: var(--nv-light-bg) !important; border-radius: 10px; }

.woocommerce-account:not(.logged-in) .nv-content-wrap .woocommerce,
.woocommerce-account:not(.logged-in) .entry-content > .woocommerce { max-width: 480px; margin: 0 auto; }
.woocommerce-account:not(.logged-in) .woocommerce > h2 { text-align: center; }
.woocommerce-account form.login, .woocommerce-account form.register {
	border: 1px solid var(--ted-line) !important; border-radius: 16px !important; box-shadow: var(--ted-shadow); padding: 28px !important;
}
.woocommerce-account:not(.logged-in) .entry-title, .woocommerce-account:not(.logged-in) h1 { text-align: center; }

/* ---------- Pages built from blocks (Coupons, Contact) ---------- */
.ted-page-hero { text-align: center; }
.ted-page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin-bottom: .35em; }
.ted-page-hero .ted-lead { font-size: 1.12rem; opacity: .9; margin-bottom: 0; }
.ted-page-hero > .wp-block-group__inner-container, .ted-coupons-band > .wp-block-group__inner-container,
.ted-how > .wp-block-group__inner-container, .ted-contact > .wp-block-group__inner-container { margin-left: auto; margin-right: auto; }
.ted-page-hero > .wp-block-group__inner-container { max-width: 760px; }
.ted-how > .wp-block-group__inner-container { max-width: 1000px; }

.ted-coupons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ted-coupon {
	position: relative; text-align: center; background: #fff; border: 1px solid var(--ted-line); border-radius: 16px;
	padding: 26px 18px 22px; box-shadow: var(--ted-shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.ted-coupon:hover { transform: translateY(-3px); box-shadow: var(--ted-shadow-lg); }
.ted-coupon.is-best { border: 2px solid var(--nv-primary-accent); }
.ted-coupon-ribbon {
	position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--nv-primary-accent); color: #fff;
	font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.ted-coupon-off { font-family: var(--headingsfontfamily), serif; font-size: 2.2rem; line-height: 1; color: var(--nv-primary-accent); margin: 0 0 6px; }
.ted-coupon-when { margin: 0 0 16px; font-size: .95rem; }
.ted-code {
	position: relative; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1rem; font-weight: 700; letter-spacing: .12em;
	background: var(--custom-9) !important; color: var(--nv-text-color) !important; border: 1.5px dashed var(--nv-primary-accent) !important;
	border-radius: 8px !important; padding: 8px 16px !important; cursor: copy; box-shadow: none !important; text-transform: none;
}
.ted-code:hover { background: #fff !important; }
.ted-code.is-copied::after {
	content: "Copied!"; position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
	background: var(--nv-dark-bg); color: #fff; font-family: var(--bodyfontfamily), sans-serif; font-size: .75rem; letter-spacing: 0;
	padding: 3px 9px; border-radius: 6px; white-space: nowrap;
}
.ted-steps { list-style: none; counter-reset: ted; padding: 0; margin: 28px 0 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ted-steps li { counter-increment: ted; text-align: center; }
.ted-steps li::before {
	content: counter(ted); display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: 0 auto 12px;
	border-radius: 50%; background: #fff; color: var(--nv-primary-accent); font-family: var(--headingsfontfamily), serif; font-size: 1.3rem;
	box-shadow: var(--ted-shadow);
}
.ted-steps strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.ted-steps span { font-size: .95rem; opacity: .85; }

.ted-contact-cols { gap: 40px !important; align-items: flex-start; }
.ted-help { display: grid; gap: 14px; }
.ted-help-card { background: var(--nv-light-bg); border-radius: 14px; padding: 18px 20px; }
.ted-help-card h3 { font-size: 1.15rem; margin: 0 0 4px; }
.ted-help-card p { margin: 0; font-size: .95rem; }
.ted-help-card a { font-weight: 700; }
.ted-form-card { background: #fff; border: 1px solid var(--ted-line); border-radius: 18px; padding: 30px 32px; box-shadow: var(--ted-shadow); }
.ted-form-card h2 { font-size: 1.6rem; margin-top: 0; }

/* WPForms (its own CSS is turned off in its settings) */
.wpforms-container .wpforms-field { padding: 0 0 16px !important; }
.wpforms-container label.wpforms-field-label { font-weight: 700; margin-bottom: 6px; display: block; }
.wpforms-container .wpforms-required-label { color: var(--nv-primary-accent); }
.wpforms-container input[type="text"], .wpforms-container input[type="email"], .wpforms-container textarea {
	width: 100%; max-width: 100% !important; border-radius: 8px !important; border: 1px solid #d9cdd3 !important; padding: 12px 14px !important; background: #fff;
}
.wpforms-container input:focus, .wpforms-container textarea:focus { border-color: var(--nv-primary-accent) !important; box-shadow: 0 0 0 3px rgba(154, 37, 96, .12); outline: 0; }
.wpforms-container .wpforms-field-limit-text { font-size: .8rem; opacity: .6; margin-top: 4px; }
.wpforms-container .wpforms-field-gdpr-checkbox li { display: flex; gap: 10px; align-items: flex-start; list-style: none; font-size: .92rem; }
.wpforms-container .wpforms-field-gdpr-checkbox ul { padding: 0; margin: 0; }
.wpforms-container button.wpforms-submit, .wpforms-container .wpforms-submit {
	background: var(--nv-secondary-accent) !important; color: #fff !important; border: 0 !important; border-radius: 8px !important;
	padding: 13px 28px !important; font-weight: 700 !important; font-size: 1rem !important; cursor: pointer;
}
.wpforms-container .wpforms-submit:hover { background: var(--nv-primary-accent) !important; }

/* ---------- Newsletter popup (Boxzilla) ---------- */
.boxzilla-overlay { background: rgba(42, 28, 35, .55) !important; backdrop-filter: blur(2px); }
.boxzilla-container .boxzilla {
	border-radius: 18px !important; box-shadow: 0 30px 80px rgba(0, 0, 0, .25) !important; padding: 40px 36px 30px !important; text-align: center;
	background: linear-gradient(180deg, var(--custom-9) 0, #fff 140px) !important;
}
.boxzilla h2 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 .4em; }
.boxzilla .ted-lead { font-size: 1rem; opacity: .9; }
.boxzilla .ted-fineprint { font-size: .8rem; opacity: .6; margin: 8px 0 0; }
.boxzilla .boxzilla-close-icon { color: var(--nv-text-color) !important; opacity: .5; font-size: 28px !important; }
.boxzilla .af-form, .boxzilla .af-body, .boxzilla .af-header, .boxzilla .af-footer, .boxzilla [class^="AW-Form"] form, .boxzilla [class^="AW-Form"] form > div {
	background: transparent !important; border: 0 !important; box-shadow: none !important; padding-left: 0 !important; padding-right: 0 !important;
}
.boxzilla input:not([type="submit"]):not([type="hidden"]) { border: 1px solid #d9cdd3 !important; border-radius: 8px !important; padding: 12px 14px !important; background: #fff !important; width: 100% !important; }
.boxzilla input[type="submit"], .boxzilla input.submit, .boxzilla button:not(.boxzilla-close-icon) {
	background: var(--nv-secondary-accent) !important; color: #fff !important; border: 0 !important; border-radius: 8px !important;
	padding: 13px 18px !important; font-weight: 700 !important; box-shadow: none !important; text-shadow: none !important; width: 100%;
}

/* ---------- Footer ---------- */
.site-footer .wp-block-social-links .wp-social-link {
	background: rgba(255, 255, 255, .1) !important; color: #fff !important; transition: background-color .2s, transform .2s;
}
.site-footer .wp-block-social-links .wp-social-link svg { fill: #fff !important; }
.site-footer .wp-block-social-links .wp-social-link:hover { background: var(--nv-primary-accent) !important; transform: translateY(-2px); }
.grecaptcha-badge { visibility: hidden !important; } /* replaced by the text below the footer */
.ted-recaptcha-note { background: var(--nv-dark-bg); color: rgba(255, 255, 255, .45); font-size: .72rem; text-align: center; padding: 0 16px 20px; }
.ted-recaptcha-note a { color: rgba(255, 255, 255, .6); }

/* ---------- Round 2: phones and tablets ---------- */
@media (max-width: 959px) {
	.ted-coupons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
}
@media (max-width: 781px) {
	.ted-archive-head { padding: 34px 0 26px; }
	.ted-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 20px -15px 0; padding: 0 15px 4px; }
	.ted-chips::-webkit-scrollbar { display: none; }
	.ted-steps { grid-template-columns: 1fr; gap: 22px; }
	.ted-form-card { padding: 22px 18px; }
	.ted-coupon-off { font-size: 1.8rem; }
	.ted-announce { font-size: .82rem; line-height: 1.5; }
	.single-product .woocommerce-tabs { margin-top: 40px; }
}

/* AWeber newsletter form 452029262 (homepage + popup). AWeber's injected CSS uses
   #af-form-… ID selectors with !important, so these need two IDs to win. */
#af-form-452029262 #af-body-452029262 .af-element { padding: 0 0 12px !important; float: none !important; clear: both; }
#af-form-452029262 #af-body-452029262 label.previewLabel {
	float: none !important; width: 100% !important; display: block !important; text-align: left !important; margin: 0 0 5px !important;
	font-family: var(--bodyfontfamily), sans-serif !important; font-size: .9rem !important; font-weight: 700 !important; color: var(--nv-text-color) !important;
}
#af-form-452029262 #af-body-452029262 .af-textWrap { float: none !important; width: 100% !important; }
#af-form-452029262 #af-body-452029262 input.text {
	width: 100% !important; border: 1px solid #d9cdd3 !important; border-radius: 8px !important; padding: 12px 14px !important;
	background: #fff !important; color: var(--nv-text-color) !important; font-family: var(--bodyfontfamily), sans-serif !important; font-size: 1rem !important; box-shadow: none !important;
}
#af-form-452029262 #af-body-452029262 input.text:focus { border-color: var(--nv-primary-accent) !important; box-shadow: 0 0 0 3px rgba(154, 37, 96, .12) !important; outline: 0; }
#af-form-452029262 #af-body-452029262 .buttonContainer { text-align: center !important; padding-top: 6px !important; }
#af-form-452029262 #af-body-452029262 input.submit {
	width: 100% !important; background: var(--nv-secondary-accent) !important; color: #fff !important; border: 0 !important; border-radius: 8px !important;
	padding: 14px 18px !important; font-family: var(--bodyfontfamily), sans-serif !important; font-size: 1rem !important; font-weight: 800 !important;
	text-transform: none !important; letter-spacing: .02em; box-shadow: none !important; text-shadow: none !important; cursor: pointer;
}
#af-form-452029262 #af-body-452029262 input.submit:hover { background: var(--nv-primary-accent) !important; }
#af-form-452029262 #af-body-452029262, #af-form-452029262.af-form { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 auto !important; max-width: 420px !important; }
#af-form-452029262 .af-body .privacyPolicy, #af-form-452029262 .af-body .poweredBy { color: var(--nv-text-color) !important; opacity: .55; font-size: .75rem !important; }
/* homepage product blocks: same dark titles as the shop cards */
.wc-block-grid__product-title, .wc-block-grid__product-link { color: var(--nv-text-color) !important; }
.wc-block-grid__product-price ins { color: var(--nv-primary-accent); font-weight: 700; text-decoration: none; }

/* Mobile menu (slide-in panel): bigger serif items, quieter separators */
.header-menu-sidebar .menu-mobile > li > .wrap > a { font-family: var(--headingsfontfamily), serif; font-size: 1.3rem; color: var(--nv-text-color) !important; }
.header-menu-sidebar .menu-mobile > li.current-menu-item > .wrap > a { color: var(--nv-primary-accent) !important; }
.header-menu-sidebar .menu-mobile li { border-color: var(--ted-line) !important; }
.header-menu-sidebar .menu-mobile .sub-menu a { font-size: 1rem; color: var(--nv-text-color) !important; }
.header-menu-sidebar .menu-mobile .neve-mm-heading > .wrap > a { font-weight: 800; font-size: .75rem !important; letter-spacing: .12em; text-transform: uppercase; color: var(--nv-primary-accent) !important; }
.header-menu-sidebar .menu-mobile .neve-mm-heading .nv-icon { display: none; }

@media (max-width: 781px) {
	/* the floating share bar (Grow Social) sat on top of the product text on phones */
	#dpsp-floating-sidebar { display: none !important; }
}

/* ---------- Shop sidebar: category tree (2026-11-17) ----------
   Crochet / Knitting become section labels; their categories are rows on a guide line with a count;
   the category being viewed is highlighted (class added by ted.js). Categories come first;
   the price filter is hidden because every pattern costs the same ($3.60). */
.shop-sidebar .wp-block-themeisle-blocks-accordion { display: flex; flex-direction: column; }
.shop-sidebar details.wp-block-themeisle-blocks-accordion-item:has(.wp-block-woocommerce-product-categories) { order: -1; border-top: 0 !important; }
.shop-sidebar details.wp-block-themeisle-blocks-accordion-item:has(.wp-block-woocommerce-price-filter) { display: none; }

.shop-sidebar .wc-block-product-categories-list { list-style: none; margin: 0; padding: 0; }
.shop-sidebar .wc-block-product-categories-list-item { margin: 0; padding: 0; }
.shop-sidebar .wc-block-product-categories-list-item > a {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	text-decoration: none; color: var(--nv-text-color); line-height: 1.3;
}
.shop-sidebar .wc-block-product-categories-list-item-count {
	flex: none; font-size: .72rem; font-weight: 700; color: rgba(59, 51, 55, .55);
	background: var(--nv-light-bg); border-radius: 999px; padding: 2px 8px; min-width: 26px; text-align: center;
}
.shop-sidebar .wc-block-product-categories-list-item-count::before,
.shop-sidebar .wc-block-product-categories-list-item-count::after { content: none !important; } /* no ( ) */

/* level 0: section labels */
.shop-sidebar .wc-block-product-categories-list--depth-0 > .wc-block-product-categories-list-item + .wc-block-product-categories-list-item { margin-top: 22px; }
.shop-sidebar .wc-block-product-categories-list--depth-0 > .wc-block-product-categories-list-item > a {
	font-size: .78rem !important; font-weight: 800 !important; letter-spacing: .12em; text-transform: uppercase;
	color: var(--nv-primary-accent) !important; padding: 0 0 8px;
}

/* level 1 and 2: rows on a guide line */
.shop-sidebar .wc-block-product-categories-list--depth-1,
.shop-sidebar .wc-block-product-categories-list--depth-2 { border-left: 2px solid var(--ted-line); margin-left: 2px !important; }
.shop-sidebar .wc-block-product-categories-list--depth-2 { margin: 2px 0 4px 14px !important; }
.shop-sidebar .wc-block-product-categories-list--depth-1 > .wc-block-product-categories-list-item > a,
.shop-sidebar .wc-block-product-categories-list--depth-2 > .wc-block-product-categories-list-item > a {
	padding: 7px 8px 7px 14px; margin-left: -2px; border-left: 2px solid transparent; border-radius: 0 8px 8px 0;
	font-size: .94rem; transition: background-color .15s, color .15s, border-color .15s;
}
.shop-sidebar .wc-block-product-categories-list--depth-2 > .wc-block-product-categories-list-item > a { font-size: .88rem; padding-top: 5px; padding-bottom: 5px; }
.shop-sidebar .wc-block-product-categories-list--depth-1 > .wc-block-product-categories-list-item > a:hover,
.shop-sidebar .wc-block-product-categories-list--depth-2 > .wc-block-product-categories-list-item > a:hover {
	background: var(--nv-light-bg); color: var(--nv-primary-accent);
}
/* where you are */
.shop-sidebar .wc-block-product-categories-list-item.is-current > a {
	background: var(--custom-9) !important; color: var(--nv-primary-accent) !important; font-weight: 700; border-left-color: var(--nv-primary-accent) !important;
}
.shop-sidebar .wc-block-product-categories-list--depth-0 > .wc-block-product-categories-list-item.is-current > a { background: transparent !important; text-decoration: underline; text-underline-offset: 4px; }
.shop-sidebar .wc-block-product-categories-list-item.is-current-parent > a { color: var(--nv-primary-accent); font-weight: 700; }
/* each row = name + count on one line (the count is a sibling of the link), sub-list underneath */
.shop-sidebar .wc-block-product-categories-list-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 6px; }
.shop-sidebar .wc-block-product-categories-list-item > .wc-block-product-categories-list { grid-column: 1 / -1; }
.shop-sidebar .wc-block-product-categories-list-item > .wc-block-product-categories-list-item-count { grid-column: 2; grid-row: 1; margin-right: 6px; }
.shop-sidebar .wc-block-product-categories-list--depth-0 > .wc-block-product-categories-list-item > .wc-block-product-categories-list-item-count {
	background: var(--custom-9); color: var(--nv-primary-accent); margin: 0 6px 8px 0;
}
.shop-sidebar .wc-block-product-categories-list-item.is-current > .wc-block-product-categories-list-item-count { background: var(--nv-primary-accent); color: #fff; }
/* no empty space above the sidebar: the "Active filters" widget is empty until a filter is used */
.shop-sidebar .widget:has(.wp-block-woocommerce-active-filters):not(:has(.wc-block-active-filters__list li)) { display: none; }
@media (min-width: 960px) { .shop-sidebar { padding-top: 0 !important; } }

/* ---------- Landing pages (body.ted-landing, see functions.php) ----------
   Their colours are dedicated per page (Christmas red/green, Taylor…) and stay as built.
   Only layout: photo next to the text, rounded, and kept in view while reading. */
.ted-landing .wp-block-themeisle-blocks-advanced-column .wp-block-image img { border-radius: 18px; box-shadow: var(--ted-shadow-lg, 0 18px 40px rgba(59, 51, 55, .16)); }
.ted-landing .wp-block-themeisle-blocks-advanced-column .wp-block-image figcaption { font-size: .85rem; opacity: .7; }
.ted-landing .entry-content > .alignfull, .ted-landing .nv-content-wrap > .alignfull { margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; width: 100vw; max-width: 100vw; }
@media (min-width: 960px) {
	.ted-landing .has-2-columns > .innerblocks-wrap { align-items: flex-start !important; }
	.ted-landing .has-2-columns > .innerblocks-wrap > .wp-block-themeisle-blocks-advanced-column:has(.wp-block-image) { position: sticky; top: 120px; align-self: flex-start !important; }
}
.ted-landing .wp-block-themeisle-blocks-advanced-column p { line-height: 1.7; }
.ted-landing .nv-content-wrap { padding-bottom: 56px; }

/* ---------- Header mini cart (hover on the cart icon) ----------
   Sparks/Neve put the thumbnail at position:absolute, but the product link is position:relative
   with a 100px left margin, so the image landed on top of the title and price. Anchor it to the row. */
.nv-nav-cart .woocommerce-mini-cart-item > a:not(.remove) { position: static !important; }
.nv-nav-cart .woocommerce-mini-cart-item { min-height: 96px; }
.nv-nav-cart .woocommerce-mini-cart-item img { border-radius: 6px; height: auto !important; max-height: 72px; object-fit: cover; }
.nv-nav-cart .woocommerce-mini-cart-item > a:not(.remove) { line-height: 1.35; font-weight: 600 !important; }
.nv-nav-cart .woocommerce-mini-cart-item .quantity { display: block; margin-top: 4px; }

/* ---------- Search results (functions.php: every search is a product search) ---------- */
.ted-search-form { display: flex; gap: 8px; max-width: 560px; margin: 22px auto 0; }
.ted-search-form input[type="search"] {
	flex: 1 1 auto; min-width: 0; margin: 0; padding: 13px 20px; border-radius: 999px; border: 1px solid var(--ted-line);
	background: #fff; font-size: 1rem; box-shadow: var(--ted-shadow);
}
.ted-search-form input[type="search"]:focus { outline: 0; border-color: var(--nv-primary-accent); box-shadow: 0 0 0 3px rgba(150, 32, 92, .12); }
.ted-search-form button {
	flex: 0 0 auto; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer; font-weight: 700;
	background: var(--nv-primary-accent); color: #fff; transition: background-color .2s;
}
.ted-search-form button:hover { background: var(--nv-secondary-accent); }
.ted-search-head .ted-chips, .ted-search-form + .ted-chips { margin-top: 18px; } /* + shop and category headers */
.ted-search-none { text-align: center; font-size: 1.05rem; margin: 24px 0 8px; opacity: .85; }
.ted-search-pages { margin: 48px 0 8px; padding-top: 32px; border-top: 1px solid var(--ted-line); }
.ted-search-pages h2 { font-size: 1.35rem; margin: 0 0 18px; }
.ted-search-pages__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ted-search-page {
	display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; background: #fff; border: 1px solid var(--ted-line);
	border-radius: var(--ted-radius); color: var(--nv-text-color); text-decoration: none; font-weight: 600; line-height: 1.3;
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ted-search-page.no-img { padding-left: 18px; min-height: 76px; }
.ted-search-page:hover { transform: translateY(-2px); box-shadow: var(--ted-shadow); border-color: var(--nv-primary-accent); color: var(--nv-text-color); }
.ted-search-page__img { flex: 0 0 56px; }
.ted-search-page__img img { display: block; width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.ted-search-page__title { flex: 1 1 auto; }
.ted-search-page__more { color: var(--nv-primary-accent); font-size: 1.1rem; }
@media (max-width: 600px) {
	.ted-search-form button { padding: 0 18px; }
	.ted-search-head { padding: 36px 0 28px; }
}

/* ---------- Header search (magnifier) ----------
   Desktop: a proper dropdown panel instead of a 200px field hanging off the header.
   Mobile menu: the toggle did nothing there (pointer-events:none), so the field is shown inline and clickable. */
.nv-nav-search .search-form { display: flex; align-items: center; gap: 6px; width: 100%; position: relative; }
.nv-nav-search .search-field {
	flex: 1 1 auto; width: auto !important; min-width: 0; margin: 0; padding: 11px 16px !important; border-radius: 999px !important;
	border: 1px solid var(--ted-line) !important; background: #fff; font-size: .95rem;
}
.nv-nav-search .search-field:focus { outline: 0; border-color: var(--nv-primary-accent) !important; box-shadow: 0 0 0 3px rgba(150, 32, 92, .12); }
.nv-nav-search .search-submit {
	position: static !important; flex: 0 0 42px; width: 42px; height: 42px; display: flex !important; align-items: center; justify-content: center;
	border-radius: 999px !important; background: var(--nv-primary-accent) !important; color: #fff !important; border: 0 !important; transition: background-color .2s;
}
.nv-nav-search .search-submit:hover { background: var(--nv-secondary-accent) !important; }
.nv-nav-search .search-submit svg { fill: currentColor; width: 16px; height: 16px; }
.header--row .menu-item-nav-search.minimal .nv-nav-search {
	left: auto !important; right: -14px !important; top: calc(100% + 18px); width: 360px; padding: 12px !important;
	background: #fff; border: 1px solid var(--ted-line); border-radius: 16px; box-shadow: var(--ted-shadow-lg) !important;
}
.header-menu-sidebar .menu-item-nav-search > .nv-nav-search-icon { display: none; }
.header-menu-sidebar .menu-item-nav-search.minimal .nv-nav-search {
	position: static !important; visibility: visible !important; opacity: 1 !important; width: 100% !important;
	padding: 6px 0 !important; box-shadow: none !important; background: transparent; border: 0;
}
.header-menu-sidebar .menu-item-nav-search { width: 100%; }
/* Neve sets pointer-events:none on this item in the slide-out menu: the field could not be clicked */
.header-menu-sidebar .menu-item-nav-search, .header-menu-sidebar .menu-item-nav-search * { pointer-events: auto !important; }

/* ---------- 404 page (404.php + ted_404() in functions.php) ---------- */
.ted-404-head .ted-search-form { margin-top: 26px; }
.ted-404 { padding-bottom: 64px; }
.ted-404-sec { margin-top: 56px; text-align: center; }
.ted-404-sec h2 { margin-bottom: .2em; }
.ted-404-sub { opacity: .8; margin-bottom: 0; }
.ted-404-sec ul.products { text-align: left; margin-top: 26px; }
.ted-404-all { margin-top: 8px; }
.ted-404-promo {
	margin-top: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	padding: 36px 40px; border-radius: 20px; background: var(--nv-light-bg); border: 1px solid var(--ted-line);
}
.ted-404-promo > div { flex: 1 1 380px; }
.ted-404-promo h2 { margin: 0 0 .25em; }
.ted-404-promo p:last-child { margin: 0; opacity: .85; }
.ted-404-promo .button { flex: 0 0 auto; }
@media (max-width: 600px) { .ted-404-promo { padding: 28px 22px; text-align: center; } .ted-404-promo .button { width: 100%; } }
/* fewer than 4 guesses: keep them centred under the heading */
.ted-404-guess ul.products { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 0 30px; }
.ted-404-guess ul.products li.product { flex: 0 1 calc(25% - 23px); width: auto !important; margin: 0 !important; }
.ted-404-guess ul.products::before, .ted-404-guess ul.products::after { display: none !important; }
@media (max-width: 768px) { .ted-404-guess ul.products li.product { flex-basis: calc(50% - 15px); } }

/* ---------- Guide pages (body.ted-guide, see functions.php): Yarn Weight Chart ----------
   Reading width for the text, a soft intro header, a clean chart that scrolls sideways on phones,
   the newsletter call-to-action as a light card, and patterns at the end. */
.ted-guide .nv-content-wrap > :is(p, h2, h3, h4, ul, ol, .wp-block-themeisle-blocks-advanced-heading) { max-width: 760px; margin-left: auto; margin-right: auto; }
.ted-guide .nv-content-wrap > p { font-size: 1.05rem; line-height: 1.75; }
.ted-guide .nv-content-wrap > h2 { margin-top: 56px; margin-bottom: .5em; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.ted-guide .nv-content-wrap > h3 { margin-top: 40px; margin-bottom: .4em; font-size: 1.35rem; }
.ted-guide .nv-content-wrap > p strong { color: var(--nv-primary-accent); }
/* intro */
.ted-guide .nv-content-wrap > .wp-block-themeisle-blocks-advanced-columns:first-child {
	background: var(--custom-9) !important; padding: 64px 20px 56px !important; margin-top: 0 !important; margin-bottom: 48px !important; text-align: center;
}
.ted-guide .nv-content-wrap > .wp-block-themeisle-blocks-advanced-columns:first-child .innerblocks-wrap { max-width: 820px; margin: 0 auto; }
.ted-guide .nv-content-wrap > .wp-block-themeisle-blocks-advanced-columns:first-child h1::before {
	content: "Crochet guide"; display: block; margin-bottom: 14px; font-family: var(--bodyfontfamily), sans-serif; line-height: 1.4; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--nv-primary-accent);
}
.ted-guide .nv-content-wrap > .wp-block-themeisle-blocks-advanced-columns:first-child h1 { text-align: center !important; font-size: clamp(2rem, 3.8vw, 3rem) !important; line-height: 1.12; margin: 0 0 .5em !important; }
.ted-guide .nv-content-wrap > .wp-block-themeisle-blocks-advanced-columns:first-child p { text-align: center !important; font-size: 1.1rem; line-height: 1.7; opacity: .85; margin: 0; }
.ted-guide .wp-block-themeisle-blocks-advanced-columns-separators { display: none; }
/* the chart */
.ted-guide .wp-block-table {
	max-width: 1120px; margin: 0 auto 12px; overflow-x: auto; -webkit-overflow-scrolling: touch;
	background: #fff; border: 1px solid var(--ted-line); border-radius: 16px; box-shadow: var(--ted-shadow);
}
.ted-guide .wp-block-table table { min-width: 880px; width: 100%; border-collapse: collapse; background: #fff !important; font-size: .86rem; line-height: 1.45; margin: 0; }
.ted-guide .wp-block-table :is(th, td) { border: 0 !important; border-bottom: 1px solid var(--ted-line) !important; padding: 12px 10px !important; text-align: center; vertical-align: middle; }
.ted-guide .wp-block-table tr:last-child > * { border-bottom: 0 !important; }
.ted-guide .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: #fff; }
.ted-guide .wp-block-table.is-style-stripes tbody tr:nth-child(even) { background: #fcf7f9; }
.ted-guide .wp-block-table tr:first-child > * { background: var(--custom-9) !important; padding-top: 18px !important; padding-bottom: 14px !important; }
.ted-guide .wp-block-table tr > :first-child {
	position: sticky; left: 0; z-index: 1; min-width: 150px; text-align: left; font-weight: 700; color: var(--nv-text-color);
	background: inherit; box-shadow: 1px 0 0 var(--ted-line);
}
.ted-guide .wp-block-table tr:nth-child(odd) > :first-child { background: #fff; }
.ted-guide .wp-block-table tr:nth-child(even) > :first-child { background: #fcf7f9; }
.ted-guide .wp-block-table img { width: 62px !important; height: auto; display: inline-block; }
.ted-guide .wp-block-table figcaption { font-size: .8rem; opacity: .7; padding: 10px 16px; margin: 0; text-align: center; }
.ted-guide .wp-block-table + * { margin-top: 8px; }
@media (max-width: 700px) { .ted-guide .wp-block-table { border-radius: 12px; margin-left: -4px; margin-right: -4px; } }
/* newsletter call-to-action (reusable block 7875) */
.ted-guide .nv-content-wrap > .wp-block-themeisle-blocks-advanced-columns.has-light-bg {
	max-width: 760px; margin: 56px auto !important; padding: 0 !important; border-radius: 20px; overflow: hidden;
	background: var(--nv-light-bg) !important; border: 1px solid var(--ted-line);
}
.ted-guide .has-light-bg .wp-block-spacer { height: 36px !important; }
.ted-guide .has-light-bg :is(h3, p) { color: var(--nv-text-color) !important; }
.ted-guide .has-light-bg h3 { font-size: clamp(1.5rem, 2.6vw, 2rem) !important; text-transform: none; }
.ted-guide .has-light-bg h3 + p { max-width: 520px; margin: 8px auto 20px !important; opacity: .85; }
.ted-guide .has-light-bg .wp-block-themeisle-blocks-advanced-column { padding: 0 24px !important; }
/* patterns at the end */
.ted-guide-shop { margin-top: 72px; padding: 56px 20px 64px; background: var(--custom-9); text-align: center; }
.ted-guide-shop__inner { max-width: 1170px; margin: 0 auto; }
.ted-guide-shop h2 { margin: 0 0 .2em; }
.ted-guide-shop__sub { opacity: .8; margin: 0 auto 28px; max-width: 560px; }
.ted-guide-shop ul.products { text-align: left; }
.ted-guide .nv-content-wrap { padding-bottom: 0; }
/* free tools card under the chart (functions.php: ted_guide_tools_card) */
.ted-guide .ted-guide-tools {
	max-width: 760px; margin: 28px auto 8px; display: flex; align-items: center; gap: 16px 28px; padding: 22px 26px;
	background: var(--custom-9); border: 1px solid var(--ted-line); border-radius: 16px;
}
.ted-guide-tools__text { flex: 1 1 auto; }
.ted-guide-tools p { margin: 0; line-height: 1.55; }
.ted-guide-tools .ted-eyebrow { margin: 0 0 4px; text-align: left; }
.ted-guide-tools .ted-guide-tools__title { font-family: var(--headingsfontfamily), serif; font-size: 1.3rem; line-height: 1.25; margin: 0 0 4px; }
.ted-guide-tools__links { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ted-guide-tools__all { font-weight: 700; font-size: .9rem; color: var(--nv-primary-accent); text-decoration: none; }
.ted-guide-tools__all:hover { text-decoration: underline; }
@media (max-width: 700px) {
	.ted-guide .ted-guide-tools { flex-direction: column; align-items: flex-start; padding: 20px; }
	.ted-guide-tools__links { align-items: flex-start; }
}
