/* marketplace.css contains styles specific to the Marketplace section of the website, including product cards and family listings. These styles are designed to create a cohesive and visually appealing layout for showcasing products and encouraging user engagement.
*/
@import "./main.css";
/* Homepage */
.marketplacehomepage h1 + div {
  margin: 0 auto;
  max-width: 1000px;
}
.intro-home {
  @media (min-width: 1600px) {
    max-width: 1520px;
  }
}
/* Search */
.marketplacesearch .listing-item__image {
  width: 5rem;
}
/* Content */
.page-banner {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 11rem;
  @media (min-width: 992px) {
    min-height: 21rem;
  }
}
/* Vendors CTA */
.vendors-section {
  background: var(--bs-light-bg-subtle);
  margin-top: 25vw !important;
  @media (min-width: 992px) {
    margin: 5rem 0 !important;
  }
}
.vendors-section__content {}
.vendors-section__image {
  box-shadow: 3px 6px 10px 0 rgba(0, 0, 0, 0.25);
  margin: -25vw 0 0 0;
  @media (min-width: 992px) {
    margin: -3rem 0;
  }
}
/* Accordion */
.accordion-button {
  --bs-accordion-active-bg: #fff;
  --bs-accordion-active-color: var(--bs-secondary);
  --bs-accordion-inner-border-radius: 0;
  border: 1px solid var(--bs-primary);
  font-family: var(--bs-body-font-family);
  font-weight: 600;
  font-size: 1.25rem;

  &::after {
    background-image: url("/images/icons/chevron-down.svg");
    background-position: center;
  }
  &:not(.collapsed)::after {
    background-image: url("/images/icons/chevron-down.svg");
  }
}
/* Marketplace */
.marketplace {
  .hs-form-required,
  .hs-error-msgs label {
    color: red !important;
    font-family: var(--bs-header-font-family) !important;
  }
  ul.no-list {
    list-style: none !important;
  }
  .form-check {
    label {
      margin: 0 !important;
    }
    .form-check-input {
      float: none;
      height: 2rem;
      min-width: 0;
      width: 2rem;
    }
    .form-check-input:checked[type=checkbox],
    .form-check-input:checked[type=radio] {
      background-color: var(--bs-primary);
    }
  }
  .blogcards .container {
    max-width: 1200px;
  }
}
/* Marketplace CTA */
.marketplace-cta {
  background: url("/images/mp-cta-bg-sm.webp") no-repeat center center / cover;
  position: relative;
  padding-bottom: 0;
  max-width: calc(100% - 1.5rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  @media (min-width: 1200px) {
    background-image: url("/images/mp-cta-bg-lg.webp");
    padding: 100px 0;
  }
  @media (min-width: 1600px) {
    max-width: 1520px;
  }
}
.marketplace-cta-content {
  max-width: 720px;

  p {
    max-width: 640px;
    margin: 0 auto 2rem auto;
  }
}
.marketplace-cta-image {
  margin: 0 auto;
  @media (min-width: 1200px) {
    position: absolute;
    right: 0;
    bottom: 0;
  }
}
/* Product Card */
.product-card-grid-section .container {
  max-width: 1520px;
}
.mp-product-card-list {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  list-style: none;
  padding: 0 1rem;
  text-align: left;
  @media (min-width: 990px) {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

#main ul li.mp-product-card:not(:first-of-type) {
  margin-top: 0;
}
.mp-product-card {
  width: 100%;
  @media (min-width: 990px) {
    width: calc(25% - 2rem);
  }
}
.mp-product-card .card-image,
.mp-product-card .card-title {
  transition: all .3s ease;
}
.mp-product-card--rfq {
  .card-image {
    position: relative;
    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 40px;
      height: 40px;
      background: url("/images/rfq-tag.svg") no-repeat top left / contain;
      @media (min-width: 768px) {
        width: 60px;
        height: 60px;
      }
      @media (min-width: 990px) {
        width: 80px;
        height: 80px;
      }
      @media (min-width: 1440px) {
        width: 96px;
        height: 96px;
      }
    }
  }
}
.mp-product-card .mp-product-card-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  text-decoration: none;
  height: 100%;
  @media (min-width: 990px) {
    flex-direction: column;
  }
}
.mp-product-card .card-image {
  aspect-ratio: 3/4;
  border: 0 solid var(--bs-primary);
  height: 100%;
  width: 33%;
  img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
  @media (min-width: 990px) {
    width: 100%;
  }
}
.mp-product-card .card-body {
  width: 66%;
  @media (min-width: 990px) {
    width: 100%;
  }
}
.mp-product-card .card-category,
.mp-product-card .card-manufacturer,
.mp-product-card .card-upc {
  color: var(--bs-primary);
  font-family: var(--bs-header-font-family);
  line-height: 1.2;
  margin-bottom: .5rem;
  text-transform: uppercase;
}
.mp-product-card .card-price {
  color: var(--bs-secondary);
  margin-top: 2rem;
}
.mp-product-card .mp-product-card-link:hover .card-image,
.mp-product-card .mp-product-card-link:focus .card-image {
  border-width: 4px;
}
.mp-product-card .mp-product-card-link:hover .card-title,
.mp-product-card .mp-product-card-link:focus .card-title {
  color: var(--bs-primary);
  text-decoration: underline;
}

