/* =========================================
   PRODUCTS PAGE STYLES (Dynamic Version)
   ========================================= */

   :root {
    --bion-blue: #0077b6;
    --bion-dark: #023e8a;
    --bion-accent: #00b4d8;
    --text-white: #ffffff;
  }
  
  body {
    font-family: 'Poppins', sans-serif !important;
    background: #f4f6f8;
    margin: 0;
    overflow-x: hidden;
  }
  
  /* --- GLASSMORPHISM NAVIGATION --- */
  .navbar {
    background-color: rgba(26, 28, 31, 0.651) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    z-index: 999;
    top: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-brand {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-white) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
  }
  
  .nav-link {
    color: var(--text-white) !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s ease;
  }
  
  .nav-link:hover, .nav-link.active { 
    color: var(--bion-accent) !important; 
  }
  
  /* --- PAGE HEADER --- */
  .page-header {
    background: linear-gradient(135deg, var(--bion-dark), var(--bion-blue));
    padding: 60px 0 80px;
    text-align: center;
    color: white;
    margin-bottom: 60px;
  }
  
  .page-header h1 {
    font-weight: 800;
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 10px auto 0;
  }
  
  /* --- PRODUCTS GRID --- */
  .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding-bottom: 80px;
  }
  
  .product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
  }
  
  .product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 119, 182, 0.2);
  }
  
  /* Image Wrapper to ensure consistent aspect ratio */
  .card-img-wrap {
    height: 250px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0; /* Loading placeholder color */
  }
  
  .product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .product-card:hover img {
    transform: scale(1.1);
  }
  
  .product-card .content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  
  .product-card h3 {
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--bion-dark);
  }
  
  .product-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
  }
  
  /* Button Styling (Matches Bion Blue) */
  .product-card a {
    display: inline-block;
    text-decoration: none;
    background: var(--bion-blue);
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: 0.3s;
    border: none;
    width: 100%;
    margin-top: auto; /* Pushes button to bottom */
  }
  
  .product-card a:hover {
    background: var(--bion-dark);
    color: white;
    box-shadow: 0 5px 15px rgba(2, 62, 138, 0.3);
  }
  
  /* --- FOOTER --- */
  footer {
    background: #111;
    color: #fff;
    padding: 80px 0 30px;
    border-top: 4px solid var(--bion-blue);
  }
  
  .footer-links a { 
    color: #888; 
    text-decoration: none; 
    display: block; 
    margin-bottom: 10px; 
    transition: 0.3s; 
  }
  
  .footer-links a:hover { 
    color: var(--bion-accent); 
    padding-left: 5px; 
  }
  
  /* Loading State Text */
  .loading-msg {
      text-align: center;
      font-size: 1.2rem;
      color: #666;
      grid-column: 1 / -1;
      padding: 40px;
  }