:root {
    --primary-color: #35C88A;
    --background-color: #121212;
    --card-background: #1E1E1E;
    --text-color: #E0E0E0;
    --secondary-text-color: #B0B0B0;
  }
  
  body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  header {
    background-color: var(--card-background);
    color: var(--primary-color);
    text-align: center;
    padding: 1em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  h1 {
    margin: 0;
    font-size: 3em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  }
  
  nav {
    background-color: var(--card-background);
    padding: 1em;
  }
  
  nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
  }
  
  nav ul li {
    margin: 0 1em;
  }
  
  nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    font-size: 1.25rem;
  }
  
  nav ul li a:hover {
    color: var(--primary-color);
  }
  
  main {
    flex-grow: 1;
    padding: 2em;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
  }
  #subtitle {
    color: var(--secondary-text-color);
    font-size: 1rem;
    margin-top: 0;
  }
  .product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 350px;
  }
  
  .product-card {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 20px;
    width: calc(25% - 20px);
    min-width: 250px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0px 2px 10px 1px rgba(53, 200, 138, 0.2);
    position: relative;
    overflow: visible; /* Changed from hidden to visible */
  }

  .product-card:hover, .product-card:active {
      transform: translateY(-10px);
      border-radius: 10px 10px 0 0;
      box-shadow: 
          -10px 0 20px rgba(53,200,138,0.2),
          10px 0 20px rgba(53,200,138,0.2),
          0 -10px 20px rgba(53,200,138,0.2);
      z-index: 2;
  }
  
  .product-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 auto 15px;
  }

  .product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  
  .product-description {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background-color: var(--card-background);
    color: var(--text-color);
    padding: 20px;
    border-radius: 0 0 10px 10px;
    top: 100%; /* Changed from calc(100% - 10px) to 100% */
    left: 0;
    right: 0;
    z-index: 1; /* Changed from 0 to 1 */
    border-top: 5px solid var(--primary-color);
    box-shadow:
        -10px 10px 20px rgba(53,200,138,0.2),
        10px 10px 20px rgba(53,200,138,0.2),
        0 10px 20px rgba(53,200,138,0.2);
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  }
  
  .product-card:hover .product-description, .product-card:active .product-description {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .seo-keywords {
    display: none;
  }

  .product-title {
    font-size: 1.2em;
    margin: 0 0 10px;
    color: var(--primary-color);
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: center;
    word-break: auto-phrase;
  }
  .product-category {
    font-size: 0.9em;
    color: var(--secondary-text-color);
    margin-bottom: 5px;
    height: 20px;
    padding-bottom: 1rem;
  }

  .product-price {
    font-weight: bold;
    color: var(--text-color);
    font-size: 1.1em;
    margin-bottom: 15px;
    height: 20px;
    text-align: center;
  }
    
  .cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: center;
  }

  .cta-button:hover {
    background-color: #2AA876;
    box-shadow: 0 5px 15px rgba(53,200,138,0.4);
  }
  
  footer {
    text-align: center;
    padding: 0.75rem;
    background-color: var(--card-background);
    color: var(--secondary-text-color);
    bottom: 0;
    position: fixed;
    width: 100vw;
    z-index: 100;
    height: 1rem;
  }
  
  .page-content {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 2em;
    margin-top: 2em;
  }
  .search-container {
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  #search-input {
      padding: 10px;
      width: 30%;
      height: 3rem;
      border: 1px solid var(--primary-color);
      border-radius: 5px;
      background-color: var(--card-background);
      color: var(--text-color);
  }

  #category-filter {
      padding: 10px;
      margin-left: 10px;
      border: 1px solid var(--primary-color);
      border-radius: 5px;
      background-color: var(--card-background);
      color: var(--text-color);
      height: 3rem;
  }

  .product-category {
      font-size: 1em;
      color: var(--secondary-text-color);
      margin-top: 5px;
      font-weight: 100;
      text-align: center;
  }