/**
 * Theme Name: Astra Child - Xiangfu
 * Theme URI: https://www.cnxiangfu.com/
 * Description: Custom Xiangfu eco-friendly bags website. Child theme for Astra with custom front-page, product category and product detail templates.
 * Author: RainyDe.cn
 * Template: astra
 * Version: 1.0.3
 * Text Domain: astra-child
 */

/* Shared layout utilities (used by header + templates) */
.c {
	max-width: 1280px;
	margin: 0 auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

@media (min-width: 640px) {
	.c {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}

@media (min-width: 1024px) {
	.c {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

@media (min-width: 1024px) {
	.lg-show {
		display: flex !important;
	}

	.lg-hide {
		display: none !important;
	}

	.xf-site-header .xf-nav.lg-show {
		display: flex !important;
	}
}

@media (min-width: 640px) {
	.sm-show {
		display: inline-flex !important;
	}
}

/* Site header — matches xaingfu_v0app/public/index.html */
.xf-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid #f3f4f6;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.xf-site-header .xf-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}

.xf-site-header .xf-brand {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
}

.xf-site-header .xf-brand img {
	height: 32px;
	width: auto;
}

.xf-site-header .xf-brand-name {
	font-weight: 700;
	font-size: 18px;
	color: #166534;
	line-height: 1.2;
}

.xf-site-header .xf-brand-tag {
	font-size: 10px;
	color: #6b7280;
	margin: 0;
	margin-top: -2px;
}

.xf-site-header .xf-nav {
	display: none;
	align-items: center;
	gap: 28px;
	font-size: 14px;
}

.xf-site-header .xf-nav-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #4b5563;
	font-weight: 400;
	text-decoration: none;
	transition: color 0.2s ease;
	white-space: nowrap;
}

.xf-site-header .xf-nav-link:hover,
.xf-site-header .xf-nav-link.is-active {
	color: #15803d;
	font-weight: 500;
}

.xf-site-header .xf-nav-link svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.xf-site-header .xf-nav-dropdown {
	position: relative;
}

.xf-site-header .xf-nav-dropdown-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%);
	min-width: 200px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	padding: 8px 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease, visibility 0.15s ease;
	z-index: 60;
}

.xf-site-header .xf-nav-dropdown:hover .xf-nav-dropdown-menu,
.xf-site-header .xf-nav-dropdown:focus-within .xf-nav-dropdown-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.xf-site-header .xf-nav-dropdown-menu a {
	display: block;
	padding: 8px 16px;
	font-size: 13px;
	color: #4b5563;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.xf-site-header .xf-nav-dropdown-menu a:hover {
	background: #f0fdf4;
	color: #15803d;
}

.xf-site-header .xf-header-cta {
	display: none;
	align-items: center;
	justify-content: center;
	background: #15803d;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	padding: 10px 20px;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease;
}

.xf-site-header .xf-header-cta:hover {
	background: #166534;
	color: #fff;
}

.xf-site-header .xf-mobile-toggle {
	padding: 8px;
	background: none;
	border: none;
	cursor: pointer;
}

.xf-site-header .xf-mobile-nav {
	display: none;
	padding: 16px 0 24px;
	border-top: 1px solid #f3f4f6;
}

.xf-site-header .xf-mobile-nav a {
	display: block;
	font-size: 15px;
	color: #4b5563;
	text-decoration: none;
	margin-bottom: 14px;
}

.xf-site-header .xf-mobile-nav a.is-active {
	color: #15803d;
	font-weight: 500;
}

.xf-site-header .xf-mobile-nav .xf-mobile-group {
	margin-bottom: 16px;
}

.xf-site-header .xf-mobile-nav .xf-mobile-group-title {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #9ca3af;
	margin: 0 0 10px;
}

.xf-site-header .xf-mobile-nav .xf-mobile-sub a {
	font-size: 14px;
	padding-left: 12px;
	margin-bottom: 10px;
}

.xf-site-header .xf-mobile-nav .xf-mobile-cta {
	display: block;
	width: 100%;
	background: #15803d;
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	padding: 12px;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	text-align: center;
	margin-top: 8px;
}
