/* Products Styles */

.product-filter-list {
  list-style: none;
}

.product-filter-list .active {
  font-weight: bold;
  color: #272727;
}

.product-name {
  color: var(--link);
  line-height: 1;
  font-family: var(--font-display-primary);
}

.sku {
  text-transform: uppercase;
  color: var(--link);
  text-align: left;
  margin-bottom: 0;
  font-size: 30px;
  height: 35px;
  font-family: 'Pathway Gothic One', sans-serif;
}

.sku span {
  color: #272727;
  font-weight: 700;
}

/* Stock and model side by side. */
.product-info .sku {
  display: inline-block;
  margin-right: 40px;
}

.product-price {
  color: var(--primary);
  font-size: 102%;
  text-align: left;
  margin: 10px 0;
  min-height: 55px;
}

.call-for-pricing {
  font-weight: bold;
  font-size: 90%;
  color: #1c4f56;
}

.msrp {
  font-weight: bold;
}

.price {
  display: block;
}

.product-info .product-price {
  font-size: 140%;
}

.product-info .price {
  display: inline-block;
}

.products-grid .product-grid-card {
  min-height: 390px;
  margin-bottom: 40px;
  padding: 10px;
}

.products-grid .product-grid-card h2 {
  margin: 3px 0 5px;
  min-height: 65px;
}

.products-grid .product-grid-card a {
  color: var(--link);
  text-decoration: none;
}

.products-grid .product-grid-card .btn {
  color: var(--black);
  margin-top: 10px;
}

.products-grid .product-grid-card .prod-image {
  min-height: 245px;
}

.products-grid .product-grid-card img {
  display: block;
  margin: auto;
  max-width: 228px;
  max-height: 220px;
  height: auto;
}

.products-grid .product-grid-card .product-name a {
  font-size: 22px;
  display: inline-block;
}

/* Product detail pages: same width as the category pages. */
.container.product-page {
  max-width: 1700px;
  padding: 20px;
}

.title-bar {
  background-color: var(--secondary);
  text-transform: uppercase;
  padding: 12px;
  margin: 25px 0 20px;
}

.product-content {
  padding-top: 24px;
}

/* Price with the dealer note underneath, then the buttons side by side. */
.product-buy__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.product-buy__meta .product-price {
  min-height: 0;
  margin-bottom: 4px;
}

.product-buy__note {
  font-size: 13px;
}

.product-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 0 24px;
}

.product-btns .atc-form {
  margin: 0;
}

/* Both buttons the same size, label centered. */
.product-btns .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 44px;
  margin: 0;
  padding: 0 28px;
  white-space: nowrap;
  text-decoration: none;
}

.model-sku {
  font-size: 11px;
  font-weight: bold;
}

.category-sku {
  font-size: 12px;
  margin-bottom: 4px;
}

.product-details .attribute-label {
  font-weight: bold;
}

.product-details iframe {
  max-width: 100%;
}

.cta-actions {
  max-width: 320px;
  float: right;
  padding: 16px 0 24px;
}

.product-collateral {
  margin-top: 64px;
}

.product-collateral .title-bar {
  margin: 0;
}

.product-collateral .box-description {
  background: #f9f9f9;
  padding: 24px 16px;
}

.related-products {
  margin-bottom: 40px;
}

.related-products a {
  color: var(--link);
}

.related-product .product-img {
  min-height: 220px;
}

.grouped-products-grid {
  font-size: 12px;
  width: 100%;
}

.grouped-products-grid th,
.grouped-products-grid td {
  vertical-align: top;
  padding: 4px;
}

.grouped-products-grid td {
  padding: 8px 4px;
}

.grouped-products-grid thead,
.grouped-products-grid thead th {
  background-color: var(--primary);
}

.grouped-products-grid thead th {
  color: var(--white);
  font-size: 13px;
  white-space: nowrap;
  padding: 8px;
  border-right: 1px solid var(--white);
}

.grouped-products-grid td.separator {
  background-color: #ddd;
  padding: 0;
  height: 1px;
}

.grouped-products-grid .doc-link {
  display: block;
}

.grouped-products-grid .col-description {
  max-width: 500px;
}

.grouped-products-grid .qty-column {
  max-width: 50px;
}

.grouped-products-grid input[name="qty"],
.grouped-products-grid input[data-qty] {
  border-radius: 5px;
  padding: 4px;
  width: 40px;
}

@media screen and (min-width: 768px) {
  .product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0;
  }

  .product-details h2 {
    font-size: 30px;
  }

  .attribute {
    display: grid;
    grid-template-columns: 30% 1fr;
    margin-bottom: 8px;
  }

  .related-products {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 16px 0;
  }

  .related-product {
    max-width: 220px;
    margin: auto;
  }
}

.cta-actions .btn {
  display: block;
}

.desc_voltages {
  color: #396;
  font-weight: bold;
}

.desc_options {
  color: purple;
  font-weight: bold;
}

.desc_discontinued {
  color: #a00;
}

.desc_special {
  font-weight: bold;
}

.discounts {
  margin: 20px 0;
  background-color: #e1fff2;
  border: 1px solid #e3e3e3;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
  padding: 9px;
  border-radius: 3px;
}

/* Catalog layout shared by the category and search pages. */
/* Filters on the left, product grid filling the rest. */
.product-container {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    max-width: 1700px;
    margin: 0 auto;
    padding: 20px;
}

.product-container .filters {
    flex: 0 0 240px;
}

.product-main {
    flex: 1;
    min-width: 0;
}

.category-title {
    margin-top: 10px;
    color: var(--link);
    font-size: 36px;
    text-transform: uppercase;
}

.filter-total {
    font-size: 14px;
}

.filter-total span {
    padding: 0 5px;
}

/* Five products per row on wide screens, stepping down as it narrows. */
.product-main .products-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 1400px) {
    .product-main .products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .product-main .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .product-main .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-container {
        flex-direction: column;
        gap: 16px;
    }

    .product-container .filters {
        flex: none;
        width: 100%;
    }
}
