/* RealSexDoll Style Homepage Styles */
/* 所有样式都严格限制在 .realsexdoll-featured-products 区域内，不影响其他页面 */

/* ========================================
   头部底部分隔线
   ======================================== */

/* 头部底部细线（淡淡的灰色） */
.wf_header {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03) !important;
}

/* 自定义 Logo 样式 */
.custom-logo-image {
	max-height: 65px !important;
	height: 65px !important;
	width: auto !important;
	max-width: none !important;
	display: block !important;
	object-fit: contain !important;
}

.custom-logo-link {
	display: inline-flex !important;
	align-items: center !important;
	line-height: 1 !important;
	text-decoration: none !important;
	height: 100% !important;
	padding: 10px 0 !important;
}

/* Logo 容器垂直居中 */
.site--logo {
	display: flex !important;
	align-items: center !important;
	height: 100% !important;
}

/* 响应式 Logo */
@media (max-width: 991px) {
	.custom-logo-image {
		max-height: 55px !important;
		height: 55px !important;
	}
	.custom-logo-link {
		padding: 8px 0 !important;
	}
}

@media (max-width: 767px) {
	.custom-logo-image {
		max-height: 45px !important;
		height: 45px !important;
	}
	.custom-logo-link {
		padding: 6px 0 !important;
	}
}

/* 促销横幅样式 */
.realsexdoll-promo-banner {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 12px 0;
	text-align: center;
	position: relative;
	z-index: 10;
}

.realsexdoll-promo-banner .promo-banner-content {
	color: #fff;
	font-weight: 600;
	font-size: 16px;
	letter-spacing: 0.5px;
}

.realsexdoll-promo-banner .promo-link {
	color: #fff;
	text-decoration: none;
	display: block;
	transition: opacity 0.3s ease;
}

.realsexdoll-promo-banner .promo-link:hover {
	opacity: 0.9;
	text-decoration: none;
}

.realsexdoll-promo-banner .promo-text {
	color: #fff;
	display: block;
}

/* 图片横幅样式 */
.realsexdoll-promo-banner-image {
	position: relative;
	width: 100%;
	margin-bottom: 0;
	overflow: hidden;
}

.realsexdoll-promo-banner-image .promo-banner-image-link {
	display: block;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.realsexdoll-promo-banner-image .promo-banner-image-link:hover {
	opacity: 0.95;
	text-decoration: none;
}

.promo-banner-image-wrapper {
	position: relative;
	width: 100%;
	height: auto;
	overflow: hidden;
	/* 让横幅不要铺满全屏：居中且比下面的 1400px 略宽 */
	max-width: 1550px;
	margin: 0 auto;
	padding: 0 20px;
}

.promo-banner-image-wrapper .promo-banner-img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	border-radius: 10px;
}

.promo-banner-text-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0);
	color: #fff;
	font-weight: 700;
	font-size: 24px;
	letter-spacing: 1px;
	text-align: center;
	padding: 20px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	z-index: 2;
}

/* 响应式图片横幅 */
@media (max-width: 991px) {
	.promo-banner-text-overlay {
		font-size: 20px;
		padding: 15px;
	}
}

@media (max-width: 767px) {
	.promo-banner-text-overlay {
		font-size: 16px;
		padding: 12px;
		letter-spacing: 0.5px;
	}
}

/* 产品分类网格样式 */
.realsexdoll-category-grid {
	background: #f8f9fa;
	/* 收紧版块上下间距 */
	padding: 28px 0;
}

.realsexdoll-category-grid .section-header {
	text-align: center;
	margin-bottom: 18px;
}

