/* Hanuman Theme · WooCommerce (โหลดเฉพาะหน้าร้าน) · สีจาก palette ของธีม */
:root{--hnth-w-r:var(--hnth-card-r,16px);--hnth-w-line:var(--wp--preset--color--line,#E2E8F0);--hnth-w-sale:var(--wp--preset--color--brand-red,#B91C1C)}
/* ป้ายลดราคา */
.woocommerce span.onsale,.wc-block-components-product-sale-badge{background:var(--hnth-w-sale)!important;color:#fff!important;border:0!important;border-radius:999px!important;min-height:0!important;min-width:0!important;line-height:1.2!important;padding:.35em .75em!important;font-weight:700;font-size:.85rem!important;text-transform:none!important;box-shadow:0 2px 6px rgba(0,0,0,.15)}
.woocommerce span.onsale{top:.75rem!important;left:.75rem!important;right:auto!important;margin:0!important}
/* ราคา */
.woocommerce .price,.wc-block-components-product-price{color:var(--wp--preset--color--contrast,#0F172A);font-weight:700}
.woocommerce .price del,.wc-block-components-product-price del{color:color-mix(in srgb,currentColor 55%,transparent);font-weight:400;opacity:1}
.woocommerce .price ins,.wc-block-components-product-price ins{text-decoration:none;color:var(--hnth-w-sale)}
.single-product .wp-block-woocommerce-product-price,.single-product .summary .price{font-size:1.5rem}
/* การ์ดสินค้า (Product Collection / ลูปเก่า) */
.wc-block-product-template>li,.wc-block-grid__product,.woocommerce ul.products li.product{background:var(--wp--preset--color--base,#fff);border:1px solid var(--hnth-w-line);border-radius:var(--hnth-w-r);padding:0 0 1rem!important;overflow:hidden;position:relative;transition:box-shadow .2s,transform .2s;display:flex;flex-direction:column}
.wc-block-product-template>li:hover,.woocommerce ul.products li.product:hover{box-shadow:0 10px 28px rgba(15,23,42,.12);transform:translateY(-2px)}
.wc-block-product-template>li>*:not(.wc-block-components-product-image),.woocommerce ul.products li.product>*:not(a:first-child){margin-left:1rem;margin-right:1rem}
.wc-block-product-template .wc-block-components-product-image img,.woocommerce ul.products li.product img{border-radius:0;aspect-ratio:1/1;object-fit:cover;width:100%}
.wc-block-product-template .wp-block-post-title,.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:1rem!important;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:.75rem!important}
.wc-block-product-template .wp-block-button,.wc-block-product-template .wc-block-components-product-button{margin-top:auto!important}
.wc-block-product-template .wp-block-button__link,.wc-block-components-product-button__button{width:100%;justify-content:center}
@media (prefers-reduced-motion:reduce){.wc-block-product-template>li,.woocommerce ul.products li.product{transition:none}.wc-block-product-template>li:hover{transform:none}}
/* ปุ่ม/จำนวน/ช่องกรอก */
.woocommerce .quantity .qty,.wc-block-components-quantity-selector{min-height:48px;border-radius:10px;border:1px solid var(--hnth-w-line)}
.woocommerce form.cart{display:flex;flex-wrap:wrap;gap:.75rem;align-items:stretch}
.woocommerce form.cart .quantity{margin:0!important;float:none!important}
.woocommerce form.cart .single_add_to_cart_button{min-height:48px;flex:1 1 200px;font-size:1.05rem}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select,.wc-block-components-text-input input,.wc-block-components-combobox .components-combobox-control__input,.wc-blocks-components-select__select{border-radius:10px!important}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row select{min-height:46px;padding:.5rem .75rem}
:where(.woocommerce,.wc-block-components-form) :focus-visible{outline:2px solid var(--wp--preset--color--primary,#2563EB);outline-offset:2px}
/* แท็บ/รีวิว */
.woocommerce div.product .woocommerce-tabs ul.tabs{padding:0;margin:0 0 1rem;border-bottom:1px solid var(--hnth-w-line)}
.woocommerce div.product .woocommerce-tabs ul.tabs li{border:0!important;background:none!important;border-radius:0!important;margin:0!important}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,.woocommerce div.product .woocommerce-tabs ul.tabs li::after{display:none!important}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{box-shadow:inset 0 -3px 0 var(--wp--preset--color--primary,#1E3A8A)}
.woocommerce .star-rating,.woocommerce p.stars a{color:#F59E0B}
/* กล่องแจ้งเตือน */
.woocommerce-message,.woocommerce-info,.woocommerce-error,.wc-block-components-notice-banner{border-radius:12px!important;border-top-width:0!important;border-left:4px solid var(--wp--preset--color--primary,#1E3A8A)!important}
.woocommerce-error,.wc-block-components-notice-banner.is-error{border-left-color:#B91C1C!important}
/* ตะกร้า/ชำระเงิน (บล็อก) */
.wc-block-cart .wc-block-cart__sidebar,.wc-block-checkout__sidebar{background:color-mix(in srgb,var(--wp--preset--color--primary,#1E3A8A) 4%,var(--wp--preset--color--base,#fff));border-radius:var(--hnth-w-r);padding:1.25rem!important}
.wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button{min-height:52px;font-size:1.1rem;border-radius:12px!important}
/* บัญชีลูกค้า */
.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.35rem}
.woocommerce-account .woocommerce-MyAccount-navigation a{display:block;padding:.6rem .9rem;border-radius:10px;text-decoration:none;color:inherit}
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,.woocommerce-account .woocommerce-MyAccount-navigation a:hover{background:color-mix(in srgb,var(--wp--preset--color--primary,#1E3A8A) 10%,transparent);color:var(--wp--preset--color--primary,#1E3A8A);font-weight:700}
@media (max-width:767px){.woocommerce-account .woocommerce-MyAccount-navigation ul{flex-direction:row;flex-wrap:wrap}.woocommerce-account .woocommerce-MyAccount-navigation,.woocommerce-account .woocommerce-MyAccount-content{float:none!important;width:100%!important}}
/* ตัวกรองสินค้า (บล็อก Product Filters ของ Woo) */
.wp-block-woocommerce-product-filters{border:1px solid var(--hnth-w-line);border-radius:var(--hnth-w-r);padding:1rem}
.wc-block-product-filter-chips__item,.wc-block-product-filter-removable-chips__item{border-radius:999px!important}
/* จุดสร้างความมั่นใจใต้ปุ่มใส่ตะกร้า */
.hnth-trust{list-style:none;margin:1rem 0 0;padding:.9rem 1rem;display:grid;gap:.45rem;border:1px dashed var(--hnth-w-line);border-radius:12px;font-size:.95rem}
.hnth-trust li{display:flex;gap:.5rem;align-items:flex-start}
.hnth-trust li::before{content:"✓";color:var(--wp--preset--color--accent,#047857);font-weight:700;flex:none}
/* แถบใส่ตะกร้าติดล่างจอ (มือถือ) */
.hnth-satc{position:fixed;left:0;right:0;bottom:0;z-index:60;display:flex;align-items:center;gap:.75rem;padding:.6rem 1rem calc(.6rem + env(safe-area-inset-bottom));background:var(--wp--preset--color--base,#fff);box-shadow:0 -6px 20px rgba(15,23,42,.15)}
.hnth-satc[hidden]{display:none}
.hnth-satc-i{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.hnth-satc-t{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.9rem}
.hnth-satc-p{font-size:.95rem}.hnth-satc-p del{opacity:.6;font-size:.85em}.hnth-satc-p ins{text-decoration:none;color:var(--hnth-w-sale);font-weight:700}
.hnth-satc-b{min-height:48px;padding:0 1.25rem;border:0;border-radius:12px;cursor:pointer;flex:none;font-weight:700}
body.hnth-satc-on .hnth-mbar{display:none!important}
@media (min-width:1025px){.hnth-satc{display:none!important}}
.woocommerce #reviews input[type=text],.woocommerce #reviews input[type=email],.woocommerce #reviews textarea{width:100%;border:1px solid var(--hnth-w-line);border-radius:10px;min-height:46px;padding:.5rem .75rem;box-sizing:border-box}.woocommerce #reviews .comment-form-author,.woocommerce #reviews .comment-form-email{display:flex;flex-direction:column}
/* 1.31.0 สินค้าที่เพิ่งดู */
.hnth-rv-price{display:block;font-weight:700;color:var(--hnth-w-sale)}
