/* ====== BACKGROUND WRAPPER ====== */
.contact-page-wrapper {
    position: relative;
    overflow: hidden;       /* keep bg contained */
  }
  .contact-page-wrapper .contact-page-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;   /* allow clicks through */
    z-index: 0;
  }
  .contact-page-wrapper .contact-page-bg img {
    width: 100%;
    object-fit: repeat;
    opacity: 0.2;           /* adjust for more/less visibility */
  }
  
/* Overall Page Styles */
body {
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.product-page {
    background-color: #f8f9fa;
    padding: 60px 20px;
    text-align: center;
}

.product-page h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #002147;
    font-weight: normal;
}

/* Back Button Styles */
.back-button-container {
    margin: 20px 0;
    text-align: left;
}

.back-button {
    background: #002147;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.back-button:hover {
    background: #001f3f;
}

/* Output Buttons Styles */
.output-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.output-button {
    background-color: transparent;
    border: 2px solid #002147;
    color: #002147;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.4s ease, color 0.4s ease;
}

.output-button:hover,
.output-button.active {
    background: #002147;
    color: #fff;
}

/* Page Layout */
.page-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.filters-container {
    flex: 0 0 300px;
}

.products-container {
    flex: 1;
}
/* Filter Section Styles */
.filters-container {
    background: #fff; /* Ensure the background is solid white */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    text-align: left;
    z-index: 1; /* Ensure it appears above other transparent elements */
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #002147;
}

.filter-group label {
    display: block;
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 5px;
}

.filter-group input[type="checkbox"] {
    margin-right: 5px;
}

/* Product Grid Styles */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: left;
}

/* Product Card Styles */
.product-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 260px;
    text-align: left;
    opacity: 0;
    transform: scale(0.95);
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.product-card.visible {
    opacity: 1;
    transform: scale(1);
}

.product-card:hover {
    transform: translateY(-3px) scale(1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card img {
    display: block;
    width: 100%;
    height: auto;
}

.product-card h3 {
    font-size: 1.3rem;
    margin: 10px;
    color: #002147;
    font-weight: 0.5rem;
    text-align: center;
}

.product-details {
    padding: 0 1px 1px;
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

.product-details p {
    margin-bottom: 5px;
}

/* Search Bar Container */
.product-search-container {
    margin: 20px 0;
    text-align: center;
}

/* Search Bar Styling */
.product-search-container input[type="search"] {
    padding: 8px 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 80%;
    max-width: 400px;
}

/* ====== MOBILE RESPONSIVE ====== */
@media (max-width: 768px) {
    /* Stack filters above products */
    .page-layout {
      display: block;
      padding: 0 15px;
    }
    .filters-container,
    .products-container {
      width: 100%;
      margin: 0 auto 1.5rem;
    }
  
    /* Make output buttons full-width and stacked */
    .output-buttons {
      flex-direction: column;
      gap: 10px;
      margin-bottom: 20px;
    }
    .output-button {
      width: 100%;
    }
  
    /* Search bar full width */
    .product-search-container input[type="search"] {
      width: 100%;
      max-width: 100%;
    }
  
    /* Single-column grid */
    .product-grid {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
  
    /* Cards span full width */
    .product-card {
      width: 100%;
      padding: 15px;
    }
  }
  
  @media (max-width: 480px) {
    /* Shrink headings & text slightly */
    .product-page h1 {
      font-size: 2.25rem;
    }
    .filter-group h4,
    .filter-group label {
      font-size: 1rem;
    }
  
    /* Tighten up card padding */
    .product-card {
      padding: 12px;
    }
  
    /* Back button centered */
    .back-button-container {
      text-align: center;
    }
    .back-button {
      margin: 0 auto;
    }
  }
  