/* 希望綠豆湯 商品列表：分類按鈕列＋卡片（只作用在 .hmea-shop 列表頁與 [hmea_shop] 區塊） */
.hmea-shop,.hmea-loop{--hm-g:#2E6B57;--hm-gb:#2A765F;--hm-gd:#1F4B3D;--hm-mint:#E3EFE9;--hm-ink:#2F3B40;--hm-mute:#7A8389;--hm-line:#DDD6CA}

/* 分類按鈕列 */
.hmea-cat-nav{margin:0 0 34px;padding:0 0 18px;border-bottom:1px solid var(--hm-line);font-family:"Noto Serif TC",Georgia,serif}
.hmea-chips{display:flex;flex-wrap:wrap;gap:10px}
.hmea-chips-sub{margin-top:12px}
.hmea-chip{display:inline-block;padding:8px 20px;border:1px solid var(--hm-line);border-radius:50px;background:#fff;font-size:14px;letter-spacing:.1em;line-height:1.4;color:var(--hm-ink)!important;text-decoration:none!important;white-space:nowrap;transition:.2s}
.hmea-chip:hover{border-color:var(--hm-g);color:var(--hm-g)!important}
.hmea-chip.is-on{background:var(--hm-g);border-color:var(--hm-g);color:#fff!important}
.hmea-chips-sub .hmea-chip{padding:6px 16px;font-size:13px;background:transparent}
.hmea-chips-sub .hmea-chip.is-on{background:var(--hm-mint);border-color:var(--hm-mint);color:var(--hm-gd)!important}

/* 筆數＋排序 */
.hmea-shop .woocommerce-result-count{font-size:13px;color:var(--hm-mute);letter-spacing:.08em;font-family:"Noto Serif TC",serif}
.hmea-shop .woocommerce-ordering select{border:1px solid var(--hm-line);border-radius:50px;padding:7px 34px 7px 18px;font-size:13px;font-family:"Noto Serif TC",serif;background-color:#fff}

/* 卡片 */
.hmea-shop ul.products,.hmea-loop ul.products{display:grid!important;grid-template-columns:repeat(4,1fr);gap:44px 28px;margin:0 0 40px!important;padding:0!important}
.hmea-shop ul.products::before,.hmea-shop ul.products::after,.hmea-loop ul.products::before,.hmea-loop ul.products::after{display:none!important}
.hmea-shop ul.products li.product,.hmea-loop ul.products li.product{width:auto!important;margin:0!important;float:none!important;padding:0!important;display:flex!important;flex-direction:column;text-align:left!important;font-family:"Noto Serif TC",Georgia,serif;background:transparent!important;box-shadow:none!important}
.hmea-shop li.product .astra-shop-thumbnail-wrap,.hmea-loop li.product .astra-shop-thumbnail-wrap{position:relative;overflow:hidden;border-radius:4px;margin-bottom:16px}
.hmea-shop li.product img,.hmea-loop li.product img{aspect-ratio:4/5;object-fit:cover;width:100%!important;height:auto!important;margin:0!important;border-radius:4px;transition:transform .5s ease}
.hmea-shop li.product:hover img,.hmea-loop li.product:hover img{transform:scale(1.04)}
.hmea-shop li.product .astra-shop-summary-wrap,.hmea-loop li.product .astra-shop-summary-wrap{display:flex;flex-direction:column;flex:1;padding:0 2px}

/* 不放分類名稱、評分 */
.hmea-shop .ast-woo-product-category,.hmea-loop .ast-woo-product-category,.hmea-shop li.product .star-rating,.hmea-loop li.product .star-rating{display:none!important}

.hmea-shop li.product .woocommerce-loop-product__title,.hmea-loop li.product .woocommerce-loop-product__title{font-family:"Noto Serif TC",serif!important;font-size:17px!important;font-weight:600!important;letter-spacing:.06em;line-height:1.55!important;color:var(--hm-ink)!important;margin:0 0 10px!important;padding:0!important}
.hmea-shop li.product .price,.hmea-loop li.product .price{display:flex!important;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin:0 0 14px!important;font-family:"Noto Serif TC",serif;font-size:18px!important;font-weight:700!important;color:var(--hm-gd)!important}
.hmea-shop li.product .price ins,.hmea-loop li.product .price ins{text-decoration:none;color:var(--hm-gd)}
.hmea-shop li.product .price del,.hmea-loop li.product .price del{order:2;font-size:13px;font-weight:400;color:var(--hm-mute);opacity:1}

/* 按鈕：可直接加入＝實心；要選規格＝框線 */
.hmea-shop li.product .button,.hmea-loop li.product .button{margin-top:auto!important;display:block!important;width:100%;text-align:center;border-radius:50px!important;padding:11px 0!important;font-family:"Noto Serif TC",serif!important;font-size:14px!important;letter-spacing:2px;font-weight:600!important;line-height:1.4!important;border:1.5px solid var(--hm-g)!important;background:var(--hm-g)!important;color:#fff!important;transition:.2s}
.hmea-shop li.product .button:not(.add_to_cart_button),.hmea-loop li.product .button:not(.add_to_cart_button),.hmea-shop li.product .button.product_type_variable,.hmea-loop li.product .button.product_type_variable{background:#fff!important;color:var(--hm-g)!important}
.hmea-shop li.product:hover .button,.hmea-loop li.product:hover .button{background:var(--hm-g)!important;color:#fff!important}
.hmea-shop li.product .added_to_cart,.hmea-loop li.product .added_to_cart{display:block;text-align:center;font-size:13px;color:var(--hm-g)!important;margin-top:8px}

/* 圖片上的標籤 */
.hmea-tags{position:absolute;left:12px;top:12px;z-index:3;display:flex;gap:6px;pointer-events:none}
.hmea-tag{font-size:11.5px;letter-spacing:.1em;padding:4px 11px;border-radius:50px;background:rgba(255,255,255,.92);color:var(--hm-gd);font-family:"Noto Serif TC",serif}
.hmea-tag.cold{background:#DDEBF2;color:#2C5A70}
.hmea-shop .ast-onsale-card,.hmea-loop .ast-onsale-card,.hmea-shop span.onsale,.hmea-loop span.onsale{left:auto!important;right:12px!important;top:12px!important;min-width:0!important;min-height:0!important;width:auto!important;height:auto!important;padding:4px 12px!important;border-radius:50px!important;background:var(--hm-g)!important;color:#fff!important;font-size:11.5px!important;letter-spacing:.1em;line-height:1.5!important;font-family:"Noto Serif TC",serif}
.hmea-shop .ast-shop-product-out-of-stock,.hmea-loop .ast-shop-product-out-of-stock{background:rgba(255,255,255,.92)!important;color:var(--hm-mute)!important;border-radius:50px;font-size:13px!important;letter-spacing:.14em;padding:6px 16px!important;font-family:"Noto Serif TC",serif}
.hmea-shop li.product.outofstock img,.hmea-loop li.product.outofstock img{opacity:.55}

@media (max-width:921px){
  .hmea-shop ul.products,.hmea-loop ul.products{grid-template-columns:repeat(3,1fr);gap:34px 18px}
}
@media (max-width:767px){
  .hmea-cat-nav{margin:0 -18px 24px;padding:0 18px 14px}
  .hmea-chips{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:2px}
  .hmea-chips::-webkit-scrollbar{display:none}
  .hmea-chip{padding:7px 15px;font-size:13px}
  .hmea-shop ul.products,.hmea-loop ul.products{grid-template-columns:repeat(2,1fr)!important;gap:30px 12px}
  .hmea-shop li.product .woocommerce-loop-product__title,.hmea-loop li.product .woocommerce-loop-product__title{font-size:14.5px!important}
  .hmea-shop li.product .price,.hmea-loop li.product .price{font-size:16px!important}
  .hmea-shop li.product .button,.hmea-loop li.product .button{font-size:13px!important;letter-spacing:1px;padding:9px 0!important}
  .hmea-tag,.hmea-shop span.onsale,.hmea-loop span.onsale{font-size:10.5px!important;padding:3px 8px!important}
}
