/**
 * Mobile Mini Cart - Sticky Bottom Bar
 * Replaces floating toggle with persistent cart visibility
 * 
 * Z-index hierarchy: checkout modal (70) > mobile-mini-cart (50) > mobile box preview (45)
 */

.mobile-mini-cart {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50; /* Lower than checkout modal (70) - KISS fix for overlay issue */
  background: linear-gradient(135deg, #7aa299 0%, #a7c7e7 100%);
  color: white;
  padding: 12px 16px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
  border-top: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Ensure scroll-to-top button has space */
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.mobile-mini-cart.hidden {
  transform: translateY(100%);
}

.mini-cart-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mini-cart-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 600;
  font-size: 14px;
}

.mini-cart-count {
  color: #fbbf24;
  font-weight: 700;
  font-size: 18px;
}

.mini-cart-status {
  font-size: 14px;
  font-weight: 600;
}

.box-status-text {
  color: #fbbf24;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  animation: pulse 2s infinite;
}

/* Subtle pulse animation for status text */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Enhanced mobile responsiveness */
@media (max-width: 480px) {
  .mobile-mini-cart {
    padding: 10px 12px;
  }
  
  .mini-cart-content {
    gap: 6px;
  }
  
  .mini-cart-count {
    font-size: 14px;
  }
  
  .box-status-text {
    font-size: 12px;
  }
  
  .mini-cart-checkout-btn {
    padding: 8px 16px;
    font-size: 14px;
    min-width: 100px;
  }
  
  .checkout-icon {
    width: 16px;
    height: 16px;
  }
}

.mini-cart-expand-btn {
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 6px 10px;
  color: white;
  font-weight: 500;
  font-size: 12px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 44px; /* Touch target requirement */
  min-height: 44px;
  justify-content: center;
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.mini-cart-expand-btn:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-1px);
}

.mini-cart-expand-btn:active {
  transform: translateY(0);
}

.expand-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

/* Primary checkout button - always visible */
.mini-cart-checkout-btn {
  background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 10px 20px;
  color: white;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  min-height: 44px; /* Touch target requirement */
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.mini-cart-checkout-btn:hover {
  background: linear-gradient(135deg, #fb923c 0%, #f87171 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.mini-cart-checkout-btn:active {
  transform: translateY(0);
}

.mini-cart-checkout-btn.disabled {
  background: rgba(255,255,255,0.2);
  cursor: not-allowed;
  opacity: 0.7;
}

.checkout-icon {
  width: 18px;
  height: 18px;
}

.mini-cart-expand-btn.expanded .expand-icon {
  transform: rotate(180deg);
}

/* Quick preview expandable section */
.mini-cart-preview-content {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e5e7eb;
  border-radius: 16px 16px 0 0;
  padding: 16px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.1);
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mini-cart-preview-content.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mini-cart-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.mini-cart-preview-title {
  font-weight: 700;
  color: #1f2937;
  font-size: 16px;
}

.mini-cart-preview-close {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 20px;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.mini-cart-preview-close:hover {
  color: #374151;
  background: #f3f4f6;
}

.mini-cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

.mini-cart-item:last-child {
  border-bottom: none;
}

.mini-cart-item-info {
  flex: 1;
}

.mini-cart-item-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 14px;
}

.mini-cart-item-quantity {
  color: #6b7280;
  font-size: 12px;
}

.mini-cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-cart-quantity-btn {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  font-weight: 600;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  min-width: 28px;
  min-height: 28px;
  position: relative;
  will-change: transform, background-color, opacity;
}

.mini-cart-quantity-btn:hover:not(:disabled):not(.disabled) {
  background: #e5e7eb;
  border-color: #9ca3af;
  transform: scale(1.05);
}

.mini-cart-quantity-btn:active:not(:disabled):not(.disabled) {
  transform: scale(0.98);
  transition-duration: 0.05s;
}

/* Enhanced disabled states */
.mini-cart-quantity-btn:disabled,
.mini-cart-quantity-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #9ca3af;
  pointer-events: none;
  transform: none;
}

/* Hidden state for consistency with main product cards */
.mini-cart-quantity-btn.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.8);
  transition: all 0.2s ease;
}

/* Success feedback animation */
.mini-cart-quantity-btn.success-feedback {
  background: #10b981;
  color: white;
  border-color: #059669;
  transform: scale(1.1);
}

