/*!
Theme Name: Botiga
Theme URI: https://athemes.com/theme/botiga/
Author: aThemes
Author URI: https://athemes.com
Description: Botiga is a fast, lightweight WooCommerce theme for building modern online stores and eCommerce websites. It works with both Elementor and the WordPress block editor to assemble pages quickly. A clean, modern design with deep customization keeps your shop, product, cart, and checkout pages on brand. Built from the ground up with clean code for strong performance and Core Web Vitals, Botiga is fully responsive, mobile-optimized, translation- and RTL-ready, and SEO-friendly, with dedicated WooCommerce styling and layout options to help you sell more. Trusted by 10,000+ stores with a 4.9-star rating. Start fast by importing a ready-made store demo: https://athemes.com/theme/botiga/#demos
Version: 2.5.0
Tested up to: 7.1
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: botiga
Tags: e-commerce, custom-menu, custom-logo, grid-layout, featured-images, right-sidebar, left-sidebar, custom-colors, editor-style, theme-options, threaded-comments, translation-ready, blog, one-column, two-columns, rtl-language-support, custom-background, custom-header, footer-widgets, post-formats, wide-blocks, full-width-template

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Botiga is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/* mobile-2col-products: 手机端商品列表（商店/类目归档页）一行两个，勿删 */
@media(max-width:781px){
ul.products{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:12px !important;}
ul.products li.product{width:auto !important;max-width:none !important;float:none !important;clear:none !important;margin:0 !important;padding:0 !important;}
ul.products li.product img{width:100% !important;height:auto !important;object-fit:contain !important;}
}
/* product-img-uniform: Featured Collection 商品图固定208px + cover填满，消除contain留白差导致的视觉高度不一 */
@media(max-width:991px){
/* 只命中 loop-image-wrap 里的图片链容器，别误伤标题链 */
li.wc-block-grid__product .loop-image-wrap,
li.wc-block-grid__product .loop-image-wrap .wc-block-grid__product-link,
li.wc-block-grid__product .wc-block-grid__product-image{
height:208px !important;overflow:hidden !important;}
.wc-block-grid__products li.wc-block-grid__product img{
object-fit:cover !important;width:100% !important;height:100% !important;}
/* 标题链恢复自然高度（被上面规则误伤撑到208px） */
li.wc-block-grid__product > .wc-block-grid__product-link{
height:auto !important;min-height:0 !important;overflow:visible !important;}
}
/* mobile-header-height: 手机端顶部导航栏高度从100px缩到60px（3/5），勿删 */
@media(max-width:991px){
header.bhfb-header,
header.bhfb-header .bhfb-rows,
header.bhfb-header .bhfb-row-wrapper{
height:60px !important;min-height:60px !important;}
}
/* /mobile-header-height */

/* buy-now-button: 商品页加入购物车/购买双按钮并排，勿删 */
form.cart .botiga-single-addtocart-wrapper{flex-direction:row !important;flex-wrap:wrap !important;}
form.cart .botiga-single-addtocart-wrapper .single_add_to_cart_button,
form.cart .botiga-single-addtocart-wrapper .buy-now-button{flex:1 1 0;min-width:0;margin-left:0;margin-right:0;}
@media(max-width:781px){
form.cart .botiga-single-addtocart-wrapper{flex-wrap:wrap;}
form.cart .botiga-single-addtocart-wrapper .quantity{width:100%;}
form.cart .botiga-single-addtocart-wrapper .single_add_to_cart_button{width:auto !important;}
form.cart .botiga-single-addtocart-wrapper .buy-now-button{width:auto !important;}
}
/* /buy-now-button */

/* section-gap: 手机端收窄轮播与类目区块之间的空白（100px Spacer 块），勿删 */
@media(max-width:991px){
.cw-hero + .wp-block-spacer{height:20px !important;}
.athemes-blocks-block-e0c2e663 .wp-block-heading{margin-top:12px !important;}
}
/* /section-gap */

/* highlight-tight: 亮点区块前后各100px spacer清零（手机端），勿删 */
@media(max-width:991px){
/* 亮点区块自身 wrapper 清零 */
.athemes-blocks-block-e0c2e663,
#athemes-blocks-block-e0c2e663,
#athemes-blocks-block-e0c2e663 .athemes-blocks-block-container,
#athemes-blocks-block-e0c2e663 .athemes-blocks-block-container-wrapper,
#athemes-blocks-block-e0c2e663 .athemes-blocks-block-container-wrapper-content{
padding-top:0 !important;padding-bottom:0 !important;margin-top:0 !important;margin-bottom:0 !important;
}
#athemes-blocks-block-e0c2e663 .wp-block-heading{margin-top:0 !important;margin-bottom:4px !important;}
#athemes-blocks-block-e0c2e663 p.has-text-align-center{margin-bottom:4px !important;line-height:1.4 !important;}
#athemes-blocks-block-e0c2e663 .wp-block-buttons{margin-top:0 !important;margin-bottom:0 !important;}
/* 亮点区块按钮缩一半 — 只缩小按钮自身，外层容器保持原位 */
html body #athemes-blocks-block-e0c2e663 .wp-block-button .wp-block-button__link{
padding-top:4px !important;padding-bottom:4px !important;padding-left:12px !important;padding-right:12px !important;
font-size:12px !important;line-height:1.3 !important;min-height:0 !important;min-width:0 !important;height:auto !important;}
/* 前一个 spacer（100px）清零 — 直接兄弟在亮点前面 */
.wp-block-spacer:has(+ #athemes-blocks-block-e0c2e663){height:0 !important;min-height:0 !important;}
/* 后一个 spacer（100px）清零 — 亮点的直接下一个兄弟 */
#athemes-blocks-block-e0c2e663 + .wp-block-spacer{height:0 !important;min-height:0 !important;}
}
@media(min-width:992px){
.athemes-blocks-block-e0c2e663 .athemes-blocks-block-container-wrapper{padding-top:0 !important;padding-bottom:0 !important;}
.athemes-blocks-block-e0c2e663 .athemes-blocks-block-container-wrapper-content{padding-top:40px !important;padding-bottom:40px !important;}
.athemes-blocks-block-e0c2e663 .wp-block-heading{margin-top:0 !important;margin-bottom:12px !important;}
.athemes-blocks-block-e0c2e663 p.has-text-align-center{margin-bottom:12px !important;}
.athemes-blocks-block-e0c2e663 .wp-block-buttons{margin-top:0 !important;margin-bottom:0 !important;}
}
/* /highlight-tight */

/* highlight-narrow-band: 电脑端亮点区块由通栏改为居中窄条（约手机宽度）、左右留白，勿删 */
@media(min-width:992px){
#athemes-blocks-block-e0c2e663{
width:min(600px,90%) !important;
max-width:600px !important;
margin-left:auto !important;
margin-right:auto !important;
}
}
/* /highlight-narrow-band */
