/* ==========================================================================
   Trippy Fam theme styles
   Layout modeled on trehouse.com; colors and fonts come from theme.json so
   they stay editable in Appearance → Editor → Styles.
   ========================================================================== */

:root {
	--tf-purple: var(--wp--preset--color--purple, #6e5aa3);
	--tf-purple-dark: var(--wp--preset--color--purple-dark, #3b2c66);
	--tf-night: var(--wp--preset--color--night, #1c1430);
	--tf-honey: var(--wp--preset--color--honey, #ffc72c);
	--tf-drip: var(--wp--preset--color--drip, #f28a1e);
	--tf-cream: var(--wp--preset--color--cream, #f6f1d3);
	--tf-lavender: var(--wp--preset--color--lavender, #f3f0fa);
	--tf-line: var(--wp--preset--color--line, #e4e0ee);
	--tf-muted: var(--wp--preset--color--muted, #5e5872);
	--tf-soft: rgba(255, 255, 255, .82);   /* secondary text on the purple page */
	--tf-soft-line: rgba(255, 255, 255, .2);
	--tf-radius: var(--wp--custom--radius--card, 10px);
	--tf-radius-btn: var(--wp--custom--radius--button, 6px);
	--tf-shadow: var(--wp--custom--shadow--card, 0 6px 20px rgba(28, 20, 48, .06));
	--tf-header-h: 76px;
}

html { scroll-behavior: smooth; }
/* clip (not hidden) so the sticky header still works */
.wp-site-blocks { overflow-x: clip; }
.wp-site-blocks > footer.wp-block-template-part { margin-block-start: 0; }
.tf-header-wrap > * { margin-block: 0 !important; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; max-width: 100%; }
:where(.wp-site-blocks) > main { margin-block-start: 0; }
:focus-visible { outline: 3px solid var(--tf-honey); outline-offset: 2px; }

/* ---------- Block styles ---------- */
.wp-block-button.is-style-tf-pill .wp-block-button__link { border-radius: 999px; }
.wp-block-button.is-style-tf-honey .wp-block-button__link { background: var(--tf-honey); color: var(--tf-night); }
.wp-block-button.is-style-tf-honey .wp-block-button__link:hover { background: var(--tf-drip); color: var(--tf-night); }
.wp-block-button.is-style-outline .wp-block-button__link { border: 2px solid currentColor; background: transparent; }
.is-style-tf-eyebrow {
	font-family: var(--wp--preset--font-family--display);
	font-size: .8125rem !important;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--tf-honey);
}
.wp-block-group.is-style-tf-card {
	background: #fff;
	border: 1px solid var(--tf-line);
	border-radius: var(--tf-radius);
	box-shadow: var(--tf-shadow);
}
.wp-block-image.is-style-tf-rounded img { border-radius: var(--tf-radius); }

/* ---------- Promo bar ---------- */
.tf-promo {
	background: var(--tf-honey);
	color: var(--tf-night);
	font-family: var(--wp--preset--font-family--display);
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-align: center;
	text-transform: uppercase;
}
.tf-promo p { margin: 0; }
@media (max-width: 600px) { .tf-promo { font-size: .6875rem; letter-spacing: .03em; } }
.tf-promo a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Header ---------- */
/* The header template part itself sticks (a sticky child of it would not). */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 100; background: var(--tf-purple); }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } }

.tf-header {
	background: var(--tf-purple);
	color: #fff;
	transition: box-shadow .2s ease;
}
.tf-header.is-scrolled { box-shadow: 0 6px 24px rgba(28, 20, 48, .25); }
.tf-header__inner {
	display: grid !important;
	grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); /* logo stays centred unless the menu needs the room */
	align-items: center;
	gap: 1rem;
	min-height: var(--tf-header-h);
}
.tf-header__left { justify-self: start; }
.tf-header__logo { justify-self: center; }
.tf-header__right { justify-self: end; }
.tf-header .wp-block-site-logo img { width: auto; max-height: 60px; }

.tf-header .wp-block-navigation { color: #fff; font-size: .875rem; }
.tf-header .wp-block-navigation__container { gap: 1.1rem !important; }
.tf-header .wp-block-navigation a:hover { color: var(--tf-honey); }
.tf-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background: #fff;
	color: var(--tf-night);
	border: 0;
	border-radius: var(--tf-radius);
	box-shadow: 0 18px 40px rgba(28, 20, 48, .18);
	min-width: 230px;
	padding: .5rem 0;
}
.tf-header .wp-block-navigation .wp-block-navigation__submenu-container a {
	padding: .55rem 1.1rem;
	text-transform: none;
	letter-spacing: 0;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
}
.tf-header .wp-block-navigation .wp-block-navigation__submenu-container a:hover { background: var(--tf-lavender); color: var(--tf-purple); }
.tf-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--tf-purple);
	color: #fff;
}
.tf-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	background: transparent;
	color: #fff;
	box-shadow: none;
}

.tf-header__right { gap: .9rem !important; }
.tf-header__right .wp-block-button__link {
	background: #fff;
	color: var(--tf-purple-dark);
	font-size: .75rem;
	padding: .5rem 1rem;
	border-radius: 999px;
	white-space: nowrap;
}
.tf-header__right .wp-block-button__link:hover { background: var(--tf-honey); color: var(--tf-night); }
.tf-header .wp-block-search__button,
.tf-header .wc-block-customer-account__account-icon,
.tf-header .wc-block-mini-cart__button { color: #fff; background: transparent; border: 0; padding: 4px; }
.tf-header .wp-block-search__button svg { fill: currentColor; width: 26px; height: 26px; }
.tf-header .wc-block-mini-cart__badge { background: var(--tf-honey); color: var(--tf-night); font-weight: 700; }
.tf-header .wp-block-search.wp-block-search__searchfield-hidden .wp-block-search__input { color: var(--tf-night); }

@media (max-width: 960px) {
	.tf-header__right .wp-block-buttons { display: none; }
}
/* Switch the menu to the hamburger below 1200px (core switches at 600px). */
@media (max-width: 1199px) {
	.tf-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.tf-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 600px) {
	:root { --tf-header-h: 64px; }
	.tf-header .wp-block-site-logo img { max-height: 48px; }
	.tf-header__right { gap: .4rem !important; }
	.tf-header__right .wp-block-search { display: none; }
}

/* ---------- Marquee strip ---------- */
.tf-marquee {
	background: var(--tf-honey);
	color: var(--tf-night);
	overflow: hidden;
	padding-block: .7rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: .875rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	white-space: nowrap;
}
.tf-marquee > .wp-block-group__inner-container,
.tf-marquee > p { display: inline-block; }
.tf-marquee p {
	display: inline-block;
	margin: 0;
	padding-left: 100%;
	animation: tf-marquee 28s linear infinite;
}
.tf-marquee:hover p { animation-play-state: paused; }
@keyframes tf-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
	.tf-marquee p { animation: none; padding-left: 0; white-space: normal; }
}

/* ---------- Hero grid (big banner + two stacked tiles) ---------- */
.tf-hero {
	display: grid !important;
	grid-template-columns: 2fr 1fr;
	gap: 6px !important;
}
.tf-hero > * { margin: 0 !important; }
.tf-hero__side { display: grid !important; gap: 6px !important; grid-template-rows: 1fr 1fr; }
.tf-hero__side > * { margin: 0 !important; }
.tf-hero .wp-block-cover { min-height: 0 !important; height: 100%; }
.tf-hero__main.wp-block-cover { aspect-ratio: 1200 / 598; }
.tf-hero__main .wp-block-cover__image-background { object-fit: cover; }
.tf-hero__side .wp-block-cover { min-height: 210px !important; align-items: flex-end; }
.tf-hero__side .wp-block-cover h2 {
	color: #fff;
	font-size: clamp(1.25rem, 2.2vw, 1.75rem);
	text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
	margin: 0 0 .5rem;
	text-transform: uppercase;
}
.tf-hero__side .wp-block-button__link {
	font-size: .75rem;
	padding: .35rem .8rem;
	background: var(--tf-honey);
	color: var(--tf-night);
}
.tf-hero a.tf-hero__link { position: absolute; inset: 0; z-index: 2; }
@media (max-width: 781px) {
	.tf-hero { grid-template-columns: 1fr; }
	.tf-hero__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
	.tf-hero__side .wp-block-cover { min-height: 180px !important; }
}

/* ---------- Category cards ---------- */
.tf-cats {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem !important;
}
.tf-cats > * { margin: 0 !important; }
.tf-cat {
	background: var(--tf-lavender);
	border-radius: var(--tf-radius);
	display: flex !important;
	flex-direction: column;
	text-align: center;
	overflow: hidden;
	padding: 0 0 1rem !important;
}
.tf-cat .wp-block-image { margin: 0; }
.tf-cat .wp-block-image img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	width: 100%;
	transition: transform .4s ease;
}
.tf-cat:hover .wp-block-image img { transform: scale(1.04); }
.tf-cat h3 { margin: 1rem 1rem .4rem; font-size: 1.375rem; }
.tf-cat p { margin: 0 1.1rem .75rem; color: var(--tf-muted); font-size: .9375rem; }
.tf-cat .wp-block-buttons { padding-top: .25rem; }
/* Strain & dosing guide inside a card: shown whole, opens full size */
.tf-cat .tf-cat__guide { margin: 0 1.1rem .75rem; }
.tf-cat .tf-cat__guide a { display: block; }
.tf-cat .tf-cat__guide img { aspect-ratio: 3 / 4; height: auto; contain-intrinsic-size: none; object-fit: contain; border-radius: 6px; }
.tf-cat:hover .tf-cat__guide img { transform: none; }
.tf-cat .tf-cat__guide .wp-element-caption { margin: .35rem 0 0; font-size: .8125rem; }
.tf-cat .wp-block-buttons { margin: auto 1rem 0; }
.tf-cat .wp-block-button { width: 100%; }
.tf-cat .wp-block-button__link { width: 100%; }
@media (max-width: 960px) { .tf-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
	.tf-cats { gap: .75rem !important; }
	.tf-cat p, .tf-cat .tf-cat__guide { display: none; }
	.tf-cat h3 { font-size: 1.1rem; }
	.tf-cat .wp-block-button__link { font-size: .8rem; padding: .6rem .5rem; }
}

