/* Products Page Styles */
/* Based on dreamview-co-il-new (3).html design */

/* Products Grid Container */
.products-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1225px;
  margin: 0 auto;
  padding: 0 24px;
  padding-bottom: 100px;
}

/* Product Card */
.product-card {
  background-color: #1a1a2e;
  border-radius: 8px;
  border: 1px solid transparent;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0; /* Убираем padding у карточки */
}

.product-card:hover {
  border-color: #ea580c;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Product Card Image */
.product-card-image {
  overflow: hidden;
  height: 224px; /* 14rem */
  position: relative;
  margin: -2rem -2rem 0 -2rem; /* Убираем padding карточки для изображения */
}

.product-card .card-link:hover {
  border-color: transparent !important; /* Принудительно убираем border-color */
  transform: none !important; /* Принудительно убираем transform */
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block; /* Убираем лишние отступы */
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

/* Product Card Content */
.product-card > a {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-decoration: none;
  color: inherit;
}

/* Product Card Title */

.product-card-title h3 {
  padding-top: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

/* Product Card Description */

.product-card-description {
  font-size: 1.125rem;
  color: #9ca3af;
  margin: 0;
  padding: 10px 0;
  line-height: 1.6;
}

/* Product Card Link */
.product-card-link {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-link-text {
  font-weight: 600;
  color: #f97316;
  font-size: 1rem;
}

.product-link-arrow {
  color: #f97316;
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.product-card:hover .product-link-arrow {
  transform: translateX(4px);
}



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

  .product-card-image {
    height: 200px;
    margin: -2rem -2rem 0 -2rem; /* Сохраняем full-bleed */
  }

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

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

@media (max-width: 768px) {
  .products-grid-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .card-link {
    padding: 15px;
  }
  .product-card-image {
    height: 180px;
    margin: -1rem -1rem 0 -1rem; /* Адаптируем margin под новый padding */
  }

  .product-card-title,
  .product-card-description,
  .product-card-link {
    padding-left: 1rem;
    padding-right: 1rem;
  }

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

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

@media (max-width: 480px) {
  .product-card-title,
  .product-card-description,
  .product-card-link {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
