/* Products Grid */
.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-lg);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Product Card */
.product-card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: var(--transition-base);
}

.product-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
}

.product-card__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.product-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.product-card__info {
  flex: 1;
}

.product-card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-xs);
}

.product-card__tagline {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.product-card__description {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

/* Screenshots */
.product-card__screenshots {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.product-card__screenshots::-webkit-scrollbar {
  height: 4px;
}

.product-card__screenshots::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.product-card__screenshots::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.product-card__screenshot {
  height: 220px;
  width: auto;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  object-fit: contain;
  scroll-snap-align: start;
}

/* Features - Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.bento-item {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: var(--transition-base);
}

.bento-item:hover {
  border-color: var(--color-border-hover);
}

.bento-item--large {
  grid-column: span 2;
}

.bento-item__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.bento-item__title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
}

.bento-item__description {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Responsive bento grid */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-item--large {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .products__grid {
    grid-template-columns: 1fr;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-item--large {
    grid-column: span 1;
  }
}
