/* ==========================================================================
   Teefetch WooCommerce Child Theme Supplement Styles (child-woo.css)
   ========================================================================== */

/* Silky Imperceptible Circadian Background Transitions */
body.tf-circadian-ready,
body.tf-circadian-ready .mbf-site,
body.tf-circadian-ready .mbf-header,
body.tf-circadian-ready .mbf-footer,
body.tf-circadian-ready .tf-col-card,
body.tf-circadian-ready .xmas-gift-card,
body.tf-circadian-ready .woocommerce ul.products li.product {
	transition: background-color 45s linear, border-color 45s linear;
}

/* Hide default theme breadcrumbs on custom landing pages & homepage */
body.home .mbf-breadcrumbs,
body.page-template-page-collection-landing .mbf-breadcrumbs,
body.page-template-page-collection-landing .woocommerce-breadcrumb,
body.page-template-page-collection-landing .mbf-entry__header,
body.home .mbf-entry__header {
	display: none !important;
}

/* Prevent Desktop Header Overflow at 1200px-1400px (keep Account & Cart inside viewport) */
@media (min-width: 992px) and (max-width: 1440px) {
	.mbf-header__inner-desktop {
		gap: 0.75rem;
	}

	.mbf-header__nav-inner {
		gap: 0.15rem !important;
	}

	.mbf-header__nav-inner > li > a {
		padding-left: 0.55rem !important;
		padding-right: 0.55rem !important;
		font-size: 0.65rem !important;
		letter-spacing: 0.04em !important;
		white-space: nowrap;
	}

	.mbf-header__col.mbf-col-right {
		gap: 0.85rem !important;
	}

	.mbf-header__scheme-toggle .mbf-site__scheme-toggle-title {
		display: none !important;
	}
}

/* Fix WooCommerce 11.3 Loop Button (no .wp-element-button class):
   Keep absolute-positioned, centered at bottom inside thumbnail, hover-reveal like native LaBeaute */
.woocommerce ul.products li.product .woocommerce-loop-product__thumbnail a.button,
.woocommerce-page ul.products li.product .woocommerce-loop-product__thumbnail a.button {
	position: absolute !important;
	left: 12px !important;
	right: 12px !important;
	bottom: 12px !important;
	top: auto !important;
	width: auto !important;
	max-width: calc(100% - 24px) !important;
	margin: 0 !important;
	text-align: center !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	opacity: 0;
	transform: translateY(6px) !important;
	transition: opacity 0.22s ease, transform 0.22s ease !important;
	z-index: 4 !important;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__thumbnail a.button,
.woocommerce-page ul.products li.product:hover .woocommerce-loop-product__thumbnail a.button,
.woocommerce ul.products li.product:focus-within .woocommerce-loop-product__thumbnail a.button {
	opacity: 1 !important;
	transform: translateY(0) !important;
}

/* Position Snow Toggle Pill on Bottom-Right on Desktop & Mobile so Left-Column Form Inputs are Never Covered */
.xmas-snow-toggle-btn {
	left: auto !important;
	right: 18px !important;
	bottom: 18px !important;
}

/* Clean Select Dropdowns on Filter Bar & Single Product Variations (Zero Chevron Offset or Text Wrap) */
.tf-landing-toolbar select,
.woocommerce div.product form.cart .variations select {
	height: 38px !important;
	line-height: 1.2 !important;
	padding: 0 28px 0 12px !important;
	background-position: right 10px center !important;
	background-repeat: no-repeat !important;
	white-space: nowrap !important;
}

/* Ensure WooCommerce product loop thumbnails frame POD mockups cleanly */
.woocommerce ul.products li.product .woocommerce-loop-product__thumbnail img,
.woocommerce-page ul.products li.product .woocommerce-loop-product__thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: contain !important;
	padding: 8px;
	background: #ffffff;
}

/* Single product Subtle Made-to-Order Craftsmanship Note */
.tf-craft-note-box {
	background: var(--mbf-layout-background);
	border: 1px solid var(--mbf-color-border);
	border-left: 3px solid var(--mbf-color-accent);
	border-radius: 8px;
	padding: 13px 16px;
	margin: 1.25rem 0;
	font-size: 0.8rem;
	line-height: 1.55;
	color: var(--mbf-color-secondary);
}

.tf-craft-note-box strong {
	color: var(--mbf-color-primary);
}

.tf-craft-note-box a {
	color: var(--mbf-color-accent);
	font-weight: 700;
	text-decoration: underline;
}

