.block-product-card .product-card-style--card {
  background-color: rgb(var(--color-background));
}
.block-product-card__layer-image-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  padding: var(--padding);
  overflow: hidden;
}
@media (min-width: 960px) {
  .block-product-card__layer-image-wrapper.hover:hover
    .block-product-card__image:nth-of-type(1) {
    opacity: 0;
  }

  .block-product-card__layer-image-wrapper.hover:hover
    .block-product-card__image:nth-of-type(2) {
    opacity: 1;
  }
}
.block-product-card__image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  aspect-ratio: var(--aspect-ratio);
  overflow: hidden;
  border-radius: var(--border-radius);
}
.block-product-card__image-wrapper > svg {
  width: 100%;
  height: 100%;
}
.block-product-card__image-wrapper > .block-product-card__image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: var(--fit-type);
  transition: 1s;
}
.block-product-card__image-wrapper > .block-product-card__image:nth-of-type(1) {
  opacity: 1;
}
.block-product-card__image-wrapper > .block-product-card__image:nth-of-type(2) {
  opacity: 0;
}
.block-product-card__layer-wrapper {
  position: absolute;
  inset: 0;
}
.block-product-card__quick-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  background-color: rgb(0 0 0 / 40%);
  border: 0;
  border-radius: 50%;
}
.block-product-card__quick-add:hover {
  background-color: rgb(0 0 0 / 60%);
}
.block-product-card__quick-add svg {
  width: 100%;
  height: 100%;
}
@media (max-width: 959px) {
  .block-product-card__quick-add {
    width: 24px;
    height: 24px;
  }
}
.block-product-card__quick-add .icon-loading {
  display: none;
  margin: 8px;
  color: rgb(255 255 255 / 100%);
  animation: animation-button-loading linear 1.5s infinite;
}
.block-product-card__quick-add.loading {
  pointer-events: none;
}
.block-product-card__quick-add.loading .icon-quick-add {
  display: none;
}
.block-product-card__quick-add.loading .icon-loading {
  display: block;
}
.block-product-card__modal-content {
  width: 80vw;
  max-width: 1200px;
  max-height: 80vh;
  overflow-y: auto;
}
@media (max-width: 959px) {
  .block-product-card__modal-content {
    width: 100%;
  }
}
.block-product-card__modal-content .quick-add-hidden {
  display: none;
}
.block-product-card__modal-content theme-product-detail {
  --page-padding: 40px;
  --detail-padding-inline-start: 0px !important;
  --detail-padding-inline-end: 0px !important;
  --detail-padding-block-start: 0px !important;
  --detail-padding-block-end: 0px !important;

  padding: var(--page-padding);
}
@media (max-width: 959px) {
  .block-product-card__modal-content theme-product-detail {
    --page-padding: 20px;
  }

  .block-product-card__modal-content
    theme-product-detail
    theme-product-media-gallery[data-mobile-layout="fullscreen"] {
    margin-block-start: calc(-1 * var(--page-padding));
  }
}
.block-product-card__modal-close {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 15px;
  color: #fff;
  background: rgb(0 0 0 / 40%);
}
.block-product-card__title {
  display: -webkit-box;
  flex-shrink: 0;
  padding-inline-end: 4px;
  overflow: hidden;
  color: rgb(var(--color-light-text));
  text-overflow: ellipsis;
  -webkit-line-clamp: var(--max-row);
  -webkit-box-orient: vertical;
}
.block-product-card__title.product-card-style--card {
  padding-inline: 8px;
}
.block-product-card__price.product-card-style--card {
  padding-inline: 8px;
}
.block-product-card__discount-tag {
  padding: 4px 12px;
  color: #6A6A6A;
  background-color: #ffffff;
  border-radius: var(--product-discount-radius);
  letter-spacing: .2em;
}
@media (max-width: 959px) {
  .block-product-card__discount-tag {
    padding: 2px 8px;
  }
}
.block-product-card__sold-out {
  padding: 4px 12px;
  color: rgb(0 0 0 / 100%);
  background-color: rgb(255 255 255 / 100%);
  border-radius: var(--product-discount-radius);
}
@media (max-width: 959px) {
  .block-product-card__sold-out {
    padding: 2px 8px;
  }
}

/* ============================================================
   Queen Cosmetics — global product card styling (matches the
   featured-collection cards everywhere: collection, search,
   recommended/"you may also like", recently viewed, etc.)
   ============================================================ */

/* Title + price: small uppercase, dark */
.block-product-card__title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(var(--color-text));
}

