/**
 * Products Section - Modern Grid Design
 *
 * @package Terracem_Global
 */

/* ===================================
   Products Section
   =================================== */
.products-section {
  background: #ffffff;
  position: relative;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

/* Product Card */
.product-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 2.5rem 2rem;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  border-color: #C9A961;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Product Number */
.product-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(201, 169, 97, 0.08);
  line-height: 1;
  transition: all 0.3s ease;
}

.product-card:hover .product-number {
  color: rgba(201, 169, 97, 0.15);
  transform: scale(1.1);
}

/* Product Visual */
.product-visual {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.product-card:hover .product-visual {
  background: linear-gradient(135deg, #C9A961 0%, #B08F48 100%);
  transform: scale(1.05);
}

.product-visual img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.product-card:hover .product-visual img {
  filter: brightness(0) invert(1);
}

/* Product Title */
.product-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

/* Product Description */
.product-card p {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Featured Card */
.product-card-featured {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 2px solid #C9A961;
}

.product-card-featured .product-number {
  color: rgba(201, 169, 97, 0.2);
}

/* Products CTA */
.products-cta {
  margin-top: 3.5rem;
  text-align: center;
}

.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #C9A961 0%, #B08F48 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 97, 0.4);
  gap: 1rem;
  color: #ffffff;
}

.btn-modern svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.btn-modern:hover svg {
  transform: translateX(4px);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-card {
    padding: 2rem 1.5rem;
  }

  .product-number {
    font-size: 2.5rem;
    top: 1rem;
    right: 1rem;
  }

  .products-cta {
    margin-top: 2.5rem;
  }
}

@media (max-width: 480px) {
  .product-card {
    padding: 1.75rem 1.25rem;
  }

  .product-visual {
    width: 56px;
    height: 56px;
  }

  .product-visual img {
    width: 32px;
    height: 32px;
  }

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

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

  .btn-modern {
    width: 100%;
    justify-content: center;
  }
}