/* Improved accessibility for screen readers */
.mini-cart-quantity-btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .mini-cart-quantity-btn {
    border-width: 2px;
    border-color: #000;
  }
  
  .mini-cart-quantity-btn:disabled,
  .mini-cart-quantity-btn.disabled {
    border-color: #666;
    background: #f0f0f0;
  }
}

/* Ripple effect animation */
@keyframes ripple-animation {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Feedback message styles */
.mini-cart-feedback {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mini-cart-feedback.error {
  background: #ef4444 !important;
}

.mini-cart-feedback.success {
  background: #10b981 !important;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .mini-cart-quantity-btn {
    transition: none;
  }
  
  .mini-cart-quantity-btn:hover:not(:disabled):not(.disabled) {
    transform: none;
  }
  
  .mini-cart-quantity-btn:active:not(:disabled):not(.disabled) {
    transform: none;
  }
  
  /* Disable ripple animation for reduced motion */
  @keyframes ripple-animation {
    0%, 100% {
      transform: scale(0);
      opacity: 0;
    }
  }
}

/* Progress indicator */
.mini-cart-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255,255,255,0.2);
  overflow: hidden;
}

.mini-cart-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #10b981);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.7);
  position: relative;
}

.mini-cart-progress-fill[style*="100%"] {
  background: linear-gradient(90deg, #10b981, #059669);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.7);
}

.mini-cart-progress-fill.completed {
  animation: completed-pulse 1s ease-in-out;
}

@keyframes completed-pulse {
  0% { box-shadow: 0 0 12px rgba(16, 185, 129, 0.7); }
  50% { box-shadow: 0 0 20px rgba(16, 185, 129, 1); }
  100% { box-shadow: 0 0 12px rgba(16, 185, 129, 0.7); }
}

/* Optimized shimmer - only when progress changes */
.mini-cart-progress-fill.updating::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 0.8s ease-out;
}

