/*
 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: 1600px;
}

/* 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:0px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow:hidden;
}
.button {
    border-radius:0px;
}

/*四列页脚布局*/
.site-footer{
    background-color: #101828 !important;
	padding:0px !important;
}

.footer-four-column{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap:30px;
    padding:40px 0;
}
.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;
	color:rgba(255, 255, 255, .72) !important;
}
.footer-col a{
    text-decoration: none;
    color:rgba(255, 255, 255, .72) !important;
}
.footer-col a:hover{
    color:#c87498;
    text-decoration: underline;
}
.footer-copyright{
    text-align:center;
    padding:20px 0;
    border-top: 1px solid #ddd;
	color:rgba(255, 255, 255, .72) !important;
}

/* ===== 移动端适配新增代码 ===== */
/* 平板：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: 1600px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

#masthead{
    margin-bottom: 0px;
}

/* 全站取消侧边栏，主内容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; */
	border: 2px solid #d7e2f8;
    padding: 50px 0px !important;
	margin-bottom:30px;
}

.woocommerce-products-header h1{
	font-size: 50px;
    font-weight: bold;
}

.storefront-breadcrumb{
    margin: 0 !important;
}

.entry-header{
	display:none;
}

/* 自定义CSS */
#site-navigation .menu{
	text-align: center;
	font-weight: 800;
}

.woocommerce ul.products li.product img{
    border-bottom:2px solid #d7e2f8;
	padding:10px 5px;
}

.woocommerce ul.products li{
    border:2px solid #d7e2f8;
}

.woocommerce ul.products li h2{
    font-weight:bold !important;
}

.woocommerce ul.products li .price{
	color: #8a5a00 !important;
	font-size:21px;
	font-weight:bold;
}

.woocommerce ul.products li h2{
	min-height: 30px;
}

.gqs-chip-row a{
	font-size: 18px !important;
}

.add_to_cart_button{
	background-color:#fff;
	border:1px solid #d7e2f8;
	color:#000;
	font-weight:900;
	margin-bottom:10px !important;
}

.add_to_cart_button:hover{
	background-color:#fff;
	border:1px solid #1357d8;
	color:#1357d8;
}

.added_to_cart{
	margin-left:10px !important;
}

.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, p.no-comments{
	background-color:#1357d8;
}

.site {
    overflow-x: visible !important;
}

.entry-summary .product_title{
	font-weight:600;
	margin-bottom:10px !important;
}

.product .wc-tabs-wrapper{
	border:2px solid #d7e2f8;
	padding:20px;
	margin-bottom:30px;
}

.woocommerce-tabs ul.tabs{
	border-top:none;
}

.single-product div.product p.price{
	color:#8a5a00 !important;
	margin:0px !important;
	font-size: 30px;
    font-weight: 900;
}

.summary .cart .single_add_to_cart_button{
	background: #1357d8;
    border-color: #1357d8;
    border-radius: 0;
    color: #ffffff;
}

.single-product div.product .product_meta{
	border-top:none;
	padding-top:0px;
}

.single-product div.product form.cart .quantity{
	margin-right:20px !important;
}

.storefront-full-width-content.single-product div.product .woocommerce-product-gallery{
	margin-top:15px !important;
}