.block-product-card__price,
.block-product-card__price .product-price.title-font-bold {
  font-size: 12px;
  font-weight: 500 !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.block-product-card__price,
.block-product-card__price * {
  color: rgb(var(--color-text));
}

/* Strikethrough (compare-at) price: not larger than the price, muted */
.block-product-card__price .product-price__item--compare {
  font-size: 12px;
  font-weight: 400;
  text-decoration: line-through;
  opacity: 0.6;
}

/* Hide the add-to-cart TEXT by default (the image-layer icon button) */
.block-product-card__quick-add-text {
  display: none;
}

/* Each card is a full-height flex column so the button sits at the bottom
   regardless of how many lines the title wraps to. */
.block-product-card {
  height: 100%;
}
.block-product-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Push the card-level add-to-cart / sold-out button to the bottom of the
   flex column. The card content (<a>) is a flex column; whichever element is
   the last interactive child must carry `margin-top: auto`. Both the bare
   button (single-variant / sold-out) and the form wrappers (multi-variant)
   are flex-item children of that column, so pin all of them. The :not()
   keeps the small image-overlay quick-add out of this. */
theme-product-form:not(.block-product-card__layer *),
theme-quick-add-modal:not(.block-product-card__layer *),
.block-product-card__quick-add:not(.block-product-card__layer *),
.block-product-card__quick-add--sold-out:not(.block-product-card__layer *) {
  margin-top: auto;
}

theme-product-form:not(.block-product-card__layer *),
theme-quick-add-modal:not(.block-product-card__layer *) {
  display: block;
  width: 100%;
}

/* Full-width ADD TO CART / SOLD OUT button (card-level, not in an image layer).
   NOTE: do NOT reset margin-top here — the bottom-pin rule above sets it to
   `auto` and an explicit `margin-top: 0` would override it for the sold-out
   button (which is matched by this same selector), breaking bottom alignment. */
theme-product-form:not(.block-product-card__layer *) .block-product-card__quick-add,
theme-quick-add-modal:not(.block-product-card__layer *) .block-product-card__quick-add,
.block-product-card__quick-add:not(.block-product-card__layer *),
.block-product-card__quick-add--sold-out:not(.block-product-card__layer *) {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 4px;
  background-color: #DD9FD7;
  color: #faf4fa;
  transition: background-color 250ms ease, color 250ms ease, opacity 250ms ease;
}

theme-product-form:not(.block-product-card__layer *) .block-product-card__quick-add:hover,
theme-quick-add-modal:not(.block-product-card__layer *) .block-product-card__quick-add:hover,
.block-product-card__quick-add:not(.block-product-card__layer *):hover {
  background-color: #000000;
  color: #faf4fa;
}

/* Show the text, hide the icon, inside the full-width button */
theme-product-form:not(.block-product-card__layer *) .icon-quick-add,
theme-quick-add-modal:not(.block-product-card__layer *) .icon-quick-add,
.block-product-card__quick-add:not(.block-product-card__layer *) .icon-quick-add {
  display: none;
}

theme-product-form:not(.block-product-card__layer *) .block-product-card__quick-add .block-product-card__quick-add-text,
theme-quick-add-modal:not(.block-product-card__layer *) .block-product-card__quick-add .block-product-card__quick-add-text,
.block-product-card__quick-add:not(.block-product-card__layer *) .block-product-card__quick-add-text,
.block-product-card__quick-add--sold-out .block-product-card__quick-add-text {
  display: inline-flex;
  font-size: 16px;
  font-family: "Raleway", "Raleway", Arial, GoldenFontAwesome, Helvetica, sans-serif;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0.18em;
  
  /* text-transform: uppercase; */
}

/* Hide the small rounded image-layer quick-add (icon + its sold-out variant) */
.block-product-card__layer:has(.block-product-card__quick-add) {
  display: none;
}
.block-product-card__layer .block-product-card__quick-add,
.block-product-card__layer .block-product-card__quick-add--sold-out {
  display: none;
}

/* Sold-out: same button, disabled (muted) */
.block-product-card__quick-add--sold-out {
  cursor: not-allowed;
  opacity: 0.45;
}

/* Loading: hide text, show a small centered spinner — no height shift */
theme-product-form:not(.block-product-card__layer *) .block-product-card__quick-add.loading .block-product-card__quick-add-text,
theme-product-form:not(.block-product-card__layer *) .block-product-card__quick-add.loading .icon-quick-add,
.block-product-card__quick-add:not(.block-product-card__layer *).loading .block-product-card__quick-add-text,
.block-product-card__quick-add:not(.block-product-card__layer *).loading .icon-quick-add {
  display: none;
}
theme-product-form:not(.block-product-card__layer *) .block-product-card__quick-add.loading .loading--rotator,
theme-product-form:not(.block-product-card__layer *) .block-product-card__quick-add.loading .icon-loading,
.block-product-card__quick-add:not(.block-product-card__layer *).loading .loading--rotator,
.block-product-card__quick-add:not(.block-product-card__layer *).loading .icon-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  /* center via margins, NOT transform (the spinner rotates via transform) */
  margin: -8px 0 0 -8px;
}
theme-product-form:not(.block-product-card__layer *) .block-product-card__quick-add.loading .loading--rotator svg,
theme-product-form:not(.block-product-card__layer *) .block-product-card__quick-add.loading .loading--rotator img,
.block-product-card__quick-add:not(.block-product-card__layer *).loading .loading--rotator svg,
.block-product-card__quick-add:not(.block-product-card__layer *).loading .loading--rotator img {
  width: 100%;
  height: 100%;
}

/* Modal version: remove the <summary> marker */
theme-quick-add-modal:not(.block-product-card__layer *) summary {
  list-style: none;
}
theme-quick-add-modal:not(.block-product-card__layer *) summary::-webkit-details-marker {
  display: none;
}

/* Badges (Sold Out / sale): uppercase, pinned top-left of the image */
.block-product-card__sold-out,
.block-product-card__discount-tag {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
}

.block-product-card__image-wrapper {
  position: relative;
}
.block-product-card__layer:has(.block-product-card__sold-out),
.block-product-card__layer:has(.block-product-card__discount-tag) {
  position: absolute;
  inset-block-start: 0px;
  inset-inline-start: 10px;
  inset-block-end: auto;
  z-index: 2;
  width: auto;
  height: auto;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}
