/*
Theme Name: bothidea Child
Theme URI: http://localhost:8090
Description: Child theme for the bothidea store, styled after bothideatoys.com.
Author: bothidea
Template: blocksy
Version: 1.1.0
Text Domain: bothidea-child
*/

/* ---------- Brand palette ---------- */
html:root {
	--theme-font-stack-default: Inter, "Segoe UI", Arial, sans-serif;
}

html body {
	--theme-palette-color-1: #2f73c6;
	--theme-palette-color-2: #1f5aa0;
	--theme-palette-color-3: #555555;
	--theme-palette-color-4: #333333;
	--theme-palette-color-5: #e6e9ef;
	--theme-palette-color-6: #f6f8fb;
	--theme-palette-color-8: #ffffff;
	--theme-button-background-initial-color: #2f73c6;
	--theme-button-background-hover-color: #1f5aa0;
	--theme-link-initial-color: #2f73c6;
	--theme-link-hover-color: #1f5aa0;
	--theme-selection-background-color: #2f73c6;
	--theme-headings-color: #333333;
	--theme-text-color: #555555;
}

body,
button,
input,
select,
textarea {
	font-family: Inter, "Segoe UI", Arial, sans-serif;
}

/* 正文链接保留可识别性 */
.entry-content a {
	text-decoration: none;
}

/* 首页隐藏重复的页面标题 */
body.home .hero-section[data-type="type-1"] {
	display: none;
}

/* ---------- Header ---------- */
[data-header*="type-1"] .ct-header [data-row*="middle"] {
	background-color: #14243a !important;
	--height: 72px;
}

[data-header*="type-1"] {
	--header-height: 72px;
}

.ct-header .site-title,
.ct-header .site-title a {
	color: #ffffff !important;
	font-weight: 700;
	letter-spacing: -.02em;
}

.ct-header .ct-menu-link {
	color: #ffffff !important;
	font-weight: 500;
	letter-spacing: .04em;
}

.ct-header .ct-menu-link:hover,
.ct-header .current-menu-item > .ct-menu-link {
	color: #fae100 !important;
}

.ct-header [data-id="trigger"] svg,
.ct-header [data-id="search"] svg,
.ct-header [data-id="trigger"] .ct-icon,
.ct-header [data-id="search"] .ct-icon {
	color: #ffffff !important;
	fill: #ffffff !important;
}

#header {
	position: sticky;
	top: 0;
	z-index: 100;
}

/* ---------- Home: hero ---------- */
.bi-hero2 {
	background: linear-gradient(120deg, #fde7ef 0%, #efe7fb 55%, #dfe9ff 100%);
	padding: 64px 0 72px;
	margin-bottom: 0;
}

.bi-hero2__inner {
	max-width: 1290px;
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 48px;
	align-items: center;
}

.bi-eyebrow {
	display: inline-block;
	letter-spacing: .16em;
	text-transform: uppercase;
	font-size: .78rem;
	font-weight: 700;
	color: #2f73c6;
}

.bi-hero2 h1 {
	font-size: clamp(2.2rem, 4.6vw, 3.6rem);
	line-height: 1.06;
	color: #14243a;
	margin: .25em 0 .35em;
	letter-spacing: -.02em;
}

.bi-hero2__copy p {
	font-size: 1.05rem;
	line-height: 1.65;
	color: #4b5563;
	max-width: 560px;
	margin: 0 0 26px;
}

.bi-hero2__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.bi-btn-primary,
.bi-btn-ghost {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 6px;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s ease, transform .2s ease;
}

.bi-btn-primary {
	background: #2f73c6;
	color: #ffffff !important;
}

.bi-btn-primary:hover {
	background: #1f5aa0;
	transform: translateY(-1px);
}

.bi-btn-ghost {
	border: 1px solid rgba(20, 36, 58, .25);
	color: #14243a !important;
}

.bi-btn-ghost:hover {
	background: rgba(20, 36, 58, .06);
}

.bi-hero2__points {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: .9rem;
	color: #4b5563;
}

.bi-hero2__points li::before {
	content: "✓";
	color: #2f73c6;
	font-weight: 700;
	margin-right: 6px;
}

.bi-hero2__media {
	position: relative;
}

.bi-hero2__media img {
	width: 100%;
	height: auto;
	border-radius: 18px;
	box-shadow: 0 26px 60px rgba(20, 36, 58, .18);
}

.bi-float {
	position: absolute;
	background: #ffffff;
	border-radius: 999px;
	padding: 10px 16px;
	font-weight: 700;
	font-size: .82rem;
	box-shadow: 0 10px 24px rgba(20, 36, 58, .14);
}

.bi-float--1 {
	top: 16px;
	left: -18px;
	color: #2f73c6;
}

.bi-float--2 {
	bottom: 18px;
	right: -12px;
	color: #b45309;
}

/* ---------- Trust strip ---------- */
.bi-trust {
	background: #ffffff;
	border-bottom: 1px solid #e9eef5;
}

.bi-trust__inner {
	max-width: 1290px;
	margin: 0 auto;
	padding: 22px 24px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.bi-trust__item {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: .92rem;
	color: #374151;
}

.bi-trust__icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #eaf2fc;
	color: #2f73c6;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: .9rem;
	flex: 0 0 36px;
}

/* ---------- Sections ---------- */
.bi-section {
	padding: 56px 0;
	background: #ffffff;
}

.bi-section--tint {
	background: #f6f8fb;
}

.bi-wrap {
	max-width: 1290px;
	margin: 0 auto;
	padding: 0 24px;
}

.bi-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 26px;
}

