/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* ==============================================
   Baifan Travel - 全局自定义样式
   统一整站旅行主题基调
   ============================================== */

/* 隐藏 WoodMart 演示分类菜单项（Accessories/Clocks/Cooking/Furniture/Lighting/Toys 等） */
#menu-categories li.menu-item-8380,
#menu-categories li.menu-item-8379,
#menu-categories li.menu-item-839,
#menu-categories li.menu-item-28957,
#menu-categories li.menu-item-28958,
#menu-categories li.menu-item-28959,
#menu-categories li.menu-item-28960,
#menu-categories li.menu-item-28961,
#menu-categories li.menu-item-28962,
#menu-categories li.menu-item-28963,
#menu-categories li.menu-item-28964 {
	display: none !important;
}

/* 隐藏任何引用 WoodMart 演示商品分类图的导航项（category dropdown 残留） */
ul.wd-nav li.menu-item .wd-nav-img {
	display: none;
}

/* Header Logo 调整：白帆 logo 自适应高度 */
div.whb-main-header .wd-logo img,
div.whb-header .wd-logo img,
.site-logo img {
	height: auto !important;
}

/* 首页：透明页眉 + 白色大 logo */
.page-template-page-clone-home div.whb-main-header .wd-logo img,
.page-template-page-clone-home div.whb-header .wd-logo img,
.page-template-page-clone-home .site-logo img {
	max-width: 190px !important;
}

/* ==============================================
   首页透明页眉：菜单默认白色，选中/悬停加金色背景
   ============================================== */
.page-template-page-clone-home .whb-general-header .woodmart-nav-link,
.page-template-page-clone-home .whb-general-header .nav-link-text,
.page-template-page-clone-home .whb-general-header .wd-tools-text {
	color: #ffffff !important;
	font-weight: 500 !important;
}

/* 首页：工具栏（收藏 / 登录 / 搜索 / 购物车）图标与文字一律白色 */
.page-template-page-clone-home .whb-general-header .wd-tools-icon,
.page-template-page-clone-home .whb-general-header .wd-tools-icon:before,
.page-template-page-clone-home .whb-general-header .wd-tools-icon:after,
.page-template-page-clone-home .whb-general-header .wd-tools-icon .wd-icon,
.page-template-page-clone-home .whb-general-header .wd-tools-text {
	color: #ffffff !important;
	fill: #ffffff !important;
}

/* 首页导航项 hover：金色文字 + 背景 */
.page-template-page-clone-home .whb-general-header .menu-item:hover > .woodmart-nav-link,
.page-template-page-clone-home .whb-general-header .menu-item:hover > .woodmart-nav-link .nav-link-text,
.page-template-page-clone-home .whb-general-header .wd-tools-icon,
.page-template-page-clone-home .whb-general-header .wd-tools-text {
	color: #c8a76b !important;
}

/* 首页当前选中项：金色背景椭圆胶囊 + 白字 */
.page-template-page-clone-home .whb-general-header .menu-item.current-menu-item > .woodmart-nav-link,
.page-template-page-clone-home .whb-general-header .menu-item.current-menu-parent > .woodmart-nav-link,
.page-template-page-clone-home .whb-general-header .menu-item.current_page_item > .woodmart-nav-link {
	background: rgba(200, 167, 107, 0.28) !important;
	border-radius: 24px;
	color: #ffffff !important;
	padding: 8px 18px !important;
}
.page-template-page-clone-home .whb-general-header .menu-item.current-menu-item > .woodmart-nav-link .nav-link-text,
.page-template-page-clone-home .whb-general-header .menu-item.current_page_item > .woodmart-nav-link .nav-link-text {
	color: #ffffff !important;
}

/* 首页导航项之间适当间距 */
.page-template-page-clone-home .whb-general-header .wd-nav > .menu-item {
	margin: 0 4px;
}

/* ==============================================
   统一旅行主题的 Header 风格（桌面端）
   About / Contact 等子页面保持深色 Header
   与首页透明 Hero Header 形成统一高级感
   ============================================== */

