/* ============================================================
   pt-home-v638.css — Homepage unification overrides (v6.4.38)
   Enqueued LAST on front-page only via functions.php.
   Goals: width unity, MPP/RA card cleanup, reviews infinite,
   brands continuous, WCU button visible, footer polish.
   ============================================================ */

/* ── 1. WIDTH UNIFICATION — every section matches hero container ── */
.pt-hero-container,
.pt-feature-wrap,
.pt-main-content > .container,
.pt-mpp-section,
.pt-mpp-section > .container,
.pt-ra-section > .container,
.pt-stats-section .pt-stats-inner,
.pt-features-section > .container,
.pt-reviews-section > .container,
.pt-brands-section .pt-brands-header,
.pt-brands-section .pt-brands-track-wrap {
  max-width: 1280px !important;
  width: 92% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}
@media (max-width: 1024px) {
  .pt-hero-container,
  .pt-feature-wrap,
  .pt-main-content > .container,
  .pt-mpp-section,
  .pt-mpp-section > .container,
  .pt-ra-section > .container,
  .pt-stats-section .pt-stats-inner,
  .pt-features-section > .container,
  .pt-reviews-section > .container,
  .pt-brands-section .pt-brands-header,
  .pt-brands-section .pt-brands-track-wrap {
    width: 94% !important;
  }
}
@media (max-width: 640px) {
  .pt-hero-container,
  .pt-feature-wrap,
  .pt-main-content > .container,
  .pt-mpp-section,
  .pt-mpp-section > .container,
  .pt-ra-section > .container,
  .pt-stats-section .pt-stats-inner,
  .pt-features-section > .container,
  .pt-reviews-section > .container,
  .pt-brands-section .pt-brands-header,
  .pt-brands-section .pt-brands-track-wrap {
    width: 96% !important;
  }
}

/* Remove white gap below hero/feature → main content */
.pt-hero-wrap { padding-bottom: 0 !important; margin-bottom: 0 !important; }
.pt-main-content { padding-top: 24px !important; margin-top: 0 !important; }
.pt-feature-wrap { margin-bottom: 0 !important; padding-bottom: 0 !important; }

/* Consistent vertical rhythm between sections */
.pt-mpp-section,
.pt-ra-section,
.pt-stats-section,
.pt-features-section,
.pt-reviews-section {
  padding-top: clamp(36px, 5vw, 64px) !important;
  padding-bottom: clamp(36px, 5vw, 64px) !important;
}

/* ── 2. MOST POPULAR PRODUCTS — remove search, hide rating + price ── */
.pt-mpp-search { display: none !important; }
.pt-mpp-toolbar { justify-content: flex-start !important; }
.pt-mpp-card-rating { display: none !important; }
.pt-mpp-card-price { display: none !important; }

/* MPP card title — gradient + sparkly, bigger */
.pt-mpp-card-title {
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 45%, #8b5cf6 100%) !important;
  -webkit-background-clip: text !important;
          background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em !important;
  display: block !important;
  margin-bottom: 4px !important;
  text-shadow: 0 0 24px rgba(236,72,153,.15);
  transition: filter .25s ease, transform .25s ease;
}
.pt-mpp-card:hover .pt-mpp-card-title {
  filter: brightness(1.12) drop-shadow(0 2px 8px rgba(236,72,153,.35));
}

/* MPP categories sidebar — professional bordered look */
.pt-mpp-cat-item a {
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  margin-bottom: 8px !important;
  background: linear-gradient(135deg, rgba(45,138,158,.04), rgba(167,139,250,.04)) !important;
  transition: all .25s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  font-weight: 600 !important;
}
.pt-mpp-cat-item a:hover,
.pt-mpp-cat-item.active a {
  border-color: rgba(245,158,11,.55) !important;
  background: linear-gradient(135deg, rgba(245,158,11,.10), rgba(236,72,153,.10)) !important;
  transform: translateX(2px);
  box-shadow: 0 4px 14px -6px rgba(245,158,11,.45);
}
.pt-mpp-cat-count {
  background: rgba(255,255,255,.08) !important;
  border-radius: 999px !important;
  padding: 2px 9px !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
}

