/* Only marked native archive cards; Salient owns existing expansion and motion. */
.woocommerce.archive li.product.minimal.beyond-product-card > .product-wrap {
  background-color: #fff;
  border-radius: 24px;
  outline: 1px solid #D03229;
  outline-offset: 0;
}
.woocommerce.archive li.product.minimal.beyond-product-card .product-image-wrap img {
  border-radius: 24px 24px 0 0;
}
@media (min-width: 1000px) and (hover: hover) and (pointer: fine) {
  .woocommerce.archive li.product.minimal.beyond-product-card--expanding:hover > .product-wrap {
    outline-color: transparent;
  }
  .woocommerce.archive li.product.minimal.beyond-product-card--expanding:hover > .background-color-expand {
    border-color: #D03229;
  }
}
.woocommerce.archive li.product.minimal.beyond-product-card > .background-color-expand {
  background-color: #fff;
  border: 1px solid transparent;
  border-radius: 24px;
}
.woocommerce.archive li.product.minimal.beyond-product-card .woocommerce-loop-product__title {
  color: #D03229;
}
/* Match Salient's ID specificity; its overall-font-color rule is important. */
.woocommerce.archive #ajax-content-wrap li.product.minimal.beyond-product-card .price {
  color: #111 !important;
}
.woocommerce.archive li.product.minimal.beyond-product-card .product-add-to-cart .nectar_quick_view {
  display: none !important;
}
.woocommerce.archive li.product.minimal.beyond-product-card .product-image-wrap > .product-add-to-cart {
  display: none !important;
}
.woocommerce.archive li.product.minimal.beyond-product-card .beyond-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.woocommerce.archive li.product.minimal.beyond-product-card .beyond-card-actions a.button,
.woocommerce.archive li.product.minimal.beyond-product-card .beyond-card-actions .beyond-buy-now {
  box-sizing: border-box;
  flex: 1;
  width: 50%;
  min-width: 0;
  min-height: 44px;
  margin: 0 !important;
  text-transform: none !important;
  padding: 10px 5px !important;
  background-color: #fff !important;
  border: 1px solid #D03229;
  border-radius: 8px;
  color: #D03229;
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}
.woocommerce.archive li.product.minimal.beyond-product-card .beyond-card-actions .beyond-buy-now {
  border-color: #111;
  color: #111;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.4s cubic-bezier(.2,.75,.5,1), background-color 0.4s cubic-bezier(.2,.75,.5,1);
}
.woocommerce.archive li.product.minimal.beyond-product-card .beyond-card-actions a.button:hover {
  background-color: #D03229 !important;
  color: #fff;
}
.woocommerce.archive li.product.minimal.beyond-product-card .beyond-card-actions .beyond-buy-now:hover {
  background-color: #111 !important;
  color: #fff;
}
.woocommerce.archive li.product.minimal.beyond-product-card .beyond-buy-now-form {
  display: flex;
  flex: 1;
  width: 50%;
  min-width: 0;
  margin: 0;
}
.woocommerce.archive li.product.minimal.beyond-product-card .beyond-buy-now-form .beyond-buy-now {
  width: 100%;
}
.woocommerce.archive li.product.minimal.beyond-product-card .beyond-buy-now:disabled {
  cursor: not-allowed;
}
.woocommerce.archive li.product.minimal.beyond-product-card .beyond-buy-now:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}
/* Keep the approved text-only action without changing native status indicators. */
.woocommerce.archive li.product.minimal.beyond-product-card .beyond-card-actions .icon-salient-cart {
  display: none;
}
/* Remove only the native text underline; retain loading/added indicators. */
.woocommerce.archive li.product.minimal.beyond-product-card .beyond-card-actions a.button:not(.loading):not(.added) span {
  background-image: none !important;
}
.woocommerce.archive li.product.minimal.beyond-product-card .beyond-card-actions a.button:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

