
:root{--stt-green:#4a7c2f;--stt-green-d:#36601f;--stt-cream:#f4f7ef}
/* Nút liên hệ nổi: 1 nút gọn, bấm mở Gọi / Zalo / Messenger */
.stt-float{position:fixed;right:16px;bottom:20px;z-index:999}
.stt-float summary{list-style:none;cursor:pointer;width:52px;height:52px;border-radius:50%;background:var(--stt-green);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.stt-float summary::-webkit-details-marker{display:none}
.stt-float summary svg{width:24px;height:24px;fill:currentColor}
.stt-float[open] summary{background:#1f2a1a}
.stt-float .stt-float-menu{position:absolute;right:0;bottom:62px;display:flex;flex-direction:column;gap:8px;background:#fff;border-radius:12px;padding:8px;box-shadow:0 8px 24px rgba(0,0,0,.18);min-width:210px}
.stt-float .stt-float-menu a{white-space:nowrap;display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;color:#1f2a1a;font-weight:600;font-size:15px;text-decoration:none}
.stt-float .stt-float-menu a:hover{background:var(--stt-cream)}
.stt-float .ic{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font:700 10px/1 sans-serif;flex:none}
.stt-float .ic svg{width:16px;height:16px;fill:currentColor}
.stt-float .call .ic{background:var(--stt-green)}.stt-float .zalo .ic{background:#0068ff}.stt-float .mess .ic{background:#0084ff}
@media(max-width:544px){.stt-float{right:12px;bottom:14px}.stt-float summary{width:48px;height:48px}}
#ast-scroll-top{left:16px!important;right:auto!important;bottom:20px!important}
/* Menu mobile */
.ast-mobile-popup-drawer .main-header-menu .menu-link{font-size:17px!important}
.ast-mobile-popup-drawer .sub-menu .menu-link{font-size:16px!important}
.ast-mobile-popup-drawer .stt-menu-contact .menu-link{color:var(--stt-green-d)!important;font-weight:600}
.ast-mobile-popup-drawer .stt-menu-contact:first-of-type{border-top:8px solid var(--stt-cream)}
/* Thông báo đã thêm vào giỏ */
.stt-toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,120%);opacity:0;z-index:1000;background:#1f2a1a;color:#fff;border-radius:10px;padding:12px 14px 12px 16px;display:flex;align-items:center;gap:14px;box-shadow:0 8px 24px rgba(0,0,0,.25);transition:all .25s;width:min(440px,calc(100vw - 32px));box-sizing:border-box;font-size:15px}
.stt-toast span{flex:1;line-height:1.35}
.stt-toast.show{transform:translate(-50%,0);opacity:1}
.stt-toast a{background:#fff;color:var(--stt-green-d)!important;padding:8px 12px;border-radius:6px;font-weight:700;white-space:nowrap;text-decoration:none}
.woocommerce ul.products li.product a.added_to_cart{display:none!important}
/* Chip danh mục */
.stt-chips{display:flex;gap:8px;overflow-x:auto;padding:4px 0 16px;margin-bottom:8px;scrollbar-width:none}
@media(min-width:769px){.stt-chips{flex-wrap:wrap;overflow:visible}}
.stt-chips::-webkit-scrollbar{display:none}
.stt-chips a{flex:none;padding:8px 16px;border:1px solid #d5dccd;border-radius:999px;background:#fff;color:#1f2a1a;font-size:14px;white-space:nowrap;text-decoration:none}
.stt-chips a:hover{border-color:var(--stt-green);color:var(--stt-green)}
.stt-chips a.on{background:var(--stt-green);border-color:var(--stt-green);color:#fff}
/* Lưới sản phẩm: thẻ cao bằng nhau, giá và nút thẳng hàng */
.woocommerce ul.products li.product.type-product{display:flex;flex-direction:column}
.woocommerce ul.products li.product .astra-shop-summary-wrap{display:flex;flex-direction:column;flex:1}
.woocommerce ul.products li.product .astra-shop-summary-wrap>.button,.woocommerce ul.products li.product .astra-shop-summary-wrap>a.button{margin-top:auto}
.woocommerce ul.products li.product .ast-woo-product-category{font-size:12px;color:#6b7563;margin-bottom:2px}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:15px;line-height:1.35;min-height:2.7em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:6px}
.woocommerce ul.products li.product .price{color:var(--stt-green-d);font-weight:700;font-size:16px;margin-bottom:10px}
.woocommerce ul.products li.product.outofstock img{opacity:.55}
.woocommerce ul.products li.product img{border-radius:8px;aspect-ratio:1;object-fit:cover;background:#fff}
.ast-shop-product-out-of-stock{font-size:12px!important;padding:4px 10px!important;background:rgba(255,255,255,.9)!important;top:10px!important;left:10px!important;right:auto!important;bottom:auto!important;width:auto!important;transform:none!important}
.woocommerce ul.products li.product .button{width:100%;text-align:center;background:#fff;color:var(--stt-green-d);border:1.5px solid var(--stt-green);border-radius:6px;font-weight:600}
.woocommerce ul.products li.product .button:hover{background:var(--stt-green);color:#fff}
.woocommerce ul.products li.product .ast-on-card-button{display:none!important}
@media(max-width:544px){.woocommerce ul.products li.product .button{font-size:13px;padding:9px 6px}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:14px}}
/* Ô danh mục: ảnh vuông, tên nằm dưới ảnh */
.woocommerce ul.products li.product-category{display:block!important;height:auto!important}
.woocommerce ul.products li.product-category a{display:block;height:auto!important;text-decoration:none}
.woocommerce ul.products li.product-category img{aspect-ratio:1;object-fit:cover;border-radius:10px;width:100%!important;height:auto!important;transition:transform .2s}
.woocommerce ul.products li.product-category a:hover img{transform:scale(1.03)}
.woocommerce ul.products li.product-category .woocommerce-loop-category__title{position:static!important;transform:none!important;background:none!important;width:auto!important;padding:10px 0 0!important;margin:0!important;text-transform:none!important;font-size:16px!important;font-weight:600;color:#1f2a1a!important;text-align:center;letter-spacing:0!important}
.woocommerce ul.products li.product-category .count{display:block!important;background:none!important;font-size:13px;font-weight:400;color:#6b7563;padding:2px 0 0!important;text-transform:none}
/* Căn giữa nội dung trong khối wide/full ở màn hình rộng (Astra giới hạn max-width nhưng không có margin auto) */
.entry-content > .alignwide > *, .entry-content > .alignfull:not(.wp-block-cover) > *{margin-left:auto!important;margin-right:auto!important}
.home .entry-content > .alignwide > *{max-width:1200px!important}
/* Tiêu đề khối trang chủ + liên kết Xem tất cả */
.stt-sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:16px}
.stt-sec-head h2{margin:0;font-size:26px}
.stt-sec-head a{font-weight:600;white-space:nowrap;text-decoration:none}
@media(max-width:544px){.stt-sec-head h2{font-size:21px}}
/* Hero */
.wp-block-cover h1{font-size:clamp(34px,5vw,56px)!important;font-weight:700;margin-bottom:12px}
.wp-block-cover p.has-large-font-size{font-size:clamp(17px,1.8vw,21px)!important;max-width:640px;margin-left:auto;margin-right:auto}
/* Trang sản phẩm */
.woocommerce-product-gallery{opacity:1!important}
.single-product .product_title{font-size:clamp(22px,2.6vw,30px)!important;line-height:1.25;margin-bottom:8px}
.single-product .summary .price{font-size:26px!important;color:var(--stt-green-d)!important;font-weight:700}
.single-product form.cart{display:flex;gap:10px;align-items:stretch;flex-wrap:wrap}
.single-product form.cart .quantity input.qty{width:72px;height:100%;min-height:46px;font-size:16px}
.single-product form.cart .single_add_to_cart_button{flex:1;min-height:46px;font-size:16px!important;border-radius:6px}
.single-product .woocommerce-tabs .panel{max-width:820px;font-size:16px;line-height:1.7}
.single-product .woocommerce-tabs .panel img{border-radius:8px}
.stt-oos{padding:10px 14px;border-radius:8px;background:#fff4e5;border:1px solid #f3d19c}
/* Hộp cam kết trang sản phẩm */
.stt-trust{margin:20px 0;padding:14px 16px;border:1px solid #d5dccd;border-radius:8px;background:var(--stt-cream);list-style:none}
.stt-trust li{margin:6px 0;padding-left:26px;position:relative;font-size:15px}
.stt-trust li:before{content:"";position:absolute;left:0;top:4px;width:16px;height:16px;border-radius:50%;background:var(--stt-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/12px no-repeat}
.stt-trust a{font-weight:600}
/* Trang chứng nhận */
.stt-cert{padding:18px 20px;border:1px solid #d5dccd;border-radius:10px;background:var(--stt-cream);margin-bottom:8px}
.stt-cert .wp-element-button{display:inline-block;background:var(--stt-green);color:#fff!important;text-decoration:none;padding:10px 18px;border-radius:6px;font-weight:600}
.stt-cert .wp-element-button:hover{background:var(--stt-green-d)}
.stt-cert ul,.stt-company{list-style:none;margin:0 0 12px}.stt-cert li,.stt-company li{margin:6px 0}
.stt-table-wrap{overflow-x:auto;border:1px solid #d5dccd;border-radius:10px}
.stt-cong-bo{width:100%;border-collapse:collapse;font-size:15px;margin:0}
.stt-cong-bo th{background:var(--stt-green);color:#fff;text-align:left;padding:10px 12px;white-space:nowrap}
.stt-cong-bo td{padding:10px 12px;border-top:1px solid #e2e8dc;vertical-align:top}
.stt-cong-bo tr:nth-child(even) td{background:#fafcf7}
.stt-cong-bo td:first-child,.stt-cong-bo td:last-child{white-space:nowrap}
.stt-note{font-size:13px;color:#6b7563;margin-top:8px}
@media(max-width:640px){.stt-table-wrap{border:0;overflow:visible}.stt-cong-bo thead{display:none}.stt-cong-bo,.stt-cong-bo tbody,.stt-cong-bo tr,.stt-cong-bo td{display:block;width:100%}
.stt-cong-bo tr{border:1px solid #d5dccd;border-radius:10px;margin-bottom:12px;padding:6px 0;background:#fff}
.stt-cong-bo tr:nth-child(even) td{background:none}
.stt-cong-bo td{border:0;padding:5px 14px;white-space:normal!important;display:flex;gap:10px}
.stt-cong-bo td:before{content:attr(data-label);flex:0 0 96px;color:#6b7563;font-size:13px}
.stt-cong-bo td:nth-child(2){font-weight:600}}
/* Thông tin ĐKKD ở chân trang */
.stt-dkkd-footer{font-size:13px;line-height:1.7;color:#aab4a2;max-width:980px;margin:0 auto;text-align:center}
.stt-dkkd-footer strong{color:#d5dccd}
@media(max-width:768px){.site-below-footer-wrap{padding-bottom:76px!important}.stt-dkkd-footer{font-size:12.5px}}.stt-dkkd-footer a{color:#d5dccd}
/* Ghi chú giá */
.stt-price-note{font-size:13px;color:#6b7563;margin:-6px 0 14px}
/* Trang chính sách */
.page .entry-content h2{font-size:21px;margin-top:28px}
/* Header top bar */
.stt-topbar{font-size:13px}.stt-topbar a{color:inherit;font-weight:600}
/* Footer */
.site-primary-footer-wrap a{text-decoration:none}
.site-primary-footer-wrap .widget-title,.site-primary-footer-wrap h2{font-size:16px;margin-bottom:12px}
.site-primary-footer-wrap ul{list-style:none;margin:0}.site-primary-footer-wrap li{margin:6px 0}
/* Focus rõ ràng cho bàn phím */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--stt-green);outline-offset:2px}
/* Ô tính năng trang chủ */
.stt-features{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.stt-features div{text-align:center;padding:20px 12px;border-radius:10px;background:#fff;border:1px solid #e2e8dc}
.stt-features svg{width:36px;height:36px;stroke:var(--stt-green);fill:none;stroke-width:1.6;margin-bottom:8px}
.stt-features strong{display:block;margin-bottom:4px;color:#1f2a1a}
.stt-features span{font-size:14px;color:#3d4a37}
@media(max-width:768px){.stt-features{grid-template-columns:repeat(2,1fr);gap:10px}.stt-features div{padding:14px 8px}.stt-features span{font-size:13px}}
.wp-block-cover .is-style-outline .wp-block-button__link{color:#fff!important;border:2px solid #fff!important;background:transparent!important}
.wp-block-cover .is-style-outline .wp-block-button__link:hover{background:#fff!important;color:var(--stt-green-d)!important}
.stt-coupon{display:inline-block;padding:6px 14px;border:2px dashed var(--stt-green);border-radius:6px;font-weight:700;letter-spacing:1px;background:#fff;color:var(--stt-green-d)}
.woocommerce ul.products li.product-category .woocommerce-loop-category__title{font-size:16px;text-align:center}
.woocommerce ul.products li.product-category .count{display:none}
.woocommerce ul.products li.product-category img{aspect-ratio:1;object-fit:cover;border-radius:8px}