.realsexdoll-category-grid .section-title {
	font-size: 32px;
	font-weight: 700;
	color: #333;
	margin-bottom: 0;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.realsexdoll-category-grid .section-subtitle,
.realsexdoll-featured-products .section-subtitle,
.realsexdoll-brands .section-subtitle {
	max-width: 900px;
	margin: 10px auto 0;
	color: #666;
	font-size: 16px;
	line-height: 1.6;
}

.realsexdoll-section-btn {
	display: inline-block;
	margin: 0;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--wf-main-color, #fe4322);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.3px;
	text-decoration: none !important;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.realsexdoll-section-btn:hover,
.realsexdoll-section-btn:focus {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
	background: var(--wf-secondary-color, #333);
	color: #fff !important;
	text-decoration: none !important;
}

.realsexdoll-section-btn-wrap {
	text-align: center;
	margin-top: 18px;
}

.category-grid-wrapper {
	margin: 0 auto;
	/* 让分类卡片在电脑端更铺开，和上方横幅更协调 */
	max-width: 1400px;
}

.category-grid-item {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	background: #fff;
	margin-bottom: 20px;
}

.category-grid-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.category-grid-item .category-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.category-image-wrapper {
	position: relative;
	overflow: hidden;
	width: 100%;
	/* 加宽后适当加高，保持卡片比例更美观 */
	height: 340px;
}

.category-image-wrapper .category-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.category-grid-item:hover .category-image {
	transform: scale(1.05);
}

.category-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
	padding: 15px 20px;
	color: #fff;
	transform: translateY(0);
	transition: all 0.3s ease;
}

.category-grid-item:hover .category-overlay {
	background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 100%);
}

.category-overlay .category-name {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 5px 0;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.category-overlay .category-count {
	font-size: 13px;
	opacity: 0.9;
	color: #fff;
}

/* 品牌展示区域样式 */
.realsexdoll-brands {
	background: #fff;
}

.realsexdoll-brands .section-header {
	text-align: center;
}

.realsexdoll-brands .section-title {
	font-size: 32px;
	font-weight: 700;
	color: #333;
	margin-bottom: 0;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.brand-item {
	text-align: center;
	padding: 20px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.brand-link {
	display: block;
	text-decoration: none;
}

.brand-logo {
	max-width: 100%;
	height: auto;
	max-height: 80px;
	object-fit: contain;
}

.brand-name {
	display: block;
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

/* 特色产品展示区域样式 - 严格限制在首页RealSexDoll区域 */
.realsexdoll-featured-products {
	background: #f8f9fa;
	/* 收紧版块上下间距 */
	padding: 28px 0;
}

.realsexdoll-featured-products .section-header {
	text-align: center;
	margin-bottom: 18px;
}

.realsexdoll-featured-products .section-title {
	font-size: 32px;
	font-weight: 700;
	color: #333;
	margin-bottom: 0;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.realsexdoll-featured-products .products-grid-wrapper {
	margin: 0 auto;
	/* 让产品区在电脑端更铺开 */
	max-width: 1400px;
}

/* 确保产品列表正确显示 - 仅限RealSexDoll区域：强制4列网格 + 自动换行 */
.realsexdoll-featured-products .products-grid-wrapper ul.products,
.realsexdoll-featured-products ul.products {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 22px !important;
}

.realsexdoll-featured-products .products-grid-wrapper ul.products li.product,
.realsexdoll-featured-products ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	background: #fff !important;
	border-radius: 8px !important;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
	transition: transform 0.3s ease, box-shadow 0.3s ease !important;
	overflow: hidden !important;
	position: relative !important;
	padding: 0 !important;
	display: flex !important;
}

.realsexdoll-featured-products .products-grid-wrapper ul.products li.product .product,
.realsexdoll-featured-products ul.products li.product .product,
.realsexdoll-featured-products .products-grid-wrapper ul.products li.product .product-single,
.realsexdoll-featured-products ul.products li.product .product-single {
	width: 100% !important;
	height: 100% !important;
	display: flex !important;
	flex-direction: column !important;
}

.realsexdoll-featured-products .products-grid-wrapper ul.products li.product:hover,
.realsexdoll-featured-products ul.products li.product:hover {
	transform: translateY(-5px) !important;
	box-shadow: 0 5px 20px rgba(0,0,0,0.15) !important;
}

/* 产品图片区域：固定高度 + object-fit:cover（参考站风格，不管图片原比例） */
body.home .realsexdoll-featured-products .products-grid-wrapper ul.products li.product .product-img,
body.home .realsexdoll-featured-products ul.products li.product .product-img {
	height: 470px !important;
	min-height: 470px !important;
	max-height: 470px !important;
	width: 100% !important;
	overflow: hidden !important;
	position: relative !important;
	display: block !important;
	background: #f6f6f6 !important;
}

body.home .realsexdoll-featured-products .products-grid-wrapper ul.products li.product .product-img > a,
body.home .realsexdoll-featured-products ul.products li.product .product-img > a,
body.home .realsexdoll-featured-products .products-grid-wrapper ul.products li.product .product-img .woocommerce-LoopProduct-link,
body.home .realsexdoll-featured-products ul.products li.product .product-img .woocommerce-LoopProduct-link {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
}

body.home .realsexdoll-featured-products .products-grid-wrapper ul.products li.product .product-img img,
body.home .realsexdoll-featured-products ul.products li.product .product-img img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
}

/* 确保产品详情页的图片不受影响 - 恢复主题原有样式 */
body.single-product .product-img,
body.single-product .woocommerce-product-gallery,
body.single-product .woocommerce-product-gallery__wrapper,
body.single-product .woocommerce-product-gallery__image,
body.woocommerce-page:not(.home) .product-img,
body.woocommerce-page:not(.home) .woocommerce-product-gallery,
body:not(.home) .product-img,
body:not(.home) .woocommerce-product-gallery {
	min-height: inherit !important;
	max-height: inherit !important;
	height: auto !important;
}

body.single-product .woocommerce-product-gallery__image img,
body.single-product .woocommerce-product-gallery img,
body.woocommerce-page:not(.home) .woocommerce-product-gallery__image img,
body:not(.home) .woocommerce-product-gallery img {
	width: 100% !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: none !important;
}

/* 只覆盖主题的.info隐藏样式，让图片正常显示 - 严格限制在首页RealSexDoll区域 */
body.home .realsexdoll-featured-products .products-grid-wrapper ul.products li.product .product-img .info,
body.home .realsexdoll-featured-products ul.products li.product .product-img .info {
	opacity: 1 !important;
	visibility: visible !important;
}

/* 确保产品详情页和其他页面不受影响 */
body.single-product .product-img .info,
body.woocommerce-page:not(.home) .product-img .info,
body:not(.home) .product-img .info {
	/* 恢复主题原有样式，不应用任何修改 */
	opacity: inherit !important;
	visibility: inherit !important;
}

/* 产品内容区域 - 严格限制在RealSexDoll区域 */
.realsexdoll-featured-products .products-grid-wrapper ul.products li.product .product-content-outer,
.realsexdoll-featured-products ul.products li.product .product-content-outer {
	padding: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	height: 100% !important;
}

.realsexdoll-featured-products .products-grid-wrapper ul.products li.product .product-content,
.realsexdoll-featured-products ul.products li.product .product-content {
	padding: 20px 15px 15px 15px !important;
	flex: 1 !important;
}

.realsexdoll-featured-products .products-grid-wrapper ul.products li.product .product-content h3,
.realsexdoll-featured-products ul.products li.product .product-content h3,
.realsexdoll-featured-products .products-grid-wrapper ul.products li.product h3,
.realsexdoll-featured-products ul.products li.product h3 {
	font-size: 18px !important;
	font-weight: 600 !important;
	color: #333 !important;
	margin: 0 0 8px 0 !important;
	line-height: 1.4 !important;
}

.realsexdoll-featured-products .products-grid-wrapper ul.products li.product .product-content h3 a,
.realsexdoll-featured-products ul.products li.product .product-content h3 a,
.realsexdoll-featured-products .products-grid-wrapper ul.products li.product h3 a,
.realsexdoll-featured-products ul.products li.product h3 a {
	color: #333 !important;
	text-decoration: none !important;
	transition: color 0.3s ease !important;
}

.realsexdoll-featured-products .products-grid-wrapper ul.products li.product .product-content h3 a:hover,
.realsexdoll-featured-products ul.products li.product .product-content h3 a:hover,
.realsexdoll-featured-products .products-grid-wrapper ul.products li.product h3 a:hover,
.realsexdoll-featured-products ul.products li.product h3 a:hover {
	color: var(--wf-main-color, #fe4322) !important;
}

/* 产品描述 - 严格限制在RealSexDoll区域 */
.realsexdoll-featured-products .products-grid-wrapper ul.products li.product .product-content p,
.realsexdoll-featured-products ul.products li.product .product-content p {
	font-size: 14px !important;
	color: #666 !important;
	margin: 0 0 10px 0 !important;
	line-height: 1.5 !important;
}

/* 价格样式 - 严格限制在RealSexDoll区域 */
.realsexdoll-featured-products .products-grid-wrapper ul.products li.product .price,
.realsexdoll-featured-products ul.products li.product .price {
	margin: 0 0 0 0 !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	color: #e74c3c !important;
	line-height: 1.5 !important;
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
}

.realsexdoll-featured-products .products-grid-wrapper ul.products li.product .price del,
.realsexdoll-featured-products ul.products li.product .price del {
	color: #999 !important;
	font-size: 16px !important;
	margin-right: 0 !important;
	opacity: 0.7 !important;
	font-weight: 400 !important;
	text-decoration: line-through !important;
}

.realsexdoll-featured-products .products-grid-wrapper ul.products li.product .price ins,
.realsexdoll-featured-products ul.products li.product .price ins {
	text-decoration: none !important;
	color: #e74c3c !important;
	font-size: 20px !important;
	font-weight: 700 !important;
}

/* 响应式产品网格 - 严格限制在RealSexDoll区域 */
@media (max-width: 1199px) {
	.realsexdoll-featured-products .products-grid-wrapper ul.products,
	.realsexdoll-featured-products ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
	
	body.home .realsexdoll-featured-products .products-grid-wrapper ul.products li.product .product-img,
	body.home .realsexdoll-featured-products ul.products li.product .product-img {
		height: 360px !important;
		min-height: 360px !important;
		max-height: 360px !important;
	}
	
	.category-image-wrapper {
		height: 320px;
	}
}

@media (max-width: 991px) {
	.realsexdoll-featured-products .products-grid-wrapper ul.products,
	.realsexdoll-featured-products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 16px !important;
	}
	
	.realsexdoll-category-grid .section-title,
	.realsexdoll-brands .section-title,
	.realsexdoll-featured-products .section-title {
		font-size: 24px;
	}
	
	.category-image-wrapper {
		height: 280px;
	}
	
	.category-overlay .category-name {
		font-size: 16px;
	}
}

@media (max-width: 767px) {
	.realsexdoll-promo-banner .promo-banner-content {
		font-size: 14px;
	}
	
	.realsexdoll-category-grid {
		padding: 30px 0;
	}
	
	.realsexdoll-category-grid .section-title,
	.realsexdoll-brands .section-title,
	.realsexdoll-featured-products .section-title {
		font-size: 20px;
	}
	
	.category-image-wrapper {
		height: 240px;
	}
	
	.category-overlay {
		padding: 12px 15px;
	}
	
	.category-overlay .category-name {
		font-size: 15px;
	}
	
	.category-overlay .category-count {
		font-size: 12px;
	}
}

@media (max-width: 575px) {
	.realsexdoll-featured-products .products-grid-wrapper ul.products,
	.realsexdoll-featured-products ul.products {
		grid-template-columns: 1fr !important;
	}
}

/* ========================================
   Footer 样式（参考 RealSexDoll）
   ======================================== */

/* Footer 背景渐变 */
.wf_footer {
	background-image: linear-gradient(to right, #442c50, #000000, #000000, #000000, #442c50) !important;
	background-color: #000000 !important;
}

/* Footer 所有文字改成白色 */
.wf_footer,
.wf_footer h1,
.wf_footer h2,
.wf_footer h3,
.wf_footer h4,
.wf_footer h5,
.wf_footer h6,
.wf_footer p,
.wf_footer a,
.wf_footer li,
.wf_footer span,
.wf_footer div,
.wf_footer .widget-title,
.wf_footer .footer-copyright,
.wf_footer .footer-info {
	color: #ffffff !important;
}

/* Footer 链接样式 */
.wf_footer a:hover {
	color: #e91e63 !important;
	text-decoration: none !important;
}

/* Footer 输入框样式（如果有订阅框） */
.wf_footer input[type="text"],
.wf_footer input[type="email"],
.wf_footer textarea {
	background: rgba(255, 255, 255, 0.1) !important;
	border-color: rgba(255, 255, 255, 0.2) !important;
	color: #ffffff !important;
}

.wf_footer input::placeholder,
.wf_footer textarea::placeholder {
	color: rgba(255, 255, 255, 0.6) !important;
}
