/* ─── Products Section — UlapBAI Header + UlapBiz Cards ─────────── */

.products {
  padding: 80px var(--section-padding-x);
  background: var(--bg-light);
}

@media (max-width: 1200px) {
  .products {
    padding: 60px 40px;
  }
}

@media (max-width: 768px) {
  .products {
    padding: 40px 20px;
  }
}

.products__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

/* ─── Header — UlapBAI Style (retained) ───────────────────────── */
.products__header {
  text-align: left;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: 0;
  margin-right: 0;
}

.products-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-h2);
  font-weight: 700;
  color: var(--charcoal-black);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.products-subtitle {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  color: var(--gray-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .products-title {
    font-size: 1.75rem;
  }
  
  .products-subtitle {
    font-size: 0.95rem;
  }
}

/* ─── Product Grid — UlapBiz Style ────────────────────────────── */
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

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

/* ─── Product Card — UlapBiz Style ─────────────────────────────── */
.product-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: white;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  min-height: 220px;
}

.product-card:hover {
  transform: translateY(-2px);
}

.product-card__top {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
  flex-grow: 1;
}

.product-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--primary-gradient);
  color: white;
  transition: opacity 0.3s ease;
}

.product-card__icon svg {
  width: 28px;
  height: 28px;
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal-black);
  margin: 0;
  line-height: 1.3;
}

.product-card__desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--gray-muted);
  line-height: 1.5;
  margin: 0;
  transition: opacity 0.3s ease;
}

/* ─── Hover Content (Reveals on hover) ───────────────────────── */
.product-card__hover-content {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: white;
  pointer-events: none;
  z-index: 5;
}

.product-card__hover-content .product-card__icon {
  opacity: 1 !important;
  flex-shrink: 0;
}

.product-card:hover .product-card__hover-content {
  opacity: 1;
  pointer-events: auto;
}

.product-card:hover .product-card__desc,
.product-card:hover > .product-card__top > .product-card__icon {
  opacity: 0;
}

.product-card__subdesc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--charcoal-black);
  line-height: 1.6;
  margin: 0;
}

/* ─── Link (always visible at bottom) ────────────────────────── */
.product-card__link {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
  padding-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 10;
}

.product-card__link::after {
  content: "→";
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.product-card:hover .product-card__link::after {
  transform: translateX(4px);
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .product-card {
    padding: 20px;
    min-height: 200px;
  }

  .product-card__hover-content {
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 56px;
  }

  .product-card__icon {
    width: 44px;
    height: 44px;
  }

  .product-card__icon svg {
    width: 24px;
    height: 24px;
  }

  .product-card__name {
    font-size: 1rem;
  }

  .product-card__desc,
  .product-card__subdesc {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .products__header {
    margin-bottom: 32px;
  }

  .products-label {
    font-size: 0.7rem;
    padding: 0.2rem 0.75rem;
  }

  .product-card {
    padding: 16px;
    min-height: 180px;
  }

  .product-card__hover-content {
    top: 16px;
    left: 16px;
    right: 16px;
    bottom: 48px;
  }
}

/* ─── View More Button ────────────────────────────────────────── */
.view-more-btn {
  display: block;
  margin: 40px auto 0;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 3px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.view-more-btn:hover {
  opacity: 0.9;
}

.view-more-btn:active {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .view-more-btn {
    margin-top: 32px;
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}
