/* Catalog listings and product pages */

/* Downloads menu on product cards */
.dropbtn {
  background-color: #c0c0c0;
  color: #fff;
  padding: 8px;
  font-size: 11px;
  border: none;
  cursor: pointer;
}
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 75px;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
  z-index: 1;
}
.dropdown-content a {
  color: #000;
  padding: 6px 10px;
  text-decoration: none;
  display: block;
}
.dropdown-content a:hover,
.dropdown-content a:focus {
  background-color: #c0c0c0;
}
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}

/* Card without a photo yet */
.catalog-no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 1rem;
  background: #f4f4f4;
  color: #777;
  font-size: 1.3rem;
  text-align: center;
  text-transform: uppercase;
}

/* Optional text set in Drive for a category */
.catalog-intro {
  margin: 0 0 1rem;
  font-size: 1.4rem;
}

/* Extra product photos */
.catalog-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.catalog-thumb {
  width: 80px;
  height: 80px;
  padding: 0;
  border: 1px solid #e7e7e7;
  background: #fff;
  cursor: pointer;
}
.catalog-thumb.active,
.catalog-thumb:focus-visible {
  border-color: #0064c0;
}
.catalog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Keeps card titles aligned when a product has no cutsheet */
.product-default .category-wrap {
  min-height: 31px;
}

/* Floating email button on the Products page */
.catalog-help {
  position: fixed;
  z-index: 10000;
  width: 50px;
  height: 50px;
  bottom: 15px;
  right: 15px;
  border-radius: 50px;
  text-align: center;
}