/* ---------- Product cards (Trippy Products block) ---------- */
.tf-products__head {
	display: flex;
	align-items: baseline;
	justify-content: center;
	flex-wrap: wrap;
	gap: .5rem 1.5rem;
	margin-bottom: 1.5rem;
	text-align: center;
}
.tf-products__title { margin: 0; }
.tf-products__all { font-weight: 700; text-decoration: none; }
.tf-products__notice {
	background: #fff8e1;
	border: 1px dashed var(--tf-drip);
	border-radius: var(--tf-radius);
	padding: 1rem;
	font-size: .9375rem;
}

.tf-carousel { position: relative; }
.tf-carousel__track {
	list-style: none;
	margin: 0;
	padding: 4px 2px 12px;
	display: grid;
	gap: 1.25rem;
}
.tf-products--carousel .tf-carousel__track {
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 3 * 1.25rem) / 4);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.tf-products--carousel .tf-carousel__track::-webkit-scrollbar { display: none; }
.tf-products--carousel .tf-card { scroll-snap-align: start; }
.tf-products--grid .tf-carousel__track { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 960px) {
	.tf-products--carousel .tf-carousel__track { grid-auto-columns: calc((100% - 2 * 1rem) / 3); gap: 1rem; }
	.tf-products--grid .tf-carousel__track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.tf-products--carousel .tf-carousel__track { grid-auto-columns: 72%; gap: .75rem; }
	.tf-products--grid .tf-carousel__track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
}

.tf-carousel__btn {
	position: absolute;
	top: 38%;
	z-index: 3;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--tf-line);
	background: #fff;
	box-shadow: var(--tf-shadow);
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: opacity .2s, transform .2s;
}
.tf-carousel__btn::before {
	content: "";
	width: 10px;
	height: 10px;
	border: solid var(--tf-night);
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(135deg);
	margin-left: 4px;
}
.tf-carousel__btn--next::before { transform: rotate(-45deg); margin: 0 4px 0 0; }
.tf-carousel__btn--prev { left: -22px; }
.tf-carousel__btn--next { right: -22px; }
.tf-carousel__btn:hover:not(:disabled) { transform: scale(1.06); }
.tf-carousel__btn:disabled { opacity: 0; pointer-events: none; }
.tf-carousel.is-static .tf-carousel__btn { display: none; }
@media (max-width: 600px) { .tf-carousel__btn { display: none; } }

.tf-card {
	background: #fff;
	border: 1px solid var(--tf-line);
	border-radius: var(--tf-radius);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	text-align: center;
	transition: box-shadow .2s ease, transform .2s ease;
}
.tf-card:hover { box-shadow: var(--tf-shadow); transform: translateY(-2px); }
.tf-card__media { position: relative; display: block; background: #fff; }
.tf-card__media img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; padding: .5rem; }
.tf-card__body {
	display: flex;
	flex-direction: column;
	gap: .4rem;
	flex: 1;
	padding: .25rem 1rem 1.1rem;
}
.tf-card__title { font-family: var(--wp--preset--font-family--body); font-size: 1rem; font-weight: 500; line-height: 1.35; margin: 0; }
.tf-card__title a { color: var(--tf-night); text-decoration: none; }
.tf-card__title a:hover { color: var(--tf-purple); }
.tf-card__price { margin: auto 0 0; font-weight: 700; font-size: 1.0625rem; }
.tf-card__price del { color: var(--tf-muted); font-weight: 500; margin-right: .2rem; }
.tf-card__price ins { text-decoration: none; }
.tf-from { font-weight: 700; }
.tf-card__button {
	display: block;
	margin-top: .6rem;
	text-decoration: none;
	text-align: center;
}
.tf-card__button:hover { color: #fff; }

.tf-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	background: var(--tf-night);
	color: #fff;
	font-size: .75rem;
	font-weight: 700;
	line-height: 1;
	padding: .4rem .6rem;
	border-radius: 4px;
}
.tf-badge--sale { background: var(--tf-drip); }

