/* =========================================================
   AotuLink Shared Product List Styles
   File: /css/product-list.css
   ========================================================= */


/* =========================================================
   Product Intro
   ========================================================= */

.product-list-intro {
  max-width: 620px;
  margin: 18px auto 0;
}

.product-list-intro-title {
  font-weight: 600;
  margin-bottom: 4px;
}


/* =========================================================
   Product Filters
   ========================================================= */

.product-filters {
  margin: 32px 0 42px;
  text-align: left;
}


/* Optional wrapper for each filter section */

.product-filter-group-wrap {
  margin-bottom: 16px;
}


/* Optional label above each filter group */

.product-filter-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}


/* Filter button group */

.product-filter-group {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}


/* Space between filter groups */

.product-filter-group + .product-filter-group {
  margin-top: 12px;
}


/* Filter buttons */

.product-filter-btn {
  border: 1px solid #d9d9d9;
  background: transparent;
  color: inherit;

  padding: 8px 20px;

  border-radius: 24px;

  font-size: 14px;
  line-height: 1.4;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}


/* Hover */

.product-filter-btn:hover {
  border-color: #999;
}


/* Active */

.product-filter-btn.active {
  background: #111;
  border-color: #111;
  color: #fff;
}


/* Keyboard focus */

.product-filter-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}


/* =========================================================
   Product Tags
   ========================================================= */

.product-tags {
  display: flex;
  justify-content: center;
  align-items: center;

  flex-wrap: wrap;

  gap: 6px;

  margin: 10px 0 16px;

  min-height: 26px;
}


/* Individual tag */

.product-tag {
  display: inline-block;

  border: 1px solid #dedede;

  border-radius: 20px;

  padding: 4px 10px;

  font-size: 12px;
  line-height: 1.2;

  white-space: nowrap;
}


/* =========================================================
   Product Filtering
   ========================================================= */

.product-item {
  transition: opacity 0.2s ease;
}


/* Hidden by product-filter.js */

.product-item.is-hidden {
  display: none !important;
}


/* =========================================================
   Discontinued Products
   ========================================================= */

.discontinued-section {
  margin-top: 70px;

  padding-top: 45px;

  border-top: 1px solid #e5e5e5;
}


.discontinued-title {
  margin-bottom: 8px;
}


.discontinued-description {
  max-width: 600px;

  margin: 0 auto 35px;
}


/* Reduce emphasis of discontinued cards */

.thumbnail.discontinued {
  opacity: 0.65;
}


/* =========================================================
   Product Support
   ========================================================= */

.product-support {
  margin-top: 70px;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 991px) {

  .product-filters {
    margin: 28px 0 36px;
  }

}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 575px) {

  .product-filters {
    margin: 25px 0 32px;
  }


  .product-filter-group {
    gap: 8px;
  }


  .product-filter-group + .product-filter-group {
    margin-top: 10px;
  }


  .product-filter-group-wrap {
    margin-bottom: 14px;
  }


  .product-filter-label {
    font-size: 12px;
    margin-bottom: 7px;
  }


  .product-filter-btn {
    padding: 7px 15px;

    font-size: 13px;
  }


  .product-tags {
    gap: 5px;

    margin: 8px 0 14px;
  }


  .product-tag {
    padding: 4px 8px;

    font-size: 11px;
  }


  .discontinued-section {
    margin-top: 55px;

    padding-top: 35px;
  }


  .product-support {
    margin-top: 55px;
  }

}