@keyframes shimmer {
  0% { 
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% { 
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Optimized count animations */
.mini-cart-count {
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), 
              color 0.15s ease;
  will-change: transform, color;
}

.mini-cart-count.count-animating {
  transform: scale(1.15);
}

.mini-cart-count.count-increase {
  color: #10b981;
}

.mini-cart-count.count-decrease {
  color: #ef4444;
}

/* GPU acceleration for progress bar */
.mini-cart-progress-fill {
  will-change: width;
}

/* Responsive adjustments for very small screens */
@media (max-width: 375px) {
  .mobile-mini-cart {
    padding: 8px 10px;
  }
  
  .mini-cart-info {
    font-size: 12px;
  }
  
  .mini-cart-count {
    font-size: 14px;
  }
  
  .mini-cart-expand-btn {
    padding: 5px 8px;
    font-size: 11px;
    min-width: auto;
  }
  
  .mini-cart-checkout-btn {
    padding: 7px 14px;
    font-size: 13px;
    min-width: 90px;
    letter-spacing: 0.3px;
  }
  
  .mini-cart-checkout-btn span {
    display: none; /* Hide text on very small screens */
  }
  
  .mini-cart-checkout-btn .checkout-icon {
    margin: 0; /* Center icon when text is hidden */
  }
}

/* Hide on desktop */
@media (min-width: 1024px) {
  .mobile-mini-cart {
    display: none;
  }
}

/* KISS FIX: Hide mobile-mini-cart when checkout modal is open */
body.modal-open .mobile-mini-cart {
  visibility: hidden !important;
  opacity: 0 !important;
  transform: translateY(100%) !important;
  pointer-events: none !important;
  transition: all 0.3s ease !important;
}

/* Ensure main content has bottom padding to account for mini cart */
@media (max-width: 1023px) {
  .main-content-mobile {
    padding-bottom: 80px;
  }
  
  /* When preview is open, add more padding */
  .main-content-mobile.mini-cart-preview-open {
    padding-bottom: 380px;
  }
}/**
 * Mobile Product Horizontal Scroll Enhancement
 * Reduces vertical scrolling by allowing horizontal product browsing
 */

/* Enable horizontal scrolling for mobile product grid */
@media (max-width: 1023px) {
  .product-grid-container {
    position: relative;
    overflow: hidden;
  }
  
  .product-grid.horizontal-scroll {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 16px;
    padding: 20px 16px;
    scroll-snap-type: x proximity; /* Changed to proximity for better 2-card scrolling */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  
  .product-grid.horizontal-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  
  .product-grid.horizontal-scroll .product-card {
    flex: 0 0 calc(50% - 8px); /* Two cards per view with gap */
    scroll-snap-align: start;
    max-width: calc(50% - 8px);
    min-width: calc(50% - 8px);
    height: auto;
  }
  
  /* Compact card layout for horizontal scroll */
  .product-grid.horizontal-scroll .product-card {
    padding: 16px;
  }
  
  .product-grid.horizontal-scroll .product-image {
    width: 100%;
    height: 160px; /* Reduced height for better mobile proportions */
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
  }
  
  .product-grid.horizontal-scroll .product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.2;
  }
  
  .product-grid.horizontal-scroll .product-description {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  /* Scroll indicators */
  .product-grid-container::before,
  .product-grid-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  .product-grid-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.8), transparent);
    opacity: 0;
  }
  
  .product-grid-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.8), transparent);
  }
  
  .product-grid-container.scrollable::before {
    opacity: 1;
  }
  
  .product-grid-container.scroll-end::after {
    opacity: 0;
  }
  
  /* Scroll navigation dots */
  .scroll-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    margin-top: 8px;
    z-index: 30;
    position: relative;
  }
  
  .scroll-dot {
    width: 12px; /* Larger for better touch targets */
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 44px; /* Touch target requirement */
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
  }
  
  .scroll-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    color: #d1d5db;
    transition: all 0.3s ease;
  }
  
  .scroll-dot.active::before {
    color: #7aa299;
    transform: scale(1.2);
  }
  
  .scroll-dot:hover {
    background: #f3f4f6;
    border-color: #7aa299;
  }
  
  .scroll-dot:focus {
    outline: 2px solid #7aa299;
    outline-offset: 2px;
  }
  
  /* View toggle button */
  .view-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.95);
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    z-index: 50; /* Higher z-index to prevent conflicts */
    cursor: pointer;
    min-height: 44px; /* Touch target requirement */
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .view-toggle:hover {
    background: rgba(255,255,255,1);
    border-color: #7aa299;
    color: #7aa299;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  .view-toggle:active {
    transform: translateY(0);
  }
  
  /* Improved touch targets for mobile */
  .product-grid.horizontal-scroll .quantity-controls {
    margin-top: 16px;
  }
  
  .product-grid.horizontal-scroll .quantity-btn {
    min-width: 44px;
    min-height: 44px;
    font-size: 18px;
    border-radius: 10px;
  }
  
  .product-grid.horizontal-scroll .quantity-input {
    min-height: 44px;
    font-size: 16px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
  }
}

/* Smaller mobile devices - Single column for very small screens */
@media (max-width: 375px) {
  .product-grid.horizontal-scroll .product-card {
    flex: 0 0 85%; /* Single card view for small screens */
    max-width: 85%;
    min-width: 85%;
  }
  
  .product-grid.horizontal-scroll {
    padding: 20px 12px;
    gap: 12px;
  }
}

/* Tablet adjustments - 3 cards visible */
@media (min-width: 768px) and (max-width: 1023px) {
  .product-grid.horizontal-scroll .product-card {
    flex: 0 0 calc(33.333% - 12px);
    max-width: calc(33.333% - 12px);
    min-width: calc(33.333% - 12px);
  }
  
  .product-grid.horizontal-scroll .product-image {
    height: 200px;
  }
}

/* RTL support */
[dir="rtl"] .product-grid.horizontal-scroll {
  direction: rtl;
}

[dir="rtl"] .product-grid-container::before {
  right: 0;
  left: auto;
  background: linear-gradient(to left, rgba(255,255,255,0.8), transparent);
}

