/* v1.8.7: WooCommerce category gallery, two rows initially, expandable. */
.ptfh-home .ptfh-section-categories{background:#f3f3f3;color:#161616;padding:0;overflow:visible;}
.ptfh-home .ptfh-section-categories::before,.ptfh-home .ptfh-section-categories::after{display:none;}
.ptfh-home .ptfh-section-categories .ptfh-shell{width:100%!important;max-width:none!important;margin:0!important;padding:26px clamp(16px,3vw,48px) 32px!important;border-radius:0;background:#fff;box-shadow:none;}
.ptfh-home .ptfh-categories-head{display:flex;align-items:center;margin:0 0 28px;gap:0;}
.ptfh-home .ptfh-categories-head::before{display:none;}
.ptfh-home .ptfh-categories-head h2{color:#111;font-size:20px;line-height:1.3;font-style:normal;font-weight:750;letter-spacing:0;text-transform:none;text-shadow:none;white-space:normal;margin:0;}
.ptfh-home .ptfh-categories-head>span{display:none;}
.ptfh-home .ptfh-category-mosaic{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:auto;aspect-ratio:auto;gap:30px 14px;max-width:none;}
.ptfh-home .ptfh-category-card:nth-child(n){position:relative;grid-column:auto;grid-row:auto;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;min-width:0;min-height:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;color:#111!important;transform:none;padding:0;}
.ptfh-home .ptfh-category-card::after{display:none;}
.ptfh-home .ptfh-category-image{width:clamp(64px,7vw,100px);height:clamp(64px,7vw,100px);max-width:100%;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#e5e5e5;overflow:hidden;transition:transform .22s ease;flex:none;}
.ptfh-home .ptfh-category-image img{width:100%;height:100%;object-fit:contain;display:block;margin:0;transition:none;}
.ptfh-home .ptfh-category-card:hover .ptfh-category-image{transform:translateY(-3px);}
.ptfh-home .ptfh-category-placeholder{display:flex;align-items:center;justify-content:center;color:#999;font-size:30px;font-weight:700;}
.ptfh-home .ptfh-category-title{position:static;display:block;min-height:0;max-width:100%;padding:0;margin:0;border-radius:0;background:none;box-shadow:none;text-shadow:none;color:#111;font-size:14px;font-weight:600;line-height:1.4;text-transform:none;letter-spacing:0;overflow-wrap:anywhere;}
.ptfh-home .ptfh-category-title::after{display:none;}
.ptfh-home .ptfh-category-card:nth-child(n+17){display:none;}
.ptfh-home .ptfh-category-mosaic.is-expanded .ptfh-category-card:nth-child(n){display:flex;}
.ptfh-home .ptfh-category-all-wrap{text-align:center;margin-top:28px;}
.ptfh-home .ptfh-category-all{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:150px;border:1px solid #dedede;border-radius:99px;padding:10px 22px;background:#fff;color:#222!important;box-shadow:none;font-size:14px;font-weight:700;text-transform:none;cursor:pointer;transition:background .2s,border-color .2s;}
.ptfh-home .ptfh-category-all:hover{background:#f7f7f7;border-color:#aaa;color:#111!important;transform:none;box-shadow:none;filter:none;}
.ptfh-home .ptfh-category-chevron{font-size:19px;line-height:1;transition:transform .2s;}
.ptfh-home .ptfh-category-all[aria-expanded=true] .ptfh-category-chevron{transform:rotate(180deg);}
.ptfh-home .ptfh-category-empty{color:#444;text-align:center;padding:24px;}
@media(max-width:1100px){.ptfh-home .ptfh-category-mosaic{grid-template-columns:repeat(6,minmax(0,1fr));gap:26px 12px;}.ptfh-home .ptfh-category-card:nth-child(n+13){display:none;}.ptfh-home .ptfh-category-mosaic.is-expanded .ptfh-category-card:nth-child(n){display:flex;}}
@media(max-width:767px){.ptfh-home .ptfh-section-categories .ptfh-shell{padding:22px 16px 28px!important;}.ptfh-home .ptfh-categories-head{margin-bottom:22px;}.ptfh-home .ptfh-categories-head h2{font-size:19px;}.ptfh-home .ptfh-category-mosaic{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 10px;}.ptfh-home .ptfh-category-card:nth-child(n+9){display:none;}.ptfh-home .ptfh-category-mosaic.is-expanded .ptfh-category-card:nth-child(n){display:flex;}.ptfh-home .ptfh-category-image{width:min(18vw,84px);height:min(18vw,84px);}.ptfh-home .ptfh-category-title{font-size:12px;}.ptfh-home .ptfh-category-all-wrap{margin-top:24px;}}
@media(max-width:400px){.ptfh-home .ptfh-category-mosaic{grid-template-columns:repeat(3,minmax(0,1fr));}.ptfh-home .ptfh-category-card:nth-child(n+7){display:none;}.ptfh-home .ptfh-category-mosaic.is-expanded .ptfh-category-card:nth-child(n){display:flex;}}
@media(prefers-reduced-motion:reduce){.ptfh-home .ptfh-category-image,.ptfh-home .ptfh-category-chevron{transition:none;}}
