/* Product groups — compact WooCommerce grid */
.ptfh-section-product_groups{background:#f7f7f7;padding:42px 0 60px}
.ptfh-product-groups{display:grid;gap:36px}
.ptfh-pg-block{background:#fff;padding:22px 24px 28px;border-radius:14px}
.ptfh-pg-block h2{font-size:clamp(21px,2.3vw,30px);font-weight:800;color:#181818;margin:0 0 18px}
.ptfh-pg-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.ptfh-pg-card{border:1px solid #ededed;border-radius:9px;background:#fff;overflow:hidden;min-width:0;box-shadow:0 2px 9px #0000000b;transition:transform .25s,box-shadow .25s}
.ptfh-pg-card:hover{transform:translateY(-3px);box-shadow:0 8px 25px #00000015}
.ptfh-pg-image{display:block;position:relative;aspect-ratio:1/1;background:#fafafa;padding:12px;overflow:hidden}
.ptfh-pg-image img{display:block;width:100%;height:100%;object-fit:contain;transition:transform .35s}
.ptfh-pg-card:hover img{transform:scale(1.035)}
.ptfh-pg-sale{position:absolute;z-index:2;top:8px;left:8px;background:#e52b32;color:#fff;font-size:11px;font-weight:800;border-radius:3px;padding:4px 7px}
.ptfh-pg-details{padding:12px 12px 16px;display:flex;flex-direction:column;gap:9px}
.ptfh-pg-name{color:#222!important;font-size:14px;line-height:1.45;font-weight:650;min-height:42px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ptfh-pg-prices{color:#ea202c;font-size:16px;font-weight:800;min-height:26px}
.ptfh-pg-prices ins{color:#ea202c;text-decoration:none;background:none}
.ptfh-pg-prices del{color:#888;font-size:12px;font-weight:400;margin-left:7px}
.ptfh-pg-rating{color:#ffb400;letter-spacing:1px;font-size:13px}.ptfh-pg-rating small{color:#777;letter-spacing:0}
.ptfh-pg-more{text-align:center;margin-top:24px}.ptfh-pg-more a{display:inline-flex;gap:10px;align-items:center;justify-content:center;padding:11px 23px;border-radius:99px;background:#c92629;color:#fff!important;font-size:13px;font-weight:750;transition:background .2s}.ptfh-pg-more a:hover{background:#a51c23}
@media(max-width:1100px){.ptfh-pg-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}}
@media(max-width:767px){.ptfh-section-product_groups{padding:26px 0 38px}.ptfh-pg-block{padding:16px 11px 22px;border-radius:10px}.ptfh-pg-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ptfh-pg-image{padding:8px}.ptfh-pg-details{padding:9px 8px 12px}.ptfh-pg-name{font-size:12px;min-height:36px}.ptfh-pg-prices{font-size:13px}.ptfh-pg-prices del{font-size:10px;display:block;margin-left:0}.ptfh-pg-rating{font-size:11px}.ptfh-pg-block h2{font-size:21px}}

/* Banner displayed above each product group heading. */
.ptfh-pg-banner{display:block;width:100%;margin:0 0 20px;border-radius:12px;overflow:hidden;}
.ptfh-pg-banner-image{display:block;width:100%;height:auto;max-width:100%;object-fit:contain;}
@media(max-width:767px){.ptfh-pg-banner{margin-bottom:14px;border-radius:8px;}}

/* v1.6.2 — Huy Hung Sport product category sections; navy/orange styling.
   Scope everything to the product-groups section, never other WooCommerce grids. */
.ptfh-home .ptfh-section-product_groups{
  background:#fffaf5;
  padding-top:clamp(22px,3vw,48px);
  padding-bottom:clamp(42px,5vw,80px);
}
.ptfh-home .ptfh-section-product_groups .ptfh-product-groups{gap:clamp(22px,3vw,42px)}
.ptfh-home .ptfh-section-product_groups .ptfh-pg-block{
  background:#fff;
  padding:clamp(18px,2vw,32px);
  border:1px solid rgba(8,48,105,.07);
  border-radius:18px;
  box-shadow:0 9px 28px rgba(10,40,88,.055);
}
.ptfh-home .ptfh-section-product_groups .ptfh-pg-block h2{
  display:flex;align-items:center;gap:12px;
  font-size:clamp(22px,2.1vw,35px);
  color:#0b326d;font-weight:900;font-style:italic;
  letter-spacing:-.025em;line-height:1.22;
  margin:0 0 clamp(16px,1.8vw,27px);
}
.ptfh-home .ptfh-section-product_groups .ptfh-pg-block h2::before{
  content:"";display:block;flex:none;
  width:7px;height:clamp(23px,2vw,34px);
  border-radius:2px;background:#ff7900;
  transform:skew(-16deg);
}
.ptfh-home .ptfh-section-product_groups .ptfh-pg-grid{gap:clamp(10px,1.15vw,20px)}
.ptfh-home .ptfh-section-product_groups .ptfh-pg-card{
  border:1px solid #e6eaf0;border-radius:13px;
  box-shadow:0 3px 12px rgba(13,42,77,.07);
  transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease;
}
.ptfh-home .ptfh-section-product_groups .ptfh-pg-card:hover{
  transform:translateY(-3px);border-color:#ffc58a;
  box-shadow:0 11px 26px rgba(13,42,77,.11);
}
.ptfh-home .ptfh-section-product_groups .ptfh-pg-image{background:#fff}
.ptfh-home .ptfh-section-product_groups .ptfh-pg-sale{
  top:9px;left:9px;
  background:linear-gradient(135deg,#ff8f17,#f46700);
  color:#fff;padding:6px 9px;
  border-radius:6px;font-size:12px;font-weight:850;
  box-shadow:0 2px 7px rgba(239,104,0,.17);
}
.ptfh-home .ptfh-section-product_groups .ptfh-pg-details{gap:10px}
.ptfh-home .ptfh-section-product_groups .ptfh-pg-name{
  color:#162b49!important;font-weight:750;
}
.ptfh-home .ptfh-section-product_groups .ptfh-pg-prices,
.ptfh-home .ptfh-section-product_groups .ptfh-pg-prices ins,
.ptfh-home .ptfh-section-product_groups .ptfh-pg-prices ins .woocommerce-Price-amount,
.ptfh-home .ptfh-section-product_groups .ptfh-pg-prices > .woocommerce-Price-amount,
.ptfh-home .ptfh-section-product_groups .ptfh-pg-prices > .amount,
.ptfh-home .ptfh-section-product_groups .ptfh-pg-prices > .price{
  color:#f56b00!important;font-weight:850;
}
.ptfh-home .ptfh-section-product_groups .ptfh-pg-prices ins{text-decoration:none;background:none}
.ptfh-home .ptfh-section-product_groups .ptfh-pg-prices del,
.ptfh-home .ptfh-section-product_groups .ptfh-pg-prices del .woocommerce-Price-amount{
  color:#8a9099!important;font-weight:450;opacity:1;
}
.ptfh-home .ptfh-section-product_groups .ptfh-pg-more{margin-top:clamp(22px,2.2vw,34px)}
.ptfh-home .ptfh-section-product_groups .ptfh-pg-more a{
  display:inline-flex;align-items:center;justify-content:center;gap:13px;
  min-height:44px;padding:12px 23px;
  background:linear-gradient(135deg,#ff9116,#f66b00);
  border:1px solid #ff9b27;border-radius:999px;
  color:#fff!important;font-weight:800;
  box-shadow:0 5px 13px rgba(239,105,0,.18);
  transition:transform .22s ease,box-shadow .22s ease,background .22s ease;
}
.ptfh-home .ptfh-section-product_groups .ptfh-pg-more a span{
  display:inline-flex;align-items:center;justify-content:center;
  color:#fff;font-size:17px;line-height:1;
}
.ptfh-home .ptfh-section-product_groups .ptfh-pg-more a:hover{
  background:linear-gradient(135deg,#ff9f25,#e96500);
  box-shadow:0 7px 17px rgba(239,105,0,.26);transform:translateY(-2px);
}
@media(max-width:767px){
  .ptfh-home .ptfh-section-product_groups .ptfh-pg-block{padding:16px 12px 23px;border-radius:13px}
  .ptfh-home .ptfh-section-product_groups .ptfh-pg-block h2{font-size:clamp(19px,5.8vw,25px);gap:9px}
  .ptfh-home .ptfh-section-product_groups .ptfh-pg-block h2::before{width:6px;height:26px}
  .ptfh-home .ptfh-section-product_groups .ptfh-pg-card{border-radius:10px}
  .ptfh-home .ptfh-section-product_groups .ptfh-pg-sale{font-size:10px;padding:5px 7px;top:6px;left:6px}
  .ptfh-home .ptfh-section-product_groups .ptfh-pg-prices,
  .ptfh-home .ptfh-section-product_groups .ptfh-pg-prices ins{font-size:13px}
  .ptfh-home .ptfh-section-product_groups .ptfh-pg-more a{min-height:41px;padding:10px 18px}
}
@media(prefers-reduced-motion:reduce){
  .ptfh-home .ptfh-section-product_groups .ptfh-pg-card,
  .ptfh-home .ptfh-section-product_groups .ptfh-pg-more a{transition:none!important}
}

/* v1.6.3 — synchronize product typography with Flash Sale. */
.ptfh-home .ptfh-section-product_groups .ptfh-pg-name {
  font-size:clamp(12px,1vw,17px);
  line-height:1.28;
  font-weight:850;
}
.ptfh-home .ptfh-section-product_groups .ptfh-pg-prices,
.ptfh-home .ptfh-section-product_groups .ptfh-pg-prices ins,
.ptfh-home .ptfh-section-product_groups .ptfh-pg-prices > .woocommerce-Price-amount,
.ptfh-home .ptfh-section-product_groups .ptfh-pg-prices > .amount,
.ptfh-home .ptfh-section-product_groups .ptfh-pg-prices ins .woocommerce-Price-amount {
  font-size:clamp(14px,1.17vw,21px);
  line-height:1.2;
}
.ptfh-home .ptfh-section-product_groups .ptfh-pg-prices del,
.ptfh-home .ptfh-section-product_groups .ptfh-pg-prices del .woocommerce-Price-amount {
  font-size:clamp(10px,.83vw,14px);
  line-height:1.2;
}
@media(max-width:767px){
  .ptfh-home .ptfh-section-product_groups .ptfh-pg-name{font-size:12px;line-height:1.28}
  .ptfh-home .ptfh-section-product_groups .ptfh-pg-prices,
  .ptfh-home .ptfh-section-product_groups .ptfh-pg-prices ins,
  .ptfh-home .ptfh-section-product_groups .ptfh-pg-prices ins .woocommerce-Price-amount,
  .ptfh-home .ptfh-section-product_groups .ptfh-pg-prices > .woocommerce-Price-amount,
  .ptfh-home .ptfh-section-product_groups .ptfh-pg-prices > .amount {font-size:clamp(12px,3.5vw,16px)}
  .ptfh-home .ptfh-section-product_groups .ptfh-pg-prices del,
  .ptfh-home .ptfh-section-product_groups .ptfh-pg-prices del .woocommerce-Price-amount {font-size:10px}
}

/* v1.6.4: match Flash Sale section spacing; keep internal group-card padding. */
.ptfh-home .ptfh-section-product_groups { padding-top:0 !important; }

/* v1.8.4 — Device-specific visible product count per group. */
@media (min-width:1200px){
 .ptfh-home .ptfh-section-product_groups .ptfh-pg-card.ptfh-pg-hide-pc{display:none!important;}
}
@media (min-width:768px) and (max-width:1199px){
 .ptfh-home .ptfh-section-product_groups .ptfh-pg-card.ptfh-pg-hide-tablet{display:none!important;}
}
@media (max-width:767px){
 .ptfh-home .ptfh-section-product_groups .ptfh-pg-card.ptfh-pg-hide-mobile{display:none!important;}
}

/* v1.8.5: mobile category product names occupy up to 3 complete lines. */
@media (max-width:767px) {
 .ptfh-home .ptfh-section-product_groups .ptfh-pg-details{height:auto;min-height:0;}
 .ptfh-home .ptfh-section-product_groups .ptfh-pg-name{
  font-size:12px;line-height:1.35;min-height:4.05em;max-height:none;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;
  overflow:hidden;overflow-wrap:anywhere;flex-shrink:0;
 }
 .ptfh-home .ptfh-section-product_groups .ptfh-pg-prices{margin-top:auto;flex-shrink:0;}
}
