/* v2.0.0 — Screenshot-inspired single-row category carousel with square images. */
.ptfh-home .ptfh-section-categories .ptfh-category-slider {
  position:relative; display:flex; align-items:center; width:100%; max-width:100%; min-width:0; gap:7px;
}
.ptfh-home .ptfh-section-categories .ptfh-category-viewport {
  flex:1 1 auto; min-width:0; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory;
  scrollbar-width:none; scroll-behavior:smooth; overscroll-behavior-x:contain; padding:4px 2px 12px;
}
.ptfh-home .ptfh-section-categories .ptfh-category-viewport::-webkit-scrollbar {display:none;}
.ptfh-home .ptfh-section-categories .ptfh-category-mosaic {
  --ptfh-cat-count:10; --ptfh-cat-gap:12px;
  display:flex!important; flex-wrap:nowrap!important; align-items:stretch!important;
  grid-template-columns:none!important; grid-template-rows:none!important;
  gap:var(--ptfh-cat-gap)!important; width:max-content!important; max-width:none!important;
}
.ptfh-home .ptfh-section-categories .ptfh-category-mosaic .ptfh-category-card:nth-child(n) {
  box-sizing:border-box!important; flex:0 0 calc((var(--ptfh-cat-viewport-width) - (var(--ptfh-cat-count) - 1)*var(--ptfh-cat-gap))/var(--ptfh-cat-count))!important;
  width:calc((var(--ptfh-cat-viewport-width) - (var(--ptfh-cat-count) - 1)*var(--ptfh-cat-gap))/var(--ptfh-cat-count))!important;
  max-width:none!important; min-height:0!important; height:auto!important;
  display:flex!important; flex-direction:column!important; justify-content:flex-start!important; align-items:center!important;
  gap:11px!important; margin:0!important; padding:4px 0 2px!important;
  scroll-snap-align:start; background:transparent!important; border:0!important;
  border-radius:0!important; box-shadow:none!important; transform:none!important;
}
.ptfh-home .ptfh-section-categories .ptfh-category-mosaic .ptfh-category-image,
.ptfh-home .ptfh-section-categories .ptfh-category-mosaic .ptfh-category-card:nth-child(n) .ptfh-category-image {
  box-sizing:border-box!important; display:flex!important; align-items:center!important; justify-content:center!important;
  width:min(100%,178px)!important; height:auto!important; aspect-ratio:1/1!important;
  max-width:100%!important; flex:none!important; padding:9px!important;
  border-radius:15px!important; border:2px solid #e7edf4!important;
  background:#fff!important; box-shadow:0 3px 10px rgba(17,45,89,.055)!important;
  overflow:hidden!important; transform:none!important; transition:border-color .2s,box-shadow .2s!important;
}
.ptfh-home .ptfh-section-categories .ptfh-category-mosaic .ptfh-category-image img {
  width:100%!important; height:100%!important; max-width:100%!important; max-height:100%!important;
  display:block!important; object-fit:contain!important; border-radius:0!important;
}
.ptfh-home .ptfh-section-categories .ptfh-category-mosaic .ptfh-category-placeholder {
  width:100%!important; height:100%!important; border-radius:10px!important; background:#f1f4f8!important;
}
.ptfh-home .ptfh-section-categories .ptfh-category-mosaic .ptfh-category-title,
.ptfh-home .ptfh-section-categories .ptfh-category-mosaic .ptfh-category-card:nth-child(n) .ptfh-category-title {
  width:100%!important; max-width:100%!important; min-height:40px!important;
  color:#142f5e!important; font-size:14px!important; line-height:1.4!important;
  font-weight:650!important; text-align:center!important; margin:0!important;
}
.ptfh-home .ptfh-section-categories .ptfh-category-mosaic .ptfh-category-card:nth-child(n):hover .ptfh-category-image,
.ptfh-home .ptfh-section-categories .ptfh-category-mosaic .ptfh-category-card:nth-child(n):focus-visible .ptfh-category-image {
  border-color:#ff8200!important; box-shadow:0 4px 12px rgba(17,45,89,.065)!important;
}
.ptfh-home .ptfh-section-categories .ptfh-category-mosaic .ptfh-category-card:nth-child(n):hover .ptfh-category-title,
.ptfh-home .ptfh-section-categories .ptfh-category-mosaic .ptfh-category-card:nth-child(n):focus-visible .ptfh-category-title {color:#f36b10!important;}
.ptfh-home .ptfh-section-categories .ptfh-category-all-wrap {display:none!important;}
@media(max-width:1199px){.ptfh-home .ptfh-section-categories .ptfh-category-mosaic{--ptfh-cat-count:8;--ptfh-cat-gap:10px;}}
@media(max-width:767px){
 .ptfh-home .ptfh-section-categories .ptfh-category-mosaic{--ptfh-cat-count:3;--ptfh-cat-gap:8px;}
 
 .ptfh-home .ptfh-section-categories .ptfh-category-mosaic .ptfh-category-title{font-size:11px!important;line-height:1.35!important;overflow-wrap:anywhere;}
 .ptfh-home .ptfh-section-categories .ptfh-category-mosaic .ptfh-category-image{padding:4px!important;border-radius:10px!important;}
}
@media(prefers-reduced-motion:reduce){.ptfh-home .ptfh-section-categories .ptfh-category-viewport{scroll-behavior:auto;}}

/* v2.0.1: category navigation matches homepage hero banner arrows. */
.ptfh-home .ptfh-section-categories .ptfh-category-nav {
  appearance:none!important;
  display:grid!important;
  place-items:center!important;
  box-sizing:border-box!important;
  flex:0 0 50px!important;
  width:50px!important;
  height:50px!important;
  min-width:50px!important;
  min-height:50px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.7)!important;
  border-radius:50%!important;
  background:linear-gradient(140deg,#ffad28,#ff6900)!important;
  color:#fff!important;
  box-shadow:0 7px 20px rgba(0,28,76,.27),inset 0 1px 0 rgba(255,255,255,.3)!important;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  cursor:pointer;
  opacity:1;
  transform:scale(1);
  transition:transform .25s cubic-bezier(.2,.8,.2,1),background .25s ease,box-shadow .25s ease,opacity .25s ease!important;
}
.ptfh-home .ptfh-section-categories .ptfh-category-nav svg {
  width:21px;
  height:21px;
  stroke:#fff;
  stroke-width:2.6;
  fill:none;
  flex:none;
}
.ptfh-home .ptfh-section-categories .ptfh-category-nav:hover:not(:disabled),
.ptfh-home .ptfh-section-categories .ptfh-category-nav:focus-visible:not(:disabled) {
  background:linear-gradient(140deg,#ffb743,#f97316)!important;
  color:#fff!important;
  box-shadow:0 10px 25px rgba(235,101,0,.33),0 0 0 4px rgba(255,137,16,.19)!important;
  transform:scale(1.09);
}
.ptfh-home .ptfh-section-categories .ptfh-category-nav:focus-visible {outline:2px solid #133c78;outline-offset:4px;}
.ptfh-home .ptfh-section-categories .ptfh-category-nav:disabled {opacity:.38!important;cursor:default;transform:none;}
@media(max-width:767px) {
  .ptfh-home .ptfh-section-categories .ptfh-category-nav {
    flex:0 0 38px!important;width:38px!important;height:38px!important;
    min-width:38px!important;min-height:38px!important;
  }
  .ptfh-home .ptfh-section-categories .ptfh-category-nav svg {width:17px;height:17px;}
}
@media(prefers-reduced-motion:reduce) {
  .ptfh-home .ptfh-section-categories .ptfh-category-nav {transition:none!important;}
}

/* v2.0.4: arrows vertically aligned to the square images, not the image + caption.
   Offset is measured from the actual first image by category-square-slider-v200.js. */
.ptfh-home .ptfh-section-categories .ptfh-category-slider > .ptfh-category-nav {
  align-self:flex-start!important;
  margin-top:var(--ptfh-cat-arrow-top, 40px)!important;
}

/* v2.0.11 — Smaller category names on tablet and mobile only.
   Match the existing nth-child selector specificity so the original
   14px !important rule cannot override the responsive typography. */
@media (min-width:768px) and (max-width:1199px) {
  .ptfh-home .ptfh-section-categories .ptfh-category-mosaic .ptfh-category-card:nth-child(n) .ptfh-category-title {
    font-size:12.5px!important;
    line-height:1.35!important;
  }
}
@media (max-width:767px) {
  .ptfh-home .ptfh-section-categories .ptfh-category-mosaic .ptfh-category-card:nth-child(n) .ptfh-category-title {
    font-size:10px!important;
    line-height:1.3!important;
  }
}