/* 子页面（About/Contact/Travel/Tour 详情）Header 使用深色渐变背景 + 白字 */
body.bf-clone-page .whb-main-header,
body.bf-clone-page .whb-general-header,
body.bf-clone-page .whb-top-bar {
	background: rgba(44, 37, 32, 0.95) !important;
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

/* 非首页：logo 缩小，整体协调 */
body.bf-clone-page div.whb-main-header .wd-logo img,
body.bf-clone-page div.whb-header .wd-logo img,
body.bf-clone-page .site-logo img {
	max-width: 150px !important;
}

/* Header 内导航文字颜色（子页面深色 Header 场景） */
body.bf-clone-page .whb-main-header .woodmart-nav-link,
body.bf-clone-page .whb-main-header .nav-link-text {
	color: #ffffff !important;
	font-weight: 500 !important;
}

/* 非首页 header 导航项 hover */
body.bf-clone-page .whb-main-header .menu-item:hover > .woodmart-nav-link {
	color: #c8a76b !important;
}

/* 非首页 header 工具栏（联系方式 / 收藏 / 登录注册 / 购物车）整体白色 */
body.bf-clone-page .whb-main-header .wd-tools-icon,
body.bf-clone-page .whb-main-header .wd-tools-icon:before,
body.bf-clone-page .whb-main-header .wd-tools-icon:after,
body.bf-clone-page .whb-main-header .wd-tools-icon .wd-icon,
body.bf-clone-page .whb-main-header .wd-tools-text,
body.bf-clone-page .whb-main-header .wd-header-text,
body.bf-clone-page .whb-main-header .wd-header-text a,
body.bf-clone-page .whb-main-header .wd-header-text span,
body.bf-clone-page .whb-main-header .wd-header-phone,
body.bf-clone-page .whb-main-header .wd-header-phone a,
body.bf-clone-page .whb-main-header .wd-tools-element .wd-tools-count {
	color: #ffffff !important;
	fill: #ffffff !important;
}
body.bf-clone-page .whb-main-header .wd-tools-icon {
	border-color: rgba(255,255,255,0.4) !important;
}

/* 非首页 header 当前选中项：金色胶囊背景（含 current_page_item / current-menu-parent / current-menu-ancestor） */
body.bf-clone-page .whb-main-header .menu-item.current-menu-item > .woodmart-nav-link,
body.bf-clone-page .whb-main-header .menu-item.current-menu-parent > .woodmart-nav-link,
body.bf-clone-page .whb-main-header .menu-item.current_page_item > .woodmart-nav-link,
body.bf-clone-page .whb-main-header .menu-item.current-menu-ancestor > .woodmart-nav-link {
	background: rgba(200, 167, 107, 0.28) !important;
	border-radius: 24px;
	color: #ffffff !important;
	padding: 8px 18px !important;
}
body.bf-clone-page .whb-main-header .menu-item.current-menu-item > .woodmart-nav-link .nav-link-text,
body.bf-clone-page .whb-main-header .menu-item.current-menu-parent > .woodmart-nav-link .nav-link-text,
body.bf-clone-page .whb-main-header .menu-item.current_page_item > .woodmart-nav-link .nav-link-text {
	color: #ffffff !important;
}

/* ==============================================
   页面标题区域美化（所有仿站页面统一浅色背景）
   ============================================== */
body.bf-clone-page .main-page-wrapper {
	background: #faf8f3;
}

/* 全局：禁用商品类演示下拉 hover block */
.whb-header .menu-item-has-block .dropdown-block-bg,
.whb-header .wd-dropdown-menu.wd-design-default {
	display: none !important;
}

/* ==============================================
   Baifan Travel - 全局仿站共享样式
   统一所有仿站页面的页眉与全宽布局
   ============================================== */

/* 全宽覆盖：解除 WoodMart 容器与网格布局限制 */
body.bf-clone-page .wd-page-wrapper,
body.bf-clone-page .main-page-wrapper,
body.bf-clone-page .wd-page-content,
body.bf-clone-page .wd-content-area,
body.bf-clone-page .container.wd-content-layout,
body.bf-clone-page .container.wd-entry-content,
body.bf-clone-page .content-layout-wrapper,
body.bf-clone-page .wd-entry-content,
body.bf-clone-page #main-content.wd-content-layout {
	max-width: none !important;
	width: 100% !important;
	padding-inline: 0 !important;
	margin-inline: 0 !important;
	display: block !important;
	grid-template-columns: none !important;
}
body.bf-clone-page .wd-page-content { width: 100%; max-width: none; padding: 0; }
body.bf-clone-page .wd-content-layout { max-width: none !important; width: 100% !important; padding: 0 !important; }
body.bf-clone-page .wd-content-area { max-width: none !important; width: 100% !important; padding: 0 !important; }
body.bf-clone-page .container { max-width: none !important; width: 100% !important; padding-inline: 0 !important; }
body.bf-clone-page .wd-grid-g,
body.bf-clone-page [class*="wd-grid-"] { display: block !important; grid-template-columns: none !important; gap: 0 !important; }
body.bf-clone-page .bf-page { width: 100%; max-width: none; }

/* 全局统一页眉（About Us 为准） */
.bf-page-header {
	background: var(--bf-color-bg-light, #faf8f3);
	padding: 100px 0 80px;
	text-align: center;
	border-bottom: 1px solid var(--bf-color-line, rgba(0,0,0,0.06));
}
.bf-page-header .bf-reveal { max-width: 1200px; margin: 0 auto; }
.bf-eyebrow,
.bf-page-header__eyebrow {
	display: inline-block; background: var(--bf-color-primary, #c8a76b); color: #fff;
	font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
	padding: 6px 16px; border-radius: 20px; text-transform: uppercase; margin-bottom: 18px;
}
.bf-page-header__title {
	font-family: var(--bf-font-serif, 'Playfair Display', 'Source Han Serif SC', Georgia, serif);
	font-size: clamp(36px, 4.5vw, 48px);
	font-weight: 500; line-height: 1.15; margin: 0 0 10px;
	color: var(--bf-color-text, #1a1a1a);
}

/* 移动端适配 */
@media (max-width: 768px) {
	.bf-page-header { padding: 64px 0 56px; }
}
