/* ========================================
   PRODUCTS PAGE STYLES
   ======================================== */

/* Hero Section for Products Page */
.products-hero {
  height: 60vh;
  min-height: 450px;
  position: relative;
}

/* Black Overlay */
.products-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  pointer-events: none;
}

.products-hero .hero-content {
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.products-hero .hero-text h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.products-hero .hero-text p {
  text-align: center;
  font-size: 18px;
  color: #dadada;
  max-width: 900px;
  margin: 0 auto;
}

.products-hero .container {
  height: 100%;
}

.products-hero .hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
}

.products-hero .hero-text {
  color: var(--white);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.products-hero .hero-text h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-align: center;
}

.products-hero .hero-text p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
  opacity: 0.95;
  text-align: center;
  color: #dadada;
  max-width: 900px;
  margin: 0 auto;
}

/* Products Layout - Updated for Full Width */
.products-layout {
  padding: 60px 0;
  background: #f8f9fa;
  min-height: calc(100vh - 67px);
}

/* NOTE: Filter and Sidebar styles have been moved to products-filters.css 
   and are no longer used in the current version */

/* Main Content Area - Full Width */
.products-main {
  width: 100%;
  max-width: 100%;
}

.products-header {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e2e8f0;
  text-align: center;
}

.results-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--primary-navy);
  margin: 0;
}

.product-count {
  color: var(--accent-blue);
  font-size: 20px;
}

/* Products Grid - Full Width Layout */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

/* Modern Product Card */
.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Card Image Wrapper */
.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Gradient Overlay */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

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

/* Card Badge */
.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(47, 133, 243, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(47, 133, 243, 0.3);
  z-index: 2;
}

.card-badge i {
  font-size: 12px;
}

.card-badge.aeris {
  background: rgba(239, 68, 68, 0.95);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.card-badge.visreco {
  background: rgba(16, 185, 129, 0.95);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Card Content */
.card-content {
  padding: 24px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 0 0 12px 0;
  line-height: 1.3;
  font-family: 'Poppins', sans-serif;
}

.card-category {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.card-category i {
  color: var(--accent-blue);
  font-size: 13px;
}

/* Card Footer */
.card-footer {
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.view-details {
  color: var(--accent-blue);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.view-details i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.product-card:hover .view-details {
  gap: 12px;
}

.product-card:hover .view-details i {
  transform: translateX(4px);
}

/* Old styles - keeping for backwards compatibility */
.product-card::before {
  display: none;
}

.product-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(30, 58, 95, 0.95);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.product-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-family: 'Poppins', sans-serif;
  color: var(--primary-navy);
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: 600;
  line-height: 1.3;
}

.product-subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--accent-blue);
  margin-bottom: 15px;
  font-weight: 600;
}

.product-description {
  font-family: 'Lato', sans-serif;
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

/* Product Features */
.product-features {
  margin-bottom: 20px;
  padding: 18px;
  background: var(--light-gray);
  border-radius: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: var(--text-gray);
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-item i {
  color: var(--accent-blue);
  font-size: 1rem;
  flex-shrink: 0;
}

/* Product Actions */
.product-actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
}

.product-actions .btn-primary {
  flex: 1;
  display: inline-block;
  padding: 12px 30px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: none;
}

.product-actions .btn-secondary {
  padding: 12px 20px;
  background: var(--light-gray);
  color: var(--primary-navy);
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product-actions .btn-secondary::after {
  display: none !important;
}

.product-actions .btn-secondary:hover {
  background: var(--primary-navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* No Results */
.no-results {
  text-align: center;
  padding: 80px 20px;
}

.no-results i {
  font-size: 4rem;
  color: #cbd5e0;
  margin-bottom: 20px;
}

.no-results h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 12px;
}

.no-results p {
  font-family: 'Lato', sans-serif;
  font-size: 1.1rem;
  color: #718096;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
  }

  .card-image-wrapper {
    height: 220px;
  }
}

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

  .products-header {
    margin-bottom: 24px;
  }

  .results-title {
    font-size: 22px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  .card-image-wrapper {
    height: 200px;
  }

  .card-content {
    padding: 20px;
  }

  .card-title {
    font-size: 18px;
  }

  .products-hero {
    height: 50vh;
    min-height: 400px;
    padding: 120px 0 60px;
  }

  .products-hero .hero-text h1 {
    font-size: 36px;
  }

  .products-hero .hero-text p {
    font-size: 16px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-title {
    font-size: 1.6rem;
  }

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

@media (max-width: 480px) {
  .products-hero .hero-text h1 {
    font-size: 28px;
  }

  .results-title {
    font-size: 20px;
  }

  .product-count {
    font-size: 16px;
  }

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

/* Animation Classes */
.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.2s;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hidden state for filtered products */
.product-card.hidden {
  display: none;
}

.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.product-card-link:hover {
  text-decoration: none;
}

.product-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.product-logo {
  width: 100px;
  height: 80px;
  min-width: 60px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-company-info {
  flex: 1;
}

.product-company-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.product-location {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.product-details {
  margin-top: 16px;
}

.product-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.product-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.product-type {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}
