@charset "UTF-8";
/* CSS Document */
#bike-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2vw;
  max-width: 800px; 
  margin: 0 auto;
  padding: 2vw;
  font-family:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}


/* Tooltip container with transparency */

.bike-block:hover {
  transform: scale(1.02);
}

/* Tooltip positioned just inside the top of the block */
.bike-block::after {
  content: "Click to Shop This";
  position: absolute;
  top: 0.6em;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(28, 28, 30, 0.6); /* semi-transparent dark overlay */
  color: rgba(255, 255, 255, 0.85);  /* soft light text */
  font-size: 0.7em;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
}

/* Show tooltip after half-second hover */
.bike-block:hover::after {
  opacity: 1;
  transition-delay: 0.5s;
}

.bike-block {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 1.2vw;
  text-align: center;
  transition: transform 0.2s ease;
  text-decoration: none;

}


.bd-bike-card-imgwrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 0.35em;
}

.bd-bike-card-imgwrap img {
  width: 133%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

 
.bike-title {
  font-size: 0.9em;
  font-weight: 600;
  letter-spacing: -.1;
  margin-top: .2em;
 line-height: 1.0;
text-decoration: none;
font-family: 'Urbanist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

.bike-price {
  margin: 0.15em 0;
 line-height: 1.0;
    text-decoration: none;
    font-family: 'Jost', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

}

.sale-price {
  color: #d32f2f;
  font-size: 1.1em;
  font-weight: 700;
  margin-right: 0.5em;
    margin-top: 0.2em;
     line-height: 1.0;
    text-decoration: none;
   font-family: 'Jost', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

}

.msrp {
  color: #666;
  font-size: 0.75em;
     line-height: 1.0;
    text-decoration: none;
        font-family: 'Urbanist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

}

.bike-specs {
  font-size: 0.7em;
  color: #444;
  margin: 0.15em 0;
     line-height: 1.0;
    text-decoration: none;
        font-family:  'Inter','Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

}

.bike-description {
  font-size: 0.75em;
  color: #333;
  margin-top: 0.15em;
  margin-bottom: 0.5em;
     line-height: 1.2;
    text-decoration: none;
    font-family:  'Inter','Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

}


@media (min-width: 768px) {

 .bike-description {
  font-size: 0.75em;
  font-weight: 300;
  color: #333;
  margin-top: 0.15em;
  margin-bottom: 0.15em;
  line-height: 1.2;
  text-decoration: none;
  font-family: 'Inter','Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}
    
    
    
  #bike-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Image wrapper remains the same */
.bd-bike-card-imgwrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  margin-bottom: 0.5em;
  border-radius: 12px;
  position: relative;
}

/* Updated thumbnail styling: better browser compatibility */
.bd-bike-card-imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  image-rendering: auto; /* Let browser handle it */
}

/* Hover effect: reduce motion and add soft shadow */
.bike-block {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bike-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* iPhone 12 and narrow viewport optimizations */
@media screen and (max-width: 430px) {
    .bike-description {
  font-size: 0.75em;
  color: #333;
  margin-top: 0.15em;
  margin-bottom: 0.75em;
     line-height: 1.2;
    text-decoration: none;
    font-family:  'Inter','Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

}
    
}