/**
 * WooCommerce catalogue, product cards and CommerceKit presentation.
 *
 * Migration-safe extraction from the canonical Jedi-Robe dark-commerce
 * stylesheet. Rule order and declarations are preserved for staging review.
 *
 * @package Jedi_Theme
 * @since   2026-08-25
 */

/* ==========================================================================
   WooCommerce catalogue and product cards
   ========================================================================== */

/**
 * Preserve the existing tablet/mobile product-card padding that previously
 * lived in navigation.css.
 *
 * @package Jedi_Theme
 */
@media (max-width: 992px) {
  ul.products li.product {
    padding: 10px;
  }

  body.jr-dark-commerce.single-product .related.products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/**
 * Keep normal catalogue cards content-sized.
 *
 * Related products override this behaviour below so cards within that grid
 * share a consistent row height.
 *
 * @package Jedi_Theme
 * @subpackage WooCommerce_Catalogue
 */
body.jr-dark-commerce:not(.single-product) ul.products {
  align-items: start;
}

body.jr-dark-commerce ul.products li.product {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;

  display: flex !important;
  flex-direction: column;
  margin: 0 !important;

  border: 1px solid rgba(111, 203, 255, 0.24) !important;
  border-radius: 0.375rem;

  background:
    linear-gradient(
      135deg,
      rgba(111, 203, 255, 0.04),
      transparent 38%
    ),
    rgba(8, 14, 22, 0.38) !important;

  color: var(--jr-text) !important;

  box-shadow:
    0 1.1rem 2.4rem rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  transform: translateZ(0);

  transition:
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

/**
 * Keep ordinary catalogue cards content-sized without overriding the homepage.
 *
 * WordPress adds the `home` body class on the front page. The Bestsellers
 * component intentionally stretches its four cards to a shared grid-row height,
 * so the catalogue's forced content-height declarations must not win there.
 *
 * @package Jedi_Theme
 * @subpackage WooCommerce_Catalogue
 */
body.jr-dark-commerce:not(.home) ul.products li.product {
  align-self: start;
  height: auto !important;
  min-height: 0 !important;
}

body.jr-dark-commerce
  ul.products
  li.product:not(.product-category)::before {
  position: absolute;
  z-index: 0;
  inset: 0;

  background:
    radial-gradient(
      circle at 94% 6%,
      rgba(111, 203, 255, 0.11),
      transparent 17rem
    ),
    radial-gradient(
      circle at 8% 92%,
      rgba(45, 166, 83, 0.045),
      transparent 15rem
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.035),
      transparent 44%
    );

  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

body.jr-dark-commerce ul.products li.product > a,
body.jr-dark-commerce ul.products li.product .woocommerce-LoopProduct-link,
body.jr-dark-commerce ul.products li.product .woocommerce-loop-product__link,
body.jr-dark-commerce ul.products li.product .product-card-wrapper,
body.jr-dark-commerce ul.products li.product .product-wrapper {
  position: relative;
  z-index: 1;
  background: transparent !important;
  background-color: transparent !important;
}

body.jr-dark-commerce ul.products li.product > a:first-of-type {
  display: block;
}

/* Product image. */
body.jr-dark-commerce ul.products li.product img,
body.jr-dark-commerce ul.products li.product .product-image,
body.jr-dark-commerce ul.products li.product .product-image-wrapper {
  background: var(--jr-image-bg);
}

body.jr-dark-commerce ul.products li.product img.wp-post-image {
  display: block;
  width: 100%;
  padding: clamp(0.75rem, 1.5vw, 1.25rem);
  background-color: var(--jr-image-bg) !important;
  object-fit: contain;

  transition:
    filter 220ms ease,
    transform 420ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

/* Product title and price. */
body.jr-dark-commerce ul.products li.product h2,
body.jr-dark-commerce ul.products li.product h3,
body.jr-dark-commerce ul.products li.product .woocommerce-loop-product__title {
  display: -webkit-box;
  overflow: hidden;

  block-size: 3lh;
  min-block-size: 3lh;
  max-block-size: 3lh;
  margin-bottom: 0 !important;

  color: var(--jr-text) !important;
  font-weight: 650;
  line-height: 1.42;
  text-wrap: pretty;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.jr-dark-commerce ul.products li.product h2 a,
body.jr-dark-commerce ul.products li.product h3 a,
body.jr-dark-commerce ul.products li.product .woocommerce-loop-product__title a {
  color: inherit !important;
}

body.jr-dark-commerce ul.products li.product .price {
  display: block;
  margin-top: 0.7rem !important;
  margin-bottom: 0.8rem !important;
  color: var(--jr-text) !important;
  font-size: clamp(1.08rem, 1rem + 0.06vw, 1.2rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

body.jr-dark-commerce ul.products li.product .price del {
  color: var(--jr-text);
  opacity: 1;
}

body.jr-dark-commerce ul.products li.product .price ins {
  color: #ff9f9f !important;
  text-decoration: none;
}

body.jr-dark-commerce .star-rating,
body.jr-dark-commerce .star-rating::before,
body.jr-dark-commerce .star-rating span::before {
  color: var(--jr-green-light) !important;
}

/* CommerceKit swatches. */
body.jr-dark-commerce ul.products li.product .swatch,
body.jr-dark-commerce ul.products li.product [class*="swatch"],
body.jr-dark-commerce ul.products li.product [class*="attribute"],
body.jr-dark-commerce ul.products li.product .product-attribute {
  border-color: var(--jr-border) !important;
  color: var(--jr-text-soft) !important;
}

body.jr-dark-commerce ul.products li.product .swatch:hover,
body.jr-dark-commerce ul.products li.product [class*="swatch"]:hover,
body.jr-dark-commerce ul.products li.product [class*="attribute"]:hover {
  border-color: var(--jr-green) !important;
  color: var(--jr-text) !important;
}

body.jr-dark-commerce .cgkit-as-wrap-plp {
  min-height: 0;
  margin-bottom: 0.7rem;
}

/* ==========================================================================
   CommerceKit PLP variable-product layout reset
   ========================================================================== */
/**
 * Remove any residual layout spacing around CommerceKit's loop CTA wrappers.
 *
 * Do not change display because CommerceKit controls which CTA is active.
 */
body.jr-dark-commerce
	ul.products
	li.product
	.cgkit-as-loop-atc-wrap,
body.jr-dark-commerce
	ul.products
	li.product
	.cgkit-as-empty-atc-wrap {
	width: 100%;

	margin: 0;
	padding: 0;
}



/* ==========================================================================
   CommerceKit product-card variation swatches
   ========================================================================== */

/**
 * Style CommerceKit product-listing variation buttons.
 *
 * Keeps ordinary PLP swatches on the established dark surface while giving
 * the selected variation the existing Jedi-Robe green selected treatment.
 *
 * The selected selector intentionally matches the complete CommerceKit PLP
 * hierarchy so the generic button background cannot override it.
 *
 * @package Jedi_Theme
 * @subpackage WooCommerce_Product_Cards
 * @since 1.0.0
 */

/**
 * Default unselected product-card variation.
 */
body.jr-dark-commerce
  ul.products
  li.product
  .cgkit-as-wrap-plp
  .cgkit-attribute-swatches
  .cgkit-attribute-swatch.cgkit-button
  button.button-fluid:not(.cgkit-swatch-selected) {
  padding: 0.525rem;

  border-color: var(--jr-border);

  background: var(--jr-surface);

  color: var(--jr-text-soft);
}


/**
 * Selected product-card variation.
 *
 * Uses the existing selected green treatment already established in the
 * Jedi-Robe dark-commerce system.
 */
body.jr-dark-commerce
  ul.products
  li.product
  .cgkit-as-wrap-plp
  .cgkit-attribute-swatches
  .cgkit-attribute-swatch.cgkit-button
  button.button-fluid.cgkit-swatch-selected {
  padding: 0.625rem;

  border-color: var(--jr-green-light);
    background: linear-gradient(180deg, rgba(69, 217, 107, 0.22), rgba(45, 166, 83, 0.18));
    color: var(--jr-text);
    box-shadow: inset 0 0 0 1px rgba(69, 217, 107, 0.2), 0 0 0 1px rgba(69, 217, 107, 0.08);
}


/**
 * Preserve the selected product-card state on hover.
 */
@media (hover: hover) and (pointer: fine) {

  body.jr-dark-commerce
    ul.products
    li.product
    .cgkit-as-wrap-plp
    .cgkit-attribute-swatches
    .cgkit-attribute-swatch.cgkit-button
    button.button-fluid.cgkit-swatch-selected:hover {
    border-color: var(--jr-green-light);
    background: linear-gradient(180deg, rgba(69, 217, 107, 0.22), rgba(45, 166, 83, 0.18));
    color: var(--jr-text);
    box-shadow: inset 0 0 0 1px rgba(69, 217, 107, 0.2), 0 0 0 1px rgba(69, 217, 107, 0.08);
  }
}


body.jr-dark-commerce
  .cgkit-as-wrap-plp
  .cgkit-attribute-swatch.cgkit-button
  button.cgkit-swatch-selected:hover {
  color: var(--jr-text);;
}

/* ==========================================================================
   CommerceKit product-card Quick Add reveal
   ========================================================================== */

/**
 * Smoothly reveal CommerceKit Quick Add controls while preserving identical
 * product-card heights in their resting state.
 *
 * The Quick Add region remains in the DOM but collapses to zero height when
 * inactive. Hover or keyboard focus expands the region while its contents
 * fade and settle into position.
 *
 * CommerceKit remains responsible for variation selection and add-to-cart
 * behaviour; this component controls presentation only.
 *
 * @package Jedi_Theme
 * @subpackage WooCommerce_Product_Cards
 * @since 1.0.0
 */

body.jr-dark-commerce
  ul.products
  li.product
  .ckit-attributes-wrap {
  display: block;

  overflow: hidden;

  max-height: 0;
  margin: 0;
  padding: 0;

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  transform: translate3d(0, -0.3rem, 0);
  transform-origin: top;

  transition:
    max-height 280ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 160ms ease,
    transform 220ms ease,
    visibility 0s linear 280ms;
}


/**
 * Reveal Quick Add after the card interaction begins.
 *
 * Height receives the longer transition because it controls the physical card
 * expansion. Opacity begins slightly later so controls do not appear before
 * sufficient space has opened.
 *
 * @package Jedi_Theme
 * @subpackage WooCommerce_Product_Cards
 */

body.jr-dark-commerce
  ul.products
  li.product:hover
  .ckit-attributes-wrap,
body.jr-dark-commerce
  ul.products
  li.product:focus-within
  .ckit-attributes-wrap {
  max-height: 12rem;

  opacity: 1;
  visibility: visible;

  pointer-events: auto;

  transform: translate3d(0, 0, 0);

  transition:
    max-height 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 240ms ease 70ms,
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}


/* ==========================================================================
   Quick Add internal spacing
   ========================================================================== */

/**
 * Keep CommerceKit spacing inside the collapsible region so it disappears
 * naturally as the parent region closes.
 *
 * @package Jedi_Theme
 * @subpackage WooCommerce_Product_Cards
 */

body.jr-dark-commerce
  ul.products
  li.product
  .ckit-attributes-wrap
  .cgkit-as-wrap-plp {
  margin-bottom: 0.7rem;
}


/* ==========================================================================
   Swatch interaction smoothing
   ========================================================================== */

/**
 * Smooth the visual change between idle, hover and selected variation states.
 *
 * This does not affect card dimensions or CommerceKit variation behaviour.
 *
 * @package Jedi_Theme
 * @subpackage WooCommerce_Product_Cards
 */

body.jr-dark-commerce
  ul.products
  li.product
  .cgkit-as-wrap-plp
  .cgkit-attribute-swatches
  .cgkit-attribute-swatch.cgkit-button
  button.button-fluid {
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}


/* ==========================================================================
   Reduced motion
   ========================================================================== */

/**
 * Remove decorative Quick Add movement when reduced motion is requested.
 *
 * @package Jedi_Theme
 * @subpackage WooCommerce_Product_Cards
 */

@media (prefers-reduced-motion: reduce) {

  body.jr-dark-commerce
    ul.products
    li.product
    .ckit-attributes-wrap {
    transform: none;
    transition: none;
  }
}

/* Add-to-cart controls. */
body.jr-dark-commerce ul.products li.product .button,
body.jr-dark-commerce ul.products li.product a.add_to_cart_button,
body.jr-dark-commerce ul.products li.product a.product_type_simple,
body.jr-dark-commerce ul.products li.product a.product_type_variable {
  margin-top: 0 !important;
  border: 1px solid var(--jr-green-light) !important;
  border-radius: 0.1875rem;
  background: linear-gradient(135deg, var(--jr-green-light), var(--jr-green)) !important;
  color: #07090d !important;
  font-weight: 750;
  box-shadow:
    0 0.7rem 1.5rem rgba(0, 0, 0, 0.19),
    0 0 1rem rgba(45, 166, 83, 0.08);
  transition:
    filter 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

body.jr-dark-commerce ul.products li.product .button:hover,
body.jr-dark-commerce ul.products li.product a.add_to_cart_button:hover,
body.jr-dark-commerce ul.products li.product a.product_type_simple:hover,
body.jr-dark-commerce ul.products li.product a.product_type_variable:hover {
  filter: brightness(1.08);
  transform: translateY(-0.0625rem);
  box-shadow:
    0 0.9rem 1.8rem rgba(0, 0, 0, 0.24),
    0 0 1.35rem rgba(45, 166, 83, 0.14);
}

body.jr-dark-commerce ul.products li.product .button.loading {
  opacity: 0.68;
}

body.jr-dark-commerce ul.products li.product .added_to_cart {
  color: #07090d;
}

/* Product status. */
body.jr-dark-commerce .onsale {
  border-color: var(--jr-danger) !important;
  background: var(--jr-danger) !important;
  color: #fff !important;
}

body.jr-dark-commerce .stock.in-stock {
  color: #07090d;
}

body.jr-dark-commerce .stock.out-of-stock {
  color: var(--jr-danger) !important;
}

/* Product-card interaction. */
@media (hover: hover) and (pointer: fine) {
  body.jr-dark-commerce ul.products li.product:hover {
    border-color: rgba(69, 217, 107, 0.56) !important;
    background:
      linear-gradient(
        135deg,
        rgba(111, 203, 255, 0.065),
        transparent 40%
      ),
      rgba(11, 19, 30, 0.68) !important;
    box-shadow:
      inset 0 2px 0 rgba(69, 217, 107, 0.72),
      0 1.7rem 3.6rem rgba(0, 0, 0, 0.36),
      0 0 0 1px rgba(45, 166, 83, 0.04),
      0 0 1.7rem rgba(111, 203, 255, 0.075);
    transform: translateY(-0.25rem);
  }

  body.jr-dark-commerce
    ul.products
    li.product:not(.product-category):hover::before {
    opacity: 1;
  }

  body.jr-dark-commerce ul.products li.product:hover img.wp-post-image {
    filter: contrast(1.018) saturate(1.025);
    transform: scale(1.018) !important;
  }

  body.jr-dark-commerce
    ul.products
    li.product:hover
    .woocommerce-loop-product__title,
  body.jr-dark-commerce ul.products li.product:hover h2,
  body.jr-dark-commerce ul.products li.product:hover h3 {
    text-shadow: 0 0 1rem rgba(45, 166, 83, 0.08);
  }

  body.jr-dark-commerce ul.products li.product:hover .price,
  body.jr-dark-commerce ul.products li.product:hover .price .amount {
    color: var(--jr-text) !important;
  }

  body.jr-dark-commerce ul.products li.product:hover .button {
    box-shadow:
      0 0.75rem 1.6rem rgba(0, 0, 0, 0.22),
      0 0 1.1rem rgba(45, 166, 83, 0.11);
  }
}

body.jr-dark-commerce
  ul.products
  li.product:not(.product-category):focus-within::before {
  opacity: 1;
}

/* CommerceKit product-card wishlist. */
body.jr-dark-commerce
	ul.products:not(.commercekit-wishlist-list)
	li.product .commercekit-wishlist.mini {
  position: absolute;
  top: 1.125rem;
  right: 1.125rem !important;
  left: auto !important;
  z-index: 5;

  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  margin: 0;
  padding: 0;

  border: 1px solid rgba(220, 152, 20, 0.42);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(18, 25, 36, 0.96), rgba(6, 10, 16, 0.96)) !important;

  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;

  box-shadow:
    0 0.65rem 1.4rem rgba(0, 0, 0, 0.34),
    0 0 0.9rem rgba(220, 152, 20, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);

  transform: translateY(-0.3125rem) scale(0.96) !important;

  transition:
    opacity 140ms ease,
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    visibility 0s linear 140ms;
}

body.jr-dark-commerce
	ul.products:not(.commercekit-wishlist-list)
	li.product:hover .commercekit-wishlist.mini,
body.jr-dark-commerce
	ul.products:not(.commercekit-wishlist-list)
	li.product:focus-within .commercekit-wishlist.mini {
  opacity: 1 !important;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1) !important;
  transition-delay: 0s;
}

body.jr-dark-commerce
	ul.products:not(.commercekit-wishlist-list)
	li.product
  .commercekit-wishlist.mini
  .commercekit-save-wishlist {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent !important;
  color: #dc9814 !important;
  text-decoration: none;
}

body.jr-dark-commerce
	ul.products:not(.commercekit-wishlist-list)
	li.product .commercekit-wishlist.mini em {
  display: block;
  margin: 0;
  color: #dc9814 !important;
  transition:
    color 140ms ease,
    transform 140ms ease;
}

body.jr-dark-commerce
	ul.products:not(.commercekit-wishlist-list)
	li.product .commercekit-wishlist.mini em::before {
  background-color: #dc9814 !important;
}

body.jr-dark-commerce
	ul.products:not(.commercekit-wishlist-list)
	li.product
  .commercekit-wishlist.mini
  em.cg-wishlist-t {
  color: #dc9814 !important;
  background-color: transparent !important;
}

body.jr-dark-commerce
	ul.products:not(.commercekit-wishlist-list)
	li.product
  .commercekit-wishlist.mini
  em.cg-wishlist-t::before {
  background-color: #dc9814 !important;
}

body.jr-dark-commerce
	ul.products:not(.commercekit-wishlist-list)
	li.product
  .commercekit-wishlist.mini
  .commercekit-save-wishlist:focus-visible {
  outline: 3px solid var(--jr-blue-light);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  body.jr-dark-commerce
	ul.products:not(.commercekit-wishlist-list)
	li.product .commercekit-wishlist.mini:hover {
    border-color: rgba(220, 152, 20, 0.82);
    box-shadow:
      0 0.8rem 1.6rem rgba(0, 0, 0, 0.4),
      0 0 1.1rem rgba(220, 152, 20, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-0.125rem) scale(1.04) !important;
  }

  body.jr-dark-commerce
    ul.products:not(.commercekit-wishlist-list)
    li.product
    .commercekit-wishlist.mini:hover
    em::before {
    background-color: #f0b43c !important;
  }
}

/* CommerceKit wishlist notification. */
body.jr-dark-commerce #commercekit-flash-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 100000;

  width: max-content;
  min-width: 15rem;
  max-width: calc(100vw - 2rem);
  margin: 0;
  padding: 1rem 1.5rem 1rem 4.25rem;

  border: 1px solid transparent !important;
  border-radius: 0.5rem;
  background:
    linear-gradient(145deg, #172130, #090d14) padding-box,
    linear-gradient(90deg, rgba(45, 166, 83, 0.38), var(--jr-green-light), rgba(45, 166, 83, 0.38)) border-box !important;
  color: var(--jr-text) !important;

  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.4;
  text-align: left;

  box-shadow:
    0 1.5rem 4rem rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(255, 255, 255, 0.025),
    0 0 1.75rem rgba(45, 166, 83, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);

  backdrop-filter: blur(0.875rem);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: jrWishlistFlashIn 240ms cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

body.jr-dark-commerce #commercekit-flash-popup::before {
  position: absolute;
  top: 50%;
  left: 1.15rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(69, 217, 107, 0.42);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 166, 83, 0.14), rgba(45, 166, 83, 0.035));
  color: var(--jr-green-light);
  font-size: 1rem;
  line-height: 1;
  box-shadow:
    0 0 1rem rgba(45, 166, 83, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  content: "♥";
  transform: translateY(-50%);
}

body.jr-dark-commerce #commercekit-flash-popup::after {
  position: absolute;
  top: -1px;
  left: 12%;
  width: 76%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--jr-green-bright), transparent);
  box-shadow: 0 0 1rem rgba(45, 166, 83, 0.28);
  content: "";
  pointer-events: none;
}

@keyframes jrWishlistFlashIn {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 0.875rem)) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Pagination and infinite load. */
body.jr-dark-commerce .woocommerce-pagination a,
body.jr-dark-commerce .woocommerce-pagination span,
body.jr-dark-commerce .shoptimizer-infinite-scroll a,
body.jr-dark-commerce .shoptimizer-infinite-scroll button,
body.jr-dark-commerce .infinite-scroll-button,
body.jr-dark-commerce .load-more-button,
body.jr-dark-commerce button.load-more {
  border: 1px solid var(--jr-border) !important;
  border-radius: 0.1875rem;
  background: var(--jr-surface-raised) !important;
  color: var(--jr-text-soft) !important;
}

