.tms-pc-wrap{max-width:1280px;margin:0 auto;padding:28px 22px 60px}.tms-pc-hero{text-align:center;padding:28px 10px}.tms-pc-kicker{font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;margin:0 0 8px}.tms-pc-hero h1,.tms-pc-product h1{margin:0 0 12px;line-height:1.1}.tms-pc-search-panel{max-width:850px;margin:0 auto 18px;background:#fff;border:1px solid #e3e3e3;border-radius:12px;padding:18px}.tms-pc-search-panel label{display:block;font-weight:700;margin-bottom:8px}.tms-pc-search-row{display:flex;gap:8px}.tms-pc-search-row input{flex:1;min-width:0;padding:13px;border:1px solid #bbb;border-radius:7px;font-size:16px}.tms-pc-search-row button,.tms-pc-card .button{background:#111;color:#fff!important;border:0;border-radius:6px;padding:12px 18px;text-decoration:none;font-weight:700}.tms-pc-cats{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin:18px 0}.tms-pc-cats button{background:#fff;border:1px solid #ccc;border-radius:999px;padding:8px 14px;cursor:pointer}.tms-pc-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:14px}.tms-pc-card{display:flex;flex-direction:column;background:#fff;border:1px solid #e1e1e1;border-radius:10px;overflow:hidden;min-height:100%;box-shadow:0 1px 2px rgba(0,0,0,.04)}.tms-pc-card .image{height:220px;display:flex;align-items:center;justify-content:center;padding:16px;background:#fff;border-bottom:1px solid #eee}.tms-pc-card .image img{width:100%;height:100%;object-fit:contain}.tms-pc-placeholder{width:100%;height:100%;min-height:160px;display:flex;align-items:center;justify-content:center;text-align:center;background:#f3f3f3;color:#888;font-weight:800;letter-spacing:.08em}.tms-pc-card .body{padding:15px;display:flex;flex-direction:column;flex:1}.tms-pc-card .cat{font-size:11px;text-transform:uppercase;font-weight:800;letter-spacing:.08em}.tms-pc-card h3{font-size:17px;line-height:1.25;margin:7px 0}.tms-pc-card h3 a{color:inherit;text-decoration:none}.tms-pc-card .part{font-size:13px;color:#666;margin:0 0 8px}.tms-pc-card .desc{font-size:13px;line-height:1.4;color:#555;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.tms-pc-card .price{margin-top:auto;padding-top:10px}.tms-pc-card .price span,.tms-pc-card .price strong{display:block}.tms-pc-card .price .rrp{text-decoration:line-through;color:#777;font-size:13px}.tms-pc-card .price strong{font-size:19px}.tms-pc-card .stock{font-size:12px;font-weight:700}.tms-pc-card .button{text-align:center;margin-top:10px}.tms-pc-product{background:#fff;border:1px solid #e1e1e1;border-radius:12px;padding:24px}.tms-pc-back{display:inline-block;margin-bottom:20px}.tms-pc-product-grid{display:grid;grid-template-columns:minmax(300px,1fr) 1.2fr;gap:38px}.tms-pc-product-image{height:440px;display:flex;align-items:center;justify-content:center}.tms-pc-product-image img{width:100%;height:100%;object-fit:contain}.tms-pc-product .tms-pc-price{margin:18px 0}.tms-pc-product .tms-pc-price span,.tms-pc-product .tms-pc-price strong{display:block}.tms-pc-product .rrp{text-decoration:line-through;color:#777}.tms-pc-product .tms-pc-price strong{font-size:28px}.tms-pc-fit,.tms-pc-order-note{background:#f6f6f6;border-radius:8px;padding:12px 14px;margin:15px 0}.tms-pc-stock{font-weight:800}@media(max-width:1000px){.tms-pc-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:760px){.tms-pc-grid{grid-template-columns:repeat(2,1fr)}.tms-pc-product-grid{grid-template-columns:1fr}.tms-pc-product-image{height:320px}}@media(max-width:520px){.tms-pc-grid{grid-template-columns:1fr}.tms-pc-search-row{flex-direction:column}.tms-pc-card .image{height:250px}}.tms-pc-buy{display:inline-block;margin-top:10px;background:#76a942;color:#fff!important;text-decoration:none;font-weight:800;padding:13px 22px;border-radius:5px}.tms-pc-card{border-radius:4px;box-shadow:none}.tms-pc-card .image{height:240px}.tms-pc-card h3{min-height:43px}.tms-pc-card .body{padding:16px}.tms-pc-card .button{background:#76a942;border-radius:4px}.tms-pc-search-row button{background:#76a942}.tms-pc-product{border-radius:4px}
.tms-pc-card{height:100%;display:flex;flex-direction:column}.tms-pc-card .body{display:flex;flex-direction:column;flex:1}.tms-pc-card .actions{margin-top:auto}.tms-pc-placeholder{min-height:240px;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#f5f6f4;color:#68737d;text-align:center}.tms-pc-placeholder strong{color:#76a942;font-size:18px}

.tms-pc-cart-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:18px 0}
.tms-pc-cart-form label{font-weight:700;display:flex;flex-direction:column;gap:6px}
.tms-pc-cart-form input[type=number]{width:90px;padding:11px;border:1px solid #cfd6dc;border-radius:4px}
.tms-pc-cart-form .tms-pc-buy{border:0;cursor:pointer}

/* v3.7.4: one consistent product badge across catalogue + WooCommerce. */
.tms-pc-card,.tms-pc-product,.woocommerce ul.products li.product,.woocommerce div.product div.images{position:relative}
.tms-best-prices-badge,.tms-pc-card:before,.tms-pc-product:before{position:absolute;top:0;left:0;z-index:20;width:72px;height:72px;overflow:hidden;pointer-events:none}
.tms-best-prices-badge:before,.tms-pc-card:before,.tms-pc-product:before{content:"BEST\A PRICES";white-space:pre;position:absolute;top:10px;left:-25px;width:105px;padding:5px 0;background:#76a942;color:#fff;font-size:10px;font-weight:800;line-height:1.05;letter-spacing:.04em;text-align:center;transform:rotate(-45deg);box-shadow:none}
.tms-best-prices-badge span{display:none}
.woocommerce span.onsale,.woocommerce .onsale,.wc-block-grid__product-onsale,.wc-block-components-product-sale-badge,.wc-block-components-product-badge[aria-label*="Sale" i]{display:none!important}
.tms-pc-price .tms-pc-save,.tms-pc-card .price .tms-pc-save{color:#5f8f2f;font-weight:800;text-decoration:none;margin-top:4px}

/* 3.8.4 PartStream card corner badge alignment. */
.tms-pc-card:before,.tms-pc-product:before{content:""!important;position:absolute!important;top:0!important;left:0!important;width:74px!important;height:74px!important;background:#76a942!important;clip-path:polygon(0 0,100% 0,0 100%)!important;transform:none!important;padding:0!important;z-index:20!important}
.tms-pc-card:after,.tms-pc-product:after{content:"BEST\A PRICES"!important;white-space:pre!important;position:absolute!important;top:15px!important;left:-7px!important;width:67px!important;color:#fff!important;font-size:10px!important;font-weight:800!important;line-height:1.02!important;letter-spacing:.02em!important;text-align:center!important;transform:rotate(-45deg)!important;z-index:21!important;pointer-events:none!important}

/* 3.8.5 canonical badge: identical to Woo/product-slider ribbon. */
.tms-pc-card:before,.tms-pc-product:before{content:none!important;display:none!important}
