/* Final product-card layer: loaded after every theme and WooCommerce page style. */

/*
 * The theme has two product renderers: WooCommerce Product Collection blocks
 * and the curated shortcode used by fallback, search, landing and related
 * sections. Keep the shortcode renderer on the same canonical card metrics.
 */
.ds-product-card {
  display: block !important;
  position: relative !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 0.6125rem 2.94rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

/*
 * The home carousel uses zero grid gap and creates its gutters with card
 * padding. Restore that spacing after the canonical card reset above.
 */
.ds-section--latest .ds-product-carousel .ds-product-card {
  padding-inline: 0.625rem !important;
}

.ds-product-card__image {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 5 !important;
  overflow: hidden !important;
  margin: 0 !important;
  border-radius: 0.75rem !important;
  background-color: #111 !important;
  background-position: center !important;
  background-size: cover !important;
  isolation: isolate;
  transition: filter 300ms !important;
}

.ds-product-card:hover .ds-product-card__image,
.ds-product-card:focus-within .ds-product-card__image {
  filter: brightness(0.9);
}

.ds-product-card__body {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  min-height: 8.25rem !important;
  margin: 0 !important;
  padding: 1rem 0 0 !important;
}

.ds-product-card .ds-rating-row {
  display: flex !important;
  position: relative !important;
  height: 1.575rem !important;
  min-height: 1.575rem !important;
  max-height: 1.575rem !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center !important;
  line-height: 1.4 !important;
}

.ds-product-card .ds-stars {
  display: block !important;
  position: relative !important;
  width: 5.55em !important;
  height: 1.4em !important;
  margin: 0 !important;
  font-family: Arial, sans-serif !important;
  font-size: 1.125rem !important;
  line-height: 1.4 !important;
  letter-spacing: 0.08em !important;
}

/* Use the same filled-star meter as the rating inside a product page. */
.ds-product-card .ds-pdp-stars,
.ds-catalog-products .ds-pdp-stars {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.08rem !important;
  color: rgba(240, 177, 0, 0.42) !important;
  font-size: 0.875rem !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  flex: 0 0 auto !important;
}

.ds-product-card .ds-pdp-stars i,
.ds-catalog-products .ds-pdp-stars i {
  position: relative !important;
  display: block !important;
  width: 1em !important;
  height: 1em !important;
  font-style: normal !important;
}

.ds-product-card .ds-pdp-stars i::before,
.ds-product-card .ds-pdp-stars i::after,
.ds-catalog-products .ds-pdp-stars i::before,
.ds-catalog-products .ds-pdp-stars i::after {
  position: absolute !important;
  inset: 0 !important;
  content: "\2605" !important;
}

.ds-product-card .ds-pdp-stars i::after,
.ds-catalog-products .ds-pdp-stars i::after {
  color: var(--ds-star) !important;
  clip-path: inset(0 calc(100% - var(--ds-star-fill, 0%)) 0 0) !important;
}

/*
 * Keep the five-star outline behind the filled rating. Without this layer a
 * four-star value only paints 80% of the solid row, making the fifth star look
 * clipped on narrow cards instead of showing it as empty.
 */
.ds-product-card .ds-stars::before,
.ds-product-card .ds-stars--rated::before,
.ds-product-card .ds-stars:not([style*="--ds-rating:0%"])::before {
  display: block !important;
  content: "☆☆☆☆☆" !important;
}

.ds-product-card .ds-rating-row .ds-stars__count {
  position: static !important;
  margin: 0 0 0 -0.5rem !important;
  align-self: center !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 0.75rem !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}

.ds-product-card .ds-product-name {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: 1.5em !important;
  min-height: 1.5em !important;
  margin: 0.3rem 0 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  font-family: var(--wp--preset--font-family--display) !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.ds-product-card .ds-product-name a {
  display: block !important;
  position: static !important;
  width: 100% !important;
  overflow: hidden !important;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.ds-product-card .ds-product-category {
  display: block !important;
  position: static !important;
  height: auto !important;
  margin: 0.15rem 0 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: var(--ds-muted) !important;
  font-size: 0.68rem !important;
  font-weight: 300 !important;
  letter-spacing: 0.125em !important;
  line-height: 1.5 !important;
  text-align: left !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.ds-product-card .ds-product-price {
  display: block !important;
  position: static !important;
  height: auto !important;
  margin: 0.1rem 0 0 !important;
  padding: 0 !important;
  color: #fff !important;
  font-family: var(--wp--preset--font-family--sans) !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.5 !important;
  text-align: left !important;
  white-space: nowrap !important;
}

.ds-product-card .ds-product-badge {
  position: absolute !important;
  top: 0.75rem !important;
  left: 0.75rem !important;
  z-index: 3 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0.36rem 0.7rem !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 999px !important;
  background: rgba(24, 24, 27, 0.7) !important;
  color: #fff !important;
  font-size: 0.625rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
  backdrop-filter: blur(10px);
}

.ds-product-card .ds-product-price--sale {
  display: flex !important;
  min-height: 1.5rem !important;
  align-items: center !important;
  gap: 0.4375rem !important;
  font-variant-numeric: tabular-nums !important;
}

.ds-product-card .ds-product-price__current {
  color: #fff !important;
  background: none !important;
  font: inherit !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  -webkit-text-fill-color: currentColor !important;
  filter: drop-shadow(0 0 0.3rem rgba(0, 182, 122, 0.1));
}

.ds-product-card .ds-product-price__discount {
  display: inline-flex !important;
  min-height: 1.125rem !important;
  padding: 0.125rem 0.375rem !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(74, 222, 168, 0.28) !important;
  border-radius: 0.25rem !important;
  background: rgba(3, 38, 28, 0.82) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  color: #4adea8 !important;
  font-size: 0.625rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.015em !important;
  line-height: 1 !important;
}

.ds-product-card .ds-product-price--sale .ds-product-price__old {
  margin-left: 0 !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  text-decoration-color: rgba(255, 255, 255, 0.68) !important;
  text-decoration-thickness: 1px !important;
  text-decoration-skip-ink: none !important;
}

body.ds-theme-landing-page .ds-theme-landing__products .ds-product-carousel__controls,
body.ds-theme-landing-page .ds-theme-landing__products .ds-product-carousel__button {
  display: none !important;
}

body.ds-theme-landing-page .ds-theme-landing__products .ds-product-card.is-load-more-visible {
  display: block !important;
}

/*
 * The reference relay grows after each six-product batch.  The old replica
 * assigned a fixed height sized for the first batch, so the next row escaped
 * the section and was covered by the footer.
 */
body.ds-theme-landing-page .ds-theme-landing__collection,
body.ds-theme-landing-page .ds-theme-landing__collection-inner,
body.ds-theme-landing-page .ds-theme-landing__products,
body.ds-theme-landing-page .ds-theme-landing__products .ds-product-carousel,
body.ds-theme-landing-page .ds-theme-landing__products .ds-product-carousel__track,
body.ds-theme-landing-page .ds-theme-landing__products .ds-product-grid {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

body.ds-theme-landing-page .ds-theme-landing__collection-inner {
  padding-bottom: 1.875rem !important;
}

body.ds-theme-landing-page .ds-theme-landing__products .ds-product-grid {
  position: static !important;
  grid-auto-flow: row !important;
  grid-auto-rows: auto !important;
  align-items: start !important;
}

body.ds-theme-landing-page .ds-theme-landing__products .ds-theme-products-more {
  position: static !important;
  clear: both;
  margin: 1.875rem auto 0 !important;
}

.ds-theme-products-more {
  display: block;
  min-width: 12.2rem;
  height: 2.45rem;
  margin: 2rem auto 0;
  padding: 0.5rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1;
  text-align: center;
  transition: border-color 180ms, background-color 180ms;
}

.ds-theme-products-more:hover,
.ds-theme-products-more:focus-visible {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

/*
 * Collections is a paged catalogue, not a carousel.  Keep every wrapper in
 * normal document flow so the grid grows the page and the footer can never
 * cover later rows.  This file is intentionally loaded after style.css.
 */
.wp-site-blocks:has(> .ds-collections-reference) {
  display: block !important;
  height: auto !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  overflow: visible !important;
}

html:has(body.ds-collections-page),
body.ds-collections-page {
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

/* Slightly reduce the long-form copy without changing heading hierarchy. */
body.ds-collections-page .ds-collections-reference__lead,
body.ds-collections-page .ds-collections-reference__origin {
  font-size: 0.875rem;
}

body.ds-collections-page > .wp-site-blocks {
  display: block !important;
  position: static !important;
  height: auto !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  max-height: none !important;
  overflow: visible !important;
}

.wp-site-blocks:has(> .ds-collections-reference) > .ds-collections-reference,
.ds-collections-reference__content,
.ds-collections-reference__products {
  display: block !important;
  position: static !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

.wp-site-blocks > .ds-collections-reference {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0;
  max-height: none !important;
  overflow: visible !important;
  flex: 0 0 auto !important;
}

.ds-collections-reference__products {
  display: flow-root !important;
  width: 100% !important;
  padding-bottom: 0 !important;
}

.ds-collections-reference__products .ds-product-carousel,
.ds-collections-reference__products .ds-product-carousel__track {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  transform: none !important;
}

.ds-collections-reference__products .ds-product-grid,
.ds-collections-reference__products .wc-block-product-template {
  display: grid !important;
  position: static !important;
  left: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  overflow: visible !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  column-gap: 1.225rem !important;
  row-gap: 0 !important;
  grid-auto-flow: row !important;
  grid-auto-rows: auto !important;
  align-items: start !important;
}

.ds-collections-reference__products .ds-product-card {
  float: none !important;
  transform: none !important;
}

/* The demo keeps every product in the grid; no product-level pagination. */
body.ds-collections-page .ds-collections-reference__products .ds-product-card:nth-child(n),
body.ds-collections-page .ds-collections-reference__products .wc-block-product:nth-child(n) {
  display: block !important;
}

.ds-collections-reference__products .ds-collections-products-more {
  display: block;
  position: static !important;
  clear: both;
  margin: 1.5rem auto 0 !important;
}

.wp-site-blocks:has(> .ds-collections-reference) > footer.wp-block-template-part {
  position: relative !important;
  clear: both;
  width: 100%;
  margin-block-start: 0 !important;
}

body.ds-collections-page > .wp-site-blocks > footer.wp-block-template-part,
body.ds-collections-page .ds-site-footer {
  position: relative !important;
  inset: auto !important;
  float: none !important;
  clear: both !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin-top: 0 !important;
  transform: none !important;
}

@media (min-width: 850px) {
  body.ds-collections-page .ds-collections-reference,
  body.ds-collections-page .ds-collections-reference__content,
  body.ds-collections-page .ds-collections-reference__products,
  body.ds-collections-page .ds-product-carousel,
  body.ds-collections-page .ds-product-carousel__track,
  body.ds-collections-page .ds-product-grid {
    height: auto !important;
    min-height: 0;
    max-height: none !important;
    overflow: visible !important;
    contain: none !important;
    clip-path: none !important;
  }

  body.ds-collections-page .ds-product-card {
    position: relative !important;
    inset: auto !important;
    align-self: start !important;
  }
}

@media (min-width: 550px) and (max-width: 1024px) {
  .ds-collections-reference__products .ds-product-grid,
  .ds-collections-reference__products .wc-block-product-template {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 549px) {
  .ds-collections-reference__products .ds-product-grid,
  .ds-collections-reference__products .wc-block-product-template {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 0 !important;
  }
}

.ds-catalog-products .wc-block-product-template {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
}

.ds-catalog-products .wc-block-product {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 0.6125rem 2.94rem !important;
  border: 0 !important;
  background: transparent !important;
}

.ds-catalog-products .wc-block-components-product-image {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 5 !important;
  overflow: hidden !important;
  margin: 0 !important;
  border-radius: 0.75rem !important;
  background: #111 !important;
  isolation: isolate;
}

.ds-catalog-products .wc-block-components-product-image > a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.ds-catalog-products .wc-block-components-product-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  border-radius: 0.75rem !important;
  object-fit: cover !important;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), filter 300ms !important;
}

.ds-catalog-products .wc-block-product:hover .wc-block-components-product-image img,
.ds-catalog-products .wc-block-product:focus-within .wc-block-components-product-image img {
  transform: scale(1.045);
  filter: brightness(0.9);
}

.ds-catalog-products .wc-block-components-product-image:has(a:focus-visible) {
  outline: 2px solid var(--ds-green);
  outline-offset: 3px;
}

.ds-catalog-products .wc-block-product > .ds-tax-rating {
  display: flex !important;
  position: static !important;
  height: 1.575rem !important;
  min-height: 1.575rem !important;
  max-height: 1.575rem !important;
  margin: 1rem 0 0 !important;
  padding: 0 !important;
  align-items: center !important;
  line-height: 1.4 !important;
}

.ds-catalog-products .ds-tax-stars {
  display: block;
  position: relative !important;
  width: 5.55em !important;
  height: 1.4em !important;
  margin: 0 !important;
  font-family: Arial, sans-serif !important;
  font-size: 1.125rem !important;
  line-height: 1.4 !important;
  letter-spacing: 0.08em !important;
  color: transparent;
}

.ds-catalog-products .ds-tax-rating .ds-stars__count {
  position: static !important;
  margin: 0 0 0 -0.5rem !important;
  align-self: center !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 0.75rem !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}

.ds-catalog-products .ds-tax-stars::before,
.ds-catalog-products .ds-tax-stars::after {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--ds-star);
  white-space: nowrap;
}

.ds-catalog-products .ds-tax-stars::before,
.ds-catalog-products .ds-tax-stars--rated::before,
.ds-catalog-products .ds-tax-stars:not([style*="--ds-rating:0%"])::before {
  display: block !important;
  content: "☆☆☆☆☆" !important;
}

.ds-catalog-products .ds-tax-stars::after {
  width: var(--ds-rating, 0%);
  overflow: hidden;
  content: "★★★★★";
}

.ds-catalog-products .wp-block-post-title {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: 1.5em !important;
  min-height: 1.5em !important;
  margin: 0.3rem 0 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  font-family: var(--wp--preset--font-family--display) !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.ds-catalog-products .wp-block-post-title a {
  display: block !important;
  width: 100% !important;
  overflow: hidden !important;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.ds-catalog-products .ds-tax-category {
  display: block !important;
  position: static !important;
  height: auto !important;
  margin: 0.15rem 0 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: var(--ds-muted) !important;
  font-size: 0.68rem !important;
  font-weight: 300 !important;
  letter-spacing: 0.125em !important;
  line-height: 1.5 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.ds-catalog-products .wp-block-woocommerce-product-price {
  display: block !important;
  position: static !important;
  height: auto !important;
  margin: 0.1rem 0 0 !important;
  padding: 0 !important;
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  white-space: nowrap !important;
}

.ds-catalog-products .wc-block-components-product-price {
  display: block !important;
  position: static !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  white-space: nowrap !important;
}

.ds-catalog-products .wp-block-woocommerce-product-price .woocommerce-Price-amount,
.ds-catalog-products .wp-block-woocommerce-product-price .wc-block-components-product-price__value {
  color: #fff !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.ds-catalog-products .wp-block-woocommerce-product-price del,
.ds-catalog-products .wp-block-woocommerce-product-price del .woocommerce-Price-amount {
  color: rgba(255, 255, 255, 0.46) !important;
}

.ds-catalog-products .ds-tax-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3;
  padding: 0.36rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(24, 24, 27, 0.7);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.ds-catalog-products .wc-block-components-product-image .wp-block-woocommerce-product-button {
  position: absolute !important;
  top: auto !important;
  right: 0.65rem !important;
  bottom: 0.65rem !important;
  left: auto !important;
  z-index: 4 !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.45rem);
  transition: opacity 220ms, transform 280ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.ds-catalog-products .wc-block-product:hover .wp-block-woocommerce-product-button,
.ds-catalog-products .wc-block-product:focus-within .wp-block-woocommerce-product-button {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.ds-catalog-products .wc-block-components-product-button__button {
  width: auto !important;
  min-width: 0 !important;
  min-height: 2.25rem !important;
  padding: 0.55rem 0.9rem !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  border-radius: 999px !important;
  background: #fff !important;
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.22) !important;
  color: #18181b !important;
  font-size: 0 !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

.ds-catalog-products .wc-block-components-product-button__button::after {
  content: "Add To Cart" !important;
  font-size: 0.72rem !important;
}

.ds-catalog-products .wc-block-components-product-button__button:hover,
.ds-catalog-products .wc-block-components-product-button__button:focus-visible {
  border-color: var(--ds-green) !important;
  background: var(--ds-green) !important;
  color: #fff !important;
}

.ds-catalog-products .wp-block-query-pagination {
  margin-top: 3rem !important;
  gap: 0.45rem;
}

.ds-catalog-products .wp-block-query-pagination a,
.ds-catalog-products .wp-block-query-pagination .current {
  display: inline-grid;
  min-width: 2.25rem;
  min-height: 2.25rem;
  place-items: center;
  border: 1px solid var(--ds-line-soft);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
}

.ds-catalog-products .wp-block-query-pagination .current,
.ds-catalog-products .wp-block-query-pagination a:hover {
  border-color: var(--ds-green);
  background: var(--ds-green);
}

@media (min-width: 550px) {
  .ds-product-card__body {
    padding-top: 0.25rem !important;
  }

  .ds-catalog-products .wc-block-product > .ds-tax-rating {
    margin-top: 0.25rem !important;
  }
}

@media (max-width: 849px) {
  .ds-catalog-products .wc-block-product-template {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 549px) {
  .ds-product-card,
  .ds-catalog-products .wc-block-product {
    padding-bottom: 1.456875rem !important;
  }

  /* Keep the mobile rating compact and a little closer to the product image. */
  .ds-product-card__body {
    padding-top: 0.25rem !important;
  }

  .ds-product-card .ds-rating-row {
    height: 1.05rem !important;
    min-height: 1.05rem !important;
    max-height: 1.05rem !important;
  }

  .ds-product-card .ds-stars,
  .ds-catalog-products .ds-tax-stars {
    font-size: 0.75rem !important;
  }

  .ds-catalog-products .wc-block-product > .ds-tax-rating {
    height: 1.05rem !important;
    min-height: 1.05rem !important;
    max-height: 1.05rem !important;
    margin-top: 0.25rem !important;
  }

  .ds-catalog-products .wc-block-product-template {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
  }

  .ds-catalog-products .wp-block-post-title,
  .ds-catalog-products .wp-block-woocommerce-product-price,
  .ds-catalog-products .wc-block-components-product-price {
    font-size: 0.875rem !important;
  }

  .ds-catalog-products .ds-tax-category {
    font-size: 0.625rem !important;
  }

  .ds-catalog-products .ds-tax-badge {
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.55rem;
  }

  .ds-product-card .ds-product-badge {
    top: 0.5rem !important;
    left: 0.5rem !important;
    padding: 0.3rem 0.5rem !important;
    font-size: 0.55rem !important;
  }

  .ds-product-card .ds-product-price--sale {
    gap: 0 !important;
  }

  .ds-product-card .ds-product-price__discount {
    padding: 0.12rem 0.3rem !important;
    font-size: 0.55rem !important;
  }

  .ds-product-card .ds-product-price--sale .ds-product-price__old {
    font-size: 0.625rem !important;
  }

  .ds-catalog-products .wc-block-components-product-image .wp-block-woocommerce-product-button {
    right: 0.5rem !important;
    bottom: 0.5rem !important;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .ds-catalog-products .wc-block-components-product-button__button {
    width: 2.25rem !important;
    height: 2.25rem !important;
    padding: 0 !important;
    font-size: 0 !important;
  }

  .ds-catalog-products .wc-block-components-product-button__button::before {
    width: 1rem;
    height: 1rem;
    background: var(--wpr-bg-c5729264-e65b-4ddc-80e3-2fbe400c4a68) center / contain no-repeat;
    content: "";
  }

  .ds-catalog-products .wc-block-components-product-button__button::after {
    display: none !important;
    content: none !important;
  }
}

/* Stock and add-to-cart controls shown over the bottom of every card image. */
.ds-product-card .ds-product-overlay-meta {
  display: flex !important;
  position: absolute !important;
  right: 0.75rem !important;
  bottom: 0.75rem !important;
  left: 0.75rem !important;
  z-index: 4 !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.5rem !important;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.45rem);
  transition: opacity 220ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.ds-product-card .ds-product-overlay-meta--no-stock {
  justify-content: flex-end !important;
}

.ds-product-card:hover .ds-product-overlay-meta,
.ds-product-card:focus-within .ds-product-overlay-meta {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.ds-product-card .ds-product-overlay-meta__stock,
.ds-catalog-products .ds-tax-stock {
  display: inline-flex !important;
  min-height: 1.875rem !important;
  padding: 0.32rem 0.55rem !important;
  align-items: center !important;
  border: 1px solid rgba(248, 113, 113, 0.2) !important;
  border-radius: 0.375rem !important;
  background: rgba(9, 9, 11, 0.82) !important;
  color: #f87171 !important;
  font-size: 0.6875rem !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.ds-product-card .ds-product-overlay-meta__quickadd {
  display: inline-flex !important;
  min-height: 2.125rem !important;
  padding: 0.5rem 0.9rem !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  border-radius: 999px !important;
  background: #fff !important;
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.22) !important;
  color: #18181b !important;
  cursor: pointer;
  font-size: 0.6875rem !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.ds-product-card .ds-product-overlay-meta__quickadd:hover {
  background: var(--ds-green) !important;
  color: #fff !important;
}

.ds-product-card .ds-product-overlay-meta__quickadd svg {
  width: 0.875rem !important;
  height: 0.875rem !important;
  flex: 0 0 auto;
}

.ds-catalog-products .ds-tax-stock {
  position: absolute !important;
  bottom: 0.75rem !important;
  left: 0.75rem !important;
  z-index: 4 !important;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.45rem);
  transition: opacity 220ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.ds-catalog-products .wc-block-product:hover .ds-tax-stock,
.ds-catalog-products .wc-block-product:focus-within .ds-tax-stock {
  opacity: 1;
  transform: none;
}

.ds-catalog-products .wc-block-components-product-image .wp-block-woocommerce-product-button {
  display: block !important;
}

@media (hover: none) {
  .ds-product-card .ds-product-overlay-meta,
  .ds-catalog-products .wc-block-components-product-image .wp-block-woocommerce-product-button,
  .ds-catalog-products .ds-tax-stock {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

@media (max-width: 549px) {
  .ds-product-card .ds-product-overlay-meta__quickadd,
  .ds-catalog-products .wc-block-components-product-image .wp-block-woocommerce-product-button {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ds-catalog-products .wc-block-components-product-image img,
  .ds-catalog-products .wc-block-components-product-image .wp-block-woocommerce-product-button {
    transition: none !important;
  }

  .ds-product-card__image,
  .ds-product-card .ds-product-overlay-meta {
    transition: none !important;
  }
}
/* AJAX add-to-cart confirmation shared by catalogue and product pages. */
.ds-cart-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 100010;
  display: flex;
  width: min(calc(100vw - 2rem), 22rem);
  min-height: 10rem;
  padding: 1.5rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.35rem;
  background: rgba(35, 35, 35, 0.95);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.48);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, -46%) scale(0.96);
  transition: opacity 180ms ease, transform 220ms ease;
  backdrop-filter: blur(6px);
}

.ds-cart-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.ds-cart-toast__icon {
  position: relative;
  display: block;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: #09c59a;
}

.ds-cart-toast__icon::after {
  position: absolute;
  top: 1rem;
  left: 1.4rem;
  width: 0.75rem;
  height: 1.35rem;
  border-right: 0.25rem solid #fff;
  border-bottom: 0.25rem solid #fff;
  content: "";
  transform: rotate(45deg);
}

.ds-cart-toast__message {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
}

.ds-cart-toast.is-error .ds-cart-toast__icon {
  background: #dc3f4b;
}

.ds-cart-toast.is-error .ds-cart-toast__icon::after {
  top: 1.15rem;
  left: 1.72rem;
  width: 0.25rem;
  height: 1.45rem;
  border: 0;
  background: #fff;
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .ds-cart-toast {
    transition: none;
  }
}

/* Keep the percentage discount visually distinct from both price values. */
.ds-product-card .ds-product-price--sale .ds-product-price__discount {
  display: inline-flex !important;
  min-height: 1.125rem !important;
  padding: 0.125rem 0.375rem !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(74, 222, 168, 0.32) !important;
  border-radius: 0.25rem !important;
  background: rgba(3, 38, 28, 0.9) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  color: #4adea8 !important;
  font-size: 0.625rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.015em !important;
  line-height: 1 !important;
  -webkit-text-fill-color: #4adea8 !important;
  white-space: nowrap !important;
}

/*
 * Normalize the sale row on tablet and desktop. The three values use
 * different font sizes, so relying on their inherited line boxes makes the
 * discount and old price sit at different visual heights.
 */
@media (min-width: 550px) {
  .ds-product-card .ds-product-price--sale {
    height: 1.5rem !important;
    min-height: 1.5rem !important;
    align-items: center !important;
    column-gap: 0.75rem !important;
    row-gap: 0 !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }

  .ds-product-card .ds-product-price--sale .ds-product-price__current,
  .ds-product-card .ds-product-price--sale .ds-product-price__old {
    display: inline-flex !important;
    height: 1.5rem !important;
    align-items: center !important;
    align-self: center !important;
    line-height: 1 !important;
    flex: 0 0 auto !important;
  }

  .ds-product-card .ds-product-price--sale .ds-product-price__discount {
    height: 1.125rem !important;
    min-height: 1.125rem !important;
    margin-left: 0 !important;
    align-self: center !important;
    transform: none !important;
    flex: 0 0 auto !important;
  }
}

@media (max-width: 549px) {
  .ds-product-card .ds-product-price--sale {
    height: 1.25rem !important;
    min-height: 1.25rem !important;
    align-items: center !important;
    gap: 0 !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }

  .ds-product-card .ds-product-price--sale .ds-product-price__current {
    display: inline-flex !important;
    height: 1.25rem !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    align-items: center !important;
    align-self: center !important;
    flex: 0 0 auto !important;
  }

  .ds-product-card .ds-product-price--sale .ds-product-price__discount {
    width: 2rem !important;
    height: 1.125rem !important;
    min-height: 1.125rem !important;
    padding: 0 !important;
    font-size: 0.55rem !important;
    line-height: 1 !important;
    align-items: center !important;
    align-self: center !important;
    margin-left: 0.5rem !important;
    flex: 0 0 auto !important;
    transform: none !important;
  }

  .ds-product-card .ds-product-price--sale .ds-product-price__old {
    display: inline-flex !important;
    height: 1.25rem !important;
    font-size: 0.625rem !important;
    line-height: 1 !important;
    align-items: center !important;
    align-self: center !important;
    margin-left: 0.5rem !important;
    flex: 0 0 auto !important;
    transform: none !important;
  }
}