/* Product Category Tiles Slider */
#main ul li.product-category-tile:not(:first-of-type) {
  margin-top: 0;
}
.product-category-tiles, .related-products-carousel {
  position: relative;
  padding: 0 19px;

  .swiper-button-prev,
  .swiper-button-next {
    width: 21px;
    height: 21px;
  }

  .swiper-button-prev {
    left: -6px;
  }

  .swiper-button-next {
    right: -6px;
  }
}
@media (max-width: 767px) {
  .related-products-carousel {
    .swiper-button-prev,
    .swiper-button-next {
      display: none;
    }
  }
}
.product-category-tiles-list {
  list-style: none;
  padding: 0;
}
.product-category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  /* flex: 0 0 140px; */
}
.product-category-link {
  display: block;
  text-decoration: none;
  width: 100%;
}
.product-category-tile .tile-image {
  align-items: center;
  aspect-ratio: 1/1;
  background: var(--bs-white);
  border: 2px solid var(--bs-primary);
  box-shadow: 0 4px 4px 0 rgba(58, 80, 99, 0.10);
  display: flex;
  justify-content: center;
  transition: all .3s ease;
}
.product-category-link:hover .tile-image {
  border-width: 4px;
}
.product-category-tile .tile-image img {
  background: var(--bs-primary);
  height: 90%;
  padding: 25%;
  width: 90%;
}
.product-category-tile .tile-title {
  font-family: var(--bs-header-font-family);
  font-weight: 700;
  color: var(--bs-secondary);
  text-transform: none;
}
.product-filters-section .container {
  max-width: 1520px;
}
.product-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  padding: 0 1.75rem;
  @media (min-width: 990px) {
    flex-direction: row;
    justify-content: flex-start;
  }
}
.product-filter {
  width: 100%;
  .dropdown-toggle {
    --bs-form-select-bg-img: url("/images/icons/chevron-down.svg");
    background-image: url("/images/icons/chevron-down.svg");
    background-position: right .75rem center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    padding-right: 2.5rem;
    border: 1px solid var(--bs-primary);
    border-radius: 0;
    width: 100%;
  }
  @media (min-width: 990px) {
    width: auto;
  }
  .dropdown-toggle:hover, .dropdown-toggle.show {
    color: var(--bs-dark) !important;
    background-color: var(--bs-light);
  }
  .dropdown-toggle.show {
    --bs-form-select-bg-img: url("/images/icons/chevron-up.svg");
    background-image: url("/images/icons/chevron-up.svg");
  }
  .dropdown-toggle:after {
    display: none;
  }
  .dropdown-menu {
    @media (max-width: 989px) {
      width: 100%;
    }
  }
}
/* Product Family */
.product-family {
  border-bottom: 1px solid #e2e2e2;
  padding: 32px 0;
  @media (min-width: 990px) {
    padding: 54px 0;
  }
}
.product-family:nth-last-of-type() {
  border: none;
}
.product-family-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  list-style: none;
  @media (min-width: 990px) {
    flex-direction: row;
  }
}
/* Product Category */
.page-item:not(:first-child):not(:last-child) .page-link {
    color: initial;
}
/* Product Detail Page */
.product-detail-page {
  .container {
    max-width: 1520px;
  }
  .product-image-col {
    @media (min-width: 990px) {
      position: sticky;
      top: 2rem;
    }
  }
  .product-image-section {
    position: relative;
    .rfq-tag {
      display: none;
      position: absolute;
      top: 0;
      left: 0;
      z-index: 2;
      width: 96px;
      @media (min-width: 768px) {
        width: auto;
      }
    }
    .img-thumbnail {
      padding: 0;
      border-radius: 0;
      box-shadow: 1px 2px 5px 0 rgba(58, 80, 99, 0.15);
      @media (min-width: 768px) {
        max-width: 86px;
      }
    }

    .product-image-carousel {
      width: 100%;
      margin-bottom: 1rem;
      box-shadow: 1px 2px 5px 0 rgba(58, 80, 99, 0.15);
    }

    .product-image-carousel .swiper-slide-active img {
      display: block;
      margin: auto;
      max-height: 100%;
    }

    .product-thumbs {
      overflow-x: auto;
      overflow-y: visible;
      width: 100%;

      .swiper-wrapper {
        display: flex;
        flex-wrap: nowrap;
      }

      .swiper-slide {
        width: auto;
        height: auto;
        flex-shrink: 0;
      }
    }

    @media (min-width: 1400px) {
      display: flex;
      flex-direction: row;
      gap: 1rem;
      max-height: calc(100vh - 4rem);
      /* overflow-y: auto; */
      position: sticky;
      top: 2rem;

      .product-image-carousel {
        order: 1;
        flex: 1 1 auto;
        margin-bottom: 0;
        min-height: 0;
      }

      .product-thumbs {
        order: 0;
        width: 100px;
        flex: 0 0 100px;
        overflow-x: visible;
        overflow-y: auto;

        .swiper-wrapper {
          flex-direction: column;
        }
      }
    }
  }
  .product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;

    .product-tag {
      background: var(--bs-white);
      border: 1px solid var(--bs-primary);
      color: var(--bs-primary);
      padding: 8px 10px;
      font-size: 0.875rem;
      line-height: 1;
      font-family: var(--bs-primary);
    }
  }
  h1 {
    left: auto;
    position: relative !important;
    z-index: unset;
  }
  .product-subtitle {
    font-family: var(--bs-body-font-family);
    text-transform: none;
    border-top: 1px solid #e2e2e2;
  }
  .product-price {
    font-family: var(--bs-body-font-family);
  }
  .related-products {
    h3 {
      border-bottom: 1px solid #e2e2e2;
      padding-bottom: 1rem;
    }
  }
  .related-products-carousel {
    width: 100%;
    height: 540px;
    @media (min-width: 768px) {
      height: auto;
    }
  }
  &.rfq-product {
    .product-image-carousel {
      .rfq-tag {
        display: block;
      }
    }
    .product-price {
      display: none;
    }
  }
}
/* Cart */
.cart {
  #content {
    @media (min-width: 990px) {
      position: relative;
      &:after {
        background-color: var(--bs-lightest);
        background-image: url("/media/g1lh33jc/bg-dots.png");
        background-position: top left;
        background-repeat: repeat;
        background-size: 70px;
        content: '';
        height: 100%;
        opacity: .15;
        overflow: hidden;
        position: absolute;
        right: 0;
        top: 0;
        width: 17vw;
        z-index: -1;
      }
    }
    @media (min-width: 1440px) {
      &:after {
        width: 23vw;
      }
    }
    @media (min-width: 1920px) {
      &:after {
        width: 30vw;
      }
    }
  }
  .form-control {
    min-width: 80px;
    padding: 0.5rem 0;
  }
  textarea.form-control {
    background-color: var(--bs-light-bg-subtle);
    border-color: var(--bs-light-bg-subtle);
    border-radius: 0;
    padding: 0.5rem 0.75rem;
  }
  .cart-item {
    .cart-item-image {
      max-width: 30%;
      position: relative;
      .label {
        bottom: auto;
        right: -.25rem;
        top: -.25rem;
      }
      img {
        width: 160px;
        height: 138px;
        object-fit: cover;
        @media (min-width: 768px) {
          width: 172px;
          height: 146px;
        }
      }
    }
    .cart-item-content {
      width: 70%;
    }
  }
  .cart-item-quantity {
    .qty-btn {
      color: var(--bs-primary);
      font-size: 1.5rem;
      border: 0;
      background: transparent;
    }
    .form-control {
      background: transparent;
      border: 0;
      color: var(--bs-secondary);
      font-weight: 700;
      font-size: 1.25rem;
    }
  }
  .cart-item--rfq {
    .cart-item-image {
      position: relative;
      &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 40px;
        height: 40px;
        background: url("/images/rfq-tag.svg") no-repeat top left / contain;
        @media (min-width: 768px) {
          width: 60px;
          height: 60px;
        }
        @media (min-width: 990px) {
          width: 70px;
          height: 70px;
        }
      }
    }
  }
}
.order-summary {
  .order-summary__content {
    background: var(--bs-white);
  }
  @media (min-width: 990px) {
    padding: 4rem 0 0 4rem;
    .order-summary__content {
      position: sticky;
      top: 2rem;
    }
  }
}
/* Login */
.login, .register {
  .bg-image {
    background-image: url("/images/login-bg-m.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    @media (min-width: 990px) {
      background-image: url("/images/login-bg.webp");
    }
  }
}
.portal-sidebar {
  &:after {
    background-color: var(--bs-lightest);
    background-image: url("/media/g1lh33jc/bg-dots.png");
    background-position: top left;
    background-repeat: repeat;
    background-size: 70px;
    content: '';
    height: 100%;
    opacity: .15;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    z-index: -1;
  }
  @media (min-width: 768px) {
    background: transparent;
    border-right: none !important;
    position: relative;
    transform: none !important;
    visibility: visible !important;
    width: 25% !important;
    z-index: 10 !important;
    .offcanvas-header {
      display: block;
    }
  }
  @media (min-width: 992px) {
    width: 16.66666667% !important;
  }
}
.portal-sidebar__toggle {
  transform: rotate(90deg);
}
.account-settings {
  .form-control {
    background-color: var(--bs-light-bg-subtle);
    border-color: var(--bs-primary);
    border-radius: 0;
  }
}

