/* v1.9.1: align category section with homepage brand style, keep uniform item size. */
.ptfh-home .ptfh-section-categories{
  background:linear-gradient(180deg,#fffaf5 0%,#ffffff 42%,#ffffff 100%);
  color:#102f60;
  border-top:1px solid #f5e7d6;
}
.ptfh-home > .ptfh-section-categories > .ptfh-shell{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:34px clamp(24px,6.8vw,130px) 42px!important;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
}
.ptfh-home .ptfh-categories-head{
  display:flex;
  align-items:center;
  gap:14px;
  margin:0 0 28px;
}
.ptfh-home .ptfh-categories-head::before{
  content:"";
  display:block;
  width:7px;
  height:32px;
  flex:0 0 7px;
  border-radius:2px;
  transform:skew(-15deg);
  background:linear-gradient(180deg,#ffa52c,#f36b10);
}
.ptfh-home .ptfh-categories-head h2{
  margin:0;
  color:#123a7a;
  font-size:clamp(24px,1.8vw,30px);
  line-height:1.2;
  font-weight:900;
  font-style:italic;
  letter-spacing:-.03em;
  text-transform:uppercase;
}
.ptfh-home .ptfh-category-mosaic{
  display:grid;
  grid-template-columns:repeat(10,minmax(0,1fr));
  gap:28px 14px;
  align-items:start;
  max-width:100%;
}
.ptfh-home .ptfh-category-card:nth-child(n){
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  min-width:0;
  min-height:156px;
  gap:12px;
  padding:10px 6px 8px;
  text-align:center;
  background:transparent;
  border:1px solid transparent;
  border-radius:16px;
  box-shadow:none;
  color:#133362!important;
  text-decoration:none!important;
  transition:transform .2s ease,background-color .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.ptfh-home .ptfh-category-card:nth-child(n):hover,
.ptfh-home .ptfh-category-card:nth-child(n):focus-visible{
  transform:translateY(-3px);
  background:#fff;
  border-color:#f4dcc6;
  box-shadow:0 10px 24px rgba(14,47,95,.08);
}
.ptfh-home .ptfh-category-card:focus-visible{outline:2px solid #f36b10;outline-offset:2px;}
.ptfh-home .ptfh-category-image{
  width:82px;
  height:82px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(145deg,#f6f8fb,#e8edf5);
  border:2px solid #e7edf4;
  overflow:hidden;
  flex:none;
  box-shadow:0 4px 12px rgba(17,45,89,.05);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.ptfh-home .ptfh-category-image img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  margin:0;
}
.ptfh-home .ptfh-category-card:hover .ptfh-category-image,
.ptfh-home .ptfh-category-card:focus-visible .ptfh-category-image{
  transform:scale(1.03);
  border-color:#ffa14b;
  box-shadow:0 7px 16px rgba(243,107,16,.14);
}
.ptfh-home .ptfh-category-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  color:#7e8fa9;
  font-size:28px;
  font-weight:800;
  background:radial-gradient(circle at 35% 28%,#fff,#e8eef8 76%);
}
.ptfh-home .ptfh-category-title{
  margin:0;
  color:#142f5e;
  font-size:14px;
  line-height:1.42;
  font-weight:700;
  min-height:40px;
  max-width:100%;
  text-wrap:balance;
  overflow-wrap:anywhere;
}
.ptfh-home .ptfh-category-card:hover .ptfh-category-title{color:#ea6812;}
.ptfh-home .ptfh-category-card:nth-child(n+21){display:none;}
.ptfh-home .ptfh-category-mosaic.is-expanded .ptfh-category-card:nth-child(n){display:flex;}
.ptfh-home .ptfh-category-all-wrap{
  margin-top:26px;
  text-align:center;
}
.ptfh-home .ptfh-category-all{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-width:170px;
  min-height:46px;
  padding:11px 24px;
  border-radius:999px;
  border:1px solid #f36b10;
  background:linear-gradient(115deg,#ff951f,#f36b10);
  color:#fff!important;
  font-size:14px;
  font-weight:800;
  line-height:1.2;
  text-transform:none;
  cursor:pointer;
  box-shadow:0 6px 15px rgba(243,107,16,.18);
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease,border-color .2s ease;
}
.ptfh-home .ptfh-category-all:hover{
  background:linear-gradient(115deg,#ffab36,#ed6306);
  border-color:#ed6306;
  color:#fff!important;
  transform:translateY(-2px);
  box-shadow:0 10px 20px rgba(243,107,16,.24);
  filter:none;
}
.ptfh-home .ptfh-category-all:focus-visible{outline:3px solid #143d7d;outline-offset:3px;}
.ptfh-home .ptfh-category-all[aria-expanded="true"]{
  background:#fff;
  color:#153a75!important;
  border-color:#b6c8df;
  box-shadow:0 4px 12px rgba(15,47,96,.06);
}
.ptfh-home .ptfh-category-all[aria-expanded="true"]:hover{background:#fff8f1;border-color:#f36b10;}
.ptfh-home .ptfh-category-chevron{
  display:inline-grid;
  place-items:center;
  width:21px;
  height:21px;
  border-radius:50%;
  font-size:16px;
  line-height:1;
  background:rgba(255,255,255,.18);
  transition:transform .2s ease;
}
.ptfh-home .ptfh-category-all[aria-expanded="true"] .ptfh-category-chevron{
  background:#edf2fa;
  transform:rotate(180deg);
}
@media(max-width:1199px){
  .ptfh-home > .ptfh-section-categories > .ptfh-shell{padding:32px 28px 40px!important;}
  .ptfh-home .ptfh-category-mosaic{grid-template-columns:repeat(8,minmax(0,1fr));gap:26px 12px;}
  .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;}
}
@media(max-width:991px){
  .ptfh-home > .ptfh-section-categories > .ptfh-shell{padding:28px 24px 36px!important;}
  .ptfh-home .ptfh-category-mosaic{grid-template-columns:repeat(6,minmax(0,1fr));gap:24px 10px;}
  .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:24px 16px 32px!important;}
  .ptfh-home .ptfh-categories-head{margin-bottom:22px;gap:12px;}
  .ptfh-home .ptfh-categories-head::before{width:6px;height:28px;flex-basis:6px;}
  .ptfh-home .ptfh-categories-head h2{font-size:22px;}
  .ptfh-home .ptfh-category-mosaic{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 8px;}
  .ptfh-home .ptfh-category-card:nth-child(n){min-height:136px;padding:8px 3px 6px;border-radius:12px;gap:10px;}
  .ptfh-home .ptfh-category-image{width:72px;height:72px;}
  .ptfh-home .ptfh-category-title{font-size:12px;line-height:1.35;min-height:34px;}
  .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-all-wrap{margin-top:22px;}
  .ptfh-home .ptfh-category-all{min-width:158px;min-height:44px;font-size:13px;}
}
@media(max-width:420px){
  .ptfh-home .ptfh-category-mosaic{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 7px;}
  .ptfh-home .ptfh-category-image{width:min(24vw,78px);height:min(24vw,78px);}
  .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-card,.ptfh-home .ptfh-category-image,.ptfh-home .ptfh-category-all,.ptfh-home .ptfh-category-chevron{transition:none!important;}
}

/* 1.9.2: section frame and CTA match product group block of homepage */
.ptfh-home > .ptfh-section-categories {background:#fffaf5;border-top:0;padding:clamp(22px,3vw,48px) 0 clamp(42px,5vw,80px)!important;}
.ptfh-home > .ptfh-section-categories > .ptfh-shell {
 box-sizing:border-box!important;
 width:calc(100% - 2 * clamp(30px,9.375vw,180px))!important;max-width:none!important;
 margin:0 auto!important;padding:clamp(18px,2vw,32px)!important;
 background:#fff!important;border:1px solid rgba(8,48,105,.07)!important;
 border-radius:18px!important;box-shadow:0 9px 28px rgba(10,40,88,.055)!important;
}
.ptfh-home .ptfh-categories-head {gap:12px;margin-bottom:clamp(16px,1.8vw,27px);}
.ptfh-home .ptfh-categories-head::before{width:7px;height:clamp(23px,2vw,34px);flex-basis:7px;background:#ff7900;transform:skew(-16deg);}
.ptfh-home .ptfh-categories-head h2{font-size:clamp(22px,2.1vw,35px);color:#0b326d;letter-spacing:-.025em;}
.ptfh-home .ptfh-category-all-wrap{margin-top:clamp(22px,2.2vw,34px);}
.ptfh-home .ptfh-category-all,
.ptfh-home .ptfh-category-all[aria-expanded="true"]{
 min-height:44px;padding:12px 23px;gap:13px;min-width:unset;
 border:1px solid #ff9b27;border-radius:999px;
 background:linear-gradient(135deg,#ff9116,#f66b00);
 color:#fff!important;font-size:13px;font-weight:800;
 box-shadow:0 5px 13px rgba(239,105,0,.18);
}
.ptfh-home .ptfh-category-all:hover,
.ptfh-home .ptfh-category-all[aria-expanded="true"]:hover{
 background:linear-gradient(135deg,#ff9f25,#e96500);
 border-color:#ff9b27;color:#fff!important;transform:translateY(-2px);
 box-shadow:0 7px 17px rgba(239,105,0,.26);
}
.ptfh-home .ptfh-category-chevron,
.ptfh-home .ptfh-category-all[aria-expanded="true"] .ptfh-category-chevron{
 background:transparent;color:#fff;border-radius:0;width:auto;height:auto;
 font-size:17px;
}
@media(max-width:1199px){
 .ptfh-home > .ptfh-section-categories > .ptfh-shell{width:calc(100% - 60px)!important;}
}
@media(max-width:767px){
 .ptfh-home > .ptfh-section-categories > .ptfh-shell{width:calc(100% - 32px)!important;padding:16px 12px 23px!important;border-radius:13px!important;}
 .ptfh-home .ptfh-categories-head h2{font-size:clamp(19px,5.8vw,25px);}
 .ptfh-home .ptfh-categories-head::before{width:6px;height:26px;flex-basis:6px;}
 .ptfh-home .ptfh-category-all{min-height:41px;padding:10px 18px;}
}

/* v1.9.3: quiet category hover + consistent compact orange pill CTA */
.ptfh-home .ptfh-category-card:nth-child(n):hover,
.ptfh-home .ptfh-category-card:nth-child(n):focus-visible {
  background:transparent !important;
  border-color:transparent !important;
  box-shadow:none !important;
  transform:none !important;
}
.ptfh-home .ptfh-category-card:hover .ptfh-category-image,
.ptfh-home .ptfh-category-card:focus-visible .ptfh-category-image {
  border-color:#e7edf4 !important;
  box-shadow:0 4px 12px rgba(17,45,89,.05) !important;
  transform:none !important;
}
.ptfh-home .ptfh-category-card:hover .ptfh-category-title {color:#142f5e !important;}
.ptfh-home .ptfh-category-all,
.ptfh-home .ptfh-category-all[aria-expanded="true"] {
  min-width:134px !important;
  min-height:44px !important;
  padding:10px 22px !important;
  gap:13px !important;
  border:0 !important;
  border-radius:100px !important;
  background:linear-gradient(110deg,#ff971b,#ff7900) !important;
  box-shadow:0 5px 13px rgba(255,125,0,.18) !important;
  color:#fff !important;
  font-size:13px !important;
  font-weight:700 !important;
  transform:none;
}
.ptfh-home .ptfh-category-all:hover,
.ptfh-home .ptfh-category-all[aria-expanded="true"]:hover {
  background:linear-gradient(110deg,#ff9f24,#f46f00) !important;
  box-shadow:0 7px 17px rgba(255,125,0,.26) !important;
  transform:translateY(-2px) !important;
}
.ptfh-home .ptfh-category-chevron,
.ptfh-home .ptfh-category-all[aria-expanded="true"] .ptfh-category-chevron {
  background:transparent !important;
  color:#fff !important;
  font-size:15px !important;
  width:auto !important;
  height:auto !important;
}

/* v1.9.4: identical orange CTA treatment; no orange outline or text hover on category cards. */
.ptfh-home .ptfh-section-categories .ptfh-category-card:nth-child(n),
.ptfh-home .ptfh-section-categories .ptfh-category-card:nth-child(n):hover,
.ptfh-home .ptfh-section-categories .ptfh-category-card:nth-child(n):focus-visible {
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
  transform:none!important;
}
.ptfh-home .ptfh-section-categories .ptfh-category-card:nth-child(n) .ptfh-category-image,
.ptfh-home .ptfh-section-categories .ptfh-category-card:nth-child(n):hover .ptfh-category-image,
.ptfh-home .ptfh-section-categories .ptfh-category-card:nth-child(n):focus-visible .ptfh-category-image {
  border:2px solid #e7edf4!important;
  box-shadow:0 4px 12px rgba(17,45,89,.05)!important;
  transform:none!important;
  background:linear-gradient(145deg,#f6f8fb,#e8edf5)!important;
}
.ptfh-home .ptfh-section-categories .ptfh-category-card:nth-child(n) .ptfh-category-title,
.ptfh-home .ptfh-section-categories .ptfh-category-card:nth-child(n):hover .ptfh-category-title,
.ptfh-home .ptfh-section-categories .ptfh-category-card:nth-child(n):focus-visible .ptfh-category-title {
  color:#142f5e!important;
  text-decoration:none!important;
}
.ptfh-home .ptfh-section-categories .ptfh-category-all,
.ptfh-home .ptfh-section-categories .ptfh-category-all[aria-expanded="true"] {
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:196px!important;
  min-height:46px!important;
  padding:12px 24px!important;
  gap:16px!important;
  border:0!important;
  border-radius:999px!important;
  background:linear-gradient(105deg,#ff9315,#ff7800)!important;
  color:#fff!important;
  font-size:13px!important;
  font-weight:750!important;
  line-height:1.2!important;
  box-shadow:0 6px 15px rgba(241,111,1,.20)!important;
  text-transform:none!important;
}
.ptfh-home .ptfh-section-categories .ptfh-category-all:hover,
.ptfh-home .ptfh-section-categories .ptfh-category-all[aria-expanded="true"]:hover {
  background:linear-gradient(105deg,#ff9b1c,#f87400)!important;
  color:#fff!important;
  box-shadow:0 8px 18px rgba(241,111,1,.26)!important;
  transform:translateY(-2px)!important;
}
.ptfh-home .ptfh-section-categories .ptfh-category-chevron,
.ptfh-home .ptfh-section-categories .ptfh-category-all[aria-expanded="true"] .ptfh-category-chevron {
  color:#fff!important;
  background:transparent!important;
  font-size:19px!important;
  font-weight:400!important;
  width:auto!important;
  height:auto!important;
  line-height:1!important;
  transform:none!important;
}
@media(max-width:767px){
  .ptfh-home .ptfh-section-categories .ptfh-category-all {
    min-width:172px!important;
    min-height:43px!important;
    padding:10px 19px!important;
  }
}

/* v1.9.5 — hover only the round image border and category title. */
.ptfh-home .ptfh-section-categories .ptfh-category-card:nth-child(n):is(:hover,:focus-visible) {
  background:transparent!important; border-color:transparent!important; box-shadow:none!important;
}
.ptfh-home .ptfh-section-categories .ptfh-category-card:nth-child(n):is(:hover,:focus-visible) .ptfh-category-image {
  border-color:#ff8200!important;
  box-shadow:0 4px 12px rgba(17,45,89,.05)!important;
  transform:none!important;
}
.ptfh-home .ptfh-section-categories .ptfh-category-card:nth-child(n):is(:hover,:focus-visible) .ptfh-category-title {
  color:#f36b10!important;
}

/* v1.9.6: 20px between category panel and the following homepage section. */
.ptfh-home > .ptfh-section-categories {
  padding-bottom:20px!important;
  margin-bottom:0!important;
}
.ptfh-home > .ptfh-section-categories + .ptfh-section {
  padding-top:0!important;
  margin-top:0!important;
}