[dir="rtl"] .product-grid-container::after {
  left: 0;
  right: auto;
  background: linear-gradient(to right, rgba(255,255,255,0.8), transparent);
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .product-grid.horizontal-scroll {
    scroll-behavior: auto;
  }
  
  .scroll-dot,
  .view-toggle {
    transition: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .view-toggle {
    background: white;
    border-color: black;
    color: black;
  }
  
  .scroll-dot {
    background: #666;
    border: 1px solid black;
  }
  
  .scroll-dot.active {
    background: black;
  }
}/**
 * Discount Visibility Styles
 * Professional, high-converting discount display styles
 * Optimized for maximum visual impact and trust
 */

/* Core Discount Banner Styles */
.discount-banner, .discount-banner-v2 {
  position: relative;
  overflow: hidden;
}

.discount-banner::before, .discount-banner-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

/* Enhanced Pricing Container Styles */
.enhanced-pricing-container {
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 8px;
  margin: 4px 0;
}

.enhanced-pricing-container:hover {
  background: rgba(16, 185, 129, 0.05);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

/* Pricing Showcase Styles */
.pricing-showcase {
  text-align: center;
  animation: priceReveal 0.6s ease-out;
}

.discount-highlight {
  animation: highlightPulse 2s infinite;
}

.price-comparison {
  position: relative;
}

.original-price-section .line-through {
  position: relative;
  opacity: 0.7;
}

.discounted-price-section {
  position: relative;
  z-index: 2;
}

.discounted-price-section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 1px;
}

.savings-callout {
  animation: bounce 1s ease-in-out;
  animation-delay: 0.5s;
  animation-fill-mode: both;
}

.urgency-message {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out 0.8s forwards;
}

/* Discount Badge Styles */
.discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  animation: badgePulse 1.5s infinite;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.discount-badge::before {
  content: '🎯';
  font-size: 0.8em;
}

/* Enhanced CTA Button Styles */
.cta-button {
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cta-button:active {
  transform: translateY(0) scale(1.02);
}

/* Notification Styles */
.discount-notification {
  position: relative;
  overflow: hidden;
  animation: slideInFromLeft 0.5s ease-out;
}

.discount-notification::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #10b981, #059669);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .discount-banner-v2 {
    padding: 12px 16px;
  }
  
  .enhanced-pricing-container {
    padding: 6px;
  }
  
  .pricing-showcase {
    font-size: 0.9em;
  }
  
  .cta-button {
    font-size: 0.85em;
    padding: 8px 16px;
  }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
  .discount-banner::before,
  .discount-banner-v2::before,
  .discount-highlight,
  .savings-callout,
  .urgency-message,
  .discount-badge,
  .enhanced-pricing-container,
  .discount-notification {
    animation: none;
  }
  
  .enhanced-pricing-container:hover {
    transform: none;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .discount-badge {
    border: 2px solid currentColor;
    box-shadow: none;
  }
  
  .enhanced-pricing-container {
    border: 1px solid #10b981;
  }
  
  .cta-button {
    border: 2px solid currentColor;
  }
}

/* Focus States for Keyboard Navigation */
.cta-button:focus,
.close-banner:focus {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

/* Animations */
@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes priceReveal {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes highlightPulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.05);
    opacity: 0.9;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
  }
}

@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Urgency-Specific Styles */
.urgency-high .discount-banner-v2 {
  animation: urgentPulse 1s infinite;
}

.urgency-high .discount-badge {
  animation: urgentBlink 0.8s infinite;
}

@keyframes urgentPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.25);
  }
  50% {
    box-shadow: 0 6px 30px rgba(220, 38, 38, 0.4);
  }
}

@keyframes urgentBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Trust Indicators */
.trust-indicator {
  display: inline-flex;
  align-items: center;
  font-size: 0.75em;
  color: rgba(255, 255, 255, 0.8);
  margin-left: 8px;
}

.trust-indicator::before {
  content: '🔒';
  margin-right: 4px;
}

/* Price Strike-through Enhancement */
.line-through {
  position: relative;
}

.line-through::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background: #ef4444;
  transform: rotate(-5deg);
  animation: strikeThrough 0.5s ease-out 0.3s both;
}

@keyframes strikeThrough {
  0% {
    width: 0%;
    left: 50%;
  }
  100% {
    width: 100%;
    left: 0%;
  }
}

/* Social Proof Elements */
.social-proof {
  font-size: 0.8em;
  opacity: 0.9;
  font-weight: 500;
}

.social-proof::before {
  content: '👥 ';
}

/* Performance Optimizations */
.enhanced-pricing-container,
.discount-banner-v2,
.discount-notification {
  will-change: transform, opacity;
}

/* Print Styles (hide discount elements in print) */
@media print {
  .discount-banner,
  .discount-banner-v2,
  .enhanced-pricing-container,
  .discount-notification {
    display: none !important;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .enhanced-pricing-container:hover {
    background: rgba(16, 185, 129, 0.1);
  }
  
  .discount-notification {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
  }
}