body.jr-dark-commerce .woocommerce-pagination a:hover,
body.jr-dark-commerce .shoptimizer-infinite-scroll a:hover,
body.jr-dark-commerce .shoptimizer-infinite-scroll button:hover,
body.jr-dark-commerce .infinite-scroll-button:hover,
body.jr-dark-commerce .load-more-button:hover,
body.jr-dark-commerce button.load-more:hover {
  border-color: var(--jr-green) !important;
  color: var(--jr-text) !important;
}

body.jr-dark-commerce .woocommerce-pagination .current {
  border-color: var(--jr-green) !important;
  background: rgba(45, 166, 83, 0.1) !important;
  color: var(--jr-green-light) !important;
}

/* Responsive catalogue columns. */
@media (min-width: 1280px) {
  body.jr-dark-commerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem !important;
  }

  body.jr-dark-commerce ul.products li.product {
    width: auto !important;
    max-width: none !important;
  }
}

@media (min-width: 769px) and (max-width: 1279px) {
  body.jr-dark-commerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem !important;
  }

  body.jr-dark-commerce ul.products li.product {
    width: auto !important;
    max-width: none !important;
  }
}

@media (min-width: 521px) and (max-width: 768px) {
  body.jr-dark-commerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem !important;
  }

  body.jr-dark-commerce ul.products li.product {
    width: auto !important;
    max-width: none !important;
  }
  
  body.jr-dark-commerce.single-product .related.products ul.products {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  body.jr-dark-commerce ul.products {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 1rem !important;
  }

  body.jr-dark-commerce ul.products li.product {
    width: auto !important;
    max-width: none !important;
  }

  body.jr-dark-commerce #commercekit-flash-popup {
    width: calc(100vw - 2rem);
    min-width: 0;
    padding: 0.9rem 1rem 0.9rem 3.75rem;
    font-size: 0.9rem;
  }

  body.jr-dark-commerce #commercekit-flash-popup::before {
    left: 0.9rem;
    width: 2rem;
    height: 2rem;
  }
}

@media (hover: none), (pointer: coarse) {
  body.jr-dark-commerce ul.products li.product:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.jr-dark-commerce ul.products li.product,
  body.jr-dark-commerce ul.products li.product:not(.product-category)::before,
  body.jr-dark-commerce ul.products li.product img.wp-post-image,
  body.jr-dark-commerce ul.products li.product .commercekit-wishlist.mini,
  body.jr-dark-commerce ul.products li.product .commercekit-wishlist.mini em {
    transition: none;
  }

  body.jr-dark-commerce ul.products li.product:hover,
  body.jr-dark-commerce ul.products li.product:hover img.wp-post-image,
  body.jr-dark-commerce ul.products li.product:hover .commercekit-wishlist.mini,
  body.jr-dark-commerce ul.products li.product:focus-within .commercekit-wishlist.mini {
    transform: none !important;
  }

  body.jr-dark-commerce ul.products li.product:hover .ckit-attributes-wrap,
  body.jr-dark-commerce ul.products li.product:focus-within .ckit-attributes-wrap,
  body.jr-dark-commerce #commercekit-flash-popup {
    animation: none;
  }
}

