body {
  color:#46474b;  
  font-family: sans-serif;
  font-size:16px;  
  box-sizing: border-box;
}

h1 {
  color:#0170b9;
  font-size: 1.75em;
}

h2 {
    color:#0170b9;
    margin-top: 1.5rem;
}

h3, h4, h5 {
    color:#0170b9;
    margin-top: 1.25rem;
}


.pageintro {
    text-align:center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;  
    font-size: 1.5rem;
}

.gearCard {
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;  
  background-color: #c6cef7; /* optional: or keep your current color */
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  box-sizing: border-box;  
  text-align: left;
  width: 80%vw;
  max-width:600px;
  padding:10px;
}

.gearCard:hover {
  transform: translateY(-3px);
}

.gearCard h3 {
  margin-top: 0;
  color: #0170b9;
}



.searchButton {
  background-color: #004080;
  color: white;
  border: none;
  padding: 0.75rem 0.75rem;
  margin-top: 0.5rem;
  margin-left: 0.5rem;  
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.searchButton:hover {
  background-color: #0066cc;
}

.filter-btn {
  background-color: #fff;
  border: 1px solid #bbb;
  border-radius: 6px;
  padding: 1rem;
  margin-left: 0.5rem;
  margin-bottom: 0.5rem;  
  cursor: pointer;
}
.filter-btn.active {
  background-color: #0077cc;
  color: #fff;
  border-color: #0077cc;
}

.filter-cabin-btn {
  background-color: #fff;
  border: 1px solid #bbb;
  border-radius: 6px;
  padding: 1rem;
  margin-left: 0.5rem;
  margin-bottom: 0.5rem;  
  cursor: pointer;
}

.filter-cabin-btn.active {
  background-color: #0077cc;
  color: #fff;
  border-color: #0077cc;
}

.filter-laptop-btn {
  background-color: #fff;
  border: 1px solid #bbb;
  border-radius: 6px;
  padding: 1rem;
  margin-left: 0.5rem;
  margin-bottom: 0.5rem;  
  cursor: pointer;
}

.filter-laptop-btn.active {
  background-color: #0077cc;
  color: #fff;
  border-color: #0077cc;
}

.filter-feature-btn {
  background-color: #fff;
  border: 1px solid #bbb;
  border-radius: 6px;
  padding: 1rem;
  margin-left: 0.5rem;
  margin-bottom: 0.5rem;  
  cursor: pointer;
}

.filter-feature-btn.active {
  background-color: #0077cc;
  color: #fff;
  border-color: #0077cc;
}

.filter-weight-btn {
  background-color: #fff;
  border: 1px solid #bbb;
  border-radius: 6px;
  padding: 1rem;
  margin-left: 0.5rem;
  margin-bottom: 0.5rem;  
  cursor: pointer;
}

.filter-weight-btn.active {
  background-color: #0077cc;
  color: #fff;
  border-color: #0077cc;
}

.product-image {
  display: block;
  margin-top:10px;
  margin-left: auto;
  margin-right: auto;
  width: 60vw;
  max-width: 300px;
  border-radius: 12px;
  border-color: #6c99b8;
}

.product-info {
   display: block;
   text-align: center;
   margin-left: auto;
   margin-right: auto;
   color: black;
}

.buyit-button {
    display:block;
    padding:0.5rem;
    margin-top:1.5rem;
    width:50vw;
    max-width:200px;
    margin-left:auto;
    margin-right:auto;
    background-color: #f5b942;
    border-radius: 12px;
    color:black;
}

.buyit-button:hover {
    background-color: #f5af0c;
    font-size:18px;
    color:black;
}

.nomatch {
    font-size:24px;
    color:purple;
    text-align:center;
    padding:10px;
}

.buttonbar {
    margin-left:auto;
    margin-right:auto;
    display:block;
    padding:0.5rem;
    background-color: #dcf0fc;
    border-radius: 12px;
    width: 80%vw;
    max-width:600px;
}

.resultsapp {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1rem;
  /* Make sure the section is taller than the sticky element */
  /* Avoid making ancestors create a new scroll container unless intended */
}

#buttons {
  position: sticky;
  top: 1rem;          /* distance from top of viewport */
  align-self: start;  /* ensures the grid item starts at the top */
  z-index: 1; 
}

.controlbar {
    margin-left:auto;
    margin-right:auto;
    margin-top:0.5em;
    padding:0.5rem;
    background-color: #dcf0fc;
    border-radius: 12px;
    width: 80%vw;
    max-width:600px;
}

.filterbar {
    margin-left:auto;
    margin-right:auto;
    display:block;
    padding:0.5rem;
    background-color: #dcf0fc;
    border-radius: 12px;
    max-width:800px;
}

#affiliatedisclaimer p {
    color: #444;
    font-style: italic;
    margin-top: 1rem;
    font-size: 0.9rem;
}
    
