/* Product Card */
product-card.product-card {
  .add-to-cart-button,
  .quantity-selector-wrapper,
  quantity-selector-component {
    max-height: 32px;
    outline: none;
  }

  .add-to-cart-button {
    max-height: 32px;
    font-weight: var(--font-subheading--weight);

    &:disabled {
      background-color: var(--color-outofstock-productcard);
      border-color: var(--color-outofstock-productcard);
      opacity: 1;

      --button-border-color: var(--color-outofstock-productcard);
    }

    &:disabled:hover {
      color: var(--color-primary-button-text);
    }
  }

  .quantity-selector {
    flex-shrink: 1;

    &:hover {
      border-color: var(--color-primary-button-background);
    }
  }

  .quick-add__button {
    border: 0;
    box-shadow: none;
    outline: none;
    background: transparent;
  }

  .product-card-quick-view {
    position: absolute;
    right: 14px;
    bottom: 10px;
    width: 24px;
    height: 24px;
    background: transparent;
    border: 0;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    box-shadow: none;

    span.svg-wrapper,
    svg {
      width: 24px;
      height: 24px;
    }
  }

  .vendor {
    margin-right: 6px;
  }

  a > div.text-wrapper {
    margin-bottom: auto;
  }
}

product-card.product-card[data-series-collection-card='true'] {
  product-price,
  .buy-buttons-block {
    display: none !important;
  }

  product-sku-component .sku {
    display: none !important;
  }

  .product-card__series-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-block-start: 8px;
    padding-inline: clamp(12px, 4vw, 20px);
    padding-block-end: clamp(12px, 3vw, 18px);
  }

  .product-card__door-style-list,
  .product-card__finish-color-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    overflow: visible;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .product-card__door-style {
    flex: 0 0 auto;
    min-height: 24px;
    padding: 5px 10px 4px 10px;
    border: 1px solid rgb(var(--color-border-rgb) / 0.75);
    border-radius: 8px;
    background-color: #f2f2f7;
    color: rgb(var(--color-foreground-rgb) / 0.88);
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
  }

  .product-card__finish-color-list {
    gap: 10px;
  }

  .product-card__finish-color {
    display: block;
    width: 34px;
    height: 26px;
    flex: 0 0 auto;
    border: 1px solid rgb(var(--color-border-rgb) / 0.8);
    border-radius: 4px;
    background: var(--series-swatch-color);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  }

  .product-card__option-more {
    flex: 0 0 auto;
    color: rgb(var(--color-foreground-rgb) / 0.78);
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .product-card__view-collection {
    width: 100%;
    min-height: 40px;
    justify-content: center;
    border: 1px solid rgb(var(--color-foreground-rgb) / 0.75);
    border-radius: 4px;
    background: transparent;
    color: rgb(var(--color-foreground-rgb) / 0.95);
    font-weight: var(--font-subheading--weight);
    text-decoration: none;
  }

  .product-card__view-collection:hover {
    border-color: rgb(var(--color-foreground-rgb));
    background: rgb(var(--color-foreground-rgb) / 0.04);
  }
}

product-card.product-card[data-series-options-scroll='true'] {
  .product-card__door-style-list,
  .product-card__finish-color-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-block-end: 2px;
    scrollbar-width: thin;
  }
}

@media screen and (max-width: 749px) {
  .product-card.product-card {
    --button-padding-inline: 8px;
  }

  product-card.product-card[data-series-collection-card='true'] {
    .product-card__series-options {
      gap: 10px;
      padding-inline: 12px;
    }

    .product-card__finish-color {
      width: 30px;
      height: 24px;
    }
  }
}

slideshow-component
  slideshow-container
  slideshow-slides
  slideshow-slide
  product-card
  a.product-card__link {
  pointer-events: none;
}
