/*
Theme Name: Astra Child
Template: astra
Version: 2026.0403.2323
*/

:root{--fb-text:#222;--fb-muted:#6b7280;--fb-bg:#fff;--fb-soft:#f6f6f6;--fb-border:#e5e7eb}
.entry-header,.ast-page-title-wrap,.page .entry-title,footer.site-footer,#colophon{display:none!important}
#masthead,#masthead .ast-primary-header-bar,#masthead .main-header-bar,#masthead .ast-main-header-wrap{background:#fff!important;border-bottom:1px solid var(--fb-border)!important}
#masthead .main-header-menu>.menu-item>a,#masthead .ast-builder-menu .menu-item>a{color:var(--fb-text)!important;font-size:14px!important;font-weight:500!important}
.fb-topbar{background:#111;color:#fff;padding:10px 16px;text-align:center;font-size:13px}
.fb-topbar p{margin:0 0 6px!important}
.fb-topbar .switcher{display:inline-block}
.fb-hero h1,.fb-hero p{color:#fff!important}.fb-kicker{letter-spacing:2px;font-size:12px!important;margin-bottom:12px!important;text-transform:uppercase}
.fb-hero h1{max-width:980px;margin:0 auto 18px!important;line-height:1.12!important;font-size:54px!important}
.fb-sub{max-width:760px;margin:0 auto 28px!important}
.fb-btn-primary .wp-block-button__link{background:#111!important;color:#fff!important;border:1px solid #111!important;border-radius:999px!important;padding:12px 28px!important}
.fb-btn-ghost .wp-block-button__link{background:transparent!important;color:#fff!important;border:1px solid #fff!important;border-radius:999px!important;padding:12px 28px!important}
.fb-h2{background:none!important;-webkit-text-fill-color:#111!important;color:#111!important}
.fb-center-sub{color:var(--fb-muted);margin-top:-6px!important}
.fb-cats{gap:24px!important}.fb-cat{border-radius:14px!important;overflow:hidden!important;transition:all .25s ease!important}.fb-cat:hover{transform:translateY(-6px)!important;box-shadow:0 16px 34px rgba(0,0,0,.16)!important}
.fb-cat h3,.fb-cat p{color:#fff!important}.fb-link{display:inline-block;margin-top:8px;color:#fff;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.8)}
.woocommerce ul.products li.product{border:1px solid var(--fb-border)!important;border-radius:12px!important;padding:12px!important;transition:all .22s ease!important}.woocommerce ul.products li.product:hover{transform:translateY(-4px)!important;box-shadow:0 12px 26px rgba(0,0,0,.1)!important}
.fb-news{background:var(--fb-soft)!important;padding:64px 24px!important;margin-top:72px!important;text-align:center}
.fb-news h2{background:none!important;-webkit-text-fill-color:#111!important;color:#111!important}
.fb-footer{background:#111;color:rgba(255,255,255,.82);padding:56px 0;margin-top:0}
.fb-footer-inner{max-width:1200px;margin:0 auto;padding:0 24px;display:grid;gap:28px;grid-template-columns:1.5fr 1fr 1fr 1fr}
.fb-footer h4,.fb-footer h5{color:#fff;margin:0 0 12px}.fb-footer ul{list-style:none;margin:0;padding:0}.fb-footer li{margin:0 0 8px}.fb-footer a{color:rgba(255,255,255,.72);text-decoration:none}.fb-footer a:hover{color:#fff}
@media(max-width:900px){.fb-footer-inner{grid-template-columns:1fr 1fr}}
@media(max-width:680px){.fb-hero h1{font-size:34px!important}.fb-footer-inner{grid-template-columns:1fr}}

/* Shop / category layout upgrade */
.woocommerce-page .site-main,.tax-product_cat .site-main{max-width:1240px;margin:0 auto;padding:24px 18px}
.woocommerce-products-header{margin:8px 0 22px}
.woocommerce-products-header__title.page-title{font-size:34px!important;line-height:1.2!important;color:#111!important;margin:0 0 8px!important}
.tax-product_cat .term-description{color:var(--fb-muted);max-width:760px}

/* 不再把分类当产品卡片混排展示 */
body.woocommerce-shop ul.products li.product-category,
body.woocommerce-shop ul.products li.product.product-category,
body.post-type-archive-product ul.products li.product-category,
body.post-type-archive-product ul.products li.product.product-category,
.woocommerce-page .site-main ul.products li.product-category,
.woocommerce-page .site-main ul.products li.product.product-category{
display:none!important}

.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px!important;margin:0!important;padding:0!important}
.woocommerce ul.products li.product{display:flex!important;flex-direction:column!important;gap:10px!important;background:#fff!important;min-height:100%!important}
.woocommerce ul.products li.product a img{width:100%!important;aspect-ratio:1/1!important;object-fit:cover!important;border-radius:10px!important}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:15px!important;line-height:1.35!important;color:#111!important;min-height:40px}
.woocommerce ul.products li.product .price{font-weight:600!important;color:#111!important}
.woocommerce ul.products li.product .button{margin-top:auto!important;border-radius:999px!important;background:#111!important;color:#fff!important;border:1px solid #111!important;padding:9px 14px!important;font-size:13px!important}
.woocommerce ul.products li.product-category{border:1px solid var(--fb-border)!important;border-radius:12px!important;padding:16px!important;background:#fff!important;transition:all .22s ease!important}
.woocommerce ul.products li.product-category:hover{transform:translateY(-4px)!important;box-shadow:0 12px 24px rgba(0,0,0,.08)!important}
.woocommerce ul.products li.product-category a img{border-radius:10px!important;aspect-ratio:4/3!important;object-fit:cover!important}
.woocommerce ul.products li.product-category h2{font-size:18px!important;color:#111!important}
.woocommerce ul.products li.product-category .count{font-size:12px!important;color:var(--fb-muted)!important;background:#f3f4f6;padding:2px 8px;border-radius:999px}

/* About / Contact sections */
.fb-wrap{max-width:1180px;margin:0 auto;padding:0 22px}
.fb-kicker-lite{letter-spacing:1.4px;text-transform:uppercase;font-size:12px;color:#6b7280;margin:0 0 10px}
.fb-about-hero,.fb-contact-hero{padding:72px 0 26px;background:#fff}
.fb-about-hero h1,.fb-contact-hero h1{font-size:42px!important;line-height:1.2!important;color:#111!important;margin:0 0 14px!important}
.fb-about-hero p,.fb-contact-hero p{max-width:880px;color:#4b5563}
.fb-about-grid,.fb-contact-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:24px 22px 64px}
.fb-about-card,.fb-contact-form,.fb-contact-info{background:#fff;border:1px solid var(--fb-border);border-radius:14px;padding:24px}
.fb-about-card h3,.fb-contact-grid h3{margin:0 0 10px;color:#111}
.fb-about-cta{background:#111;color:#fff;padding:60px 0;margin-bottom:26px}
.fb-about-cta h2{margin:0 0 10px;color:#fff}
.fb-about-cta p{color:rgba(255,255,255,.82);margin:0 0 18px}
.fb-cta-btn{display:inline-block;background:#fff;color:#111;padding:12px 22px;border-radius:999px;text-decoration:none;font-weight:600}
.fb-contact-note{background:#f3f4f6;border-radius:10px;padding:10px 12px;color:#374151}

/* Checkout offline payment notices */
.fb-offline-payment-notice,.fb-freight-notice{background:#f8f9fb;border:1px solid #dbe1ea;color:#1f2937;border-radius:10px;padding:12px 14px;margin:14px 0}
.fb-offline-payment-notice strong,.fb-freight-notice strong{color:#111}

@media(max-width:980px){
.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
.fb-about-grid,.fb-contact-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
.woocommerce ul.products{grid-template-columns:1fr}
.fb-about-hero h1,.fb-contact-hero h1{font-size:30px!important}
.fb-about-grid,.fb-contact-grid{grid-template-columns:1fr;padding-bottom:40px}
}
