/* ============================================
   ALLPRO OFFICIAL - Custom Styles
   ============================================ */

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f1035;
}

::-webkit-scrollbar-thumb {
  background: #e11e26;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff3d44;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* ============================================
   ANIMATIONS - Keyframes
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(225, 30, 38, 0.4);
  }

  50% {
    box-shadow: 0 0 25px rgba(225, 30, 38, 0.8);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes scroll-indicator {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  75% {
    opacity: 0;
    transform: translateY(12px);
  }

  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   SCROLL REVEAL - Elements
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

.delay-6 {
  transition-delay: 0.6s;
}

/* ============================================
   HERO SECTION
   ============================================ */
/* Gradient only on left side — right side (rackets) stays visible */
.hero-gradient-left {
  background: linear-gradient(to right,
      rgba(27, 28, 81, 0.97) 0%,
      rgba(27, 28, 81, 0.92) 30%,
      rgba(27, 28, 81, 0.6) 55%,
      rgba(27, 28, 81, 0.15) 75%,
      transparent 100%);
}

@media (max-width: 1024px) {

  /* On smaller screens, slightly more overlay so text is readable */
  .hero-gradient-left {
    background: linear-gradient(to right,
        rgba(27, 28, 81, 0.97) 0%,
        rgba(27, 28, 81, 0.92) 40%,
        rgba(27, 28, 81, 0.75) 65%,
        rgba(27, 28, 81, 0.5) 100%);
  }
}

@media (max-width: 640px) {
  .hero-gradient-left {
    background: linear-gradient(to bottom,
        rgba(27, 28, 81, 0.92) 0%,
        rgba(27, 28, 81, 0.7) 50%,
        rgba(27, 28, 81, 0.5) 100%);
  }
}

.hero-title {
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-subtitle {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-cta {
  animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-badge {
  animation: fadeInUp 1s ease-out 1.2s both;
}

.scroll-down {
  animation: scroll-indicator 2s infinite;
}

/* ============================================
   GLASSMORPHISM
   ============================================ */
.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-dark {
  background: rgba(27, 28, 81, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-light {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card {
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(27, 28, 81, 0.18);
}

.product-card .product-image {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-image {
  transform: scale(1.08);
}

.product-card .btn-buy {
  transition: all 0.3s ease;
}

.product-card:hover .btn-buy {
  background-color: #e11e26;
  color: #fff;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar-scrolled {
  background: rgba(27, 28, 81, 0.97) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  background: linear-gradient(135deg, #e11e26 0%, #ff3d44 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(225, 30, 38, 0.45);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
  opacity: 0;
}

.btn-primary:hover::after {
  opacity: 1;
  animation: shimmer 1.5s ease;
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ============================================
   SECTION BACKGROUNDS
   ============================================ */
.section-dark {
  background: linear-gradient(135deg, #1b1c51 0%, #0f1035 50%, #1b1c51 100%);
}

.section-gradient {
  background: linear-gradient(135deg, #1b1c51 0%, #2a2b6e 50%, #1b1c51 100%);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-top: 0.75rem;
}

.faq-item .faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Cart sidebar */
.cart-sidebar {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.cart-sidebar.active {
  transform: translateX(0);
}

/* ============================================
   FLOATING WHATSAPP
   ============================================ */
.wa-float {
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
}

.wa-float:hover {
  animation-play-state: paused;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
  transform: scale(1.1);
}

/* ============================================
   TESTIMONIAL CARDS
   ============================================ */
.testimonial-card {
  transition: all 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(27, 28, 81, 0.12);
}

/* ============================================
   TRUST BADGES
   ============================================ */
.trust-badge {
  transition: all 0.3s ease;
}

.trust-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(27, 28, 81, 0.1);
}

/* ============================================
   CATEGORY FILTER TABS
   ============================================ */
.filter-tab {
  transition: all 0.3s ease;
}

.filter-tab.active {
  background: #e11e26;
  color: #fff;
  box-shadow: 0 4px 15px rgba(225, 30, 38, 0.35);
}

/* ============================================
   PAYMENT BADGES
   ============================================ */
.payment-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.payment-badge:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   BUNDLING CARD
   ============================================ */
.bundling-card {
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.bundling-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(225, 30, 38, 0.25);
}

/* ============================================
   QUANTITY INPUT
   ============================================ */
.qty-btn {
  transition: all 0.2s ease;
}

.qty-btn:hover {
  background: #e11e26;
  color: #fff;
}

/* ============================================
   SIZE SELECTOR
   ============================================ */
.size-option {
  transition: all 0.2s ease;
  cursor: pointer;
}

.size-option:hover,
.size-option.selected {
  background: #1b1c51;
  color: #fff;
  border-color: #1b1c51;
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */
.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 30, 38, 0.15), transparent);
  pointer-events: none;
}

.decoration-dots {
  background-image: radial-gradient(rgba(225, 30, 38, 0.2) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 640px) {
  .product-card:hover {
    transform: translateY(-4px);
  }
}

/* Loading overlay */
.page-loader {
  position: fixed;
  inset: 0;
  background: #1b1c51;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-top-color: #e11e26;
  border-radius: 50%;
  animation: spin-slow 0.8s linear infinite;
}

/* Luxury Font Class */
.font-heading {
  font-family: 'Playfair Display', serif;
}