/* Thrillhouse WooCommerce archive styling (tokens) */
.woocommerce-shop .site-main, .tax-product_cat .site-main, .woocommerce .site-main{max-width:1280px;margin:0 auto;padding:0 24px;}

/* hide default title (we render our own header) */
.woocommerce-products-header .page-title{display:none;}

/* Thrillhouse shop header */
.th-shop-head{padding:28px 0 6px;}
.th-shop-crumb{font-family:var(--th-font-body);font-size:12.5px;color:var(--th-text-muted);margin-bottom:14px;}
.th-shop-crumb a{color:var(--th-blue);text-decoration:none;}
.th-shop-head h1{font-family:var(--th-font-display);font-weight:800;font-size:34px;color:var(--th-navy);letter-spacing:-0.4px;margin:0 0 6px;}
.th-shop-sub{font-family:var(--th-font-body);font-size:15px;color:var(--th-text-muted);margin:0 0 18px;}
.th-shop-cats{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px;}
.th-shop-cats a{font-family:var(--th-font-body);font-weight:700;font-size:13px;color:var(--th-navy);background:#fff;border:1.5px solid var(--th-border);border-radius:999px;padding:8px 16px;text-decoration:none;transition:border-color .15s,background .15s;}
.th-shop-cats a:hover,.th-shop-cats a.th-active{border-color:var(--th-navy);background:var(--th-navy);color:#fff;}

/* toolbar */
.woocommerce-result-count{font-family:var(--th-font-body);font-size:13.5px;color:var(--th-text-muted);}
.woocommerce-ordering select{font-family:var(--th-font-body);font-weight:600;font-size:13.5px;color:var(--th-navy);border:1.5px solid var(--th-border);border-radius:999px;padding:9px 34px 9px 16px;background:#fff;}

/* product grid cards */
ul.products{display:grid !important;grid-template-columns:repeat(4,1fr);gap:16px;margin:8px 0 30px !important;}
ul.products::before,ul.products::after{display:none !important;}
ul.products li.product{width:100% !important;float:none !important;margin:0 !important;background:#fff;border:1px solid var(--th-border);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;transition:border-color .18s;position:relative;}
ul.products li.product:hover{border-color:var(--th-orange);}
ul.products li.product a.woocommerce-LoopProduct-link{display:flex;flex-direction:column;flex:1;text-decoration:none;}
ul.products li.product img{aspect-ratio:1/1;width:100% !important;object-fit:contain;background:var(--th-bg);padding:12px;box-sizing:border-box;margin:0 !important;}
ul.products li.product .th-loop-cat{font-family:var(--th-font-body);font-size:11px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:var(--th-blue);padding:12px 15px 0;}
ul.products li.product .woocommerce-loop-product__title{font-family:var(--th-font-body) !important;font-weight:600 !important;font-size:14px !important;line-height:1.35;color:var(--th-text);padding:4px 15px 0 !important;min-height:42px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
ul.products li.product .price{font-family:var(--th-font-display) !important;font-weight:800 !important;font-size:18px !important;color:var(--th-navy) !important;padding:6px 15px 4px;margin:0 !important;}
ul.products li.product .price del{font-family:var(--th-font-body);font-weight:500;font-size:13px;color:var(--th-text-muted);margin-right:6px;}
ul.products li.product .price ins{text-decoration:none;}
ul.products li.product .th-loop-stock{font-family:var(--th-font-body);font-size:10.5px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;padding:0 15px 6px;}
ul.products li.product .th-loop-stock .th-in{color:var(--th-success);background:var(--th-success-bg);border-radius:999px;padding:4px 9px;display:inline-block;}
ul.products li.product .th-loop-stock .th-out{color:var(--th-danger);background:var(--th-danger-bg);border-radius:999px;padding:4px 9px;display:inline-block;}
ul.products li.product .button,ul.products li.product a.add_to_cart_button{font-family:var(--th-font-body) !important;font-weight:700 !important;font-size:13.5px !important;background:var(--th-orange) !important;color:var(--th-text-on-orange) !important;border:none !important;border-radius:999px !important;padding:11px 18px !important;margin:6px 15px 16px !important;text-align:center;transition:background .15s;}
ul.products li.product .button:hover{background:var(--th-orange-700) !important;}
ul.products li.product .onsale{position:absolute;top:12px;left:12px;z-index:2;background:var(--th-orange) !important;color:var(--th-text-on-orange) !important;font-family:var(--th-font-body);font-weight:800;font-size:11px;letter-spacing:.4px;text-transform:uppercase;border-radius:999px;padding:4px 10px;min-height:0 !important;min-width:0 !important;line-height:1.4 !important;}

/* pagination */
.woocommerce-pagination{margin:10px 0 40px;}
.woocommerce-pagination ul{border:none !important;display:flex;gap:8px;justify-content:center;}
.woocommerce-pagination ul li{border:none !important;}
.woocommerce-pagination ul li a,.woocommerce-pagination ul li span{font-family:var(--th-font-body);font-weight:700;font-size:13.5px;border:1.5px solid var(--th-border) !important;border-radius:999px !important;padding:9px 15px !important;color:var(--th-navy) !important;background:#fff;line-height:1 !important;}
.woocommerce-pagination ul li span.current{background:var(--th-navy) !important;color:#fff !important;border-color:var(--th-navy) !important;}

/* payments strip */
.th-shop-pay{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#fff;border:1px solid var(--th-border);border-radius:14px;padding:14px 18px;margin:0 0 46px;font-family:var(--th-font-body);}
.th-shop-pay strong{font-size:13px;color:var(--th-navy);}


@media (max-width:760px){
 ul.products{grid-template-columns:1fr 1fr;gap:10px;}
 .th-shop-head h1{font-size:25px;}
 .woocommerce-shop .site-main,.tax-product_cat .site-main{padding:0 16px;}
 ul.products li.product .woocommerce-loop-product__title{font-size:13px !important;}
}
