/* ========================================
   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: 72px 0;
  background:
    radial-gradient(circle at 50% -15%, rgba(74, 123, 184, 0.12), rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
  min-height: calc(100vh - 67px);
  position: relative;
  overflow: hidden;
}

.products-layout::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(10, 31, 68, 0.02) 0,
    rgba(10, 31, 68, 0.02) 1px,
    transparent 1px,
    transparent 120px
  );
  pointer-events: none;
}

/* 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: 0 auto 36px;
  max-width: 980px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(74, 123, 184, 0.22);
  text-align: center;
  position: relative;
  z-index: 1;
}

.products-kicker {
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #4a7bb8;
  margin: 0 0 10px;
}

.results-title {
  font-size: 38px;
  font-weight: 700;
  color: #0a1f44;
  margin: 0 0 12px;
}

.product-count {
  color: #2e5c9a;
  font-size: 24px;
  font-weight: 600;
}

.products-subtitle {
  color: #4d5f79;
  font-size: 17px;
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto 30px;
}

.brand-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.brand-filter-btn {
  border: 1px solid rgba(116, 166, 223, 0.55);
  background: #ffffff;
  color: #1e3a5f;
  padding: 10px 22px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.28s ease;
  cursor: pointer;
}

.brand-filter-btn:hover {
  color: #143a6f;
  border-color: #8cc5f6;
  background: #eef5ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 92, 154, 0.18);
}

.brand-filter-btn.active {
  color: #ffffff;
  border-color: #9dd0fa;
  background: linear-gradient(135deg, #4a7bb8 0%, #2e5c9a 100%);
  box-shadow: 0 10px 24px rgba(46, 92, 154, 0.32);
}

/* Products Grid - Full Width Layout */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* Modern Product Card */
.product-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(46, 92, 154, 0.16);
  box-shadow: 0 8px 24px rgba(16, 34, 66, 0.12);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(74, 123, 184, 0.45);
  box-shadow: 0 16px 36px rgba(16, 34, 66, 0.2);
}

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

/* Card Image Wrapper */
.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #091f4a 0%, #071638 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: 18px;
  font-weight: 700;
  color: #0a1f44;
  margin: 0 0 12px 0;
  line-height: 1.3;
  font-family: 'Poppins', sans-serif;
}

.card-category {
  font-size: 14px;
  color: #5e728f;
  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 rgba(46, 92, 154, 0.14);
}

.view-details {
  color: #2e5c9a;
  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;
  color: #2e5c9a;
}

.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: #0a1f44;
  margin-bottom: 12px;
}

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

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

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

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

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

  .products-kicker {
    font-size: 12px;
  }

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

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

  .products-subtitle {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .brand-filters {
    gap: 10px;
  }

  .brand-filter-btn {
    width: auto;
    min-width: 160px;
    padding: 10px 12px;
    letter-spacing: 0.08em;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 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: 24px;
  }

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

  .brand-filter-btn {
    width: auto;
    min-width: 0;
  }

  .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;
}
