/**
 * SUPERPRECIO - CART DESIGN IMPROVEMENTS
 * Version: 2.0.0
 *
 * Critical improvements to fix visual hierarchy, reduce gradient overload,
 * and improve overall UX/UI of the cart system.
 *
 * Apply these styles AFTER design-tokens.css
 */

/* =============================================
   NEUTRAL GRAY PALETTE ADDITIONS
   Reduces dependency on green-tinted backgrounds
   ============================================= */

:root {
  /* Neutral Grays */
  --sp-color-neutral-50: #f9fafb;
  --sp-color-neutral-100: #f3f4f6;
  --sp-color-neutral-200: #e5e7eb;
  --sp-color-neutral-300: #d1d5db;
  --sp-color-neutral-400: #9ca3af;
  --sp-color-neutral-500: #6b7280;
  --sp-color-neutral-600: #4b5563;
  --sp-color-neutral-700: #374151;
  --sp-color-neutral-800: #1f2937;
  --sp-color-neutral-900: #111827;

  /* Accent Colors */
  --sp-color-accent-amber: #f59e0b;
  --sp-color-accent-amber-light: #fbbf24;
  --sp-color-accent-amber-pale: #fef3c7;

  /* Update surface colors to use neutral palette */
  --sp-color-surface-1: var(--sp-color-neutral-50);
  --sp-color-surface-2: var(--sp-color-neutral-100);
  --sp-color-surface-3: var(--sp-color-neutral-200);
}

/* =============================================
   CRITICAL FIX 1: REMOVE GRADIENT OVERLOAD
   Floating Cart - Solid colors instead of gradients
   ============================================= */

/* Floating cart badge - solid green, no gradient */
.sp-floating-cart__badge {
  background: var(--sp-color-primary); /* Solid instead of gradient */
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3); /* Enhanced shadow for depth */
}

.sp-floating-cart__badge:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4);
  background: var(--sp-color-primary-dark); /* Simple color change on hover */
}

/* Floating cart preview header - solid green */
.sp-floating-cart__preview-header {
  background-color: var(--sp-color-primary); /* Solid instead of gradient */
  border-bottom: none;
}

/* Floating cart preview panel - enhanced shadow, no border */
.sp-floating-cart__preview {
  border: none; /* Remove green border */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15),
              0 0 1px rgba(0, 0, 0, 0.1); /* Dramatic shadow for elevation */
  animation: slide-up 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Elastic bounce */
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Floating cart items container - neutral gray */
.sp-floating-cart__items {
  background-color: var(--sp-color-neutral-50); /* Neutral instead of green-tinted */
  padding: var(--sp-space-md);

  /* Enhanced mobile scrolling */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* =============================================
   CRITICAL FIX 2: IMPROVE VISUAL HIERARCHY
   Cart Page Header - Cleaner design
   ============================================= */

/* Cart page back navigation - solid green */
.sp-cart-page__back-nav {
  background-color: var(--sp-color-primary); /* Solid instead of gradient */
  border-bottom: none;
}

/* Cart page header - white background with left accent */
.sp-cart-page__header {
  background: white; /* Clean white instead of gradient */
  border: 1px solid var(--sp-color-neutral-200);
  border-left: 4px solid var(--sp-color-primary); /* Accent instead of full border */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Subtle elevation */
}

.sp-cart-page__header:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease;
}

/* =============================================
   CRITICAL FIX 3: TYPOGRAPHY IMPROVEMENTS
   Better scale and contrast
   ============================================= */

/* Cart page title - optimized sizing */
.sp-cart-page__title {
  font-size: clamp(1.5rem, 1.25rem + 1.25vw, 2rem); /* 24px-32px instead of 24px-40px */
  font-weight: var(--sp-font-weight-bold);
  letter-spacing: -0.02em; /* Tighter tracking for large text */
  color: var(--sp-color-text-primary);
}

/* Cart page subtitle - regular weight */
.sp-cart-page__subtitle {
  font-weight: var(--sp-font-weight-normal); /* Regular instead of bold */
  color: var(--sp-color-neutral-600);
}

