/* ===========================================
   STYLIZED PRICE DISPLAY WITH DISCOUNTS
   =========================================== */

/* General Price Container */
.price-container {
  position: relative;
  margin-top: 15px;
  text-align: center;
}

/* Stylized Discount Badge */
.discount-badge {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 50%, #e63946 100%);
  color: white;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 20px;
  position: absolute;
  top: -12px;
  right: 5px;
  box-shadow: 
    0 4px 15px rgba(231, 76, 60, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  z-index: 2;
  animation: discountPulse 3s ease-in-out infinite;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes discountPulse {
  0%, 100% { 
    transform: scale(1) rotate(0deg); 
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
  }
  50% { 
    transform: scale(1.1) rotate(-2deg); 
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
  }
}

/* Professional Strikethrough Price */
.price-original {
  color: #6c757d;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 5px;
  position: relative;
  display: inline-block;
  font-family: 'Arial', sans-serif;
}

.price-original::before,
.price-original::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -5px;
  right: -5px;
  height: 2px;
  background: linear-gradient(90deg, #e74c3c, #c0392b);
  transform: translateY(-50%);
  border-radius: 1px;
}

.price-original::after {
  height: 1px;
  background: #fff;
  top: calc(50% + 1px);
}

/* Stylized Current Price */
.price-discounted {
  color: #e74c3c;
  font-size: 1.4rem;
  font-weight: 900;
  margin: 0;
  text-shadow: 
    0 2px 4px rgba(231, 76, 60, 0.3),
    0 0 20px rgba(231, 76, 60, 0.1);
  font-family: 'Arial Black', sans-serif;
  position: relative;
}

.price-discounted::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e74c3c, transparent);
  border-radius: 1px;
}

/* Product Page Specific Styles */
.product-price-container {
  position: relative;
  margin: 25px 0;
  text-align: left;
}

.product-discount-badge {
  background: linear-gradient(135deg, #ff4757 0%, #ff3838 50%, #e55039 100%);
  color: white;
  padding: 8px 16px;
  font-size: 1rem;
  font-weight: 900;
  border-radius: 25px;
  position: absolute;
  top: -18px;
  right: 0;
  box-shadow: 
    0 6px 20px rgba(231, 76, 60, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  z-index: 2;
  animation: productDiscountPulse 2.5s ease-in-out infinite;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 3px solid rgba(255, 255, 255, 0.4);
}

@keyframes productDiscountPulse {
  0%, 100% { 
    transform: scale(1) rotate(0deg); 
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
  }
  50% { 
    transform: scale(1.05) rotate(-1deg); 
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.7);
  }
}

.product-price-original {
  color: #6c757d;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.product-price-original::before,
.product-price-original::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -8px;
  right: -8px;
  height: 3px;
  background: linear-gradient(90deg, #e74c3c, #c0392b);
  transform: translateY(-50%);
  border-radius: 2px;
}

.product-price-original::after {
  height: 1px;
  background: #fff;
  top: calc(50% + 1px);
}

.product-price-discounted {
  color: #e74c3c !important;
  font-size: 2.5rem !important;
  font-weight: 900 !important;
  margin: 0;
  text-shadow: 
    0 3px 6px rgba(231, 76, 60, 0.4),
    0 0 30px rgba(231, 76, 60, 0.2);
  font-family: 'Arial Black', sans-serif;
  position: relative;
}

.product-price-discounted::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #e74c3c, #c0392b, #e74c3c);
  border-radius: 2px;
  animation: priceGlow 2s ease-in-out infinite alternate;
}

@keyframes priceGlow {
  0% { opacity: 0.7; transform: scaleX(0.9); }
  100% { opacity: 1; transform: scaleX(1); }
}

/* Hover Effects */
.price-container:hover .discount-badge {
  animation: discountBounce 0.6s ease-in-out;
}

.product-price-container:hover .product-discount-badge {
  animation: productDiscountBounce 0.6s ease-in-out;
}

@keyframes discountBounce {
  0%, 20%, 50%, 80%, 100% { transform: scale(1) rotate(0deg); }
  40% { transform: scale(1.15) rotate(-3deg); }
  60% { transform: scale(1.08) rotate(1deg); }
}

@keyframes productDiscountBounce {
  0%, 20%, 50%, 80%, 100% { transform: scale(1) rotate(0deg); }
  40% { transform: scale(1.1) rotate(-2deg); }
  60% { transform: scale(1.05) rotate(1deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .price-original {
    font-size: 0.9rem;
  }
  
  .price-discounted {
    font-size: 1.2rem;
  }
  
  .discount-badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    top: -10px;
  }
  
  .product-price-original {
    font-size: 1.1rem;
  }
  
  .product-price-discounted {
    font-size: 2rem !important;
  }
  
  .product-discount-badge {
    font-size: 0.9rem;
    padding: 6px 12px;
    top: -15px;
  }
}

@media (max-width: 480px) {
  .price-discounted {
    font-size: 1.1rem;
  }
  
  .product-price-discounted {
    font-size: 1.8rem !important;
  }
  
  .discount-badge,
  .product-discount-badge {
    font-size: 0.65rem;
    padding: 3px 6px;
  }
}
