/* ==========================================================================
   Nitro Simracing - Card Modules
   ========================================================================== */

/* Modernized Woodmart product wrappers matching overall UI */
.products .product-wrapper,
.sn-card {
  background: linear-gradient(180deg, var(--sn-color-surface-alt) 0%, var(--sn-color-surface) 100%);
  border-radius: var(--sn-radius-xl);
  border: 1px solid var(--sn-glass-border);
  
  box-shadow: 
    0 0 0 1px rgba(255, 59, 48, 0.05),
    var(--sn-shadow);
    
  padding: var(--sn-space-4);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  
  display: flex;
  flex-direction: column;
}

/* Base Neon Glow effect on hover */
.products .product-wrapper:hover,
.sn-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 59, 48, 0.3);
  box-shadow: 
    0 0 0 1px rgba(255, 59, 48, 0.5),
    0 20px 40px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(255, 59, 48, 0.15);
  z-index: 2;
}

/* Subtle accent edge inside the card */
.products .product-wrapper::before,
.sn-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: calc(var(--sn-radius-xl) - 1px);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 40%,
    transparent 60%,
    rgba(255, 59, 48, 0.05) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Images */
.products .product-image,
.sn-card__image {
  border-radius: var(--sn-radius-lg);
  overflow: hidden;
  background: #000;
  position: relative;
  margin-bottom: var(--sn-space-3);
  aspect-ratio: 16/9;
}

.products .product-image img,
.sn-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.products .product-wrapper:hover .product-image img,
.sn-card:hover .sn-card__image img {
  transform: scale(1.08);
}

/* Typography internally */
.products .product-title a,
.sn-card__title {
  font-weight: 700;
  color: var(--sn-color-text);
  font-size: var(--sn-font-size-md);
  line-height: 1.3;
  margin-bottom: var(--sn-space-1);
  position: relative;
  z-index: 2;
  text-decoration: none;
}

.products .product-categories,
.sn-card__meta {
  color: var(--sn-theme-primary);
  font-size: var(--sn-font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: var(--sn-space-2);
  position: relative;
  z-index: 2;
}

.products .price,
.sn-card__price {
  font-size: var(--sn-font-size-xl);
  font-weight: 800;
  color: #fff;
  margin-top: auto;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.products .price span.amount {
  color: var(--sn-theme-primary);
  text-shadow: 0 0 16px rgba(255, 59, 48, 0.6);
}