/* Market card price - optimized sizing with tabular nums */
.sp-market-card__price-value {
  font-size: clamp(1.5rem, 1.375rem + 0.625vw, 2rem); /* 24px-32px instead of 40px */
  font-weight: var(--sp-font-weight-bold);
  font-variant-numeric: tabular-nums; /* Aligned numbers */
  line-height: 1;
}

/* =============================================
   CRITICAL FIX 4: BEST PRICE HIGHLIGHT REDESIGN
   Dramatic amber/gold design instead of green
   ============================================= */

.sp-cart-page__best-price {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); /* Soft amber gradient */
  border: 2px solid var(--sp-color-accent-amber);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2),
              0 0 0 1px rgba(245, 158, 11, 0.05); /* Amber glow */
  position: relative;
  overflow: hidden;
}

/* Subtle shimmer effect */
.sp-cart-page__best-price::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.sp-cart-page__best-price-badge {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--sp-color-accent-amber-light), var(--sp-color-accent-amber));
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4),
              inset 0 -2px 4px rgba(0, 0, 0, 0.1); /* Depth */
}

.sp-cart-page__best-price-title {
  color: #78350f; /* Dark brown for high contrast on amber bg */
  font-size: var(--sp-font-size-xl);
}

.sp-cart-page__best-price-desc {
  color: #92400e; /* Medium brown */
}

.sp-cart-page__best-price-value {
  color: #78350f; /* Dark brown */
  font-size: var(--sp-font-size-3xl);
  font-weight: var(--sp-font-weight-black); /* Extra bold */
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5); /* Subtle highlight */
}

/* =============================================
   HIGH PRIORITY: ENHANCED HOVER STATES
   Micro-interactions for better UX
   ============================================= */

/* Floating cart items - improved hover with slide effect */
.sp-floating-cart__item {
  margin-bottom: var(--sp-space-sm); /* More space between items */
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); /* Elastic easing */
  cursor: pointer;
}

.sp-floating-cart__item:hover {
  background-color: #f0fdf4; /* Mint green - very light */
  border-color: var(--sp-color-primary);
  transform: translateX(4px); /* Slide right */
  box-shadow: 0 2px 8px rgba(25, 135, 84, 0.1);
}

.sp-floating-cart__item:active {
  transform: translateX(4px) scale(0.98); /* Pressed effect */
}

