/*
Theme Name: Astra Child
Template: astra
Version: 3.2.0
*/

/* ============================================
   SPEED PROTECTION - GLOBAL VARIABLES
   ============================================ */

:root {
  --sp-primary: #ff4d00;
  --sp-accent: #ff8800;
  --sp-dark: #1a1a1a;
  --sp-light: #f8f9fa;
  --sp-white: #ffffff;
  --sp-text: #2d3436;
  --sp-grey-bg: #e9ecef;
  --sp-radius: 12px;
  --sp-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --sp-shadow-hover: 0 20px 50px rgba(255, 77, 0, 0.15);
}

/* ============================================
   🛠️ FIX FOR ELEMENTOR EDITOR & ANIMATION
   ============================================ */
/* Initial State (Hidden & Moved Down) */
body:not(.elementor-editor-active) .sp-fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Visible State */
body:not(.elementor-editor-active) .sp-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Force Visibility in Editor */
.elementor-editor-active .sp-fade-in,
.elementor-editor-preview .sp-fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ============================================
   🔥 GRADIENT TITLE
   ============================================ */
.sp-title-gradient,
.sp-title-gradient .elementor-heading-title {
  background: linear-gradient(
    135deg,
    var(--sp-primary) 0%,
    var(--sp-accent) 50%,
    #ffd93d 100%
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: gradientShift 3s ease infinite;
  background-size: 200% 200%;
}
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ============================================
   🎨 CATEGORY CARDS (GIANT, ROTATION & LIFT)
   ============================================ */
.sp-neon-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
  gap: 25px !important;
  background: #e9ecef !important;
  border-radius: 12px !important;
  padding: 60px 30px !important; /* Huge Padding */
  position: relative;
  overflow: hidden !important;
  /* IMPORTANT: Transition for Transform (Lift) and Background */
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s ease, background-color 0.3s ease !important;
  min-height: 550px; /* EXTRA TALL */
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
  border-top: 5px solid transparent !important;
}

/* Card Specific Colors */
.sp-neon-card.sp-fire {
  border-top-color: #ff4d00 !important;
}
.sp-neon-card.sp-protect {
  border-top-color: #0066ff !important;
}
.sp-neon-card.sp-warning {
  border-top-color: #ffd700 !important;
}

/* Watermark (MASSIVE) */
.sp-neon-card::after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  bottom: -40px;
  right: -40px;
  font-size: 260px; /* MASSIVE */
  opacity: 0.12;
  transform: rotate(-10deg);
  z-index: 0;
  transition: all 0.6s ease;
  pointer-events: none;
  color: #000000;
}
.sp-neon-card.sp-fire::after {
  content: "\f134";
  color: #ff4d00;
}
.sp-neon-card.sp-protect::after {
  content: "\f3ed";
  color: #0066ff;
}
.sp-neon-card.sp-warning::after {
  content: "\f071";
  color: #e6a700;
}

/* Dot Accent */
.sp-neon-card::before {
  content: "";
  position: absolute;
  top: 25px;
  right: 25px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.6;
}
.sp-neon-card.sp-fire::before {
  background: #ff4d00;
}
.sp-neon-card.sp-protect::before {
  background: #0066ff;
}
.sp-neon-card.sp-warning::before {
  background: #e6a700;
}

/* 🚀 HOVER EFFECT: LIFT + ROTATION */
body .sp-neon-card:hover {
  transform: translateY(-15px) !important;
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.15) !important;
  background: #ffffff !important;
}

/* Icon Rotation & Scale on Hover (Generic) */
body .sp-neon-card:hover .elementor-icon-wrapper {
  transform: rotate(360deg) scale(1.1) !important;
}

/* 🎨 SPECIFIC HOVER BORDER COLORS */
body .sp-neon-card.sp-fire:hover .elementor-icon-wrapper {
  border-color: #ff4d00 !important; /* Orange for Fire */
}

body .sp-neon-card.sp-protect:hover .elementor-icon-wrapper {
  border-color: #0066ff !important; /* Blue for Protect */
}

body .sp-neon-card.sp-warning:hover .elementor-icon-wrapper {
  border-color: #ffd700 !important; /* Yellow/Gold for Warning */
}

/* Watermark Movement */
.sp-neon-card:hover::after {
  transform: rotate(0deg) scale(1.1);
  opacity: 0.15;
  right: -20px;
}

/* Icon Wrapper - GIANT */
.sp-neon-card .elementor-icon-wrapper {
  width: 130px; /* EXTRA BIG */
  height: 130px; /* EXTRA BIG */
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 35px auto !important;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 1;
  background: #ffffff !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 4px solid rgba(255, 255, 255, 0.8); /* Default White/Transparent Border */
}
.sp-neon-card.sp-fire .elementor-icon i {
  color: #ff4d00 !important;
  font-size: 56px !important;
}
.sp-neon-card.sp-protect .elementor-icon i {
  color: #0066ff !important;
  font-size: 56px !important;
}
.sp-neon-card.sp-warning .elementor-icon i {
  color: #e6a700 !important;
  font-size: 56px !important;
}

/* Typography */
.sp-neon-card h2,
.sp-neon-card h3,
.sp-neon-card .elementor-heading-title {
  color: #1a1a1a !important;
  font-size: 1.6rem !important; /* Bigger Title */
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin-bottom: 20px !important;
  line-height: 1.2 !important;
  position: relative;
  z-index: 1;
}

