/* v1.6.1 — Huy Hung Sport Flash Sale, scoped to the homepage shortcode. */
.ptfh-home .ptfh-section-flash_sale {background:#fffaf5;padding-top:0 !important;padding-bottom:clamp(30px,3vw,52px)}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-wrap {
 position:relative;isolation:isolate;overflow:hidden;
 background:linear-gradient(128deg,#002a64 0%,#053b86 45%,#064a9b 72%,#002b70 100%) !important;
 border:2px solid #e8f1ff;border-radius:29px;padding:clamp(16px,2.05vw,34px);
 color:#fff;box-shadow:0 14px 28px rgba(3,35,84,.15);
}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-wrap::before {
 content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
 background:linear-gradient(145deg,transparent 0 33%,rgba(26,139,255,.20) 33.1% 39%,transparent 39.1% 55%,rgba(14,116,225,.20) 55.1% 61%,transparent 61.1%);
}
/* v1.6.1: Single dark-orange swoosh; remove the pale-yellow layer. */
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-wrap::after {
 content:"";position:absolute;right:0;bottom:0;
 width:clamp(260px,33%,560px);height:clamp(54px,6vw,100px);z-index:0;
 background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20560%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22%23f4690a%22%20d%3D%22M10%20100%20C205%2096%20395%2078%20560%2046%20L560%20100%20Z%22%2F%3E%3C%2Fsvg%3E");
 background-position:right bottom;background-repeat:no-repeat;background-size:100% 100%;
 pointer-events:none;
}
/* Keep content and cards above the decorative bands. */
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-wrap > * {position:relative;z-index:1;}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-head {display:flex;align-items:center;justify-content:space-between;gap:16px 24px;margin:0 0 clamp(14px,1.2vw,23px)}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-logo {display:flex;align-items:center;justify-content:flex-start;gap:12px;min-height:0;padding:0}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-logo span {font-size:clamp(29px,3.3vw,61px);font-weight:950;letter-spacing:-.045em;line-height:1.04;text-transform:uppercase;color:#fff;font-style:italic;text-shadow:0 2px 5px rgba(0,12,40,.13)}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-logo .ptfh-flash-sale-word{color:#ff830c}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-logo i{position:static;display:block;font-style:normal;color:#ff7900;font-size:clamp(30px,3.2vw,56px);line-height:1;transform:none;filter:drop-shadow(0 2px 2px rgba(0,0,0,.15))}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-countdown{padding:0;gap:5px;align-items:flex-end;flex-shrink:0}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-countdown strong{color:#fff;font-size:12px;line-height:1.25;font-weight:750}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-timeboxes{gap:7px}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-timeboxes div {width:clamp(38px,3vw,51px);height:clamp(38px,3vw,51px);background:#fff;border:2px solid #ff7b00;border-radius:9px;box-shadow:0 2px 8px rgba(0,0,0,.10)}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-timeboxes span {color:#101722;font-weight:900;font-size:clamp(16px,1.35vw,24px)}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-carousel {--ptfh-flash-gap:clamp(10px,1vw,19px)}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-viewport {border-radius:17px}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-grid{align-items:stretch}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-card{
 background:#fff;border:3px solid #ff7900;border-radius:26px;overflow:hidden;color:#121c2b;
 box-shadow:0 3px 10px rgba(0,18,60,.10);height:auto;
}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-thumb{background:#fff;aspect-ratio:1.18/1;padding:clamp(8px,1vw,16px) 10px 0;overflow:hidden}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-thumb img{max-height:100%;object-fit:contain;mix-blend-mode:normal}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-discount {
 top:9px;left:9px;right:auto;
 background:linear-gradient(135deg,#ff8f17,#f46700);color:#fff;
 padding:6px 9px;border-radius:6px;font-size:12px;font-weight:850;line-height:1.2;
 box-shadow:0 2px 7px rgba(239,104,0,.17);
}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-badge {background:#ff7900;color:#fff;box-shadow:none}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-body {padding:clamp(10px,.95vw,16px);min-height:116px;gap:10px;justify-content:space-between}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-body h3{
 min-height:2.55em;margin:0;font-size:clamp(12px,1vw,17px);font-weight:850;line-height:1.28;
 color:#111923;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-body h3 a{color:#111923!important}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:11px;row-gap:5px;margin-top:auto;line-height:1.2}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices ins,
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices ins .woocommerce-Price-amount,
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices > .woocommerce-Price-amount,
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices > .price {color:#f56b00!important;font-size:clamp(14px,1.17vw,21px);font-weight:900;text-decoration:none;opacity:1}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices del,
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices del .woocommerce-Price-amount{color:#84878c!important;font-size:clamp(10px,.83vw,14px);font-weight:500;text-decoration:line-through;opacity:1}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-prev,
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-next {background:linear-gradient(135deg,#ff9e19,#f36b00);border:1px solid #ffb058;color:#fff;box-shadow:0 3px 13px rgba(0,0,0,.22)}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-prev:hover,
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-next:hover{background:#ff9709}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-dots button.is-active{background:#ff8500}
@media(max-width:1100px){
 .ptfh-home .ptfh-section-flash_sale .ptfh-flash-logo span{font-size:clamp(27px,3.3vw,45px)}
 .ptfh-home .ptfh-section-flash_sale .ptfh-flash-card{border-radius:20px;border-width:2px}
}
@media(max-width:767px){
 .ptfh-home .ptfh-section-flash_sale .ptfh-flash-wrap{padding:16px 12px 20px;border-radius:18px}
 .ptfh-home .ptfh-section-flash_sale .ptfh-flash-head{flex-direction:column;align-items:flex-start;gap:10px}
 .ptfh-home .ptfh-section-flash_sale .ptfh-flash-logo span{font-size:clamp(27px,7.7vw,39px)}
 .ptfh-home .ptfh-section-flash_sale .ptfh-flash-logo i{font-size:clamp(28px,7.7vw,39px)}
 .ptfh-home .ptfh-section-flash_sale .ptfh-flash-countdown{align-items:flex-start;flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px}
 .ptfh-home .ptfh-section-flash_sale .ptfh-flash-timeboxes div{width:37px;height:37px;border-radius:7px}
 .ptfh-home .ptfh-section-flash_sale .ptfh-flash-timeboxes span{font-size:16px}
 .ptfh-home .ptfh-section-flash_sale .ptfh-flash-carousel{--ptfh-flash-gap:9px}
 .ptfh-home .ptfh-section-flash_sale .ptfh-flash-card{border-radius:15px}
 .ptfh-home .ptfh-section-flash_sale .ptfh-flash-thumb{aspect-ratio:1/1;padding:6px 5px 0}
 .ptfh-home .ptfh-section-flash_sale .ptfh-flash-discount{top:6px;left:6px;right:auto;border-radius:6px;padding:5px 7px;font-size:10px}
 .ptfh-home .ptfh-section-flash_sale .ptfh-flash-body{padding:8px 7px 10px;min-height:108px;gap:8px}
 .ptfh-home .ptfh-section-flash_sale .ptfh-flash-body h3{font-size:12px;min-height:2.6em}
 .ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices{column-gap:7px;row-gap:4px}
 .ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices ins,
 .ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices ins .woocommerce-Price-amount,
 .ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices > .woocommerce-Price-amount{font-size:clamp(12px,3.5vw,16px)}
 .ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices del,.ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices del .woocommerce-Price-amount{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.ptfh-home .ptfh-section-flash_sale .ptfh-flash-card *{transition:none!important}}

/* v1.8.5: reserve 3 full lines on mobile without hiding product prices. */
@media (max-width:767px) {
 .ptfh-home .ptfh-section-flash_sale .ptfh-flash-body{min-height:0;height:auto;justify-content:flex-start;}
 .ptfh-home .ptfh-section-flash_sale .ptfh-flash-body h3{
  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;margin:0;flex-shrink:0;
 }
 .ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices{min-height:0;margin-top:auto;flex-shrink:0;}
}

/* v2.0.17 — Flash Sale price font size matches Product Groups only. */
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices,
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices ins,
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices ins .woocommerce-Price-amount,
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices > .woocommerce-Price-amount,
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices > .amount,
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices > .price {
  font-size: clamp(14px, 1.17vw, 21px) !important;
  line-height: 1.2;
}
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices del,
.ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices del .woocommerce-Price-amount {
  font-size: clamp(10px, .83vw, 14px) !important;
  line-height: 1.2;
}
@media (max-width: 767px) {
  .ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices,
  .ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices ins,
  .ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices ins .woocommerce-Price-amount,
  .ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices > .woocommerce-Price-amount,
  .ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices > .amount,
  .ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices > .price {
    font-size: clamp(12px, 3.5vw, 16px) !important;
  }
  .ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices del,
  .ptfh-home .ptfh-section-flash_sale .ptfh-flash-prices del .woocommerce-Price-amount {
    font-size: 10px !important;
  }
}
