/* The GRID — On Board Air / Catalogue GRID v0.2.6
   Clean catalogue stylesheet: native WooCommerce loop, deterministic CSS Grid,
   guide-inspired fast gradient, compact commercial footer, no Rey Metro JS. */

body.the-grid-catalog-active {
  --grid-cat-gap: 14px;
  --grid-cat-accent: #bf7c00;
  --grid-cat-ink: #171917;
  --grid-cat-surface: #f3f4f2;
  --grid-cat-line: rgba(255,255,255,.30);
  --grid-cat-pad: clamp(14px, 1.2cqw, 18px);
}

body.the-grid-catalog-active .rey-siteMain {
  container-name: gridcatalog;
  container-type: inline-size;
}

/* -------------------------------------------------------------------------
   GRID-owned catalogue heading. Rey remains functional but not visual here.
   ------------------------------------------------------------------------- */
body.the-grid-catalog-active :is(
  .woocommerce-products-header,
  .rey-pageHead,
  .rey-pageTitle,
  .page-header,
  .archive-header,
  nav.rey-breadcrumbs,
  .rey-breadcrumbs,
  .rey-breadcrumbsWrapper,
  .rey-breadcrumbs-wrapper,
  .woocommerce-breadcrumb
) {
  display: none !important;
}

/* Remove only the space associated with hidden archive chrome. */
body.the-grid-catalog-active :is(
  .rey-pageCover,
  .rey-pageCover-content,
  .rey-pageCover-inner
) {
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.the-grid-catalog-active .rey-siteMain,
body.the-grid-catalog-active .rey-siteContent,
body.the-grid-catalog-active .woocommerce {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.the-grid-catalog-active .the-grid-catalog-head {
  display: grid !important;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  align-items: end;
  gap: clamp(28px, 4vw, 64px);
  width: 100%;
  min-height: 118px;
  margin: 0 0 18px !important;
  padding: 24px 28px 20px !important;
  border: 0 !important;
  background: #f1f2f0;
  box-sizing: border-box;
}

body.the-grid-catalog-active .the-grid-catalog-head__eyebrow {
  display: block;
  margin: 0 0 8px;
  color: #747a75;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.the-grid-catalog-active .the-grid-catalog-head__title {
  margin: 0 !important;
  padding: 0 !important;
  color: #222522 !important;
  font-size: clamp(31px, 3vw, 50px) !important;
  font-weight: 500 !important;
  line-height: .98 !important;
  letter-spacing: -.035em !important;
}

body.the-grid-catalog-active .the-grid-catalog-head__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px 22px;
  min-width: 0;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
body.the-grid-catalog-active .the-grid-catalog-head__nav::-webkit-scrollbar { display: none; }

body.the-grid-catalog-active .the-grid-catalog-head__link {
  position: relative;
  flex: 0 0 auto;
  padding: 8px 0 9px;
  color: #686e69 !important;
  font-size: 11.5px;
  font-weight: 550;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
}
body.the-grid-catalog-active .the-grid-catalog-head__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 2px;
  background: var(--grid-cat-accent);
  transition: right .18s ease;
}
body.the-grid-catalog-active .the-grid-catalog-head__link:hover,
body.the-grid-catalog-active .the-grid-catalog-head__link.is-current { color: #171917 !important; }
body.the-grid-catalog-active .the-grid-catalog-head__link:hover::after,
body.the-grid-catalog-active .the-grid-catalog-head__link.is-current::after { right: 0; }

body.the-grid-catalog-active .rey-siteMain :is(.rey-loopHeader,.rey-productLoop-header,.woocommerce-before-shop-loop) {
  margin: 0 0 20px !important;
  padding: 0 2px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.the-grid-catalog-active .rey-siteMain :is(.woocommerce-result-count,.woocommerce-ordering) {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* -------------------------------------------------------------------------
   Deterministic GRID geometry.
   Default is square. Wide/tall spans are only applied from persisted product
   image-shape metadata; no live image evaluation occurs on catalogue requests.
   ------------------------------------------------------------------------- */
body.the-grid-catalog-active .rey-siteMain ul.products,
body.the-grid-catalog-active .rey-siteMain .products.the-grid-catalog-products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-flow: dense !important;
  grid-auto-rows: clamp(230px, calc((100cqw - (3 * var(--grid-cat-gap))) / 4), 340px) !important;
  gap: var(--grid-cat-gap) !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  align-items: stretch !important;
}

/* Regular products remain 1x1. One predictable feature position becomes 2x2. */
body.the-grid-catalog-active .rey-siteMain ul.products > li.product {
  grid-column: span 1 !important;
  grid-row: span 1 !important;
}
body.the-grid-catalog-active .rey-siteMain ul.products > li.product:nth-child(12n + 1) {
  grid-column: span 2 !important;
  grid-row: span 2 !important;
}
/* Explicit persisted image geometry may override a normal 1x1 tile. */
body.the-grid-catalog-active .rey-siteMain ul.products > li.product.the-grid-shape-wide:not(:nth-child(12n + 1)) {
  grid-column: span 2 !important;
  grid-row: span 1 !important;
}
body.the-grid-catalog-active .rey-siteMain ul.products > li.product.the-grid-shape-tall:not(:nth-child(12n + 1)) {
  grid-column: span 1 !important;
  grid-row: span 2 !important;
}

body.the-grid-catalog-active .rey-siteMain ul.products > li.product {
  float: none !important;
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  translate: none !important;
  opacity: 1 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  isolation: isolate;
  animation: none !important;
}
body.the-grid-catalog-active .rey-siteMain ul.products > li.product:hover {
  box-shadow: 0 12px 32px rgba(20,24,21,.10) !important;
}

body.the-grid-catalog-active .rey-siteMain ul.products > li.product > .rey-protoShadowHolder,
body.the-grid-catalog-active .rey-siteMain ul.products > li.product > .rey-productEditLink {
  display: none !important;
}

body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-productInner {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}

/* -------------------------------------------------------------------------
   Product media.
   ------------------------------------------------------------------------- */
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-productThumbnail,
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-productThumbnail > a.woocommerce-loop-product__link,
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-productThumbnail > a.woocommerce-loop-product__link > div {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: #fff !important;
}
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-productThumbnail { z-index: 1 !important; }
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-productThumbnail > a.woocommerce-loop-product__link > div:first-child { z-index: 1 !important; }
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-productThumbnail > a.woocommerce-loop-product__link > div:nth-child(n+2) { z-index: 2 !important; }

body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-productThumbnail img,
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-productThumbnail .rey-thumbImg,
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-productThumbnail img[data-lazy-hidden] {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(12px, 1.45cqw, 22px) !important;
  object-fit: contain !important;
  object-position: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  clip: auto !important;
  transform: scale(1) !important;
  transition: transform .28s ease !important;
}
body.the-grid-catalog-active .rey-siteMain ul.products > li.product:hover .rey-productThumbnail img {
  transform: scale(1.022) !important;
}

/* -------------------------------------------------------------------------
   Guide-inspired information overlay.
   The gradient is deliberately short: clear image above, readable content below.
   ------------------------------------------------------------------------- */
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopDetails {
  position: absolute !important;
  z-index: 5 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 16px 16px 58px !important;
  color: #fff !important;
  text-align: left !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  pointer-events: none;
  isolation: isolate;
}
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopDetails::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: -64px;
  bottom: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(25,27,26,0) 0%,
    rgba(25,27,26,.06) 16%,
    rgba(25,27,26,.22) 34%,
    rgba(25,27,26,.52) 54%,
    rgba(25,27,26,.69) 72%,
    rgba(25,27,26,.76) 100%
  );
}
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopDetails > * { pointer-events: auto; }
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-productCategories { display: none !important; }

/* Title: readable rather than tiny, but never allowed to consume the card. */
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .woocommerce-loop-product__title,
body.the-grid-catalog-active .rey-siteMain ul.products > li.product:nth-child(12n + 1) .woocommerce-loop-product__title,
body.the-grid-catalog-active .rey-siteMain ul.products > li.product:nth-child(12n + 6) .woocommerce-loop-product__title,
body.the-grid-catalog-active .rey-siteMain ul.products > li.product:nth-child(12n + 10) .woocommerce-loop-product__title {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  max-height: calc(2 * 1.18em) !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  font-size: clamp(14px, 1.00cqw, 18px) !important;
  font-weight: 540 !important;
  line-height: 1.18 !important;
  letter-spacing: -.012em !important;
  text-align: left !important;
  opacity: 1 !important;
  transform: none !important;
}
body.the-grid-catalog-active .rey-siteMain ul.products > li.product:nth-child(12n + 1) .woocommerce-loop-product__title {
  font-size: clamp(17px, 1.30cqw, 22px) !important;
}
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .woocommerce-loop-product__title a {
  color: inherit !important;
  text-decoration: none !important;
}
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .woocommerce-loop-product__title::after {
  content: "" !important;
  display: block !important;
  width: 100% !important;
  height: 1px !important;
  margin: 10px 0 8px !important;
  background: var(--grid-cat-line) !important;
}

/* Stock + price form the quiet information row directly beneath the rule. */
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopStock {
  position: absolute !important;
  z-index: 7 !important;
  left: 16px !important;
  bottom: 60px !important;
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopStock .stock-c {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 18px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(255,255,255,.84) !important;
  font-size: 9px !important;
  font-weight: 550 !important;
  line-height: 1.2 !important;
  letter-spacing: .035em !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
}
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopStock.in-stock .stock-c::before,
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopStock.available-on-backorder .stock-c::before,
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopStock.out-of-stock .stock-c::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: #9fca39;
}
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopStock.available-on-backorder .stock-c::before { background: #d5a33c; }
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopStock.out-of-stock .stock-c::before { background: #df6b62; }

body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopPrice,
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .price,
body.the-grid-catalog-active .rey-siteMain ul.products > li.product:nth-child(12n + 1) .rey-loopPrice,
body.the-grid-catalog-active .rey-siteMain ul.products > li.product:nth-child(12n + 1) .price {
  position: absolute !important;
  right: 16px !important;
  bottom: 58px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  font-size: clamp(16px, 1.12cqw, 20px) !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: right !important;
  white-space: nowrap !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
body.the-grid-catalog-active .rey-siteMain ul.products > li.product:nth-child(12n + 1) .rey-loopPrice,
body.the-grid-catalog-active .rey-siteMain ul.products > li.product:nth-child(12n + 1) .price {
  font-size: clamp(19px, 1.36cqw, 24px) !important;
}

/* -------------------------------------------------------------------------
   One tight bottom row: SKU/OE | Quick View | Add to cart.
   ------------------------------------------------------------------------- */
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .sku_oe2 {
  position: absolute !important;
  z-index: 7 !important;
  left: 16px !important;
  bottom: 13px !important;
  display: block !important;
  width: 30% !important;
  min-width: 0 !important;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: rgba(255,255,255,.74) !important;
  font-size: 9px !important;
  font-weight: 400 !important;
  line-height: 1.28 !important;
  text-align: left !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .sku_oe2 strong {
  color: rgba(255,255,255,.60) !important;
  font-weight: 500 !important;
}
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .sku_oe2 .__break {
  display: block !important;
}

/* Native Add to Basket occupies the right third. */
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopButtons {
  position: absolute !important;
  z-index: 8 !important;
  right: 16px !important;
  bottom: 13px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: stretch !important;
  width: 30% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopButtons > .button,
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopButtons > a.button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border: 1px solid var(--grid-cat-accent) !important;
  border-radius: 5px !important;
  background: var(--grid-cat-accent) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  letter-spacing: .02em !important;
  box-shadow: none !important;
  text-align: center !important;
}
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopButtons > .button:hover,
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopButtons > a.button:hover {
  background: #d89514 !important;
  border-color: #d89514 !important;
}
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopButtons .woosq-btn { display: none !important; }

/* Quick View uses the centre third. */
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-thPos--bottom-right {
  position: absolute !important;
  z-index: 12 !important;
  left: 35% !important;
  right: auto !important;
  top: auto !important;
  bottom: 13px !important;
  display: block !important;
  width: 30% !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-quickviewBtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border: 1px solid rgba(255,255,255,.72) !important;
  border-radius: 5px !important;
  background: rgba(32,34,33,.48) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  letter-spacing: .02em !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-quickviewBtn *,
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopButtons > .button * {
  color: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
}
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-quickviewBtn:hover {
  background: rgba(255,255,255,.96) !important;
  color: #171917 !important;
}

/* Wishlist: simple heart, no box. */
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-thPos--top-right {
  z-index: 12 !important;
  top: 12px !important;
  right: 12px !important;
  opacity: 1 !important;
  visibility: visible !important;
}
body.the-grid-catalog-active .rey-siteMain ul.products > li.product :is(
  .rey-wishlistBtn,
  .rey-wishlistBtn:hover,
  .rey-wishlistBtn:focus,
  .rey-wishlistBtn:active
) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #171917 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 1px 2px rgba(255,255,255,.82)) drop-shadow(0 1px 2px rgba(0,0,0,.18)) !important;
  opacity: 1 !important;
  visibility: visible !important;
}
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-wishlistBtn svg {
  fill: none !important;
  stroke: currentColor !important;
}

/* Square geometry for any remaining badges / controls in catalogue mode. */
body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-pBadge,
body.the-grid-catalog-active .rey-siteMain ul.products > li.product [class*="productBadge"],
body.the-grid-catalog-active .rey-siteMain ul.products > li.product [class*="badge"] {
  border-radius: 0 !important;
}

/* -------------------------------------------------------------------------
   Responsive: predictable 2-column grid, same hierarchy, slightly tighter row.
   ------------------------------------------------------------------------- */
@container gridcatalog (max-width: 900px) {
  body.the-grid-catalog-active .rey-siteMain ul.products,
  body.the-grid-catalog-active .rey-siteMain .products.the-grid-catalog-products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: calc((100cqw - var(--grid-cat-gap)) / 2) !important;
  }
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  body.the-grid-catalog-active .the-grid-catalog-head {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
    padding: 18px 18px 16px !important;
  }
  body.the-grid-catalog-active .the-grid-catalog-head__nav { justify-content: flex-start; }

  body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopDetails {
    padding: 12px 12px 54px !important;
  }
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopDetails::before {
    top: -48px;
  }
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product .woocommerce-loop-product__title,
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product:nth-child(12n + 1) .woocommerce-loop-product__title,
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product:nth-child(12n + 6) .woocommerce-loop-product__title,
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product:nth-child(12n + 10) .woocommerce-loop-product__title {
    font-size: clamp(12.5px, 2.1cqw, 15px) !important;
  }
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product .woocommerce-loop-product__title::after {
    margin: 8px 0 7px !important;
  }
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopPrice,
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product .price,
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product:nth-child(12n + 1) .rey-loopPrice,
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product:nth-child(12n + 1) .price {
    right: 12px !important;
    bottom: 58px !important;
    font-size: 15px !important;
  }
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopStock { left: 12px !important; bottom: 59px !important; }
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product .sku_oe2 {
    left: 12px !important;
    bottom: 11px !important;
    width: 29% !important;
    font-size: 7.8px !important;
  }
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-thPos--bottom-right {
    left: 34% !important;
    bottom: 11px !important;
    width: 31% !important;
  }
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopButtons {
    right: 12px !important;
    bottom: 11px !important;
    width: 31% !important;
  }
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopButtons > .button,
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopButtons > a.button,
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-quickviewBtn {
    min-height: 34px !important;
    padding: 0 7px !important;
    border-radius: 5px !important;
    font-size: 8.5px !important;
  }
}

@media (max-width: 520px) {
  body.the-grid-catalog-active { --grid-cat-gap: 10px; }
  body.the-grid-catalog-active .the-grid-catalog-head {
    margin-bottom: 14px !important;
    padding: 15px 14px 14px !important;
  }
  body.the-grid-catalog-active .the-grid-catalog-head__title {
    font-size: clamp(27px, 9vw, 37px) !important;
  }
  body.the-grid-catalog-active .the-grid-catalog-head__link { font-size: 11px; }

  body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-productThumbnail img,
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-productThumbnail .rey-thumbImg {
    padding: 9px !important;
  }
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopDetails {
    padding: 10px 10px 47px !important;
  }
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopDetails::before { top: -40px; }
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopStock .stock-c { font-size: 7.5px !important; }
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopPrice,
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product .price {
    right: 10px !important;
    bottom: 50px !important;
    font-size: 13px !important;
  }
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopStock { left: 10px !important; bottom: 51px !important; }
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product .sku_oe2 {
    left: 10px !important;
    bottom: 8px !important;
    width: 31% !important;
    font-size: 7px !important;
    line-height: 1.2 !important;
  }
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-thPos--bottom-right {
    left: 36% !important;
    bottom: 8px !important;
    width: 28% !important;
  }
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopButtons {
    right: 10px !important;
    bottom: 8px !important;
    width: 31% !important;
  }
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopButtons > .button,
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-loopButtons > a.button,
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-quickviewBtn {
    min-height: 31px !important;
    border-radius: 5px !important;
    font-size: 7.6px !important;
  }
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product .rey-wishlistBtn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product,
  body.the-grid-catalog-active .rey-siteMain ul.products > li.product img,
  body.the-grid-catalog-active .the-grid-catalog-head__link::after {
    transition: none !important;
  }
}