.bi-section-head h2 {
	margin: 0;
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	color: #14243a;
	letter-spacing: -.01em;
}

.bi-section-head a {
	color: #2f73c6;
	font-weight: 600;
	font-size: .92rem;
	text-decoration: none;
}

.bi-section-head a:hover {
	text-decoration: underline;
}

/* ---------- Category cards ---------- */
.bi-cats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.bi-cat {
	display: block;
	background: #ffffff;
	border: 1px solid #e9eef5;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	transition: box-shadow .2s ease, transform .2s ease;
}

.bi-cat:hover {
	box-shadow: 0 18px 40px rgba(20, 36, 58, .12);
	transform: translateY(-2px);
}

.bi-cat img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}

.bi-cat span {
	display: block;
	padding: 14px 16px 4px;
	font-weight: 700;
	color: #14243a;
}

.bi-cat small {
	display: block;
	padding: 0 16px 16px;
	color: #6b7280;
	font-size: .82rem;
}

/* ---------- About ---------- */
.bi-about__inner {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 48px;
	align-items: center;
}

.bi-about h2 {
	font-size: clamp(1.6rem, 2.8vw, 2.2rem);
	color: #14243a;
	margin: .2em 0 .4em;
}

.bi-about p {
	color: #4b5563;
	font-size: 1rem;
	line-height: 1.7;
}

.bi-about__badges {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.bi-badge {
	background: #ffffff;
	border: 1px solid #e9eef5;
	border-radius: 12px;
	padding: 22px 20px;
}

.bi-badge strong {
	display: block;
	font-size: 1.5rem;
	color: #2f73c6;
	margin-bottom: 4px;
}

.bi-badge span {
	color: #4b5563;
	font-size: .9rem;
}

/* ---------- CTA banner ---------- */
.bi-cta {
	background: #14243a;
	padding: 48px 0;
	color: #ffffff;
}

.bi-cta__inner {
	max-width: 1290px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.bi-cta h2 {
	color: #ffffff;
	margin: 0 0 6px;
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.bi-cta p {
	margin: 0;
	color: #c3cfdd;
}

/* ---------- WooCommerce cards ---------- */
[data-products] .product {
	background: #ffffff;
	border: 1px solid #e9eef5;
	border-radius: 12px;
	padding: 12px 12px 16px;
	transition: box-shadow .2s ease, transform .2s ease;
}

[data-products] .product:hover {
	box-shadow: 0 16px 36px rgba(20, 36, 58, .1);
	transform: translateY(-2px);
}

[data-products] .product .woocommerce-loop-product__title {
	color: #14243a;
}

[data-products] .product .woocommerce-loop-product__link {
	display: block;
}

[data-products] .product img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	background: #ffffff;
}

[data-products] .product .button {
	border-radius: 6px;
}

/* ---------- Product page ---------- */
.bi-ship-note {
	margin: 14px 0 18px;
	padding: 10px 14px;
	background: #eaf2fc;
	border: 1px solid #cfe0f5;
	border-radius: 8px;
	font-size: .9rem;
	color: #14243a;
}

.bi-ship-note strong {
	color: #1f5aa0;
}

.bi-ship-banner {
	margin-top: 40px;
	padding: 16px 20px;
	background: #f6f8fb;
	border: 1px solid #e1e7f0;
	border-radius: 10px;
	font-size: .92rem;
	color: #374151;
	text-align: center;
}

/* ---------- Footer ---------- */
.bi-footer {
	background: #14243a;
	color: #b9c6d6;
	padding: 56px 0 40px;
}

.bi-footer__inner {
	max-width: 1290px;
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
	gap: 36px;
}

.bi-footer__logo {
	font-size: 1.6rem;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: -.02em;
	margin-bottom: 12px;
}

.bi-footer p {
	margin: 0 0 10px;
	font-size: .92rem;
	line-height: 1.7;
}

.bi-footer h4 {
	color: #ffffff;
	font-size: .95rem;
	margin: 0 0 14px;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.bi-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bi-footer li {
	margin-bottom: 9px;
}

.bi-footer a {
	color: #b9c6d6;
	text-decoration: none;
	font-size: .92rem;
}

.bi-footer a:hover {
	color: #ffffff;
}

[data-footer*="type-1"] .ct-footer {
	background-color: #0f1c2e !important;
}

[data-footer*="type-1"] [data-id="copyright"] {
	color: #9fb0c6 !important;
}

[data-footer*="type-1"] [data-id="copyright"] a {
	color: #cfe0f5 !important;
}

.bi-footer-links a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bi-footer-links a:hover {
	opacity: .75;
}

/* ---------- Home layout ---------- */
body.home .bi-hero2,
body.home .bi-trust,
body.home .bi-cta {
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}

body.home .site-main,
body.home .entry-content {
	--theme-content-vertical-spacing: 0;
}

body.home .entry-content > *:first-child {
	margin-top: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.bi-hero2__inner,
	.bi-about__inner {
		grid-template-columns: 1fr;
	}

	.bi-hero2__media {
		order: -1;
	}

	.bi-cats {
		grid-template-columns: repeat(2, 1fr);
	}

	.bi-footer__inner {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.bi-hero2 {
		padding: 40px 0 48px;
	}

	.bi-trust__inner {
		grid-template-columns: repeat(2, 1fr);
	}

	.bi-cats {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.bi-about__badges {
		grid-template-columns: 1fr;
	}

	.bi-footer__inner {
		grid-template-columns: 1fr;
	}

	.bi-float {
		display: none;
	}
}