/* Market card CTA buttons - GREEN GRADIENT (Corporate Identity) */
.sp-market-card__cta--primary {
  background: linear-gradient(135deg, #136213 0%, #0d4a0a 100%);
  box-shadow: 0 4px 12px rgba(19, 98, 19, 0.3);
}

.sp-market-card__cta--primary:hover {
  background: linear-gradient(135deg, #0d4a0d 0%, #094209 100%);
  box-shadow: 0 6px 16px rgba(19, 98, 19, 0.4);
  transform: translateY(-2px);
}

.sp-market-card__cta--primary:active {
  transform: translateY(0) scale(0.98);
}

/* =============================================
   HIGH PRIORITY: RANKING BADGES REDESIGN
   More distinctive colors and shadows
   ============================================= */

.sp-market-card__ranking-badge {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15),
              inset 0 -2px 4px rgba(0, 0, 0, 0.1); /* 3D depth */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Text legibility */
}

/* Gold - 1st place */
.sp-market-card__ranking-badge {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
}

.sp-market-card__ranking-badge svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Silver - 2nd place */
.sp-market-card__ranking-badge--second {
  background: linear-gradient(135deg, #e5e7eb, #9ca3af);
  color: var(--sp-color-neutral-900);
  text-shadow: none;
}

/* Bronze - 3rd place */
.sp-market-card__ranking-badge--third {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: white;
}

/* Best price market card - amber theme instead of yellow */
.sp-market-card--best-price {
  border-color: var(--sp-color-accent-amber);
  background: linear-gradient(to bottom,
    var(--sp-color-accent-amber-pale) 0%,
    var(--sp-color-surface-base) 100%
  );
}

/* =============================================
   MEDIUM PRIORITY: LOADING STATES
   Visual feedback during async operations
   ============================================= */

.sp-market-card__cta--loading {
  position: relative;
  color: transparent;
  pointer-events: none;
  cursor: wait;
}

.sp-market-card__cta--loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* =============================================
   MEDIUM PRIORITY: TOAST NOTIFICATIONS
   Feedback when adding items to cart
   ============================================= */

.sp-toast {
  position: fixed;
  bottom: 100px;
  right: 24px;
  background: white;
  border-left: 4px solid var(--sp-color-success);
  border-radius: var(--sp-radius-lg);
  padding: var(--sp-space-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15),
              0 0 1px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: var(--sp-space-sm);
  max-width: 320px;
  animation: toast-slide-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1100;
}

@keyframes toast-slide-in {
  from {
    transform: translateX(calc(100% + 24px));
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.sp-toast--exit {
  animation: toast-slide-out 0.2s ease-out forwards;
}

@keyframes toast-slide-out {
  to {
    transform: translateX(calc(100% + 24px));
    opacity: 0;
  }
}

.sp-toast__icon {
  width: 40px;
  height: 40px;
  background: var(--sp-color-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.sp-toast__content {
  flex: 1;
  min-width: 0;
}

.sp-toast__title {
  font-weight: var(--sp-font-weight-semibold);
  color: var(--sp-color-text-primary);
  margin: 0 0 4px 0;
  font-size: var(--sp-font-size-sm);
}

.sp-toast__message {
  font-size: var(--sp-font-size-xs);
  color: var(--sp-color-text-secondary);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-toast__close {
  background: none;
  border: none;
  color: var(--sp-color-neutral-400);
  cursor: pointer;
  padding: var(--sp-space-xs);
  margin: calc(var(--sp-space-xs) * -1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--sp-radius-sm);
  transition: all 0.15s ease;
}

.sp-toast__close:hover {
  background-color: var(--sp-color-neutral-100);
  color: var(--sp-color-neutral-600);
}

/* =============================================
   RESPONSIVE ADJUSTMENTS
   Mobile-specific improvements
   ============================================= */

@media (max-width: 374px) {
  /* Toast notification mobile */
  .sp-toast {
    bottom: 80px;
    right: 12px;
    left: 12px;
    max-width: none;
  }

  /* Best price badge mobile */
  .sp-cart-page__best-price-badge {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
}

@media (min-width: 768px) {
  /* Best price larger badge on tablet+ */
  .sp-cart-page__best-price-badge {
    width: 64px;
    height: 64px;
    font-size: 2rem;
  }
}

/* =============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================= */

/* Focus visible states */
.sp-floating-cart__item:focus-visible {
  outline: 3px solid var(--sp-color-primary);
  outline-offset: 2px;
  border-radius: var(--sp-radius-md);
}

.sp-toast:focus-visible {
  outline: 3px solid var(--sp-color-primary);
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .sp-cart-page__best-price {
    border-width: 3px;
  }

  .sp-market-card__ranking-badge {
    border: 2px solid currentColor;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sp-cart-page__best-price::before,
  .sp-toast {
    animation: none;
  }

  .sp-floating-cart__item:hover {
    transform: none;
  }

  .sp-market-card__ranking-icon {
    animation: none;
  }
}

/* Print styles */
@media print {
  .sp-toast {
    display: none !important;
  }

  .sp-cart-page__best-price::before {
    display: none;
  }
}

/* =============================================
   ADDITIONAL FIXES FOR MOBILE AND CORPORATE IDENTITY
   ============================================= */

/* Fix: Override dark mode for cart page - force light mode colors */
.sp-cart-page {
  color-scheme: light !important;
  background-color: white !important;

  /* Force light mode CSS variables */
  --sp-color-surface-base: #ffffff !important;
  --sp-color-surface-1: #f8f9fa !important;
  --sp-color-surface-2: #e9ecef !important;
  --sp-color-surface-3: #dee2e6 !important;
  --sp-color-text-primary: #212529 !important;
  --sp-color-text-secondary: #6c757d !important;
}

/* Fix: Title visibility - force dark text color */
.sp-cart-page__title {
  color: #212529 !important; /* Force dark text */
  opacity: 1 !important;
}

.sp-cart-page__subtitle {
  color: #6c757d !important; /* Force secondary dark text */
}

/* Fix: Market cards - force light mode colors (override dark mode) */
.sp-market-card {
  background-color: #ffffff !important; /* Force white, not dark mode variable */
  background-image: none !important;
  color: #212529 !important; /* Force dark text */
}

/* Force light mode for all card elements */
.sp-market-card * {
  color: inherit; /* Inherit from parent .sp-market-card */
}

/* Fix: Market card text - force dark colors */
.sp-market-card__name {
  color: #212529 !important;
}

.sp-market-card__price-value {
  color: #136213 !important; /* Corporate green for price */
}

.sp-market-card__price-label,
.sp-market-card__progress-text {
  color: #6c757d !important;
}

/* Fix: Best price market card - use clean amber gradient */
.sp-market-card--best-price {
  background: linear-gradient(to bottom, #fef3c7 0%, white 100%) !important;
}

/* Fix: Complete market cards - subtle green accent */
.sp-market-card--complete {
  border-left: 4px solid var(--sp-color-success) !important;
  background-color: var(--sp-color-surface-base) !important;
}

/* Fix: Grid responsive - full width on mobile, columns on larger screens */
.sp-cart-page__markets-grid {
  display: grid;
  gap: var(--sp-space-lg);
  grid-template-columns: 1fr; /* Default: single column */
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
  .sp-cart-page__markets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: 3 columns */
@media (min-width: 992px) {
  .sp-cart-page__markets-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Fix: Back link "Seguir buscando" styling */
.sp-cart-page__back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-space-sm);
  color: white !important;
  text-decoration: none !important;
  font-weight: var(--sp-font-weight-semibold);
  font-size: var(--sp-font-size-base);
  padding: var(--sp-space-sm) var(--sp-space-md);
  border-radius: var(--sp-radius-md);
  transition: all var(--sp-transition-fast);
  min-height: 44px;
}

.sp-cart-page__back-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(-2px);
}

.sp-cart-page__back-link i {
  font-size: 1.5rem;
}

/* Mobile optimizations for viewport 320px */
@media (max-width: 374px) {
  /* Better spacing for header */
  .sp-cart-page__header {
    padding: var(--sp-space-md) !important;
    gap: var(--sp-space-sm) !important;
  }

  /* Market card container - reduce padding */
  .sp-market-card__container {
    padding: var(--sp-space-md) !important;
    gap: var(--sp-space-md) !important;
  }

  /* Market card name - better sizing */
  .sp-market-card__name {
    font-size: var(--sp-font-size-base) !important;
  }

  /* Price value - ensure visibility */
  .sp-market-card__price-value {
    font-size: var(--sp-font-size-xl) !important;
  }

  /* Best price section - optimize for mobile */
  .sp-cart-page__best-price {
    padding: var(--sp-space-md) !important;
  }

  .sp-cart-page__best-price-value {
    font-size: var(--sp-font-size-xl) !important;
  }
}

/* =============================================
   EMPTY STATE - CART PAGE
   Professional empty cart design
   ============================================= */

.sp-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Empty State - Cart Variant */
.sp-empty-state--cart {
    max-width: 500px;
    margin: 3rem auto;
    padding: 4rem 2rem;
}

.sp-empty-state__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.sp-empty-state__icon {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    opacity: 0.5;
    filter: grayscale(50%);
}

.sp-empty-state__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 0.5rem 0;
}

.sp-empty-state__description {
    font-size: 1.125rem;
    color: #6c757d;
    margin: 0 0 2rem 0;
    max-width: 400px;
    line-height: 1.6;
}

.sp-empty-state__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--sp-color-primary), #136213);
    color: white;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
    transition: all 0.2s ease;
    min-height: 56px;
}

.sp-empty-state__action:hover {
    background: linear-gradient(135deg, #157347, #0f4424);
    box-shadow: 0 6px 16px rgba(25, 135, 84, 0.4);
    transform: translateY(-2px);
    color: white;
}

.sp-empty-state__action:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.3);
}

.sp-empty-state__action:focus-visible {
    outline: 3px solid var(--sp-color-primary);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .sp-empty-state--cart {
        padding: 2.5rem 1.5rem;
        margin: 1.5rem auto;
    }

    .sp-empty-state__icon {
        font-size: 4rem;
    }

    .sp-empty-state__title {
        font-size: 1.5rem;
    }

    .sp-empty-state__description {
        font-size: 1rem;
    }

    .sp-empty-state__action {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
        min-height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sp-empty-state__action:hover {
        transform: none;
    }
}

/* =============================================
   CART PAGE HEADER - EMPTY STATE OPTIMIZATION
   Hide header elements when cart is empty
   ============================================= */

/* When cart is empty, simplify the page layout */
.sp-cart-page__container {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
}

/* Cart page title styling */
.sp-cart-page__title-section {
    display: flex;
    flex-direction: column;
    gap: var(--sp-space-xs, 0.5rem);
}

/* Cart page header improvements */
.sp-cart-page__header {
    margin-bottom: var(--sp-space-xl, 2rem);
}

/* Back navigation styling */
.sp-cart-page__back-nav {
    margin-bottom: var(--sp-space-lg, 1.5rem);
}

/* Ensure proper spacing for empty state */
.sp-cart-page .sp-empty-state--cart {
    margin-top: 0;
}

/* Clear button visibility */
.sp-cart-page__clear-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* =============================================
   WINNER CARD - MODERN REDESIGN
   Premium best price highlight - VERDE DE MARCA
   ============================================= */

.sp-winner-card {
    background: linear-gradient(135deg, #136213 0%, #0d4a0d 100%);
    border-radius: var(--sp-radius-xl);
    padding: 0;
    margin-bottom: var(--sp-space-xl);
    box-shadow: 0 8px 32px rgba(19, 98, 19, 0.3),
                0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.sp-winner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15), transparent 50%);
    pointer-events: none;
}

/* Crown/Trophy Section */
.sp-winner-card__crown {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    padding: var(--sp-space-sm) var(--sp-space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-space-xs);
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.sp-winner-card__crown i {
    font-size: 1.25rem;
    color: #78350f;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.sp-winner-card__crown-text {
    font-size: var(--sp-font-size-sm);
    font-weight: var(--sp-font-weight-bold);
    color: #78350f;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Main Content */
.sp-winner-card__content {
    padding: var(--sp-space-lg);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--sp-space-md);
    align-items: center;
    position: relative;
}

/* Logo */
.sp-winner-card__logo-wrapper {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: var(--sp-radius-lg);
    padding: var(--sp-space-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sp-winner-card__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sp-winner-card__logo-placeholder {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: var(--sp-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: var(--sp-font-weight-bold);
    color: var(--sp-color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Info Section */
.sp-winner-card__info {
    flex: 1;
    min-width: 0;
}

.sp-winner-card__market-name {
    font-size: var(--sp-font-size-xl);
    font-weight: var(--sp-font-weight-bold);
    color: white;
    margin: 0 0 4px 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.sp-winner-card__subtitle {
    font-size: var(--sp-font-size-sm);
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Price Section */
.sp-winner-card__price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.sp-winner-card__price-label {
    font-size: var(--sp-font-size-xs);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.sp-winner-card__price {
    font-size: var(--sp-font-size-3xl);
    font-weight: var(--sp-font-weight-black);
    color: white;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1;
}

/* Footer Badge */
.sp-winner-card__footer {
    background: rgba(0, 0, 0, 0.1);
    padding: var(--sp-space-sm) var(--sp-space-md);
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-winner-card__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-space-xs);
    font-size: var(--sp-font-size-sm);
    font-weight: var(--sp-font-weight-semibold);
    color: white;
}

.sp-winner-card__badge i {
    font-size: 1rem;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .sp-winner-card__content {
        grid-template-columns: auto 1fr;
        gap: var(--sp-space-sm);
    }

    .sp-winner-card__price-section {
        grid-column: 1 / -1;
        align-items: flex-start;
        text-align: left;
        margin-top: var(--sp-space-sm);
        padding-top: var(--sp-space-sm);
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .sp-winner-card__logo-wrapper,
    .sp-winner-card__logo-placeholder {
        width: 48px;
        height: 48px;
    }

    .sp-winner-card__market-name {
        font-size: var(--sp-font-size-lg);
    }

    .sp-winner-card__price {
        font-size: var(--sp-font-size-2xl);
    }
}