/* ── 3. RECENTLY ADDED — hide price + date, prominent buttons, image fit ── */
.pt-ra-meta { display: none !important; }
.pt-ra-card { display: flex !important; flex-direction: column !important; }
.pt-ra-thumb { aspect-ratio: 4 / 3 !important; overflow: hidden !important; }
.pt-ra-thumb img,
.pt-ra-thumb a > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform .45s ease !important;
}
.pt-ra-card:hover .pt-ra-thumb img { transform: scale(1.06); }
.pt-ra-title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  background: linear-gradient(135deg, #f59e0b, #ec4899) !important;
  -webkit-background-clip: text !important;
          background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px !important;
}
.pt-ra-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  padding: 0 14px 14px !important;
  margin-top: auto !important;
}
.pt-ra-btn {
  padding: 10px 8px !important;
  border-radius: 10px !important;
  font-size: .85rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease !important;
  border: 0 !important;
  text-decoration: none !important;
}
.pt-ra-btn-view {
  background: linear-gradient(135deg, #1f2937, #374151) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.12) !important;
}
.pt-ra-btn-cart {
  background: linear-gradient(135deg, #f59e0b, #ec4899) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px -6px rgba(236,72,153,.55) !important;
}
.pt-ra-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.pt-ra-btn-cart:hover { box-shadow: 0 10px 24px -6px rgba(236,72,153,.75) !important; }

/* ── 4. BRANDS CAROUSEL — never pause, smooth continuous ── */
.pt-brands-track-wrap:hover .pt-brands-row,
.pt-brands-row:hover {
  animation-play-state: running !important;
}
.pt-brands-row { animation-duration: 35s !important; }
.pt-brands-row-2 { animation-duration: 30s !important; }

/* ── 5. REVIEWS — 4 desktop / 1 mobile, no hover pause (JS already updated) ── */
@media (max-width: 600px) {
  .pt-rv-card { flex: 0 0 100% !important; max-width: 100% !important; }
}
.pt-rv-track:hover { animation-play-state: running !important; }

/* ── 6. WHY CHOOSE US — Browse All Products button clearly visible ── */
.pt-features-cta .btn-orange {
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%) !important;
  color: #fff !important;
  border: 0 !important;
  padding: 12px 22px !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  font-size: .95rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  box-shadow: 0 10px 28px -10px rgba(245,158,11,.65) !important;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease !important;
}
.pt-features-cta .btn-orange:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 14px 32px -8px rgba(236,72,153,.7) !important;
}
.pt-features-cta .btn-outline {
  background: transparent !important;
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,.35) !important;
  padding: 12px 22px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
.pt-features-cta .btn-outline:hover {
  border-color: #f59e0b !important;
  color: #f59e0b !important;
}

/* ── 7. FOOTER — subtle 3D depth & premium ── */
.pt-footer, footer.site-footer, .site-footer {
  background: linear-gradient(180deg, #0f1825 0%, #060b14 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 -8px 32px -12px rgba(0,0,0,.5) !important;
  position: relative;
}
.pt-footer::before, footer.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,.5), rgba(236,72,153,.5), transparent);
  pointer-events: none;
}
.pt-footer a, .site-footer a { transition: color .2s ease, transform .2s ease; }
.pt-footer a:hover, .site-footer a:hover {
  color: #f59e0b !important;
  transform: translateY(-1px);
  text-shadow: 0 2px 12px rgba(245,158,11,.4);
}

/* ── 8. Belt-and-suspenders: ensure feature-wrap is 4-col on desktop, 2-col mobile ── */
@media (min-width: 1025px) {
  .pt-feature-wrap {
    grid-template-columns: repeat(4, minmax(0,1fr)) !important;
    gap: 14px !important;
  }
}

/* ── v6.4.70: Force hero + feature row width parity at every breakpoint ──
   critical.css adds padding:10px 12px to .pt-feature-wrap on ≤640px which
   makes the 4-card row narrower than the slider/license row. Override with
   higher specificity so both sections share identical edges. */
html body .pt-hero-container,
html body .pt-feature-wrap {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 1280px !important;
  width: 92% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}
@media (max-width: 1024px) {
  html body .pt-hero-container,
  html body .pt-feature-wrap { width: 94% !important; }
}
@media (max-width: 640px) {
  html body .pt-hero-container,
  html body .pt-feature-wrap { width: 92% !important; }
}