/* Checkout */
.checkout {
  #content {
    @media (min-width: 990px) {
      position: relative;
      &:after {
        background-color: var(--bs-lightest);
        background-image: url("/media/g1lh33jc/bg-dots.png");
        background-position: top left;
        background-repeat: repeat;
        background-size: 70px;
        content: '';
        height: 100%;
        opacity: .15;
        overflow: hidden;
        position: absolute;
        right: 0;
        top: 0;
        width: 17vw;
        z-index: -1;
      }
    }
    @media (min-width: 1440px) {
      &:after {
        width: 23vw;
      }
    }
    @media (min-width: 1920px) {
      &:after {
        width: 30vw;
      }
    }
  }
  .form-control {
    background-color: var(--bs-light-bg-subtle);
    border-color: var(--bs-light-bg-subtle);
    border-radius: 0;
  }
  .form-check {
  }
}
.nav-checkout {
  align-items: start;
  display: flex;
  font-size: .8rem;
  gap: 2rem;
  .nav-checkout__item {
    align-items: center;
    display: flex;
    line-height: 1;
    margin-bottom: .25rem;
    padding-left: 2rem;
    position: relative;
  }
  .nav-checkout__item:before {
    background-color: var(--bs-dark);
    border-radius: 50%;
    color: var(--bs-white);
    content: '';
    display: inline-block;
    font-family: var(--bs-header-font-family);;
    font-size: .9rem;
    font-weight: 700;
    height: 1.5rem;
    left: 0;
    line-height: 1.5rem;
    position: absolute;
    text-align: center;
    top: -.325rem;
    width: 1.5rem;
  }
  .nav-checkout__item-1:before {
    content: '1';
  }
  .nav-checkout__item-2:before {
    content: '2';
  }
  .nav-checkout__item-3:before {
    content: '3';
  }
  a.nav-checkout__item.is-active {
    color: var(--bs-primary);
    font-weight: 700;
  }
  a.nav-checkout__item.is-active:before {
    background-color: var(--bs-primary);
  }
  a.nav-checkout__item {
    color: var(--bs-secondary-bg-subtle);
    font-weight: 400;
  }
  a.nav-checkout__item:before {
    background-color: var(--bs-secondary-bg-subtle);
  }
}

