/*
 Theme Name:   Storefront Child
 Theme URI:
 Description:  Storefront子主题，TGM引导插件，后台按钮生成古腾堡首页，支持Stackable Carousel全屏轮播
 Author:
 Author URI:
 Template:     storefront
 Version:      1.0
 Text Domain:  storefront-child
*/

/* 全宽页面容器解除最大宽度限制 */
.storefront-full-width-content .content-area {
    max-width: 100% !important;
    padding:0;
}
.content-area {
    max-width: 1300px;
}

/* Stackable Carousel 轮播图片全屏适配 */
.wp-block-stackable-carousel .wp-block-stackable-carousel-slide img {
    width:100%;
    height:100%;
    object-fit: cover;
    object-position: center center;
}
.wp-block-stackable-carousel .wp-block-stackable-carousel-slide{
    padding:0 !important;
}


/* 产品卡片圆角阴影示例，按需调整 */
.woocommerce ul.products li.product {
    border-radius:12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow:hidden;
}
.button {
    border-radius:8px;
}

/*四列页脚布局*/
.site-footer{
    background-color: #446084 !important;
}

.footer-four-column{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap:30px;
    padding:40px 0;
}
.footer-col{
	color:#fff;
}
.footer-col h4{
    font-size:18px;
    margin-bottom:16px;
    font-weight: bold;
	color:#fff;
}
.footer-col ul{
    list-style: none;
    padding: 0;
    margin:0;
}
.footer-col ul li{
    margin-bottom: 8px;
}
.footer-col a{
    text-decoration: none;
    color:#fff !important;
}
.footer-col a:hover{
    color:#c87498;
    text-decoration: underline;
}
.footer-copyright{
	color:#fff;
    text-align:center;
    padding:20px 0;
    border-top: 1px solid #ddd;
}

/* ===== 移动端适配新增代码 ===== */
/* 平板：768px以下 → 2列 */
@media screen and (max-width:768px){
    .footer-four-column{
        grid-template-columns: 1fr 1fr;
        gap:24px;
        padding:24px 0;
    }
}
/* 手机：480px以下 → 单列 */
@media screen and (max-width:480px){
    .footer-four-column{
        grid-template-columns: 1fr;
        gap:24px;
        padding:24px 0;
    }
    .footer-col h4{
        font-size:16px;
        margin-bottom:10px;
    }
    .footer-copyright{
        font-size:14px;
        padding:16px 0;
    }
}

.page-content{
    font-size: 18px;
    color: #333 !important;
}

.col-full {
    max-width: 1000px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

#masthead{
    margin-bottom: 0px;
    margin-top:-15px;
}

/* 全站取消侧边栏，主内容100%宽度 */
body.home #primary {
    margin-top: 0 !important;
}

#primary {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
    margin-top: 10px;
}
#secondary{
    display: none !important;
}

/* 移除鼠标点击所有元素紫色外框 */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
.button:focus,
.wc-forward:focus {
    outline: none !important;
}

.alignwide{
	margin:0px !important;
}

.entry-content{
	margin:0px !important;
}

.woocommerce-products-header {
    display: none !important;
}

.storefront-breadcrumb{
    margin: 0 !important;
}
.woocommerce-products-header{
    padding: 0 !important;
}

.entry-header{
	display:none;
}

/* ========== 自定义header行 bak1 ========== */
.custom-header-row {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	width:100%;
}

.custom-header-row .site-branding {
	margin:0 !important;
}

.custom-header-row .primary-navigation {
	clear: none !important;
	float: none !important;
	margin:0 !important;
}
.custom-header-row .primary-navigation ul.menu {
	display:flex !important;
	flex-wrap:nowrap !important;
	float:none !important;
	gap:4px;
}
.custom-header-row .primary-navigation ul.menu li {
	float:none !important;
}
.custom-header-row .primary-navigation ul.menu li a {
	padding: 0 8px !important;
}

.header-icon-group {
	display:flex;
	align-items:center;
	gap:20px;
	flex:0 0 auto;
}
.header-icon-group .site-header-cart {
	margin:0 !important;
	flex: 0 0 150px !important;
	min-width:150px !important;
	max-width:150px !important;
}
.header-icon-group .site-header-cart .cart-contents {
	white-space: nowrap !important;
	display:block;
}

@media screen and (max-width:768px) {
	.custom-header-row {
		flex-wrap:wrap !important;
	}
	.custom-header-row .header-nav {
		flex:1 1 100% !important;
		order:3;
		margin-top:10px;
	}
	.custom-header-row .primary-navigation ul.menu {
		display:block !important;
	}
	.custom-header-row .primary-navigation ul.menu li {
		float:none !important;
	}
}

/* 自定义CSS */
.add_to_cart_button{
	background:#446084;
	color:#fff;
	margin-bottom:15px !important;
}

.add_to_cart_button:hover{
	background:#fff;
	color:#000;
	border:#446084 1px solid;
	margin-bottom:15px !important;
}

.woocommerce-loop-product__title{
	height:60px;
}

.single_add_to_cart_button{
	background:#446084 !important;
	color:#fff;
}

.single_add_to_cart_button:hover{
	/* background:#fff; */
	/* color:#000; */
	border:#446084 1px solid !important;
}

.woocommerce-message{
	background-color: #446084;
	margin-top:0px !important;
}