/* ToolHub storefront: shared header, archives and product details. */
:root{--th-dark:#19191e;--th-orange:#ffa31a;--th-line:#e4e4e4;--th-text:#252525;--th-muted:#777;--th-width:1300px}
.th-site-header{position:sticky;top:0;z-index:500;background:var(--th-dark);color:#fff;box-shadow:none}
.admin-bar .th-site-header{top:32px}
.th-site-header a{color:inherit;text-decoration:none}
.th-topline{background:var(--th-dark);color:#ddd;font-size:12px}
.th-topline-inner{height:34px;justify-content:flex-end;gap:48px}
.th-topline nav{display:flex;gap:24px}.th-topline a:hover{color:var(--th-orange)}
.th-locale{font-size:12px;white-space:nowrap}.th-topline-spacer{flex:1}
.th-header-main{height:103px;min-height:103px;gap:28px;padding:0}
.th-logo{width:250px;flex:none;color:#fff}.th-logo img{max-width:180px;max-height:55px}
.th-logo-word{font-family:Barlow,Arial,sans-serif;font-size:27px;font-weight:800;letter-spacing:-.05em;line-height:1;color:#f8f8f8}.th-logo-word span{padding:1px 4px 3px;background:var(--th-orange);color:#202024;letter-spacing:-.06em}
.th-search{height:48px;max-width:540px;margin:auto;background:#f5f5f8;border:0;border-radius:5px;overflow:hidden}
.th-search input{font-size:14px;color:#333;padding-left:20px}.th-search input::placeholder{color:#959598}
.th-search button{min-width:57px;background:transparent;color:var(--th-orange);display:grid;place-items:center;cursor:pointer}
.th-search button:hover{background:#e8e8ed}.th-search button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round}
.th-header-actions{gap:28px;flex:none}.th-header-phone{display:inline-flex;align-items:center;gap:9px;white-space:nowrap;font-size:13px;font-weight:700}.th-header-phone svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}
.th-header-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;width:26px;height:30px}.th-header-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.th-header-icon:hover,.th-header-phone:hover{color:var(--th-orange)}
.th-header-icon:first-of-type svg{fill:currentColor}.th-cart-link b{position:absolute;right:-9px;top:-8px;border-radius:50%;background:var(--th-orange);color:#111;font-size:10px;min-width:17px;height:17px;text-align:center;line-height:17px}
.th-menu-outer{background:var(--th-dark);border-top:1px solid #343438;border-bottom:0}.th-main-menu{min-height:53px}
.th-mega-trigger{min-width:180px;height:53px;padding:0 20px;background:var(--th-orange);color:#171717;font-size:13px;cursor:pointer;justify-content:center;gap:10px}.th-mega-trigger:hover,.th-mega-trigger[aria-expanded=true]{background:#ffb641}.th-mega-trigger:focus-visible{outline:3px solid #fff;outline-offset:-4px}.th-mega-trigger span:first-child{font-size:22px;font-weight:400;line-height:1}.th-mega-trigger span:last-child{font-size:12px}
.th-primary-links{align-items:stretch}.th-primary-links>li>a,.th-primary-fallback>a{min-height:53px;padding:0 17px;color:#f6f6f6;font-size:13px;font-weight:700}.th-primary-links>li>a:hover,.th-primary-fallback>a:hover,.th-primary-links .current-menu-item>a{color:var(--th-orange)}.th-primary-fallback .th-accent-link{color:var(--th-orange)}
.th-mega{top:53px;width:min(800px,calc(100vw - 90px));max-height:min(70vh,650px);overflow:auto;display:block;padding:18px;background:#fff;color:#222;border:1px solid #ddd;box-shadow:0 16px 35px #0004}.th-mega[hidden]{display:none}.th-category-tree{list-style:none;margin:0;padding:0}.th-category-depth-0{columns:3;column-gap:24px}.th-category-depth-0>li{break-inside:avoid;margin:0 0 12px}.th-category-depth-0>li>a{font-weight:800;color:#1e1e1e}.th-category-tree .th-category-tree{padding-left:12px}.th-category-tree li{list-style:none;margin-bottom:3px}.th-category-tree a{display:block;padding:3px 4px;font-size:13px}.th-category-tree a:hover{background:#fff3dc;color:#a45d00}
.th-mobile-toggle{border-color:#555;background:transparent}.th-mobile-toggle>span{background:#fff}
.th-footer{background:var(--th-dark)}.th-logo-footer .th-logo-word{color:#fff}
.th-archive,.th-single{width:min(var(--th-width),calc(100% - 48px));margin:auto;color:var(--th-text);padding-bottom:90px}
.th-breadcrumb{font-size:14px;color:#888;padding:39px 0 68px}.th-breadcrumb a{color:#444}.th-breadcrumb .woocommerce-breadcrumb{margin:0}.th-breadcrumb .woocommerce-breadcrumb a{color:#444}
.th-archive-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:20px}.th-filter-sidebar{align-self:start;border:1px solid var(--th-line);padding:21px 20px;background:#fff}.th-filter-sidebar h2{font-size:16px;letter-spacing:.02em;margin:0 0 28px;font-weight:800}.th-filter-sidebar details{padding:0 0 22px;margin:0 0 20px;border-bottom:1px solid #eee}.th-filter-sidebar summary{font-size:13px;font-weight:600;cursor:pointer;list-style:none;display:flex;justify-content:space-between}.th-filter-sidebar summary:after{content:'⌃';font-size:16px}.th-filter-sidebar label{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:12px;cursor:pointer}.th-filter-sidebar input[type=checkbox]{accent-color:var(--th-orange);width:19px;height:19px;margin:0}.th-filter-sidebar .th-price-fields{display:flex;gap:8px;margin-top:13px}.th-filter-sidebar input[type=number]{width:50%;padding:7px;border:1px solid #ddd}.th-filter-apply{background:var(--th-orange);border:0;padding:9px 14px;font-weight:800;cursor:pointer}.th-filter-reset{display:inline-block;margin-left:9px;font-size:12px}
.th-archive-title{font-size:16px;font-weight:500;margin:0 0 20px}.th-archive-description{font-size:13px;color:#666;margin-bottom:20px}.th-subcategories{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 20px}.th-subcategories a{border:1px solid #ddd;border-radius:3px;padding:7px 11px;font-size:12px}.th-subcategories a:hover{border-color:var(--th-orange)}
.th-benefits{display:grid;grid-template-columns:1fr 1fr;margin:0 auto 20px;width:82%;border-top:2px solid var(--th-orange);border-bottom:1px solid var(--th-line);text-align:center}.th-benefits>div{padding:15px 10px}.th-benefits>div+div{border-left:1px solid var(--th-line)}.th-benefits strong{display:block;font-size:14px}.th-benefits small{font-size:12px;color:#666}
.th-sortbar{display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid var(--th-line);padding:26px 37px;margin-bottom:40px;min-height:98px}.th-sortbar label{font-size:14px;font-weight:700}.th-sortbar select{margin-left:10px;border:1px solid #ddd;padding:10px 13px;background:#fff;color:#333}.th-count{font-size:13px;color:#777}.th-pagination{display:flex;gap:8px;align-items:center}.th-pagination .page-numbers{display:inline-grid;place-items:center;min-width:36px;height:36px;padding:0 8px;background:#888;color:#fff;font-size:12px;border-radius:3px}.th-pagination .page-numbers.current{background:var(--th-orange)}
.th-archive-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.th-archive-grid .thv1-prod{border:0;box-shadow:none}.th-archive-grid .thv1-prod-img{height:250px;padding:8px}.th-archive-grid .thv1-prod-img img{height:100%;width:100%;object-fit:contain}.th-archive-grid .thv1-prod-content{padding:10px 0}.th-archive-grid .thv1-prod-title{font-size:13px;font-weight:500;line-height:1.45}.th-archive-grid .thv1-prod-price{font-size:22px;font-weight:800}.th-archive-grid .thv1-prod-btn{font-size:12px}
.th-filter-mobile{display:none}.th-empty-results{border:1px solid #e5e5e5;padding:28px;text-align:center;color:#555}
.th-single .th-breadcrumb{padding-bottom:45px}.th-product-top{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:46px}.th-product-gallery{min-width:0}.th-product-gallery .woocommerce-product-gallery{width:100%!important;float:none!important;display:flex;flex-direction:row-reverse;gap:28px;align-items:flex-start}.th-product-gallery .woocommerce-product-gallery__wrapper{width:calc(100% - 90px);margin:0}.th-product-gallery .woocommerce-product-gallery__image img{width:100%;max-height:520px;object-fit:contain}.th-product-gallery .flex-control-nav{width:88px!important;display:flex;flex-direction:column;gap:14px;margin:0!important;padding:0!important}.th-product-gallery .flex-control-nav li{width:88px!important;float:none!important;list-style:none;border:1px solid #ddd;padding:4px;border-radius:3px}.th-product-gallery .flex-control-nav img{width:100%;height:82px;object-fit:contain}.th-product-gallery .woocommerce-product-gallery__trigger{z-index:3}
.th-product-summary h1{font-size:clamp(28px,2.6vw,38px);line-height:1.2;font-weight:800;margin:0 0 24px}.th-purchase-box{border:1px solid #ddd;padding:35px 40px;min-height:232px}.th-purchase-box .price{font-size:30px!important;font-weight:800!important;color:#222!important;margin:0 0 38px!important}.th-purchase-box .price del{font-size:18px;color:#999}.th-purchase-box .price ins{text-decoration:none}.th-purchase-box form.cart{display:flex;gap:16px;align-items:center}.th-purchase-box .quantity{float:none!important;margin:0!important}.th-purchase-box .qty{height:52px;width:90px!important;border:1px solid #ddd;text-align:center}.th-purchase-box .single_add_to_cart_button{height:52px;flex:1;background:var(--th-orange)!important;color:#fff!important;border-radius:3px!important}.th-preview-cart-disabled{height:52px;flex:1;display:grid;place-items:center;background:#ddd;color:#555;font-weight:700}.th-product-meta{margin-top:28px}.th-product-meta>div{display:flex;justify-content:space-between;border-bottom:1px solid #ddd;padding:6px 0;font-size:14px}.th-product-meta span{color:#666}.th-product-meta strong{font-weight:500}.th-product-meta .in-stock{color:#338044}.th-product-meta .out-of-stock{color:#b44233}.th-product-brand{color:#555;font-size:13px;margin:-13px 0 18px}.th-product-copy{margin-top:65px}.th-product-copy h2,.th-related h2{font-size:27px;font-weight:800;margin:0 0 22px}.th-product-copy .woocommerce-product-attributes{width:100%;border-collapse:collapse;margin-top:15px}.th-product-copy .woocommerce-product-attributes th,.th-product-copy .woocommerce-product-attributes td{text-align:left;border-bottom:1px solid #eee;padding:10px;font-size:13px}.th-related{margin-top:70px}.th-related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}
@media(max-width:1100px){.th-header-main{gap:20px}.th-logo{width:195px}.th-header-actions{gap:17px}.th-archive-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.th-benefits{width:100%}}
@media(max-width:800px){.admin-bar .th-site-header{top:46px}.th-site-header{position:sticky}.th-topline{display:none}.th-header-main{height:auto;min-height:74px;padding:12px 0;gap:12px}.th-logo{width:auto}.th-logo-word{font-size:23px}.th-search{order:3;flex:0 0 100%;max-width:none;height:42px}.th-header-phone{display:none}.th-header-actions{margin-left:auto;gap:15px}.th-header-icon{width:23px}.th-mobile-toggle{display:flex}.th-menu-outer{display:none;border-top:1px solid #444}.th-menu-outer.th-mobile-open{display:block}.th-main-menu{display:flex;flex-direction:column;padding:10px 0}.th-mega-holder{display:block}.th-mega-trigger{width:100%;justify-content:space-between}.th-mega{position:static;width:100%;max-height:350px;box-shadow:none}.th-category-depth-0{columns:2}.th-primary-links{display:flex;flex-direction:column}.th-primary-links>li>a,.th-primary-fallback>a{min-height:43px;padding:10px 15px}.th-archive,.th-single{width:calc(100% - 30px)}.th-breadcrumb{padding:25px 0 32px}.th-archive-layout{display:block}.th-filter-mobile{display:block;width:100%;padding:12px;background:var(--th-orange);border:0;font-weight:800;margin:0 0 14px}.th-filter-sidebar{display:none;margin-bottom:20px}.th-filter-sidebar.is-open{display:block}.th-archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.th-sortbar{padding:15px;min-height:0;margin-bottom:22px}.th-product-top{grid-template-columns:1fr;gap:25px}.th-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.th-logo-word{font-size:21px}.th-header-actions{gap:9px}.th-header-icon{width:19px}.th-header-icon svg{width:21px;height:21px}.th-search{height:41px}.th-category-depth-0{columns:1}.th-breadcrumb{font-size:12px}.th-archive-grid{gap:8px}.th-archive-grid .thv1-prod-img{height:170px}.th-archive-grid .thv1-prod-price{font-size:18px}.th-benefits strong{font-size:11px}.th-benefits small{font-size:10px}.th-sortbar{display:block}.th-sortbar label{display:block;margin-top:10px}.th-sortbar select{margin-left:0;width:100%}.th-pagination{margin-bottom:10px}.th-product-gallery .woocommerce-product-gallery{display:block}.th-product-gallery .woocommerce-product-gallery__wrapper{width:100%}.th-product-gallery .flex-control-nav{width:100%!important;flex-direction:row;overflow-x:auto}.th-product-gallery .flex-control-nav li{flex:0 0 70px;width:70px!important}.th-product-gallery .flex-control-nav img{height:65px}.th-product-summary h1{font-size:28px}.th-purchase-box{padding:22px}.th-purchase-box form.cart{gap:8px}.th-product-meta>div{font-size:12px}.th-related-grid{gap:8px}}
@media(prefers-reduced-motion:reduce){.th-site-header *{scroll-behavior:auto}}

.th-product-card{position:relative}.th-wishlist-toggle{position:absolute;top:10px;right:10px;width:30px;height:30px;border:0;background:#fff9;border-radius:50%;color:#b26400;font-size:24px;line-height:1;cursor:pointer}.th-wishlist-toggle:hover{background:#fff0d8}.th-wishlist-page{min-height:60vh;padding-top:50px;padding-bottom:80px}.th-wishlist-page h1{font-size:36px}.th-wishlist-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.th-wishlist-grid article{display:flex;flex-direction:column;gap:10px;padding:15px;border:1px solid #ddd}.th-wishlist-grid img{width:100%;height:180px;object-fit:contain}.th-wishlist-grid a{font-weight:700}.th-wishlist-grid button{align-self:flex-start;background:#eee;border:0;padding:8px;cursor:pointer}@media(max-width:800px){.th-wishlist-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.th-product-top{margin-top:18px}

/* Reference mobile header and hero geometry. */
@media(max-width:700px){
 .th-header-main{width:100%;height:100px;min-height:100px;padding:0;display:flex;align-content:flex-start;gap:0}
 .th-header-actions{display:contents}
 .th-mobile-toggle{order:-3;display:flex;width:54px;height:60px;flex:none;margin:0;background:var(--th-orange);border:0;border-radius:0}
 .th-mobile-toggle>span{background:#222}
 .th-logo{order:-2;margin-left:24px;height:60px;width:auto}
 .th-logo-word{font-size:21px}
 .th-header-icon{order:-1;height:60px;width:27px;margin:0 9px}
 .th-header-icon[aria-label="Kívánságlista"]{margin-left:auto}
 .th-header-icon[aria-label="Fiókom"]{display:none}
 .th-cart-link{margin-right:18px}
 .th-search{order:3;flex:0 0 100%;width:100%;height:40px;margin:0;border-radius:0}
 .th-search input{padding-left:20px}.th-search button{min-width:55px}
 .thv1 .thv1-hero{margin-inline:20px}
}

/* Shoprenter footer proportions. */
.th-footer{position:relative;background:#050505;color:#f5f5f5;padding:34px 0 74px}.th-footer-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:45px;padding-bottom:90px}.th-footer-grid>div{gap:15px}.th-footer-grid h3{font-size:15px;letter-spacing:.01em;color:var(--th-orange);margin:0 0 20px}.th-footer-grid a,.th-footer-grid span{font-size:12px;color:#eee;line-height:1.55}.th-footer-grid a:hover{color:var(--th-orange)}.th-footer-bottom{border:0;text-align:center;display:block;color:#fff;padding:0 0 58px;font-size:12px}.th-footer-seo{text-align:center;font-size:12px;color:#ddd;margin:0;line-height:1.65}.th-back-top{position:absolute;right:14px;bottom:125px;display:grid;place-items:center;width:50px;height:37px;background:var(--th-orange);color:#fff;font-size:25px;border-radius:5px}
@media(max-width:800px){.th-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:35px;padding-bottom:50px}.th-footer-bottom{padding-bottom:40px}}
@media(max-width:540px){.th-footer{padding:38px 0 60px}.th-footer-grid{grid-template-columns:1fr;gap:30px}.th-footer-grid h3{margin-bottom:8px}.th-footer-seo{padding:0 20px}.th-back-top{bottom:45px}}

.th-archive-grid .thv1-prod-btn{display:block;background:var(--th-orange);color:#fff;text-align:center;border:0;border-radius:3px;font-weight:800;padding:10px;margin-top:11px}.th-archive-grid .thv1-prod-btn:hover{background:#e9900b;color:#fff}

.th-wishlist-placeholder{position:absolute;top:10px;right:10px;width:30px;height:30px;border-radius:50%;background:#fff9;color:#b26400;text-align:center;font-size:24px;line-height:30px}.th-footer-links{list-style:none;margin:0;padding:0}.th-footer-links li{margin:0 0 12px}

/* Home bestseller carousel follows the Shoprenter five-card desktop viewport. */
.thv1 .thv3-proofbar{width:min(960px,100%);min-height:98px}
.thv1 #termekek{padding-top:44px;min-height:942px;box-sizing:border-box}
.thv1 .th-home-carousel{position:relative}
.thv1 .th-home-carousel .thv1-prod-grid{display:flex;grid-template-columns:none;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:50px 0 12px}
.thv1 .th-home-carousel .thv1-prod-grid::-webkit-scrollbar{display:none}
.thv1 .th-home-carousel .thv1-prod{flex:0 0 calc((100% - 48px)/5);height:549px;scroll-snap-align:start;box-sizing:border-box;border-radius:8px;box-shadow:0 4px 18px #0000000d}
.thv1 .th-home-carousel .thv1-prod-img{height:245px;background:#fff}
.thv1 .th-home-carousel .thv1-prod-content{flex:1;padding:13px 16px 14px}
.thv1 .th-home-carousel .thv1-prod-title{min-height:70px;margin:0;font-size:13px;line-height:1.4}
.thv1 .th-home-carousel .thv1-prod-price{margin-top:auto;font-size:22px;font-weight:800}
.thv1 .th-home-carousel .thv1-prod-stock{font-size:12px;color:#258049;margin-top:6px}
.th-card-shipping{display:inline-block;align-self:flex-start;margin-top:8px;padding:6px 8px;background:#eaf8ef;border:1px solid #c5e1ce;border-radius:3px;color:#23824c;font-size:12px;font-weight:700}
.th-card-wishlist-label{display:block;font-size:12px;color:#333;text-align:center;margin:8px 0}
.thv1 .th-home-carousel .thv1-prod-btn{margin-top:10px;text-align:center;justify-content:center;font-size:12px}
.thv1 .th-home-carousel .thv1-prod-btn span{display:none}
.th-carousel-arrow{position:absolute;top:-44px;width:43px;height:43px;z-index:2;border:1px solid #eee;background:#fff;border-radius:50%;font-size:20px;cursor:pointer}.th-carousel-arrow:hover{background:var(--th-orange)}.th-carousel-prev{right:52px}.th-carousel-next{right:0}
@media(max-width:1100px){.thv1 .th-home-carousel .thv1-prod{flex-basis:calc((100% - 24px)/3)}}
@media(max-width:700px){.thv1 .thv3-proofbar{width:100%;min-height:0}.thv1 #termekek{min-height:0;padding-top:44px}.thv1 .th-home-carousel .thv1-prod-grid{padding-top:55px}.thv1 .th-home-carousel .thv1-prod{flex:0 0 240px;height:480px}.thv1 .th-home-carousel .thv1-prod-img{height:210px}.thv1 .th-home-carousel .thv1-prod-title{min-height:62px}.thv1 .th-home-carousel .thv1-prod-price{font-size:20px}.th-carousel-prev{left:0;right:auto}.th-carousel-next{right:0}}

@media(max-width:700px){.thv1 #termekek{padding-left:36px;padding-right:36px}.thv1 .th-home-carousel .thv1-prod-grid{gap:30px}.thv1 .th-home-carousel .thv1-prod{flex-basis:240px}}

/* Tablet keeps the production two-column hero and left-side category toggle. */
@media(min-width:701px) and (max-width:800px){
 .th-header-main{width:calc(100% - 48px);height:100px;min-height:100px;padding:0;display:flex;align-content:flex-start;gap:0}
 .th-header-actions{display:contents}
 .th-mobile-toggle{order:-3;display:flex;width:55px;height:60px;flex:none;margin:0;background:var(--th-orange);border:0;border-radius:0}
 .th-mobile-toggle>span{background:#222}
 .th-logo{order:-2;margin-left:22px;height:60px;width:auto}
 .th-logo-word{font-size:21px}
 .th-header-icon{order:-1;height:60px;width:27px;margin:0 10px}
 .th-header-icon[aria-label="Kívánságlista"]{margin-left:auto}
 .th-header-icon[aria-label="Fiókom"]{display:none}
 .th-cart-link{margin-right:18px}
 .th-search{order:3;flex:0 0 100%;width:100%;height:40px;margin:0;border-radius:0}
 .thv1 .thv1-hero{margin-inline:34px}
 .thv1 .thv3-proofbar{width:calc(100% - 68px)}
}

@media(min-width:701px) and (max-width:800px){.thv1 .thv1-hero p.thv1-lead{font-size:13px;line-height:1.55}.thv1 .thv1-hero-text{padding-bottom:40px}}

@media(min-width:701px) and (max-width:800px){.thv1 .thv1-hero{min-height:542px}}

.th-mobile-back{display:none}@media(max-width:700px){.th-single .th-breadcrumb{display:none}.th-mobile-back{display:block;padding:17px 0 13px;font-size:13px;color:#555}.th-product-top{margin-top:0}.th-product-gallery .flex-control-nav{padding-left:22px!important}}

@media(max-width:700px){.th-purchase-box{border:0;padding:15px 0 0;min-height:0}.th-purchase-box .price{margin-bottom:20px!important}}

/* Two-pane category flyout: root categories on the left, selected children on the right. */
.th-mega{width:min(900px,calc(100vw - 90px));padding:0;overflow:hidden}
.th-category-mega{display:grid;grid-template-columns:minmax(220px,30%) minmax(0,1fr);min-height:360px;max-height:min(70vh,650px);color:#222}
.th-category-main{list-style:none;margin:0;padding:10px 0;border-right:1px solid #e7e7e7;overflow:auto;background:#fafafa}
.th-category-main-item{display:flex;align-items:center;min-height:42px;margin:0;padding:0 10px 0 17px;border-left:3px solid transparent}
.th-category-main-item>a{flex:1;padding:10px 5px;color:#242424;font-size:13px;font-weight:600;text-decoration:none}
.th-category-main-item.is-active{background:#fff1d7;border-left-color:var(--th-orange)}
.th-category-main-item.is-active>a,.th-category-main-item>a:hover{color:#9a5700}
.th-category-expand{width:32px;height:32px;border:0;background:transparent;color:#555;font-size:24px;line-height:1;cursor:pointer}
.th-category-main-item.is-active .th-category-expand{color:#9a5700}
.th-category-panels{min-width:0;overflow:auto;padding:20px 24px}
.th-category-panel[hidden]{display:none}
.th-category-panel h3{margin:0 0 14px;padding-bottom:12px;border-bottom:1px solid #eee;font-size:15px}
.th-category-panel h3 a{color:#222;text-decoration:none}.th-category-panel h3 a:hover{color:#9a5700}
.th-category-panel h3 span{float:right;color:#9a5700}
.th-category-panel>.th-category-tree{columns:2;column-gap:24px}
.th-category-panel .th-category-depth-1>li{break-inside:avoid;margin:0 0 10px}
.th-category-panel .th-category-depth-1>li>a{font-size:13px;font-weight:700;color:#333}
.th-category-panel .th-category-depth-2{padding-left:12px;border-left:1px solid #e6e6e6}
.th-category-panel .th-category-depth-2 a{font-size:12px}
.th-category-empty{color:#777;font-size:13px}
.th-category-main-item:focus-within{background:#fff1d7}
@media(max-width:800px){
 .th-mega{max-height:min(75vh,650px);overflow:auto}
 .th-category-mega{display:block;max-height:none;min-height:0}
 .th-category-main{max-height:230px;border-right:0;border-bottom:1px solid #ddd}
 .th-category-panels{max-height:350px;padding:15px;overflow:auto}
 .th-category-panel>.th-category-tree{columns:1}
 .th-category-expand{transform:rotate(90deg)}
 .th-category-main-item.is-active .th-category-expand{transform:rotate(-90deg)}
}

/* Compact, contained mega menu with grouped subcategory links. */
.th-mega{width:min(880px,calc(100vw - 48px));max-height:none;border:0;border-radius:0 0 8px 8px;box-shadow:0 18px 42px #0003}
.th-category-mega{height:min(540px,68vh);max-height:min(540px,68vh);min-height:0;grid-template-columns:260px minmax(0,1fr)}
.th-category-main{min-height:0;padding:8px 0;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c9c9c9 transparent}
.th-category-main-item{min-height:34px;padding:0 10px 0 14px}
.th-category-main-item>a{padding:7px 4px;font-size:12.5px;line-height:1.35}
.th-category-expand{width:28px;height:28px;font-size:22px}
.th-category-panels{min-height:0;padding:18px 20px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c9c9c9 transparent}
.th-category-panel h3{margin-bottom:14px;padding:0 2px 12px;font-size:14px}
.th-category-panel>.th-category-tree{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:10px 14px;columns:unset}
.th-category-panel .th-category-depth-1>li{min-width:0;margin:0;padding:9px 11px;background:#f8f8f8;border-radius:5px;break-inside:avoid}
.th-category-panel .th-category-depth-1>li>a{display:block;padding:2px 0 7px;color:#292929;font-size:12.5px;font-weight:700;line-height:1.4}
.th-category-panel .th-category-depth-2{margin:0;padding:0 0 0 9px;border-left:2px solid #f3c875}
.th-category-panel .th-category-depth-2 li{margin:0}
.th-category-panel .th-category-depth-2 a{padding:4px 2px;color:#626262;font-size:11.5px;line-height:1.4}
.th-category-panel .th-category-depth-2 a:hover{background:#fff0d5;color:#8a4d00}
.th-category-main-item:focus-within{outline:2px solid #e99a10;outline-offset:-2px}
@media(max-width:800px){
 .th-mega{width:100%;max-height:min(75vh,650px);border:1px solid #ddd;border-radius:0 0 7px 7px}
 .th-category-mega{height:auto;max-height:none;min-height:0}
 .th-category-main{max-height:225px}
 .th-category-main-item{min-height:40px}
 .th-category-main-item>a{font-size:13px}
 .th-category-panels{max-height:320px;padding:14px}
 .th-category-panel>.th-category-tree{grid-template-columns:1fr;gap:8px}
 .th-category-panel .th-category-depth-1>li{padding:8px 10px}
}
@media(prefers-reduced-motion:no-preference){
 .th-category-main-item,.th-category-panel a{transition:background-color .14s ease,color .14s ease}
}

/* A leaf category has no secondary pane: keep the menu to its root list. */
.th-mega:not(.is-wide){width:260px}
.th-category-mega{height:auto;max-height:min(540px,68vh);grid-template-columns:1fr}
.th-category-mega .th-category-panels{display:none}
.th-category-mega.has-active-panel{height:min(540px,68vh);max-height:min(540px,68vh);grid-template-columns:260px minmax(0,1fr)}
.th-category-mega.has-active-panel .th-category-panels{display:block}
@media(max-width:800px){
 .th-mega:not(.is-wide){width:100%}
 .th-category-mega{height:auto;max-height:none;grid-template-columns:1fr}
 .th-category-mega.has-active-panel{height:auto;max-height:none;grid-template-columns:1fr}
}
.th-category-mega{height:min(520px,68vh)}
.th-category-main-item:hover{background:#f1f1f1}
.th-category-main-item.is-active:hover{background:#fff1d7}

/* Cascading category flyout: each child level appears only for a hovered/focused parent. */
.th-mega{top:53px;width:280px;max-height:none;padding:0;overflow:visible;border:0;border-radius:0 0 6px 6px;box-shadow:0 16px 38px #0003}
.th-category-menu{position:relative;width:280px;background:#fff;border:1px solid #ddd;border-top:0;border-radius:0 0 6px 6px}
.th-category-tree{list-style:none;margin:0;padding:6px 0;background:#fff}
.th-category-depth-0{width:278px;max-height:none;overflow:visible;border-radius:0 0 6px 6px}
.th-category-tree li.th-category-item{position:relative;display:flex;align-items:center;list-style:none;margin:0;padding:0;min-height:36px}
.th-category-item>a{display:block;flex:1;min-width:0;padding:8px 12px;color:#282828;font-size:12.5px;line-height:1.35;text-decoration:none}
.th-category-item:hover,.th-category-item:focus-within,.th-category-item.is-open{background:#fff1d7}
.th-category-item:hover>a,.th-category-item:focus-within>a,.th-category-item.is-open>a{color:#985500}
.th-category-sub-toggle{display:grid;place-items:center;flex:none;width:34px;height:34px;margin:0 3px 0 0;padding:0;border:0;background:transparent;color:#666;font-size:22px;line-height:1;cursor:pointer}
.th-category-sub-toggle:hover,.th-category-item.is-open>.th-category-sub-toggle{color:#985500}
.th-category-submenu{position:absolute;z-index:501;top:0;left:calc(100% - 1px);width:300px;max-height:min(70vh,620px);overflow-y:auto;overscroll-behavior:contain;padding:7px 0;background:#fff;border:1px solid #ddd;border-radius:0 6px 6px 6px;box-shadow:0 16px 38px #0003}
.th-category-submenu.opens-left{left:auto;right:calc(100% - 1px);border-radius:6px 0 6px 6px}
.th-category-submenu[hidden]{display:none!important}
.th-category-depth-1,.th-category-depth-2,.th-category-depth-3,.th-category-depth-4{border-radius:0 6px 6px 6px}
.th-category-item:focus-within>.th-category-sub-toggle{outline:2px solid #e99a10;outline-offset:-3px;border-radius:3px}
@media(max-width:800px){
 .th-mega{position:static;top:auto!important;width:100%;max-height:min(65vh,480px);overflow:auto;border:1px solid #ddd;border-radius:0 0 6px 6px;box-shadow:none}
 .th-category-menu{width:100%;border:0;border-radius:0}
 .th-category-depth-0{width:100%;max-height:none}
 .th-category-submenu,.th-category-submenu.opens-left{position:static;top:auto!important;left:auto;right:auto;width:auto;max-height:none;overflow:visible;margin:0 8px 5px 12px;padding:0 0 0 7px;border:0;border-left:2px solid #f0c36e;border-radius:0;box-shadow:none}
 .th-category-item{flex-wrap:wrap}
 .th-category-item>a{padding:10px 12px;font-size:13px}
 .th-category-sub-toggle{width:40px;height:40px}
}
@media(max-width:800px){.th-category-submenu{flex:0 0 100%}}
.th-category-depth-0{columns:unset;column-gap:normal}

/* Let deeper category flyouts escape the parent panel instead of clipping inside it. */
.th-category-submenu{max-height:none;overflow:visible;overscroll-behavior:initial}

/* Neutral category flyout palette; ToolHub orange is a restrained active accent. */
.th-category-tree li.th-category-item{background:#fff;color:#242424}
.th-category-item:hover,.th-category-item:focus-within,.th-category-item.is-open{background:#f3f4f5;box-shadow:inset 3px 0 #f5a623}
.th-category-item:hover>a,.th-category-item:focus-within>a,.th-category-item.is-open>a{color:#242424}
.th-category-sub-toggle:hover,.th-category-item.is-open>.th-category-sub-toggle{color:#d47e00}
.th-category-submenu{border-color:#dedfe1;background:#fff}
.th-category-menu .th-category-depth-0>.th-category-item{min-height:40px}
.th-category-menu .th-category-depth-0>.th-category-item>a{display:flex;align-items:center;gap:10px;min-height:40px;padding:6px 11px;color:#222;font-weight:600}
.th-category-icon{display:block;flex:0 0 24px;width:24px;height:24px;object-fit:contain}
.th-category-label{display:block;min-width:0}
.th-category-menu .th-category-depth-0>.th-category-item:hover,
.th-category-menu .th-category-depth-0>.th-category-item:focus-within,
.th-category-menu .th-category-depth-0>.th-category-item.is-open{background:#f3f4f5}
.th-category-menu .th-category-depth-0>.th-category-item.is-open{box-shadow:inset 3px 0 #f5a623}
/* ToolHub reference style: dark nested category accordion. */
.th-mega{position:absolute!important;top:100%!important;left:0!important;right:auto!important;z-index:500;width:min(370px,calc(100vw - 24px))!important;max-height:min(72vh,650px)!important;overflow-x:hidden!important;overflow-y:auto!important;padding:0!important;background:#202125!important;border:1px solid #38393e!important;border-top:2px solid #ff9f1c!important;border-radius:0 0 10px 10px!important;box-shadow:0 18px 42px #0005!important;scrollbar-width:thin;scrollbar-color:#777 #202125}
.th-category-menu{position:relative;width:100%!important;background:#202125!important;border:0!important;border-radius:0!important}.th-category-menu-title{padding:15px 20px 12px;color:#ff9f1c;font-size:11px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;border-bottom:1px solid #393a3f}
.th-category-tree{display:block!important;width:100%!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important;columns:unset!important;background:transparent!important;border:0!important;box-shadow:none!important;list-style:none}
.th-category-tree li.th-category-item{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) 38px!important;align-items:center!important;min-height:40px!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-bottom:1px solid #36373c!important;box-shadow:none!important;list-style:none}
.th-category-item>a{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important;min-height:40px!important;padding:8px 12px 8px 18px!important;color:#f4f4f5!important;font-size:12.5px!important;font-weight:700!important;line-height:1.35!important;text-decoration:none!important}
.th-category-item:hover,.th-category-item:focus-within,.th-category-item.is-open{background:#2d2e33!important;box-shadow:inset 3px 0 #ff9f1c!important}.th-category-item:hover>a,.th-category-item:focus-within>a,.th-category-item.is-open>a{color:#ffad32!important}
.th-category-icon{display:block!important;flex:0 0 22px!important;width:22px!important;height:22px!important;object-fit:contain!important;filter:brightness(0) invert(1)}
.th-category-sub-toggle{display:grid!important;place-items:center!important;grid-column:2!important;grid-row:1!important;width:32px!important;height:32px!important;margin:0 4px!important;padding:0!important;color:#ff9f1c!important;background:transparent!important;border:1px solid transparent!important;border-radius:4px!important;font-size:0!important;line-height:1!important;cursor:pointer}.th-category-sub-toggle span{font-size:0!important}.th-category-sub-toggle span:before{content:'+';font-size:20px}.th-category-item.is-open>.th-category-sub-toggle span:before{content:'−'}
.th-category-submenu{position:static!important;z-index:auto!important;grid-column:1/-1!important;grid-row:auto!important;width:auto!important;max-height:none!important;overflow:visible!important;margin:0 0 0 13px!important;padding:0 0 0 11px!important;background:transparent!important;border:0!important;border-left:1px solid #46474c!important;border-radius:0!important;box-shadow:none!important}.th-category-submenu .th-category-item>a{padding-left:12px!important;font-weight:600!important}.th-category-submenu .th-category-submenu{margin-left:10px!important;padding-left:10px!important}.th-category-submenu[hidden],.th-category-tree[hidden]{display:none!important}.th-category-item:focus-within>.th-category-sub-toggle{outline:2px solid #ff9f1c!important;outline-offset:-2px}
@media(max-width:800px){.th-mega{position:static!important;top:auto!important;left:auto!important;width:100%!important;max-height:min(68vh,620px)!important;border-radius:0 0 8px 8px!important;box-shadow:none!important}.th-category-menu-title{padding-left:16px}.th-category-submenu{margin-left:9px!important;padding-left:8px!important}}
/* Exact reference palette and icon-free, taxonomy-driven category list. */
.th-category-icon{display:none!important}
.th-category-menu-title{color:#ff9f1c!important}
.th-category-tree li.th-category-item{background:#202125!important;border-bottom:1px solid #36373c!important}
.th-category-item>a{color:#f5f5f5!important}
.th-category-item:hover,.th-category-item:focus-within,.th-category-item.is-open{background:#303136!important;box-shadow:none!important}
.th-category-item:hover>a,.th-category-item:focus-within>a{color:#ff9f1c!important}
.th-category-item.is-open>a{color:#f5f5f5!important}
.th-category-sub-toggle{color:#ff9f1c!important}
.th-category-submenu{border-left-color:#3b3c41!important}
.th-category-item.is-open{background:#202125!important;box-shadow:none!important}
.th-category-menu .th-category-tree a:hover,.th-category-menu .th-category-tree a:focus-visible{background:transparent!important;color:#ffad32!important;border-radius:0!important;text-decoration:none!important}

/* Category archives with children show subcategory cards before any products. */
.th-archive-layout.has-subcategories{display:block}
.th-subcategory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:4px 0 30px}
.th-subcategory-card{display:flex;flex-direction:column;overflow:hidden;color:#171717;background:#fff;border:1px solid #dedbd5;border-radius:12px;text-decoration:none;transition:transform .16s ease,box-shadow .16s ease}
.th-subcategory-card:hover,.th-subcategory-card:focus-visible{color:#171717;transform:translateY(-2px);box-shadow:0 8px 22px #00000014}
.th-subcategory-card-image{display:flex;align-items:center;justify-content:center;aspect-ratio:1.55;background:#f1f0ed}
.th-subcategory-card-image img{display:block;width:100%;height:100%;object-fit:cover}
.th-subcategory-card-name{padding:16px 18px;font-size:16px;font-weight:800;line-height:1.3}
@media(max-width:800px){.th-subcategory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.th-subcategory-card-name{padding:12px;font-size:14px}}
@media(max-width:480px){.th-subcategory-grid{grid-template-columns:1fr 1fr}}
/* Match category tile dimensions to the product archive card grid. */
.th-subcategory-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}
.th-subcategory-card{border-radius:8px}
.th-subcategory-card-image{height:250px;flex:0 0 250px;aspect-ratio:auto;background:#fff}
.th-subcategory-card-image img{width:100%;height:100%;object-fit:contain;padding:8px}
.th-subcategory-card-name{padding:10px 12px;font-size:13px;font-weight:700;line-height:1.45}
@media(max-width:1100px){.th-subcategory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.th-subcategory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.th-subcategory-card-image{height:210px;flex-basis:210px}}
@media(max-width:480px){.th-subcategory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.th-subcategory-card-image{height:170px;flex-basis:170px}}
/* All categories directory */
.th-category-menu-title{display:block;text-decoration:none!important}
.th-category-menu-title:hover{color:#ffb641!important;background:transparent!important}
.th-category-index{padding-bottom:50px}.th-category-index h1{margin:0 0 24px;font-size:28px}.th-category-index-list{list-style:none;margin:0;padding:0}.th-category-index-list>li{border-bottom:1px solid #e5e5e5}.th-category-index-list li>a{display:block;padding:10px 14px;color:#222;text-decoration:none;font-weight:700}.th-category-index-list li>a:hover,.th-category-index-list li>a:focus-visible{color:#b86d00;background:#fff4df}.th-category-index-list .th-category-index-list{margin-left:18px;border-left:2px solid #eee}.th-category-index-list .th-category-index-list li>a{font-size:14px;font-weight:500}

.thv1-prod-stock.in-stock{color:#258049!important}.thv1-prod-stock.out-of-stock{color:#666!important}


/* Responsive ToolHub header logo sizing. */
.th-logo img{display:block;width:auto;height:auto;max-width:210px;max-height:64px;object-fit:contain}
@media(max-width:800px){.th-logo img{max-width:150px;max-height:58px}}
@media(max-width:390px){.th-logo{margin-left:16px}.th-logo img{max-width:130px;max-height:54px}}