.tf-stars { display: flex; flex-direction: column; align-items: center; gap: .1rem; font-size: .875rem; color: var(--tf-muted); }
.tf-stars::before {
	content: "★★★★★";
	font-size: 1.2rem;
	letter-spacing: 2px;
	background: linear-gradient(90deg, var(--tf-drip) calc(var(--tf-rating, 5) / 5 * 100%), #d9d4e6 0);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ---------- WooCommerce product grids (shop/category pages) ---------- */
.wc-block-product-template .wc-block-product {
	background: #fff;
	border: 1px solid var(--tf-line);
	border-radius: var(--tf-radius);
	display: flex;
	flex-direction: column;
	padding: .5rem .9rem 1.1rem;
	text-align: center;
	transition: box-shadow .2s ease, transform .2s ease;
}
.wc-block-product-template .wc-block-product:hover { box-shadow: var(--tf-shadow); transform: translateY(-2px); }
.wc-block-product .wc-block-components-product-image img { aspect-ratio: 1; object-fit: contain; }
.wc-block-product .wp-block-post-title { font-family: var(--wp--preset--font-family--body); font-weight: 500; font-size: 1rem !important; line-height: 1.35; }
.wc-block-product .wp-block-post-title a { color: var(--tf-night); text-decoration: none; }
.wc-block-product .wc-block-components-product-price { font-weight: 700; margin-top: auto; }
.wc-block-product .wp-block-button.wc-block-components-product-button { margin-top: .6rem; }
.wc-block-product .wc-block-components-product-button .wp-block-button__link { width: 100%; }
.wc-block-components-product-sale-badge {
	background: var(--tf-drip) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 4px !important;
	font-weight: 700;
	text-transform: none;
}
.wc-block-components-product-rating__stars span::before,
.wc-block-components-product-rating-stars__stars span::before { color: var(--tf-drip); }

/* YITH Compare links don't fit the TRĒ House-style cards */
.wc-block-product .compare, .tf-card .compare, .wc-block-product .yith-wcwl-add-to-wishlist { display: none !important; }

/* Shop / category header band */
.tf-archive-head { background: transparent; }
.tf-archive-head .wp-block-term-description,
.tf-archive-head .wc-block-components-product-description { color: var(--tf-soft); max-width: 720px; margin-inline: auto; }
.tf-cat-pills { gap: .5rem !important; }
.tf-cat-pills .wp-block-button__link {
	background: #fff;
	color: var(--tf-night);
	border: 1px solid var(--tf-line);
	border-radius: 999px;
	font-size: .8125rem;
	padding: .45rem 1rem;
}
.tf-cat-pills .wp-block-button__link:hover { background: var(--tf-purple); color: #fff; border-color: var(--tf-purple); }

/* ---------- Single product ---------- */
.tf-product-crumbs { border-bottom: 1px solid var(--tf-soft-line); font-size: .875rem; }
.tf-product-crumbs .woocommerce-breadcrumb { margin: 0; color: var(--tf-soft); }
.tf-product-crumbs a { color: #fff; text-decoration: none; }

.tf-product__summary > * { margin-block: 0 !important; }
.tf-product__summary { gap: .9rem !important; }
.tf-product__summary .wp-block-post-title { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; }
.tf-product__summary .wc-block-components-product-price { font-size: 1.5rem !important; font-weight: 700; }
.tf-product__summary .wc-block-components-product-price del { color: var(--tf-soft); font-weight: 500; }
.tf-product__summary .wc-block-components-product-price ins { text-decoration: none; }
.tf-product__summary .wc-block-components-product-stock-indicator { font-weight: 600; color: #b7f5c4; margin: 0; }
.tf-product__summary .wc-block-components-product-stock-indicator::before { content: "●"; margin-right: .35rem; }
.tf-ship-note { font-size: .9375rem; color: var(--tf-soft); }
.tf-product__summary .wp-block-woocommerce-product-summary ul { padding-left: 1.2rem; color: var(--tf-soft); }

/* Variation buttons */
.tf-product__summary form.variations_form,
.tf-product__summary table.variations,
.tf-product__summary table.variations tbody { display: block; width: 100%; }
.tf-product__summary table.variations { border: 0; margin: 0 0 .5rem; }
.tf-product__summary table.variations tr { display: block; margin-bottom: 1rem; }
.tf-product__summary table.variations th,
.tf-product__summary table.variations td { display: block; padding: 0; border: 0; background: none; text-align: left; }
.tf-product__summary table.variations th.label label,
.tf-product__summary table.variations .label label {
	font-family: var(--wp--preset--font-family--display);
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin-bottom: .5rem;
	display: block;
}
.tf-swatch-select { position: absolute !important; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
/* Boxes size to their text (long colors like "Heather Carolina Blue" fit) */
.tf-swatches { display: flex; flex-wrap: wrap; gap: .4rem; }
.tf-swatch {
	background: #fff;
	border: 1px solid #cfc9dc;
	border-radius: var(--tf-radius-btn);
	color: var(--tf-night);
	cursor: pointer;
	font: 600 .9375rem/1.2 var(--wp--preset--font-family--body);
	min-width: 56px;
	padding: .65rem .85rem;
	text-align: center;
	white-space: nowrap;
	transition: border-color .15s, background .15s;
}
.tf-swatch:hover:not(:disabled) { border-color: var(--tf-night); }
.tf-swatch.is-selected { background: var(--tf-night); border-color: var(--tf-night); color: #fff; }
.tf-swatch:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.tf-product__summary .reset_variations { font-size: .875rem; display: inline-block; margin-top: .25rem; }
.tf-product__summary .woocommerce-variation-price { margin: .5rem 0; font-size: 1.25rem; font-weight: 700; }

/* Quantity + add to cart (like TRĒ House: bordered stepper beside a big button) */
.tf-product__summary form.cart:not(.variations_form),
.tf-product__summary .woocommerce-variation-add-to-cart {
	display: flex;
	gap: .75rem;
	align-items: stretch;
	flex-wrap: wrap;
}
.tf-product__summary .quantity input.qty {
	height: 100%;
	min-height: 40px;
	width: 64px;
	border: 1px solid var(--tf-night);
	border-radius: var(--tf-radius-btn);
	font-size: 1.0625rem;
	text-align: center;
}
.tf-product__summary .single_add_to_cart_button {
	flex: 0 0 auto;
	min-height: 40px;
	padding: .5rem 1.4rem !important;
	font-size: .875rem !important;
	background: var(--tf-honey) !important;
	color: var(--tf-night) !important;
	border-radius: var(--tf-radius-btn) !important;
}
.tf-product__summary .single_add_to_cart_button:hover { background: var(--wp--preset--color--lavender-deep, #c8b6e8) !important; }
.tf-product__summary .single_add_to_cart_button.disabled { opacity: .55; }

.tf-mini-trust {
	border-top: 1px solid var(--tf-soft-line);
	padding-top: 1rem !important;
	display: flex !important;
	justify-content: center;
	gap: .5rem !important;
	text-align: center;
}
.tf-mini-trust {
	align-self: stretch;   /* full width of the summary column, so the row centers under it */
	width: 100%;
}
.tf-mini-trust > * { flex: 0 1 33.333%; margin: 0 !important; }
/* A single badge (Treats products) gets room for its label on one line */
.tf-mini-trust > *:only-child { flex: 0 0 auto; }
.tf-mini-trust > *:only-child p { white-space: nowrap; }
.tf-mini-trust p { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 0; }
.tf-mini-trust img { width: 40px; height: 40px; margin: 0 auto .35rem; display: block; }

.tf-product-gallery .woocommerce-product-gallery { margin: 0; width: 100% !important; float: none !important; }
.tf-product-gallery .woocommerce-product-gallery__image img { width: 100%; border-radius: var(--tf-radius); }
.tf-product-gallery .flex-control-thumbs { display: flex; gap: .5rem; margin-top: .75rem !important; padding: 0; }
.tf-product-gallery .flex-control-thumbs li { list-style: none; width: 72px !important; }
.tf-product-gallery .flex-control-thumbs img { border: 1px solid var(--tf-line); border-radius: 6px; opacity: .7; cursor: pointer; }
.tf-product-gallery .flex-control-thumbs img.flex-active,
.tf-product-gallery .flex-control-thumbs img:hover { opacity: 1; border-color: var(--tf-honey); }

@media (min-width: 782px) {
	.tf-product__summary-col { position: sticky; top: calc(var(--tf-header-h) + 1.5rem); align-self: flex-start; }
}

/* Product details as clean tabs/accordions */
.wp-block-woocommerce-product-details .wc-tabs { border-bottom: 1px solid var(--tf-soft-line); padding: 0; display: flex; gap: 1.5rem; }
.wp-block-woocommerce-product-details .wc-tabs li { list-style: none; }
.wp-block-woocommerce-product-details .wc-tabs li a {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	text-decoration: none;
	color: var(--tf-soft);
	display: block;
	padding: .75rem 0;
	border-bottom: 3px solid transparent;
}
.wp-block-woocommerce-product-details .wc-tabs li.active a { color: #fff; border-color: var(--tf-honey); }

/* ---------- Trust badges strip ---------- */
.tf-trust {
	display: grid !important;
	grid-template-columns: repeat(5, 1fr);
	gap: 1rem !important;
	text-align: center;
}
.tf-trust > * { margin: 0 !important; }
.tf-trust .wp-block-image { margin: 0 auto .6rem; }
.tf-trust .wp-block-image img { width: 64px; height: 64px; }
.tf-trust p {
	font-family: var(--wp--preset--font-family--display);
	font-size: .875rem;
	font-weight: 700;
	letter-spacing: .03em;
	line-height: 1.3;
	text-transform: uppercase;
	margin: 0;
}
@media (max-width: 781px) {
	.tf-trust { grid-template-columns: repeat(3, 1fr); row-gap: 1.75rem !important; }
}
@media (max-width: 480px) {
	.tf-trust { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Story / split sections ---------- */
.tf-split .wp-block-image img { border-radius: var(--tf-radius); width: 100%; object-fit: cover; }

/* ---------- FAQ accordions ---------- */
.tf-faq .wp-block-details {
	border: 1px solid var(--tf-line);
	border-radius: var(--tf-radius);
	background: #fff;
	padding: 1.1rem 1.5rem;
	margin: 0 0 .85rem;
}
.tf-faq .wp-block-details[open] { box-shadow: var(--tf-shadow); }
.tf-faq .wp-block-details summary {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 1.0625rem;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}
.tf-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.tf-faq .wp-block-details summary::after { content: "+"; font-size: 1.6rem; font-weight: 300; line-height: 1; color: var(--tf-purple); }
.tf-faq .wp-block-details[open] summary::after { content: "×"; }
.tf-faq .wp-block-details > :not(summary) { color: var(--tf-muted); margin: 1rem 0 .25rem; line-height: 1.7; }

/* ---------- Footer ---------- */
.tf-footer { background: var(--tf-purple); color: var(--tf-cream); border-top: 1px solid var(--tf-soft-line); padding-top: 0 !important; padding-bottom: 0 !important; }
.tf-footer h2, .tf-footer h3, .tf-footer h4 { color: #fff; }
.tf-footer a { color: var(--tf-cream); text-decoration: none; }
.tf-footer a:hover { color: var(--tf-honey); }
.tf-footer__heading {
	font-family: var(--wp--preset--font-family--display);
	font-size: .9375rem !important;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff !important;
}
.tf-footer .wp-block-list { list-style: none; padding: 0; margin: 0; }
.tf-footer .wp-block-list li { margin: 0 0 .55rem; font-size: .9375rem; }
/* Join the Fam: full-width Light Lavender band with dark text */
.tf-footer__join {
	background: var(--wp--preset--color--lavender-light);
	color: var(--wp--preset--color--ink);
	max-width: none !important;
	margin-inline: calc(50% - 50vw) !important;
	padding: var(--wp--preset--spacing--40) max(clamp(1rem, 3vw, 2rem), calc(50vw - 660px)) !important;
}
.tf-footer .tf-footer__join h2 { color: var(--tf-night); }
.tf-footer .tf-footer__join .is-style-outline .wp-block-button__link { color: var(--tf-night); }
.tf-footer .tf-footer__join .is-style-outline .wp-block-button__link:hover { background: var(--tf-night); border-color: var(--tf-night); color: #fff; }
/* Copyright bar: full-width Honey strip (breaks out of the footer width, content stays aligned) */
.tf-footer__bottom {
	background: var(--tf-honey);
	color: var(--tf-night);
	font-size: .8125rem;
	font-weight: 600;
	max-width: none !important;
	margin-inline: calc(50% - 50vw) !important;
	padding: .85rem max(clamp(1rem, 3vw, 2rem), calc(50vw - 660px)) !important;
}
.tf-footer .tf-footer__bottom a { color: var(--tf-night); }
.tf-footer .tf-footer__bottom a:hover { color: var(--tf-purple-dark); text-decoration: underline; }
.tf-footer__bottom { align-items: center; gap: .75rem 2rem; }
.tf-footer__bottom p { margin: 0; }
/* Health disclaimer in the middle of the copyright strip */
.tf-footer__bottom .tf-footer__disclaimer { flex: 1 1 22rem; max-width: 46rem; text-align: center; font-size: .75rem; font-weight: 500; line-height: 1.5; }
@media (max-width: 960px) { .tf-footer__bottom { justify-content: center !important; text-align: center; } .tf-footer__bottom .tf-footer__disclaimer { order: -1; flex-basis: 100%; max-width: none; } }
.tf-footer .wp-block-social-links .wp-social-link { background: #fff !important; color: var(--tf-night) !important; }
.tf-footer .wp-block-social-links .wp-social-link:hover { background: var(--tf-honey) !important; }
.tf-footer .wp-block-site-logo img { max-width: 110px; }
.tf-pay {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	background: #fff;
	color: #003087;
	border-radius: 6px;
	font: italic 800 1rem/1 var(--wp--preset--font-family--body);
	padding: .45rem .7rem;
}
.tf-pay span { color: #009cde; }

/* ---------- Content pages ---------- */
.tf-lead { font-size: 1.1875rem; color: var(--tf-soft); }
.tf-prose h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.tf-prose h3 { font-size: 1.2rem; margin-top: 1.75rem; }
.tf-prose ul, .tf-prose ol { padding-left: 1.3rem; }
.tf-prose li { margin-bottom: .4rem; }
.tf-prose > :first-child { margin-top: 0; }

.tf-checklist { list-style: none; padding: 0 !important; }
.tf-checklist li { position: relative; padding-left: 2rem; margin-bottom: .7rem; font-weight: 600; }
.tf-checklist li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: .05rem;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 50%;
	background: var(--tf-honey);
	color: var(--tf-night);
	display: grid;
	place-items: center;
	font-size: .8rem;
	font-weight: 800;
}

.tf-features {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem !important;
}
.tf-features > * { margin: 0 !important; }
.tf-feature {
	background: #fff;
	border: 1px solid var(--tf-line);
	border-radius: var(--tf-radius);
	padding: 1.75rem !important;
}
.tf-feature h3 { margin-top: 0; }
.tf-feature p { color: var(--tf-muted); margin-bottom: 0; }
.tf-feature::before {
	content: "";
	display: block;
	width: 42px;
	height: 4px;
	border-radius: 2px;
	background: var(--tf-honey);
	margin-bottom: 1rem;
}
.tf-contact-card { text-align: center; }
.tf-contact-card::before { margin-inline: auto; }
.tf-contact-card p a { font-weight: 700; }
.tf-brand-pill { padding: 1.25rem !important; }
.tf-brand-pill::before { display: none; }
.tf-brand-pill h3 { margin: 0; }
.tf-brand-pill a { color: var(--tf-purple); text-decoration: none; }
.tf-brand-pill:hover { border-color: var(--tf-purple); }

.tf-stats {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem !important;
	text-align: center;
}
.tf-stats > * { margin: 0 !important; }
.tf-stat p { margin: 0; color: var(--tf-cream); }
.tf-stat .tf-stat__num {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 800;
	color: var(--tf-honey);
	line-height: 1.1;
}
.tf-stat .tf-stat__label { font-weight: 600; letter-spacing: .02em; }

.tf-cats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tf-cats--3 .wp-block-image img { aspect-ratio: 3 / 4; }

@media (max-width: 781px) {
	.tf-features { grid-template-columns: 1fr; }
	.tf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem !important; }
	.tf-cats--3 { grid-template-columns: 1fr; }
}

/* ---------- Contact form (Contact Form 7) ---------- */
.tf-contact-line { padding: 1.1rem 1.4rem !important; margin-bottom: .75rem !important; }
.tf-contact-line::before { display: none; }
.tf-contact-line h3 { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tf-purple); margin: 0 0 .2rem; }
.tf-contact-line p { margin: 0; color: var(--tf-night); font-weight: 600; }
.tf-form-card {
	background: #fff;
	border: 1px solid var(--tf-line);
	border-radius: var(--tf-radius);
	box-shadow: var(--tf-shadow);
	padding: clamp(1.25rem, 3vw, 2.25rem) !important;
}
.tf-form-card > h3 { margin-top: 0; }
.wpcf7 form > p, .wpcf7 .tf-form-row { margin: 0 0 1rem; }
.wpcf7 .tf-form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
.wpcf7 .tf-form-row > label { min-width: 0; }
.wpcf7 label { display: block; font-weight: 600; font-size: .9375rem; color: var(--tf-night); }
.wpcf7 .tf-req { color: var(--tf-drip); margin-left: .15rem; }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: .35rem; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 select, .wpcf7 textarea {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	border: 1px solid #cfc9dc;
	border-radius: var(--tf-radius-btn);
	background: #fff;
	color: var(--tf-night);
	font: inherit;
	font-weight: 400;
	padding: .75rem .9rem;
	transition: border-color .15s, box-shadow .15s;
}
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus {
	outline: none;
	border-color: var(--tf-purple);
	box-shadow: 0 0 0 3px rgba(110, 90, 163, .18);
}
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 input[type="submit"] {
	background: var(--tf-purple);
	color: #fff;
	border: 0;
	border-radius: var(--tf-radius-btn);
	cursor: pointer;
	font: 700 1rem/1 var(--wp--preset--font-family--display);
	letter-spacing: .03em;
	padding: 1rem 2rem;
	text-transform: uppercase;
	width: 100%;
	margin-top: .5rem;
}
.wpcf7 input[type="submit"]:hover { background: var(--tf-purple-dark); }
.wpcf7 .wpcf7-spinner { display: block; margin: .75rem auto 0; }
.wpcf7 .wpcf7-not-valid-tip { color: #c62828; font-size: .8125rem; font-weight: 500; margin-top: .3rem; }
.wpcf7 form .wpcf7-response-output { border-radius: var(--tf-radius-btn); margin: 1rem 0 0; padding: .8rem 1rem; }
@media (max-width: 600px) { .wpcf7 .tf-form-row { grid-template-columns: 1fr; gap: 0; } .wpcf7 .tf-form-row > label { margin-bottom: 1rem; } }

/* ---------- Generic page bits ---------- */
.tf-page-hero { background: var(--tf-purple); color: var(--tf-cream); }
.tf-page-hero h1 { color: #fff; }
.tf-404 h1 { font-size: clamp(4rem, 12vw, 8rem); color: var(--tf-honey); }

/* WooCommerce notices & forms */
.woocommerce-message, .woocommerce-info, .wc-block-components-notice-banner { border-radius: var(--tf-radius); }
.woocommerce .button, .woocommerce button.button { border-radius: var(--tf-radius-btn); }

/* ---------- Light boxes on the purple page ----------
   Text on the page is white (theme.json). Cards, FAQ rows, forms and light
   section backgrounds keep dark text, purple links and purple buttons. */
:is(.has-white-background-color, .has-lavender-background-color, .has-lavender-light-background-color, .has-cream-background-color, .has-honey-background-color,
	.is-style-tf-card, .tf-card, .wc-block-product-template .wc-block-product, .tf-cat, .tf-feature, .tf-form-card, .tf-faq .wp-block-details) {
	color: var(--wp--preset--color--ink);
	--tf-soft: var(--tf-muted);
}
:is(.has-white-background-color, .has-lavender-background-color, .has-lavender-light-background-color, .has-cream-background-color, .has-honey-background-color,
	.is-style-tf-card, .tf-card, .wc-block-product-template .wc-block-product, .tf-cat, .tf-feature, .tf-form-card, .tf-faq .wp-block-details)
	:is(h1, h2, h3, h4, h5, h6) { color: var(--tf-night); }
:is(.has-white-background-color, .has-lavender-background-color, .has-lavender-light-background-color, .has-cream-background-color, .is-style-tf-card, .tf-feature, .tf-form-card, .tf-faq .wp-block-details)
	a:where(:not(.wp-block-button__link)) { color: var(--tf-purple); }
:is(.has-white-background-color, .has-lavender-background-color, .has-lavender-light-background-color, .has-cream-background-color, .is-style-tf-card, .tf-feature, .tf-form-card, .tf-faq .wp-block-details)
	a:where(:not(.wp-block-button__link)):hover { color: var(--tf-purple-dark); }
:is(.has-white-background-color, .has-lavender-background-color, .has-lavender-light-background-color, .has-cream-background-color, .tf-card, .wc-block-product-template .wc-block-product, .tf-cat, .tf-feature)
	.wp-block-button:not(.is-style-outline, .is-style-tf-honey) .wp-block-button__link:hover { background: var(--tf-purple); color: #fff; }
:is(.has-white-background-color, .has-lavender-background-color, .has-lavender-light-background-color, .has-cream-background-color, .is-style-tf-card, .tf-feature)
	.is-style-tf-eyebrow { color: var(--tf-purple); }
/* "Muted" text color reads as soft white on the purple page, grey inside light boxes */
.has-muted-color { color: var(--tf-soft) !important; }
/* Image captions: soft white on the purple page (grey inside light boxes via --tf-soft) */
.wp-element-caption { color: var(--tf-soft); text-align: center; font-size: .875rem; }

/* ---------- White page (body.tf-light, both sites) ----------
   Dark text on a white page; dark image banners keep light text. */
body.tf-light { background-color: #fff; }
.tf-light main {
	color: var(--wp--preset--color--ink);
	--tf-soft: var(--tf-muted);
	--tf-soft-line: var(--tf-line);
}
:where(.tf-light main) :is(h1, h2, h3, h4, h5, h6) { color: var(--tf-night); }
:where(.tf-light main) a:where(:not(.wp-block-button__link, .wp-element-button)) { color: var(--tf-purple); }
:where(.tf-light main) a:where(:not(.wp-block-button__link, .wp-element-button)):hover { color: var(--tf-purple-dark); }
.tf-light main .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: var(--tf-purple); color: #fff; }
.tf-light main :is(.tf-card, .tf-cat, .tf-feature, .is-style-tf-card, .tf-faq .wp-block-details) { border: 1px solid var(--tf-line); }
/* Dark sections inside the page keep light text */
.tf-light main :is(.wp-block-cover, .tf-page-hero, .has-purple-background-color, .has-purple-dark-background-color, .has-night-background-color) {
	color: #fff;
	--tf-soft: rgba(255, 255, 255, .82);
	--tf-soft-line: rgba(255, 255, 255, .2);
}
.tf-light main :is(.wp-block-cover, .tf-page-hero, .has-purple-background-color, .has-purple-dark-background-color, .has-night-background-color) :is(h1, h2, h3, h4, h5, h6) { color: #fff; }
.tf-light main :is(.wp-block-cover, .tf-page-hero, .has-purple-background-color, .has-purple-dark-background-color, .has-night-background-color) a:where(:not(.wp-block-button__link, .wp-element-button)) { color: var(--tf-honey); }
/* Text colored white or honey in page content would vanish on white */
.tf-light main .has-white-color { color: var(--wp--preset--color--ink) !important; }
.tf-light main :is(h1, h2, h3, h4, h5, h6).has-white-color { color: var(--tf-night) !important; }
.tf-light main :is(.has-honey-color, .is-style-tf-eyebrow), .tf-light .tf-404 h1 { color: var(--tf-purple) !important; }
.tf-light .tf-product-crumbs a { color: var(--tf-purple); }
.tf-light .wp-block-woocommerce-product-details .wc-tabs li.active a { color: var(--tf-night); }
.tf-light main :is(.wp-block-cover, .tf-page-hero, .has-purple-background-color, .has-purple-dark-background-color, .has-night-background-color) .has-white-color { color: #fff !important; }
.tf-light main :is(.wp-block-cover, .tf-page-hero, .has-purple-background-color, .has-purple-dark-background-color, .has-night-background-color) :is(.has-honey-color, .is-style-tf-eyebrow) { color: var(--tf-honey) !important; }

/* ---------- White header and footer (body.tf-light) ----------
   Black text, icons and logo; the yellow promo bar, Join the Fam band and
   copyright strip keep their colors. */
.tf-light .wp-site-blocks > header.wp-block-template-part,
.tf-light .tf-header { background: #fff; color: #000; }
.tf-light .tf-header { border-bottom: 1px solid var(--tf-line); }
.tf-light .tf-header.is-scrolled { box-shadow: 0 6px 24px rgba(28, 20, 48, .1); }
.tf-light :is(.tf-header, .tf-footer) .wp-block-site-logo img { filter: brightness(0); }
.tf-light .tf-header .wp-block-navigation,
.tf-light .tf-header .wp-block-navigation__responsive-container-open,
.tf-light .tf-header .wp-block-search__button,
.tf-light .tf-header .wc-block-customer-account__account-icon,
.tf-light .tf-header .wc-block-mini-cart__button { color: #000; }
.tf-light .tf-header .wp-block-navigation a:hover { color: var(--tf-purple); }
.tf-light .tf-header .wp-block-navigation__responsive-container.is-menu-open,
.tf-light .tf-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { background: #fff; color: #000; }
.tf-light .tf-header__right .wp-block-button__link { background: #000; color: #fff; }
.tf-light .tf-header__right .wp-block-button__link:hover { background: var(--tf-honey); color: var(--tf-night); }

.tf-light .tf-footer { background: #fff; color: #000; border-top: 1px solid var(--tf-line); }
.tf-light .tf-footer :is(h2, h3, h4), .tf-light .tf-footer__heading { color: #000 !important; }
.tf-light .tf-footer a { color: #000; }
.tf-light .tf-footer a:hover { color: var(--tf-purple); }
.tf-light .tf-footer .wp-block-social-links .wp-social-link { background: #000 !important; color: #fff !important; }
.tf-light .tf-footer .wp-block-social-links .wp-social-link:hover { background: var(--tf-purple) !important; }
.tf-light .tf-pay { border: 1px solid var(--tf-line); }

/* ---------- Quantity box on listing cards ---------- */
.wc-block-components-product-button:has(.tf-qty) { flex-direction: row !important; flex-wrap: wrap; gap: .5rem !important; }
.wc-block-components-product-button:has(.tf-qty) .wp-block-button__link { width: auto !important; flex: 1 1 8rem; }
.wc-block-components-product-button:has(.tf-qty) > span { flex-basis: 100%; text-align: center; }
.tf-qty {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--tf-line);
	border-radius: var(--tf-radius-btn);
	background: #fff;
	overflow: hidden;
}
.tf-qty__btn {
	border: 0;
	background: transparent;
	color: var(--tf-night);
	font-size: 1.1rem;
	width: 2.1rem;
	cursor: pointer;
}
.tf-qty__btn:hover { background: var(--tf-lavender); color: var(--tf-purple); }
.tf-qty__input {
	width: 2.4rem;
	border: 0;
	text-align: center;
	font: inherit;
	font-weight: 700;
	color: var(--tf-night);
	-moz-appearance: textfield;
	appearance: textfield;
}
.tf-qty__input::-webkit-outer-spin-button,
.tf-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Cart drawer (white panel outside <main>) ---------- */
.tf-light .wc-block-mini-cart__drawer { color: #000; }
.tf-light .wc-block-mini-cart__drawer :is(h1, h2, h3, h4, h5, h6) { color: #000; }
.tf-light .wc-block-mini-cart__drawer a:not(.wp-element-button, .wc-block-components-button) { color: #000; }
.tf-light .wc-block-mini-cart__drawer a:not(.wp-element-button, .wc-block-components-button):hover { color: var(--tf-purple); }
.tf-light .wc-block-mini-cart__drawer .wc-block-mini-cart__footer-cart { color: #000; border-color: #000; }
.tf-light .wc-block-mini-cart__drawer .wc-block-mini-cart__footer-cart:hover { background: #000; color: #fff; }

/* ---------- Info site cards: quantity + Add to Cart popup ---------- */
.tf-card__buy { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .6rem; }
.tf-card__buy .tf-card__button { margin-top: 0; flex: 1 1 8rem; border: 0; cursor: pointer; }
.tf-add-dialog {
	margin: auto !important; /* page flow rules would pin it to the top */
	width: min(92vw, 420px);
	border: 0;
	border-radius: var(--tf-radius);
	padding: 1.75rem 1.5rem 1.25rem;
	background: #fff;
	color: var(--wp--preset--color--ink);
	text-align: center;
	box-shadow: 0 24px 60px rgba(28, 20, 48, .3);
}
.tf-add-dialog::backdrop { background: rgba(28, 20, 48, .55); }
.tf-add-dialog__title { color: var(--tf-night); font-size: 1.25rem; margin: 0 0 .5rem; }
.tf-add-dialog__note { color: var(--tf-muted); font-size: .9375rem; margin: 0 0 1.25rem; }
.tf-add-dialog__actions { display: grid; gap: .6rem; }
.tf-add-dialog__go { display: block; text-decoration: none; }
.tf-add-dialog__go--cart { background: #000; color: #fff; }
.tf-add-dialog__go--checkout { background: var(--tf-honey); color: var(--tf-night); }
.tf-add-dialog__go--shop { background: transparent; color: #000; box-shadow: inset 0 0 0 2px #000; }
.tf-add-dialog__go:hover { background: var(--tf-purple); color: #fff; box-shadow: none; }
.tf-add-dialog__cancel {
	margin-top: .9rem;
	border: 0;
	background: none;
	color: var(--tf-muted);
	font: inherit;
	font-size: .875rem;
	text-decoration: underline;
	cursor: pointer;
}
.tf-add-dialog__cancel:hover { color: var(--tf-purple); }

/* ---------- Shop COA pages ---------- */
.tf-coa { margin-block: 0 var(--wp--preset--spacing--50); }
.tf-coa a { display: block; }
.tf-coa img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 6px 24px rgba(0, 0, 0, .12); }
.tf-coa-soon { padding: 2rem 1rem; background: var(--tf-lavender); border-radius: var(--tf-radius); font-weight: 600; }

/* ---------- Hero slider (big banner) ---------- */
.tf-slider { display: grid !important; aspect-ratio: 1200 / 598; overflow: hidden; position: relative; }
.tf-slider > .wp-block-cover {
	grid-area: 1 / 1;
	margin: 0 !important;
	opacity: 0;
	visibility: hidden;
	transition: opacity .9s ease, visibility .9s;
}
.tf-slider:not(.is-ready) > .wp-block-cover:first-child,
.tf-slider > .wp-block-cover.is-active { opacity: 1; visibility: visible; }
.tf-slider__dots {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	z-index: 3;
	display: flex;
	gap: .5rem;
}
.tf-slider__dot {
	width: 11px;
	height: 11px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: transparent;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
	cursor: pointer;
}
.tf-slider__dot[aria-current="true"] { background: #fff; }
@media (prefers-reduced-motion: reduce) { .tf-slider > .wp-block-cover { transition: none; } }

/* ---------- Compact Add to Cart buttons on product cards (both sites) ---------- */
.wc-block-product .wc-block-components-product-button .wp-block-button__link,
.wc-block-components-product-button:has(.tf-qty) .wp-block-button__link,
.tf-card__buy .tf-card__button {
	flex: 0 0 auto !important;
	width: auto !important;
	height: auto !important;
	align-self: center;
	min-height: 0;
	padding: .45rem .9rem !important;
	font-size: .75rem !important;
	line-height: 1.2 !important;
}
.wc-block-product .wc-block-components-product-button { align-items: center; align-content: center; }

/* Free pick pop-up for automatic specials (assets/js/specials.js) */
.tf-gift-open { overflow: hidden; }
.tf-gift { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; }
.tf-gift__backdrop { position: absolute; inset: 0; background: rgba(28, 20, 48, .6); }
.tf-gift__dialog { position: relative; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; color: var(--tf-night); border-radius: 16px; padding: 2rem 1.5rem 1.25rem; text-align: center; box-shadow: 0 20px 60px rgba(28, 20, 48, .35); }
.tf-gift__x { position: absolute; top: .5rem; right: .75rem; border: 0; background: none; font-size: 1.75rem; line-height: 1; color: var(--tf-muted); cursor: pointer; }
.tf-gift__badge { display: inline-block; margin: 0 0 .5rem; padding: .2rem .7rem; border-radius: 999px; background: var(--tf-honey); font-weight: 800; font-size: .75rem; letter-spacing: .08em; }
.tf-gift__title { margin: 0 0 .35rem; font-size: clamp(1.25rem, 3.5vw, 1.6rem); color: var(--tf-purple-dark); }
.tf-gift__msg { margin: 0 0 1.25rem; color: var(--tf-muted); }
.tf-gift__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .9rem; }
.tf-gift__item { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: .7rem; border: 1px solid var(--tf-line); border-radius: var(--tf-radius); }
.tf-gift__img img { display: block; width: 100%; max-width: 120px; aspect-ratio: 1; object-fit: contain; }
.tf-gift__name { font-size: .85rem; font-weight: 700; color: var(--tf-night); text-decoration: none; line-height: 1.25; }
.tf-gift__name:hover { color: var(--tf-purple); }
.tf-gift .tf-gift__add { margin-top: auto; padding: .45rem .9rem; font-size: .75rem; border: 0; border-radius: var(--tf-radius-btn); background: var(--tf-honey); color: var(--tf-night); font-weight: 700; cursor: pointer; text-decoration: none; }
.tf-gift .tf-gift__add:hover { background: var(--wp--preset--color--lavender-deep, #c8b6e8); }
.tf-gift .tf-gift__add:disabled { opacity: .6; cursor: wait; }
.tf-gift__later { margin-top: 1rem; border: 0; background: none; color: var(--tf-muted); text-decoration: underline; cursor: pointer; font-size: .85rem; }

/* Over-21 age check (inc/age-gate.php) */
.tf-age { display: none; }
html.tf-age-gate { overflow: hidden; }
html.tf-age-gate .tf-age { position: fixed; inset: 0; z-index: 100001; display: grid; place-items: center; padding: 16px; background: rgba(28, 20, 48, .92); backdrop-filter: blur(6px); }
.tf-age__box { width: min(440px, 100%); padding: 2.25rem 1.5rem 2rem; border-radius: 18px; background: var(--tf-purple-dark); color: #fff; text-align: center; box-shadow: 0 24px 70px rgba(0, 0, 0, .45); }
.tf-age__logo { display: block; width: auto; max-width: 140px; height: auto; max-height: 110px; margin: 0 auto 1.25rem; }
.tf-age__title { margin: 0 0 .5rem; color: #fff; font-size: clamp(1.4rem, 5vw, 1.85rem); }
.tf-age__text { margin: 0 0 1.5rem; color: rgba(255, 255, 255, .85); }
.tf-age__sorry .tf-age__text { margin-bottom: 0; }
.tf-age__buttons { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.tf-age .tf-age__yes, .tf-age .tf-age__no { min-width: 130px; padding: .75rem 1.4rem; border-radius: var(--tf-radius-btn); font-weight: 700; font-size: 1rem; cursor: pointer; }
.tf-age .tf-age__yes { border: 0; background: var(--tf-honey); color: var(--tf-night); }
.tf-age .tf-age__yes:hover { background: var(--wp--preset--color--lavender-deep, #c8b6e8); }
.tf-age .tf-age__no { border: 2px solid rgba(255, 255, 255, .5); background: transparent; color: #fff; }
.tf-age .tf-age__no:hover { border-color: #fff; }

/* Newsletter signup: its own full-width row at the top of the footer (patterns/footer.php) */
.tf-newsletter { background: var(--tf-purple-dark); color: #fff; padding: var(--wp--preset--spacing--40) clamp(1rem, 3vw, 2rem) !important; margin: 0 !important; }
.tf-newsletter__inner { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem 2.5rem; flex-wrap: wrap; }
.tf-newsletter__text { flex: 1 1 320px; }
.tf-newsletter .tf-newsletter__title { margin: 0 0 .3rem; color: #fff !important; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.tf-newsletter__sub { margin: 0; color: rgba(255, 255, 255, .85); }
.tf-newsletter__form { position: relative; flex: 1 1 380px; max-width: 520px; display: flex; flex-wrap: wrap; gap: .6rem; }
.tf-newsletter__email { flex: 1 1 220px; min-width: 0; padding: .8rem 1rem; border: 2px solid transparent; border-radius: var(--tf-radius-btn); background: #fff; color: var(--tf-night); font-size: 1rem; }
.tf-newsletter__email:focus { outline: none; border-color: var(--tf-honey); }
.tf-newsletter .tf-newsletter__button { flex: 0 0 auto; border: 0; border-radius: var(--tf-radius-btn); background: var(--tf-honey); color: var(--tf-night); cursor: pointer; }
.tf-newsletter .tf-newsletter__button:hover { background: var(--wp--preset--color--lavender-deep, #c8b6e8); }
.tf-newsletter .tf-newsletter__button:disabled { opacity: .7; cursor: wait; }
.tf-newsletter__msg { flex-basis: 100%; margin: 0; min-height: 0; font-size: .9rem; }
.tf-newsletter__msg:empty { display: none; }
.tf-newsletter__msg.is-ok { color: var(--tf-honey); }
.tf-newsletter__msg.is-error { color: #ffb4b4; }

/* "Subscribe & save" pop-up on cart/checkout (js/subscribe-offer.js); reuses .tf-gift */
.tf-sub .tf-sub__dialog { width: min(460px, 100%); }
.tf-sub__today { margin: 0 0 1rem; font-weight: 700; color: var(--tf-purple); font-size: 1.05rem; }
.tf-sub__list { list-style: none; margin: 0 auto 1.25rem; padding: 0; text-align: left; display: grid; gap: .55rem; max-width: 360px; }
.tf-sub__list li { position: relative; padding-left: 1.6rem; line-height: 1.35; }
.tf-sub__list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--tf-honey); color: var(--tf-night); font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.tf-sub .tf-sub__yes { width: 100%; max-width: 360px; padding: .8rem 1rem; border: 0; border-radius: var(--tf-radius-btn); background: var(--tf-honey); color: var(--tf-night); font-weight: 800; cursor: pointer; }
.tf-sub .tf-sub__yes:hover { background: var(--wp--preset--color--lavender-deep, #c8b6e8); }
.tf-sub .tf-sub__yes:disabled { opacity: .7; cursor: wait; }
.tf-sub__error { margin: .5rem 0 0; min-height: 1em; color: #b3261e; font-size: .85rem; }