/* Header */
@media (min-width: 992px) {
  .navbar-brand {
    width: 222px;
    img {
      width: 79px;
    }
    img + img {
      width: 134px;
    }
  }
}
.icon-cart {
  position: relative;
}
.label {
  background: var(--bs-primary);
  border-radius: 50%;
  bottom: .25rem;
  color: var(--bs-white);
  display: block;
  font-size: .5rem;
  height: 1.5em;
  line-height: 1;
  padding: .25em;
  position: absolute;
  right: .5rem;
  text-align: center;
  min-width: 1.5em;
}
.navbar-nav {
  .label {
    right: .25rem;
  }
}
.utility-nav .navbar {
  border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-light);
}
.navbar-expand-lg {
  border: none !important;
}
.sitewide-nav .navbar {
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.05);
  padding: 0;
}
.sitewide-nav .nav-link {
  line-height: 2.5rem;
}
.sitewide-nav .mobile-menu-overlay .nav-link,
.sitewide-nav .dropdown-menu .nav-link {
  line-height: initial;
}
.navbar .dropdown-menu.mega-menu {
  background-color: var(--bs-light-bg-subtle) !important;
}
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-collapse,
    .navbar-expand-lg .navbar-nav {
        width: 100%;
    }
}
.nav-item.dropdown {
  transition: all .3s ease;
}
.nav-item.dropdown:hover {
  background: var(--bs-dark);
}
.nav-item.dropdown:hover .nav-link {
  color: var(--bs-white);
}
.nav-item.dropdown:hover path {
  fill: var(--bs-white);
}
.nav-item.dropdown .dropdown-menu .nav-link {
  border: none;
  color: var(--bs-nav-link-color);
  font-weight: 900;
}
.nav-item.dropdown .dropdown-menu .nav-link {
  border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-light);
}
.nav-item.dropdown .dropdown-menu .list-unstyled .nav-link {
  border: none;
  font-weight: 700;
}
.nav-item.dropdown .dropdown-menu .list-unstyled .list-unstyled {
  padding-left: 1rem;
}
.nav-item.dropdown .dropdown-menu .list-unstyled .list-unstyled .nav-link {
  font-weight: 500;
}
.nav-item.dropdown .dropdown-menu .list-unstyled .list-unstyled .list-unstyled .nav-link {
  font-weight: 400;
}
/* Footer */
.footer-links {
  width: 100% !important;
  li {
    margin-bottom: 1rem !important;
  }
}
.social-links {
  @media (min-width: 768px) {
    max-width: 225px;
  }
}
.category-links {
  border-top: 1px solid var(--bs-light-bg-subtle);
  @media (min-width: 768px) {
    border-left: 1px solid var(--bs-light-bg-subtle);
    border-top: none;
  }
}