/* Checkout Holiday Gift Wrap Option */
.tf-checkout-giftwrap {
	background: var(--mbf-layout-background);
	border: 1.5px dashed var(--xmas-gold, #d4af37);
	border-radius: 10px;
	padding: 16px 18px;
	margin: 1.25rem 0;
}

.tf-checkout-giftwrap label {
	display: flex !important;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 0.86rem;
	cursor: pointer;
	margin-bottom: 0;
}

.tf-checkout-giftwrap input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: #b91c1c;
	flex-shrink: 0;
}

.tf-checkout-giftnote {
	margin-top: 10px;
}

.tf-checkout-giftnote textarea {
	width: 100%;
	min-height: 64px;
	padding: 8px 10px;
	border-radius: 6px;
	border: 1px solid var(--mbf-color-border);
	background: var(--mbf-site-background);
	color: var(--mbf-color-primary);
	font-size: 0.82rem;
}

/* Clean Checkout Order Confirmation Checkbox */
.tf-checkout-terms-ack {
	background: var(--mbf-layout-background);
	border: 1px solid var(--mbf-color-border);
	border-radius: 8px;
	padding: 13px 15px;
	margin: 1rem 0 1.25rem;
}

.tf-checkout-terms-ack label {
	display: flex !important;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--mbf-color-primary);
	font-weight: 500;
	cursor: pointer;
}

.tf-checkout-terms-ack a {
	color: var(--mbf-color-accent);
	font-weight: 700;
	text-decoration: underline;
}

.tf-checkout-terms-ack input[type="checkbox"] {
	width: 17px;
	height: 17px;
	margin-top: 2px;
	accent-color: var(--mbf-color-accent);
	flex-shrink: 0;
}

/* Landing Page Filter Bar inside Custom Template */
.tf-landing-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	background: var(--mbf-layout-background);
	border: 1px solid var(--mbf-color-border);
	border-radius: 10px;
	margin-bottom: 1.75rem;
}

.tf-landing-toolbar form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.tf-landing-toolbar input[type="search"],
.tf-landing-toolbar select {
	font-size: 0.8rem;
	padding: 7px 12px;
	border: 1px solid var(--mbf-color-border);
	border-radius: 100px;
	background: var(--mbf-site-background);
	color: var(--mbf-color-primary);
}

.tf-landing-toolbar button {
	padding: 8px 16px;
	border-radius: 100px;
	border: 1px solid var(--xmas-gold, #d4af37);
	background: linear-gradient(135deg, #b91c1c, #991b1b);
	color: #ffffff;
	font-size: 0.74rem;
	font-weight: 700;
	cursor: pointer;
}

/* Pagination */
.tf-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 2.5rem;
}

.tf-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border-radius: 100px;
	border: 1px solid var(--mbf-color-border);
	background: var(--mbf-layout-background);
	color: var(--mbf-color-primary);
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none;
}

.tf-pagination .page-numbers.current,
.tf-pagination .page-numbers:hover {
	background: linear-gradient(135deg, #b91c1c, #991b1b);
	border-color: var(--xmas-gold, #d4af37);
	color: #ffffff;
}

/* WooCommerce Policy Page Styling */
.tf-legal-page {
	max-width: 880px;
	margin: 0 auto 3rem;
	line-height: 1.75;
}

.tf-legal-page h2 {
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	font-size: 1.35rem;
}

.tf-legal-page .tf-policy-callout {
	background: var(--mbf-layout-background);
	border: 1px solid var(--mbf-color-border);
	border-left: 4px solid var(--mbf-color-accent);
	border-radius: 8px;
	padding: 18px 22px;
	margin: 20px 0 28px;
	color: var(--mbf-color-primary);
}

.tf-legal-page .tf-policy-callout h3 {
	margin: 0 0 8px;
	font-size: 1rem;
	color: var(--mbf-color-accent);
}

body[data-scheme="dark"] .tf-legal-page table th {
	background: #1a3330 !important;
	color: #f7f4eb;
}

body[data-scheme="dark"] .tf-legal-page table td,
body[data-scheme="dark"] .tf-legal-page table th {
	border-color: #2c4a46 !important;
}

@media (max-width: 767px) {
	.tf-landing-toolbar {
		padding: 12px 14px;
	}

	.tf-landing-toolbar form {
		width: 100%;
	}

	.tf-landing-toolbar input[type="search"],
	.tf-landing-toolbar select {
		flex: 1 1 100%;
		width: 100%;
		min-width: 0;
	}
}