.sp-neon-card p,
.sp-neon-card .elementor-text-editor {
  color: #555 !important;
  font-size: 1.05rem !important;
  line-height: 1.7 !important;
  margin-bottom: 35px !important;
  max-width: 85%;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

/* Button */
.sp-neon-card .sp-explore-btn {
  width: 100%;
  margin-top: auto;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.sp-neon-card .sp-explore-btn .elementor-button {
  background: transparent !important;
  border: 2px solid #d0d0d0 !important;
  padding: 15px 40px !important; /* Big Button */
  color: #1a1a1a !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  border-radius: 50px !important;
  width: auto !important;
  display: inline-flex !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 1px;
}
.sp-neon-card.sp-fire .sp-explore-btn .elementor-button:hover {
  background: #ff4d00 !important;
  border-color: #ff4d00 !important;
  color: #ffffff !important;
}
.sp-neon-card.sp-protect .sp-explore-btn .elementor-button:hover {
  background: #0066ff !important;
  border-color: #0066ff !important;
  color: #ffffff !important;
}
.sp-neon-card.sp-warning .sp-explore-btn .elementor-button:hover {
  background: #ffd700 !important;
  border-color: #ffd700 !important;
  color: #1a1a1a !important;
}

/* ============================================
   🛍️ MODERN PRODUCT GRID DESIGN
   Targets both "New Products" & "Trending"
   ============================================ */

/* Product Card Container */
.woocommerce ul.products li.product {
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 0 !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.3s ease !important;
  overflow: hidden !important;
  border: 1px solid #f0f0f0 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Hover Effect */
.woocommerce ul.products li.product:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(255, 77, 0, 0.2) !important;
}

/* Product Image Wrapper */
.woocommerce ul.products li.product a img {
  border-radius: 16px 16px 0 0 !important;
  margin: 0 !important;
  width: 100% !important;
  transition: transform 0.5s ease-in-out !important;
  background: #f9f9f9;
  padding: 20px !important;
  object-fit: contain !important;
  height: 250px !important;
}

/* Image Zoom on Hover */
.woocommerce ul.products li.product:hover a img {
  transform: scale(1.05) !important;
}

/* Content Area */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 15px 20px 5px 20px !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  text-align: center !important;
}

/* Price */
.woocommerce ul.products li.product .price {
  padding: 0 20px 15px 20px !important;
  color: var(--sp-primary) !important;
  font-weight: 800 !important;
  font-size: 1.1rem !important;
  text-align: center !important;
  display: block !important;
}

.woocommerce ul.products li.product .price del {
  color: #999 !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  opacity: 0.7 !important;
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
  margin: 0 20px 20px 20px !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: var(--sp-primary) !important;
  border: 2px solid var(--sp-primary) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  font-size: 0.85rem !important;
  padding: 10px 0 !important;
  text-align: center !important;
  transition: all 0.3s ease !important;
  display: block !important;
  width: calc(100% - 40px) !important;
}

/* Button Hover */
.woocommerce ul.products li.product .button:hover {
  background: var(--sp-primary) !important;
  color: #fff !important;
}

/* Badge (Sale) */
.woocommerce span.onsale {
  background: var(--sp-primary) !important;
  color: #fff !important;
  border-radius: 4px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  top: 15px !important;
  left: 15px !important;
  right: auto !important;
  min-height: auto !important;
  line-height: normal !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
}

/* ============================================
   �️ HERO IMAGE ENHANCEMENT (Restored)
   ============================================ */
.sp-hero-image {
  overflow: hidden !important;
  border-radius: 25px !important;
  transition: all 0.5s ease !important;
}
.sp-hero-image:hover {
  opacity: 1 !important;
  transform: scale(1.03) rotate(1deg) !important;
  box-shadow: 0 40px 80px rgba(255, 77, 0, 0.2) !important;
}
.sp-hero-image img {
  display: block !important;
  border-radius: 25px !important;
}

/* ============================================
   �📦 SECTION STYLING (Existing)
   ============================================ */
.sp-dark-section {
  background: linear-gradient(
    180deg,
    var(--sp-dark) 0%,
    #2d2d2d 100%
  ) !important;
}
.sp-light-section {
  background: linear-gradient(
    180deg,
    var(--sp-light) 0%,
    #ffffff 100%
  ) !important;
}
.sp-feature-bar {
  background: linear-gradient(135deg, #2d2d2d, #1a1a1a) !important;
  border-radius: 20px !important;
  padding: 30px 40px !important;
  margin-top: -50px !important;
  position: relative;
  z-index: 10;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2) !important;
}
.sp-link-underline a {
  position: relative;
  text-decoration: none !important;
}
.sp-link-underline a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sp-primary);
  transition: 0.3s;
}
.sp-link-underline a:hover::after {
  width: 100%;
}

/* ============================================
   📱 RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .sp-neon-card {
    padding: 30px 20px !important;
    min-height: 480px;
  }
}
@media (max-width: 768px) {
  .sp-neon-card {
    min-height: auto !important;
    margin-bottom: 20px !important;
    align-items: center !important;
    text-align: center !important;
  }
  .sp-neon-card .elementor-icon-wrapper {
    margin: 0 auto 10px auto;
  }
}
