/* ============================================
   AlStableCoin — Products Page Styles
   ============================================ */

/* --- Product Cards Grid --- */
.product-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: var(--space-xl);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.product-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 8px 40px var(--accent-glow);
  transform: translateY(-4px);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card.expanded {
  border-color: var(--border-glow);
  box-shadow: 0 12px 60px rgba(240, 165, 0, 0.22);
  grid-column: span 2;
}

.product-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.product-card-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 14px;
  background: var(--gradient-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 1px solid var(--border-color);
}

.product-card-info {
  min-width: 0;
}

.product-card-info h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.product-card-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  word-break: break-word;
}

.product-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              margin-top 0.3s ease;
  opacity: 0;
  margin-top: 0;
}

.product-card.expanded .product-card-body {
  max-height: 600px;
  opacity: 1;
  margin-top: var(--space-lg);
}

.product-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.product-feature {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: var(--space-md);
  text-align: center;
  transition: all var(--transition-fast);
}

.product-feature:hover {
  border-color: var(--border-glow);
  background: rgba(240, 165, 0, 0.04);
  transform: translateY(-2px);
}

.product-feature .feature-icon {
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
}

.product-feature span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: block;
  word-break: break-word;
}

.product-card-formula {
  margin-top: var(--space-lg);
  text-align: center;
  font-family: var(--font-mono);
  color: var(--accent-light);
  overflow-x: auto;
  max-width: 100%;
}

.product-card-hint {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-dim);
  font-size: var(--text-xs);
  margin-top: var(--space-md);
  transition: color var(--transition-fast);
}

.product-card:hover .product-card-hint {
  color: var(--accent-light);
}

.product-card-hint::before {
  content: "+";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--text-dim);
  font-size: 0.7rem;
  transition: all var(--transition-fast);
}

.product-card.expanded .product-card-hint {
  color: var(--accent-light);
}

.product-card.expanded .product-card-hint::before {
  content: "\2212";
  border-color: var(--accent-light);
  color: var(--accent-light);
}

/* ============================================
   Responsive — 1024px
   ============================================ */
@media (max-width: 1024px) {
  .product-cards {
    gap: var(--space-md);
  }

  .product-card {
    padding: var(--space-lg);
  }

  .product-card.expanded {
    grid-column: span 2;
  }
}

/* ============================================
   Responsive — 768px
   ============================================ */
@media (max-width: 768px) {
  .product-cards {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .product-card {
    padding: var(--space-lg);
  }

  .product-card.expanded {
    grid-column: span 1;
  }

  .product-features {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }

  .product-feature {
    padding: var(--space-sm);
  }

  .product-feature span {
    font-size: 0.72rem;
  }
}

/* ============================================
   Responsive — 480px
   ============================================ */
@media (max-width: 480px) {
  .product-card {
    padding: var(--space-md);
  }

  .product-card-header {
    gap: var(--space-sm);
  }

  .product-card-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    font-size: 1.2rem;
  }

  .product-card-info h3 {
    font-size: 1.05rem;
  }

  .product-card-info p {
    font-size: 0.8rem;
  }

  .product-features {
    grid-template-columns: 1fr;
  }
}
