<?php if (!defined('ABSPATH')) exit; ?>
<script>
// GT counter animations
document.querySelectorAll('.gt-counter[data-target]').forEach(function(el) {
  var target = parseFloat(el.dataset.target) || 0;
  var prefix = el.dataset.prefix || '';
  var suffix = el.dataset.suffix || '';
  var decimals = el.dataset.decimals ? parseInt(el.dataset.decimals) : 0;
  var duration = 1200;
  var start = 0;
  var startTime = null;
  function step(ts) {
    if (!startTime) startTime = ts;
    var progress = Math.min((ts - startTime) / duration, 1);
    var ease = 1 - Math.pow(1 - progress, 3);
    var current = start + (target - start) * ease;
    el.textContent = prefix + current.toFixed(decimals).replace(/\B(?=(\d{3})+(?!\d))/g, ',') + suffix;
    if (progress < 1) requestAnimationFrame(step);
  }
  var observer = new IntersectionObserver(function(entries) {
    if (entries[0].isIntersecting) { requestAnimationFrame(step); observer.disconnect(); }
  });
  observer.observe(el);
});
// Close modals on overlay click
document.querySelectorAll('.gt-modal-overlay').forEach(function(overlay) {
  overlay.addEventListener('click', function(e) {
    if (e.target === overlay) overlay.classList.remove('open');
  });
});
</script>
  <div style="margin-top:40px;padding:20px 0 4px;border-top:1px solid var(--gt-border);display:flex;align-items:center;justify-content:center;gap:8px;">
    <span style="font-size:12px;color:var(--gt-white);">Powered by</span>
    <a href="https://graphictshirts.shop" target="_blank" style="font-size:12px;font-weight:700;color:var(--gt-red);text-decoration:none;letter-spacing:0.5px;">GRAPHIC T-SHIRTS</a>
    <span style="font-size:12px;color:var(--gt-white);">— Luxury Urban Couture for the Bold</span>
  </div>
  </main>
<!-- GT BOGO Engine PRO (c) <?php echo esc_html( gmdate('Y') ); ?> GRAPHIC T-SHIRTS. Licensed, not sold. Non-transferable, domain-locked. Unauthorized copying, modification, redistribution or reverse engineering prohibited. -->
</div><!-- .gt-shell -->