@media (max-width: 690px) {
  .woocommerce.archive li.product.minimal.beyond-product-card .beyond-card-actions {
    flex-direction: column;
  }
  .woocommerce.archive li.product.minimal.beyond-product-card .beyond-card-actions a.button,
  .woocommerce.archive li.product.minimal.beyond-product-card .beyond-card-actions .beyond-buy-now,
  .woocommerce.archive li.product.minimal.beyond-product-card .beyond-buy-now-form {
    width: 100%;
  }
}

/* Native delegated Quick View, positioned over the image independently of its
   hidden overlay row. No replacement modal, animation or cart handlers. */
.woocommerce.archive li.product.minimal.beyond-product-card {
  position: relative;
}
.woocommerce.archive li.product.minimal.beyond-product-card > a.beyond-card-preview {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  box-sizing: border-box;
  /* Salient hides all native Quick View anchors at <=999px with !important. */
  display: grid !important;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #777777;
  border-radius: 50%;
  background: transparent !important;
  color: #777777 !important;
  line-height: 1;
  text-decoration: none;
}
.woocommerce.archive li.product.minimal.beyond-product-card > a.beyond-card-preview:hover,
.woocommerce.archive li.product.minimal.beyond-product-card > a.beyond-card-preview:active {
  background: transparent !important;
  color: #777777 !important;
  border-color: #777777;
}
.woocommerce.archive li.product.minimal.beyond-product-card > a.beyond-card-preview:focus-visible {
  outline: 3px solid #D03229;
  outline-offset: 3px;
}
.woocommerce.archive li.product.minimal.beyond-product-card > a.beyond-card-preview svg {
  display: block;
  width: 22px;
  height: 22px;
}

/* Native Quick View was desktop-only. Constrain only modals opened from our
   marked archive cards; :has persists through the native close animation. */
@media (max-width: 999px) {
  body.woocommerce.archive:has(li.beyond-product-card.open-nectar-quick-view) .nectar-quick-view-box {
    left: 16px !important;
    top: 64px !important;
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px);
    height: calc(100dvh - 192px) !important;
  }
  body.woocommerce.archive:has(li.beyond-product-card.open-nectar-quick-view) .nectar-quick-view-box .inner-content > .product > .product {
    display: grid;
    grid-template-rows: minmax(100px, 30%) minmax(0, 1fr) auto;
  }
  body.woocommerce.archive:has(li.beyond-product-card.open-nectar-quick-view) .nectar-quick-view-box div.product div.images {
    width: 100% !important;
    height: 100%;
    min-height: 0;
  }
  body.woocommerce.archive:has(li.beyond-product-card.open-nectar-quick-view) .nectar-quick-view-box .images .nectar-product-slider {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  }
  body.woocommerce.archive:has(li.beyond-product-card.open-nectar-quick-view) .nectar-quick-view-box .images .flickity-viewport,
  body.woocommerce.archive:has(li.beyond-product-card.open-nectar-quick-view) .nectar-quick-view-box .images .flickity-slider {
    height: 100% !important;
  }
  body.woocommerce.archive:has(li.beyond-product-card.open-nectar-quick-view) .nectar-quick-view-box .images .carousel-cell {
    height: 100% !important;
    min-height: 0 !important;
    background-size: contain !important;
    background-repeat: no-repeat;
  }
  body.woocommerce.archive:has(li.beyond-product-card.open-nectar-quick-view) .nectar-quick-view-box div.product div.summary {
    width: 100% !important;
    height: auto !important;
    min-height: 0;
    padding: 16px 20px;
  }
  body.woocommerce.archive:has(li.beyond-product-card.open-nectar-quick-view) .nectar-quick-view-box .single_add_to_cart_button_wrap {
    position: static;
    width: 100%;
  }
  body.woocommerce.archive:has(li.beyond-product-card.open-nectar-quick-view) .nectar-quick-view-box .single_add_to_cart_button_wrap a {
    min-width: 0;
    min-height: 48px;
  }
  body.woocommerce.archive:has(li.beyond-product-card.open-nectar-quick-view) .nectar-quick-view-box .close {
    top: 8px;
    right: 8px;
    z-index: 20;
  }
  body.woocommerce.archive:has(li.beyond-product-card.open-nectar-quick-view) .nectar-quick-view-box .close a {
    width: 44px;
    height: 44px;
  }
}
