.bhs-home{display:flex;flex-direction:column;gap:48px;padding:0 clamp(16px,4vw,64px)}

/* Break out of theme content width on the front page */
.home .bhs-home{width:100vw!important;max-width:none!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;overflow-x:visible}

/* Front page title is not part of homepage modules */
.home .wp-block-post-title{display:none}

/* === Your Book Stop Intro Section === */
.bhs-intro,.bhs-home .bhs-intro,section.bhs-intro{max-width:1400px!important;width:100%!important;margin:0 auto!important;text-align:center!important;padding:32px 24px!important;background:linear-gradient(135deg,#f8f9fa 0%,#e9ecef 100%)!important;border-radius:12px!important;box-sizing:border-box!important}
.bhs-intro-title,.bhs-home .bhs-intro-title,h2.bhs-intro-title{font-size:clamp(28px,5vw,42px)!important;font-weight:700!important;margin:0 0 16px!important;color:#222!important;text-align:center!important;display:block!important;width:100%!important}
.bhs-intro-text,.bhs-home .bhs-intro-text,p.bhs-intro-text{font-size:clamp(14px,2vw,16px)!important;line-height:1.8!important;color:#555!important;margin:0!important;text-align:center!important}

/* === Why Choose Us Section === */
.bhs-why-choose{max-width:1400px;width:100%;margin:0 auto;padding:48px 24px;box-sizing:border-box}
.bhs-why-choose__title{font-size:clamp(24px,4vw,36px)!important;font-weight:700!important;text-align:center!important;margin:0 0 40px!important;color:#222}
.bhs-why-choose__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.bhs-why-choose__item{display:flex;align-items:flex-start;gap:16px;padding:0 24px;border-left:1px solid #ddd}
.bhs-why-choose__item:first-child{border-left:none;padding-left:0}
.bhs-why-choose__item:last-child{padding-right:0}
.bhs-why-choose__icon{width:100px;height:139px;object-fit:contain;flex-shrink:0}
.bhs-why-choose__content{flex:1}
.bhs-why-choose__item-title{font-size:16px;font-weight:600;margin:0 0 8px;color:#222}
.bhs-why-choose__item-desc{font-size:14px;line-height:1.6;color:#666;margin:0}

@media (max-width:1024px){
	.bhs-why-choose__grid{grid-template-columns:repeat(2,1fr);gap:24px 0}
	.bhs-why-choose__item:nth-child(odd){border-left:none;padding-left:0}
	.bhs-why-choose__item:nth-child(even){padding-right:0}
}
@media (max-width:600px){
        .bhs-why-choose__grid{grid-template-columns:repeat(2,1fr)!important;gap:12px!important}
        .bhs-why-choose__item{flex-direction:column;text-align:center;align-items:center;border-left:none!important;border-top:none!important;padding:8px!important}
        .bhs-why-choose__item:first-child{border-top:none;padding-top:0}
        .bhs-why-choose__icon{width:50px;height:70px}
        .bhs-why-choose__item-title{font-size:12px}
        .bhs-why-choose__item-desc{font-size:11px}
}

/* === Expandable Article Section === */
.bhs-article{max-width:1400px;width:100%;margin:0 auto;padding:48px 24px;box-sizing:border-box}
.bhs-article__content{position:relative;max-height:150px;overflow:hidden;transition:max-height 0.5s ease}
.bhs-article__content.expanded{max-height:2000px}
.bhs-article__content::after{content:'';position:absolute;bottom:0;left:0;right:0;height:80px;background:linear-gradient(transparent,#fff);pointer-events:none;transition:opacity 0.3s}
.bhs-article__content.expanded::after{opacity:0}
.bhs-article__title{font-size:clamp(24px,4vw,32px);font-weight:700;margin:0 0 20px;color:#222;text-align:center}
.bhs-article__content p{font-size:15px;line-height:1.8;color:#555;margin:0 0 16px;text-align:justify}
.bhs-article__content p:last-child{margin-bottom:0}
.bhs-article__toggle{display:block;margin:20px auto 0;padding:12px 32px;background:#111;color:#fff;border:none;border-radius:6px;font-size:14px;cursor:pointer;transition:background 0.2s}
.bhs-article__toggle:hover{background:#333}

/* === Footer Intro Section (SEO) === */
.footer-intro{margin-bottom:32px}
.footer-intro h2{font-size:clamp(20px,3vw,28px);font-weight:700;margin:0 0 16px;color:#222;text-align:center}
.footer-intro p{font-size:15px;line-height:1.8;color:#555;margin:0;text-align:justify}
.footer-intro strong{color:#333;font-weight:600}

/* === Shop by Category Matrix (SEO) === */
.shop-by-category{margin-top:24px;padding-top:24px;border-top:1px solid #eee}
.shop-by-category h2{font-size:clamp(18px,3vw,24px);font-weight:700;margin:0 0 20px;color:#222;text-align:center}
.category-matrix{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.category-column h3{font-size:16px;font-weight:600;margin:0 0 12px;color:#1b4d3e;border-bottom:2px solid #1b4d3e;padding-bottom:8px}
.category-column ul{list-style:none;margin:0;padding:0}
.category-column li{margin:8px 0}
.category-column a{color:#333;text-decoration:none;font-size:14px;transition:color .2s}
.category-column a:hover{color:#1b4d3e;text-decoration:underline}
.category-column span{color:#666;font-size:14px}

@media (max-width:768px){
	.category-matrix{grid-template-columns:1fr;gap:20px}
	.category-column{text-align:center}
	.category-column h3{display:inline-block}
}

/* === Product Section Module === */
.bhs-section{display:flex;flex-direction:column;gap:0;max-width:1400px;margin:0 auto;width:100%}
.bhs-section__header{text-align:center;margin-bottom:16px}
.bhs-section__title{margin:0;font-size:clamp(24px,4vw,36px);font-weight:700}
.bhs-section__title-banner{width:100%}
.bhs-section__title-banner img{width:100%;height:auto;display:block;border-radius:12px 12px 0 0;aspect-ratio:1920/405;object-fit:cover}

/* === Product Slider Wrapper === */
.bhs-product-slider-wrapper{position:relative;padding:0}
.bhs-slider-btn{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border:none;border-radius:50%;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.15);cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:10;transition:all .2s}
.bhs-slider-btn:hover{background:#f0f0f0;box-shadow:0 4px 12px rgba(0,0,0,.2)}
.bhs-slider-btn:disabled{opacity:.3;cursor:not-allowed}
.bhs-slider-btn--prev{left:-50px}
.bhs-slider-btn--next{right:-50px}

/* 手机端隐藏按钮，支持触摸滑动 */
@media (max-width:768px){
	.bhs-product-slider-wrapper{padding:0 16px}
	.bhs-slider-btn{display:none!important}
	.bhs-product-slider{touch-action:pan-x;cursor:grab}
}
.bhs-slider-btn svg{width:20px;height:20px;color:#333}

/* === Product Grid (custom, not WooCommerce) === */
.bhs-product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;padding:24px 0;background:#f8f8f8;border-radius:0 0 12px 12px}
.bhs-product-slider .bhs-product-card{transition:opacity .3s ease}
.bhs-product-card{display:flex;flex-direction:column;background:#fff;border-radius:8px;overflow:hidden;text-decoration:none;color:inherit;transition:box-shadow .2s,transform .3s}
.bhs-product-card:hover{box-shadow:0 4px 20px rgba(0,0,0,.1);transform:translateY(-4px)}
.bhs-product-card__image{width:100%;aspect-ratio:3/4;object-fit:contain;background:#fff}
.bhs-product-card__info{padding:12px;text-align:center}
.bhs-product-card__title{font-size:14px;font-weight:600;margin:0 0 8px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bhs-product-card__rating{display:inline-flex;align-items:center;justify-content:center;gap:8px;color:rgba(0,0,0,0.55);margin:0 0 8px}
.bhs-product-card__stars{--star-size:14px;position:relative;display:inline-block;font-size:var(--star-size);line-height:1;letter-spacing:2px}
.bhs-product-card__stars::before{content:'★★★★★';color:rgba(0,0,0,0.18)}
.bhs-product-card__stars::after{content:'★★★★★';position:absolute;left:0;top:0;width:calc((var(--rating,0) / 5) * 100%);overflow:hidden;white-space:nowrap;color:var(--wp--preset--color--accent,#f59e0b)}
.bhs-product-card__score{font-size:11px;font-weight:800;color:var(--wp--preset--color--contrast,#111)}
.bhs-product-card__reviews{font-size:11px;color:rgba(0,0,0,0.35);font-weight:700}
.bhs-product-card__price{font-size:14px;color:#e53935}
.bhs-product-card__price del{color:#999;margin-right:8px}
.bhs-product-card__btn{display:block;margin:12px;padding:10px;background:#111;color:#fff;text-align:center;border-radius:6px;font-size:13px;text-decoration:none}
.bhs-product-card__btn:hover{background:#333}

/* === Legacy WooCommerce grid (fallback) === */
.bhs-products{padding:24px;background:#f8f8f8;border-radius:0 0 12px 12px}
.bhs-products .woocommerce{width:100%}
.bhs-products .woocommerce ul.products{display:grid!important;grid-template-columns:repeat(2,1fr)!important;gap:24px!important;margin:0!important;padding:0!important;list-style:none}
.bhs-products .woocommerce ul.products li.product{width:auto!important;float:none!important;clear:none!important;margin:0!important;padding:0!important;min-width:0}
.bhs-products .woocommerce ul.products li.product.first,.bhs-products .woocommerce ul.products li.product.last{clear:none!important}

@media (max-width:1024px){
	.bhs-product-grid,.bhs-products .woocommerce ul.products{grid-template-columns:repeat(2,1fr)!important}
}
@media (max-width:600px){
	.bhs-product-grid,.bhs-products .woocommerce ul.products{grid-template-columns:repeat(2,1fr)!important}
}


/* Mobile Shop by Category - 3 columns */
@media (max-width:768px){
    .category-matrix{grid-template-columns:repeat(3,1fr)!important;gap:8px!important}
    .category-column h3{font-size:11px!important;padding-bottom:4px!important;margin-bottom:6px!important}
    .category-column li{margin:3px 0!important}
    .category-column a,.category-column span{font-size:10px!important}
}


/* Mobile Shop by Category - 3 columns */
@media (max-width:768px){
    .category-matrix{grid-template-columns:repeat(3,1fr)!important;gap:8px!important}
    .category-column h3{font-size:11px!important;padding-bottom:4px!important;margin-bottom:6px!important}
    .category-column li{margin:3px 0!important}
    .category-column a,.category-column span{font-size:10px!important}
}


/* Fix mobile touch scrolling */@media (max-width: 768px) {    html, body {    }        .bhs-home {    }        .bhs-product-grid,    .bhs-products,    .bhs-section {    }}


/* Fix product card touch scrolling */
@media (max-width: 768px) {
    .bhs-product-card,
    .bhs-product-card *,
    .bhs-product-card__image,
    .bhs-product-card__info,
    .bhs-product-card__title,
    .bhs-product-card__price,
    .bhs-product-card__btn,
    .bhs-product-card__rating,
    .woocommerce ul.products li.product,
    .woocommerce ul.products li.product * {
-webkit-user-drag: none !important;
        user-select: none !important;
    }
    
    /* 禁用hover效果在触摸设备上 */
    .bhs-product-card:hover {
        transform: none !important;
    }
    
    /* 确保整个产品区域可以滑动 */
    .bhs-product-grid,
    .bhs-products,
    .bhs-section,
    .bhs-product-slider-wrapper {
-webkit-overflow-scrolling: touch !important;
    }
}


/* Mobile Slider Controls */
.bhs-mobile-controls {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .bhs-mobile-controls {
        display: flex !important;
    }
}

.bhs-mobile-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #1b4d3e;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.bhs-mobile-btn:active {
    transform: scale(0.95);
    background: #143d31;
}

.bhs-mobile-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.bhs-mobile-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.bhs-mobile-dot.active {
    background: #1b4d3e;
    transform: scale(1.2);
}

.bhs-mobile-dot:active {
    transform: scale(0.9);
}
