/*
Theme Name: RPS Custom Print Shop Child
Theme URI: https://www.printingservicesdubai.com/
Description: Update-safe child theme for Custom Print Shop. Preserves THE RPS LLC custom footer and inherits the parent theme's saved Customizer settings and Additional CSS.
Author: THE RPS LLC
Template: custom-print-shop
Version: 1.39.0
Text Domain: rps-custom-print-shop-child
*/


/* ==========================================================
   THE RPS LLC — CINEMATIC PREMIUM SINGLE PRODUCT v1.24
   Clean rebuild from stable v1.21 base.
   ========================================================== */

body.single-product {
  --rps-bg: #eef0f4;
  --rps-surface: #eef0f4;
  --rps-surface-soft: #f5f7fa;
  --rps-white: #ffffff;
  --rps-text: #111318;
  --rps-muted: #666d76;
  --rps-muted-2: #8b9199;
  --rps-red: #c5161d;
  --rps-red-dark: #9f1016;
  --rps-gold: #c9a961;
  --rps-shadow-dark: rgba(163,167,176,.26);
  --rps-shadow-light: rgba(255,255,255,.96);
  --rps-page-width: 1280px;
  background: var(--rps-bg) !important;
}

/* ---------- Full product canvas ---------- */
body.single-product #primary,
body.single-product .content-area,
body.single-product .site-main,
body.single-product main {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  background: var(--rps-bg) !important;
  overflow: visible !important;
}

body.single-product .woocommerce-breadcrumb,
body.single-product div.product,
body.single-product .woocommerce-tabs,
body.single-product .related.products,
body.single-product .upsells.products {
  width: min(var(--rps-page-width), calc(100vw - 56px)) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* ---------- Breadcrumb ---------- */
body.single-product .woocommerce-breadcrumb {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  margin-top: 34px !important;
  margin-bottom: 26px !important;
  padding: 0 !important;
  color: #747b84 !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  line-height: 1.5 !important;
}

body.single-product .woocommerce-breadcrumb a {
  color: var(--rps-red) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

body.single-product .woocommerce-breadcrumb a:hover {
  text-decoration: underline !important;
}

/* ==========================================================
   TOP PRODUCT COMPOSITION
   ========================================================== */
body.single-product div.product {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.10fr) minmax(420px, .90fr) !important;
  grid-auto-flow: row !important;
  column-gap: 34px !important;
  row-gap: 0 !important;
  align-items: start !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

/* Woo sale badge should not become a grid cell */
body.single-product div.product > .onsale,
body.single-product div.product span.onsale {
  position: absolute !important;
  top: 16px !important;
  left: -10px !important;
  right: auto !important;
  z-index: 60 !important;
  min-width: auto !important;
  min-height: auto !important;
  margin: 0 !important;
  padding: 7px 10px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: linear-gradient(145deg, #e52c33, #ad1117) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  box-shadow: 0 9px 20px rgba(197,22,29,.24) !important;
  animation: rpsSaleFloat 4.8s ease-in-out infinite !important;
}

@keyframes rpsSaleFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ==========================================================
   GALLERY — VISUAL HERO
   ========================================================== */
body.single-product div.product .woocommerce-product-gallery {
  grid-column: 1 !important;
  grid-row: 1 !important;
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 16px !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at 8% 6%, rgba(255,255,255,.98), rgba(255,255,255,0) 30%),
    linear-gradient(145deg, #f4f6fa, #e7eaf0) !important;
  box-shadow:
    16px 16px 36px var(--rps-shadow-dark),
    -16px -16px 36px var(--rps-shadow-light) !important;
  overflow: visible !important;
  transform: translateZ(0);
  animation: rpsCinemaGalleryIn .75s cubic-bezier(.2,.75,.2,1) both;
}

@keyframes rpsCinemaGalleryIn {
  from { opacity: 0; transform: translate3d(-18px,18px,0) scale(.985); filter: blur(3px); }
  to { opacity: 1; transform: translate3d(0,0,0) scale(1); filter: blur(0); }
}

body.single-product div.product .woocommerce-product-gallery::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 0;
  border-radius: 25px;
  pointer-events: none;
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,.74),
    inset -1px -1px 0 rgba(202,207,215,.30);
}

/* main image stage */
body.single-product .woocommerce-product-gallery .flex-viewport,
body.single-product .woocommerce-product-gallery__wrapper {
  position: relative !important;
  z-index: 2 !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow:
    inset 3px 3px 8px rgba(163,167,176,.10),
    inset -3px -3px 8px rgba(255,255,255,.98),
    0 10px 26px rgba(80,86,96,.08) !important;
}

body.single-product .woocommerce-product-gallery__image {
  overflow: hidden !important;
  border-radius: 22px !important;
}

body.single-product .woocommerce-product-gallery__image img {
  width: 100% !important;
  height: auto !important;
  max-height: 640px !important;
  object-fit: contain !important;
  transform: translate3d(var(--rps-pan-x,0), var(--rps-pan-y,0),0) scale(var(--rps-img-scale,1));
  transform-origin: center;
  transition:
    transform .72s cubic-bezier(.16,.76,.22,1),
    filter .45s ease,
    opacity .45s ease !important;
  will-change: transform;
}

body.single-product .woocommerce-product-gallery:hover {
  --rps-img-scale: 1.022;
}

/* cinematic transition between gallery images */
body.single-product .woocommerce-product-gallery.rps-gallery-changing .woocommerce-product-gallery__image.flex-active-slide img,
body.single-product .woocommerce-product-gallery.rps-gallery-changing .woocommerce-product-gallery__image.flex-active img {
  animation: rpsGalleryCinemaSwap .72s cubic-bezier(.17,.75,.25,1);
}

@keyframes rpsGalleryCinemaSwap {
  0% { opacity: .18; filter: blur(5px); transform: scale(1.055); }
  48% { opacity: .78; filter: blur(1px); }
  100% { opacity: 1; filter: blur(0); transform: scale(1.022); }
}

/* premium gallery badge */
body.single-product .rps-gallery-badge {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(8px);
  color: var(--rps-red);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .9px;
  text-transform: uppercase;
  box-shadow:
    5px 5px 12px rgba(163,167,176,.16),
    -5px -5px 12px rgba(255,255,255,.98);
}

body.single-product .rps-gallery-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rps-red);
  box-shadow: 0 0 0 4px rgba(197,22,29,.09);
}

/* arrows */
body.single-product .rps-gallery-arrows {
  position: absolute;
  top: 48%;
  left: 25px;
  right: 25px;
  z-index: 42;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
}

body.single-product .rps-gallery-arrows button {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.92) !important;
  color: var(--rps-red) !important;
  font-size: 23px !important;
  line-height: 1 !important;
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px) scale(.94);
  box-shadow:
    7px 7px 16px rgba(163,167,176,.25),
    -7px -7px 16px rgba(255,255,255,.99) !important;
  transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease !important;
}

body.single-product .woocommerce-product-gallery:hover .rps-gallery-arrows button {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.single-product .rps-gallery-arrows button:hover {
  transform: scale(1.08) !important;
  box-shadow:
    9px 9px 20px rgba(163,167,176,.28),
    -9px -9px 20px rgba(255,255,255,1) !important;
}

/* thumbnails */
body.single-product .flex-control-thumbs,
body.single-product ol.flex-control-thumbs {
  position: relative;
  z-index: 3;
  display: flex !important;
  gap: 9px !important;
  margin: 12px 0 0 !important;
  padding: 7px !important;
  overflow-x: auto !important;
  border-radius: 17px !important;
  background: linear-gradient(145deg, rgba(255,255,255,.48), rgba(232,235,241,.78)) !important;
  box-shadow:
    inset 2px 2px 6px rgba(163,167,176,.10),
    inset -2px -2px 6px rgba(255,255,255,.94) !important;
  scrollbar-width: none;
}

body.single-product .flex-control-thumbs::-webkit-scrollbar {
  display: none;
}

body.single-product .flex-control-thumbs li {
  flex: 1 0 92px !important;
  width: auto !important;
  max-width: 130px !important;
  float: none !important;
  margin: 0 !important;
  padding: 3px !important;
  border-radius: 13px !important;
  background: linear-gradient(145deg, #f8f9fb, #e9ecf2) !important;
  box-shadow:
    4px 4px 10px rgba(163,167,176,.15),
    -4px -4px 10px rgba(255,255,255,.98) !important;
  transition: transform .3s cubic-bezier(.2,.75,.2,1), box-shadow .3s ease !important;
}

body.single-product .flex-control-thumbs li:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow:
    7px 7px 16px rgba(163,167,176,.18),
    -7px -7px 16px rgba(255,255,255,1) !important;
}

body.single-product .flex-control-thumbs li img {
  width: 100% !important;
  height: 94px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  opacity: .78 !important;
  transition: opacity .25s ease, transform .3s ease, box-shadow .3s ease !important;
}

body.single-product .flex-control-thumbs li:hover img {
  opacity: 1 !important;
  transform: scale(1.025);
}

body.single-product .flex-control-thumbs img.flex-active {
  opacity: 1 !important;
  box-shadow: 0 0 0 2px rgba(197,22,29,.34) !important;
}

/* autoplay progress */
body.single-product .rps-gallery-status {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 4px 0;
}

body.single-product .rps-gallery-status-track {
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(163,167,176,.22);
}

body.single-product .rps-gallery-status-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rps-red), #e93e45, var(--rps-gold));
}

body.single-product .rps-gallery-status.playing .rps-gallery-status-track span {
  animation: rpsGalleryProgress 5.2s linear forwards;
}

@keyframes rpsGalleryProgress {
  from { width: 0; }
  to { width: 100%; }
}

body.single-product .rps-gallery-status-count {
  min-width: 42px;
  color: #7a8089;
  font-size: 10px;
  font-weight: 850;
  text-align: right;
}

/* ==========================================================
   SUMMARY — CLEAN HIGH-END COMMERCE CARD
   ========================================================== */
body.single-product div.product .summary {
  grid-column: 2 !important;
  grid-row: 1 !important;
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 28px 28px 24px !important;
  overflow: hidden !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at 92% 5%, rgba(255,255,255,.90), rgba(255,255,255,0) 27%),
    linear-gradient(145deg, #f3f5f9, #e7eaf0) !important;
  box-shadow:
    16px 16px 36px var(--rps-shadow-dark),
    -16px -16px 36px var(--rps-shadow-light) !important;
  animation: rpsCinemaSummaryIn .78s .09s cubic-bezier(.2,.75,.2,1) both;
}

@keyframes rpsCinemaSummaryIn {
  from { opacity: 0; transform: translate3d(18px,18px,0) scale(.985); filter: blur(3px); }
  to { opacity: 1; transform: translate3d(0,0,0) scale(1); filter: blur(0); }
}

body.single-product div.product .summary::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  top: -125px;
  right: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197,22,29,.055), rgba(197,22,29,0) 68%);
  pointer-events: none;
}

/* kicker */
body.single-product .rps-summary-kicker {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: linear-gradient(145deg, #f9fafc, #e8ebf1);
  color: var(--rps-red);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.05px;
  text-transform: uppercase;
  box-shadow:
    4px 4px 10px rgba(163,167,176,.13),
    -4px -4px 10px rgba(255,255,255,.98);
}

body.single-product .rps-summary-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rps-red);
}

/* product title */
body.single-product .summary .product_title,
body.single-product .summary h1.product_title,
body.single-product div.product .summary .entry-title {
  position: relative;
  z-index: 2;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  color: #12151a !important;
  font-family: "Fraunces", Georgia, "Times New Roman", serif !important;
  font-size: clamp(34px, 3vw, 44px) !important;
  font-weight: 760 !important;
  line-height: 1.01 !important;
  letter-spacing: -1.1px !important;
}

body.single-product .summary .product_title::after,
body.single-product .summary h1.product_title::after,
body.single-product div.product .summary .entry-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rps-red), var(--rps-gold));
}

/* price */
body.single-product .summary .price {
  position: relative;
  z-index: 2;
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 13px 0 13px !important;
  padding: 0 0 13px !important;
  border-bottom: 1px solid rgba(197,22,29,.075) !important;
  color: var(--rps-red) !important;
  font-size: 21px !important;
  font-weight: 900 !important;
}

body.single-product .summary .price del {
  color: #9ca1a9 !important;
  font-size: 14px !important;
  opacity: 1 !important;
}

body.single-product .summary .price ins {
  color: var(--rps-red) !important;
  font-size: 21px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

/* ==========================================================
   CURRENCY — ONE CONTROL ONLY
   ========================================================== */
body.single-product .rps-currency-block {
  position: relative;
  z-index: 3;
  display: block;
  margin: 0 0 12px;
}

body.single-product .rps-currency-block__label {
  display: block;
  margin: 0 0 6px;
  color: #7d838c;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .9px;
  text-transform: uppercase;
}

body.single-product .rps-native-currency-duplicate,
body.single-product .rps-old-currency-wrap {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

body.single-product .rps-currency-block .dd-container,
body.single-product .dd-container.rps-currency-preferred {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
  min-width: 210px !important;
  max-width: 280px !important;
  margin: 0 !important;
  padding: 3px !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg, #f8f9fb, #e8ebf1) !important;
  box-shadow:
    5px 5px 12px rgba(163,167,176,.16),
    -5px -5px 12px rgba(255,255,255,.98) !important;
}

body.single-product .rps-currency-block .dd-select {
  min-height: 36px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: #fff !important;
}

body.single-product .rps-currency-block .dd-selected {
  padding: 8px 29px 8px 9px !important;
  color: #454b53 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

body.single-product .rps-currency-block .dd-selected img,
body.single-product .rps-currency-block .dd-option-image {
  width: 17px !important;
  height: auto !important;
  margin-right: 6px !important;
}

body.single-product .rps-currency-block select.rps-currency-fallback {
  display: block !important;
  width: 100% !important;
  min-height: 41px !important;
  padding: 0 38px 0 12px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #edf0f4 !important;
  color: #373c44 !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  box-shadow:
    inset 3px 3px 7px rgba(163,167,176,.17),
    inset -3px -3px 7px rgba(255,255,255,.98) !important;
}

/* ==========================================================
   DESCRIPTION + QUOTE NOTE
   ========================================================== */
body.single-product .summary .woocommerce-product-details__short-description {
  position: relative;
  z-index: 2;
  margin: 0 0 8px !important;
}

body.single-product .summary .rps-summary-copy {
  position: relative;
  max-height: 152px;
  overflow: hidden;
  transition: max-height .42s cubic-bezier(.2,.7,.2,1);
}

body.single-product .summary .rps-summary-copy::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(238,240,244,0), rgba(238,240,244,.98));
  transition: opacity .25s ease;
}

body.single-product .summary .rps-summary-copy.is-expanded {
  max-height: 900px;
}

body.single-product .summary .rps-summary-copy.is-expanded::after {
  opacity: 0;
}

body.single-product .summary .rps-summary-copy p {
  margin: 0 0 8px !important;
  color: #656c75 !important;
  font-size: 11.7px !important;
  line-height: 1.68 !important;
}

body.single-product .summary .rps-summary-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 0 0 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rps-red);
  font-size: 9.8px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, color .2s ease;
}

body.single-product .summary .rps-summary-toggle:hover {
  color: var(--rps-red-dark);
  transform: translateX(3px);
}

/* quote note */
body.single-product .summary .woocommerce-product-details__short-description h6,
body.single-product .summary h6.rps-quote-note {
  position: relative !important;
  margin: 7px 0 11px !important;
  padding: 12px 13px 12px 42px !important;
  border: 1px solid rgba(197,22,29,.075) !important;
  border-radius: 13px !important;
  background: linear-gradient(145deg, rgba(255,255,255,.62), rgba(240,243,248,.91)) !important;
  color: #282c33 !important;
  font-size: 10.6px !important;
  font-weight: 800 !important;
  line-height: 1.43 !important;
  box-shadow:
    5px 5px 12px rgba(163,167,176,.10),
    -5px -5px 12px rgba(255,255,255,.96) !important;
}

body.single-product .summary .woocommerce-product-details__short-description h6::before,
body.single-product .summary h6.rps-quote-note::before {
  content: "↗";
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(145deg, #e52c33, #a91016);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 7px 15px rgba(197,22,29,.18);
}

/* ==========================================================
   PRIMARY CTA ROW — QUOTE | QTY | ADD TO CART
   ========================================================== */
body.single-product .summary .rps-primary-actions {
  position: relative;
  z-index: 3;
  display: grid !important;
  grid-template-columns: 132px 58px minmax(160px,1fr) !important;
  gap: 8px !important;
  align-items: stretch !important;
  width: 100% !important;
  margin: 0 0 10px !important;
  padding: 9px !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, rgba(255,255,255,.36), rgba(232,235,241,.68)) !important;
  box-shadow:
    inset 3px 3px 7px rgba(163,167,176,.13),
    inset -3px -3px 7px rgba(255,255,255,.97) !important;
  box-sizing: border-box !important;
}

/* expose cart children as direct grid items */
body.single-product .summary .rps-primary-actions form.cart,
body.single-product .summary .rps-primary-actions .woocommerce-variation-add-to-cart {
  display: contents !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

body.single-product .summary .rps-primary-actions .rps-quote-action {
  grid-column: 1 !important;
  margin: 0 !important;
}

body.single-product .summary .rps-primary-actions .rps-quote-action a {
  position: relative;
  overflow: hidden;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border: 1px solid rgba(197,22,29,.13) !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg, #f9fafc, #e8ebf1) !important;
  color: var(--rps-red) !important;
  font-size: 9.7px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow:
    5px 5px 12px rgba(163,167,176,.14),
    -5px -5px 12px rgba(255,255,255,.98) !important;
  transition: transform .24s ease, box-shadow .24s ease, color .24s ease !important;
}

body.single-product .summary .rps-primary-actions .rps-quote-action a:hover {
  transform: translateY(-2px);
  color: var(--rps-red-dark) !important;
  box-shadow:
    8px 8px 17px rgba(163,167,176,.17),
    -8px -8px 17px rgba(255,255,255,1) !important;
}

body.single-product .summary .rps-primary-actions .quantity {
  grid-column: 2 !important;
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-product .summary .rps-primary-actions .quantity .qty {
  display: block !important;
  width: 58px !important;
  min-width: 58px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #edf0f4 !important;
  color: #20242a !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-align: center !important;
  box-shadow:
    inset 4px 4px 8px rgba(163,167,176,.20),
    inset -4px -4px 8px rgba(255,255,255,.98) !important;
}

body.single-product .summary .rps-primary-actions .single_add_to_cart_button {
  position: relative !important;
  overflow: hidden !important;
  grid-column: 3 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg, #e52c33, #aa1016) !important;
  color: #fff !important;
  font-size: 10.3px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  box-shadow: 0 10px 22px rgba(197,22,29,.22) !important;
  transition: transform .24s ease, box-shadow .24s ease !important;
}

body.single-product .summary .rps-primary-actions .single_add_to_cart_button::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -45%;
  width: 28%;
  transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  transition: left .58s ease;
}

body.single-product .summary .rps-primary-actions .single_add_to_cart_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 27px rgba(197,22,29,.30) !important;
}

body.single-product .summary .rps-primary-actions .single_add_to_cart_button:hover::after {
  left: 125%;
}

/* ==========================================================
   SECONDARY ROW — WISHLIST + TRUST
   ========================================================== */
body.single-product .summary .rps-secondary-actions {
  position: relative;
  z-index: 2;
  display: grid !important;
  grid-template-columns: 150px minmax(0,1fr) !important;
  gap: 8px !important;
  align-items: stretch !important;
  margin: 0 0 10px !important;
}

body.single-product .summary .rps-secondary-actions .yith-wcwl-add-to-wishlist,
body.single-product .summary .rps-secondary-actions .tinv-wraper,
body.single-product .summary .rps-secondary-actions [class*="wishlist"] {
  margin: 0 !important;
  min-width: 0 !important;
}

body.single-product .summary .rps-secondary-actions .yith-wcwl-add-to-wishlist a,
body.single-product .summary .rps-secondary-actions .tinv-wraper a,
body.single-product .summary .rps-secondary-actions [class*="wishlist"] a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: 100% !important;
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 9px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg, #f7f9fb, #e8ebf1) !important;
  color: #b8161c !important;
  font-size: 9.5px !important;
  font-weight: 850 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow:
    4px 4px 10px rgba(163,167,176,.13),
    -4px -4px 10px rgba(255,255,255,.96) !important;
  transition: transform .22s ease, box-shadow .22s ease !important;
}

body.single-product .summary .rps-secondary-actions a:hover {
  transform: translateY(-2px);
  box-shadow:
    7px 7px 14px rgba(163,167,176,.16),
    -7px -7px 14px rgba(255,255,255,1) !important;
}

body.single-product .summary .rps-product-trust {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: 6px !important;
  margin: 0 !important;
}

body.single-product .summary .rps-product-trust span {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  padding: 5px 6px !important;
  border-radius: 11px !important;
  background: linear-gradient(145deg, #f7f9fb, #e8ebf1) !important;
  color: #5e656e !important;
  font-size: 7.9px !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  box-shadow:
    4px 4px 9px rgba(163,167,176,.11),
    -4px -4px 9px rgba(255,255,255,.95) !important;
  transition: transform .22s ease, color .22s ease !important;
}

body.single-product .summary .rps-product-trust span:hover {
  transform: translateY(-2px);
  color: var(--rps-red) !important;
}

/* ==========================================================
   META
   ========================================================== */
body.single-product .summary .product_meta {
  position: relative;
  z-index: 2;
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 6px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 8px !important;
  border-radius: 13px !important;
  background: linear-gradient(145deg, rgba(255,255,255,.27), rgba(232,235,241,.61)) !important;
  box-shadow:
    inset 2px 2px 6px rgba(163,167,176,.10),
    inset -2px -2px 6px rgba(255,255,255,.94) !important;
}

body.single-product .summary .product_meta::before {
  display: none !important;
  content: none !important;
}

body.single-product .summary .product_meta > span,
body.single-product .summary .product_meta .posted_in,
body.single-product .summary .product_meta .tagged_as,
body.single-product .summary .product_meta .sku_wrapper {
  display: block !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 8px 9px !important;
  border-radius: 9px !important;
  background: rgba(255,255,255,.27) !important;
  color: #878d95 !important;
  font-size: 8.7px !important;
  line-height: 1.4 !important;
}

body.single-product .summary .product_meta a {
  color: var(--rps-red) !important;
  font-weight: 850 !important;
  text-decoration: none !important;
}

body.single-product .summary .product_meta a:hover {
  text-decoration: underline !important;
}

/* ==========================================================
   TABS — FULL WIDTH, NEVER BESIDE RELATED PRODUCTS
   ========================================================== */
body.single-product div.product > .woocommerce-tabs,
body.single-product .woocommerce-tabs {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  display: block !important;
  clear: both !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 48px 0 0 !important;
  padding: 28px 30px 32px !important;
  border-radius: 28px !important;
  background: linear-gradient(145deg, #f3f5f9, #e8ebf1) !important;
  box-shadow:
    14px 14px 30px rgba(163,167,176,.18),
    -14px -14px 30px rgba(255,255,255,.96) !important;
  box-sizing: border-box !important;
  animation: rpsSectionReveal .65s both;
}

@keyframes rpsSectionReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

body.single-product .woocommerce-tabs ul.tabs {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 0 0 25px !important;
  padding: 5px !important;
  border: 0 !important;
  overflow: visible !important;
}

body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs::after {
  display: none !important;
  content: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(145deg, #f7f9fb, #e8ebf1) !important;
  box-shadow:
    5px 5px 11px rgba(163,167,176,.14),
    -5px -5px 11px rgba(255,255,255,.97) !important;
  transition: transform .22s ease, box-shadow .22s ease !important;
}

body.single-product .woocommerce-tabs ul.tabs li:hover {
  transform: translateY(-2px);
}

body.single-product .woocommerce-tabs ul.tabs li.active {
  box-shadow:
    inset 3px 3px 7px rgba(163,167,176,.18),
    inset -3px -3px 7px rgba(255,255,255,.98) !important;
}

body.single-product .woocommerce-tabs ul.tabs li a {
  display: block !important;
  padding: 12px 17px !important;
  color: #4d535c !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active a {
  color: var(--rps-red) !important;
}

body.single-product .woocommerce-Tabs-panel {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 4px 7px !important;
  color: #525861 !important;
  font-size: 14px !important;
  line-height: 1.82 !important;
}

body.single-product .woocommerce-Tabs-panel h2,
body.single-product .woocommerce-Tabs-panel h3 {
  color: #15181e !important;
  font-family: "Fraunces", Georgia, "Times New Roman", serif !important;
}

/* ==========================================================
   RELATED PRODUCTS — COMPLETELY SEPARATE SECTION
   ========================================================== */
body.single-product .related.products,
body.single-product .upsells.products {
  display: block !important;
  clear: both !important;
  float: none !important;
  margin-top: 42px !important;
  margin-bottom: 55px !important;
  padding: 28px !important;
  border-radius: 28px !important;
  background: linear-gradient(145deg, #f3f5f9, #e8ebf1) !important;
  box-shadow:
    14px 14px 30px rgba(163,167,176,.17),
    -14px -14px 30px rgba(255,255,255,.96) !important;
}

body.single-product .related.products > h2,
body.single-product .upsells.products > h2 {
  position: relative;
  margin: 0 0 25px !important;
  padding: 0 0 12px !important;
  color: #15181e !important;
  font-family: "Fraunces", Georgia, "Times New Roman", serif !important;
  font-size: 34px !important;
  font-weight: 760 !important;
  line-height: 1.05 !important;
}

body.single-product .related.products > h2::after,
body.single-product .upsells.products > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rps-red), var(--rps-gold));
}

body.single-product .related.products ul.products,
body.single-product .upsells.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-product .related.products ul.products::before,
body.single-product .related.products ul.products::after,
body.single-product .upsells.products ul.products::before,
body.single-product .upsells.products ul.products::after {
  display: none !important;
  content: none !important;
}

body.single-product .related.products ul.products li.product,
body.single-product .upsells.products ul.products li.product {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 11px 11px 14px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 20px !important;
  background: linear-gradient(145deg, #f8f9fb, #e8ebf1) !important;
  box-shadow:
    8px 8px 18px rgba(163,167,176,.15),
    -8px -8px 18px rgba(255,255,255,.98) !important;
  transition: transform .32s cubic-bezier(.2,.75,.2,1), box-shadow .32s ease !important;
}

body.single-product .related.products ul.products li.product:hover,
body.single-product .upsells.products ul.products li.product:hover {
  transform: translateY(-7px);
  box-shadow:
    14px 14px 28px rgba(163,167,176,.20),
    -14px -14px 28px rgba(255,255,255,1) !important;
}

body.single-product .related.products ul.products li.product img,
body.single-product .upsells.products ul.products li.product img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  margin: 0 0 11px !important;
  border-radius: 15px !important;
  transition: transform .5s cubic-bezier(.16,.76,.22,1), filter .35s ease !important;
}

body.single-product .related.products ul.products li.product:hover img,
body.single-product .upsells.products ul.products li.product:hover img {
  transform: scale(1.045);
  filter: saturate(1.04);
}

body.single-product .related.products .woocommerce-loop-product__title,
body.single-product .upsells.products .woocommerce-loop-product__title {
  min-height: 38px !important;
  margin: 0 0 5px !important;
  padding: 0 4px !important;
  color: #191c21 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1.4 !important;
  text-align: left !important;
}

body.single-product .related.products .price,
body.single-product .upsells.products .price {
  min-height: 26px !important;
  margin: auto 0 8px !important;
  padding: 0 4px !important;
  color: var(--rps-red) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

body.single-product .related.products .button,
body.single-product .upsells.products .button {
  align-self: flex-start !important;
  min-height: 36px !important;
  margin: 0 4px !important;
  padding: 0 13px !important;
  border-radius: 10px !important;
  background: linear-gradient(145deg, #e52c33, #aa1016) !important;
  color: #fff !important;
  font-size: 9.5px !important;
  font-weight: 900 !important;
  box-shadow: 0 7px 16px rgba(197,22,29,.18) !important;
  transition: transform .22s ease, box-shadow .22s ease !important;
}

body.single-product .related.products .button:hover,
body.single-product .upsells.products .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(197,22,29,.25) !important;
}

/* ==========================================================
   CINEMATIC REVEAL HELPERS
   ========================================================== */
body.single-product .rps-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity .7s cubic-bezier(.2,.75,.2,1),
    transform .7s cubic-bezier(.2,.75,.2,1);
}

body.single-product .rps-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1080px) {
  body.single-product {
    --rps-page-width: 1000px;
  }

  body.single-product div.product {
    grid-template-columns: minmax(0,1fr) minmax(390px,.88fr) !important;
    column-gap: 24px !important;
  }

  body.single-product .summary .rps-primary-actions {
    grid-template-columns: 116px 56px minmax(135px,1fr) !important;
  }

  body.single-product .summary .rps-secondary-actions {
    grid-template-columns: 132px minmax(0,1fr) !important;
  }

  body.single-product .related.products ul.products,
  body.single-product .upsells.products ul.products {
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  }
}

@media (max-width: 840px) {
  body.single-product .woocommerce-breadcrumb,
  body.single-product div.product,
  body.single-product .woocommerce-tabs,
  body.single-product .related.products,
  body.single-product .upsells.products {
    width: calc(100vw - 24px) !important;
  }

  body.single-product div.product {
    grid-template-columns: 1fr !important;
    row-gap: 24px !important;
  }

  body.single-product div.product .woocommerce-product-gallery {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  body.single-product div.product .summary {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  body.single-product div.product > .woocommerce-tabs,
  body.single-product .woocommerce-tabs {
    grid-column: 1 !important;
    margin-top: 20px !important;
  }

  body.single-product .summary .rps-primary-actions {
    grid-template-columns: 132px 58px minmax(160px,1fr) !important;
  }

  body.single-product .summary .rps-secondary-actions {
    grid-template-columns: 150px minmax(0,1fr) !important;
  }

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

@media (max-width: 560px) {
  body.single-product .woocommerce-breadcrumb {
    margin-top: 22px !important;
    margin-bottom: 18px !important;
  }

  body.single-product div.product .woocommerce-product-gallery,
  body.single-product div.product .summary {
    border-radius: 22px !important;
  }

  body.single-product div.product .summary {
    padding: 22px 17px 19px !important;
  }

  body.single-product .summary .product_title,
  body.single-product .summary h1.product_title,
  body.single-product div.product .summary .entry-title {
    font-size: 30px !important;
  }

  body.single-product .summary .rps-primary-actions {
    grid-template-columns: 58px minmax(0,1fr) !important;
  }

  body.single-product .summary .rps-primary-actions .rps-quote-action {
    grid-column: 1 / -1 !important;
  }

  body.single-product .summary .rps-primary-actions .quantity {
    grid-column: 1 !important;
  }

  body.single-product .summary .rps-primary-actions .single_add_to_cart_button {
    grid-column: 2 !important;
  }

  body.single-product .summary .rps-secondary-actions {
    grid-template-columns: 1fr !important;
  }

  body.single-product .summary .rps-product-trust {
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  }

  body.single-product .summary .product_meta {
    grid-template-columns: 1fr !important;
  }

  body.single-product .woocommerce-tabs {
    padding: 20px 14px 24px !important;
  }

  body.single-product .woocommerce-tabs ul.tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }

  body.single-product .woocommerce-tabs ul.tabs::-webkit-scrollbar {
    display: none;
  }

  body.single-product .related.products,
  body.single-product .upsells.products {
    padding: 20px 12px !important;
  }

  body.single-product .related.products > h2,
  body.single-product .upsells.products > h2 {
    font-size: 28px !important;
  }

  body.single-product .related.products ul.products,
  body.single-product .upsells.products ul.products {
    gap: 11px !important;
  }

  body.single-product .rps-gallery-arrows button {
    width: 38px;
    height: 38px;
    opacity: .88;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.single-product *,
  body.single-product *::before,
  body.single-product *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}


/* ==========================================================
   THE RPS LLC — SHOP / CATEGORY PAGE REDESIGN v1.17
   Merchlist-inspired cleaner catalogue layout
   ========================================================== */

/* ----------------------------------------------------------
   1) PAGE WIDTH + GENERAL ARCHIVE SPACING
   ---------------------------------------------------------- */
body.post-type-archive-product .site-main,
body.tax-product_cat .site-main,
body.tax-product_tag .site-main,
body.woocommerce-page .site-main:has(ul.products) {
  width: min(1520px, calc(100% - 48px)) !important;
  max-width: 1520px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-top: 28px !important;
  padding-bottom: 34px !important;
}

/* Where theme wraps content narrower, expand it */
body.post-type-archive-product .content-area,
body.tax-product_cat .content-area,
body.tax-product_tag .content-area {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

body.post-type-archive-product .woocommerce-breadcrumb,
body.tax-product_cat .woocommerce-breadcrumb,
body.tax-product_tag .woocommerce-breadcrumb {
  margin: 0 0 16px !important;
  color: #7a8087 !important;
  font-size: 12px !important;
}

body.post-type-archive-product .page-title,
body.tax-product_cat .page-title,
body.tax-product_tag .page-title,
body.post-type-archive-product .woocommerce-products-header__title,
body.tax-product_cat .woocommerce-products-header__title,
body.tax-product_tag .woocommerce-products-header__title {
  display: block !important;
  margin: 0 0 8px !important;
  color: #14171d !important;
  font-family: "Fraunces", Georgia, "Times New Roman", serif !important;
  font-size: clamp(34px, 3.2vw, 50px) !important;
  font-weight: 760 !important;
  line-height: 1.05 !important;
  letter-spacing: -1px !important;
}

/* Optional archive description */
body.post-type-archive-product .term-description,
body.tax-product_cat .term-description,
body.tax-product_tag .term-description,
body.post-type-archive-product .woocommerce-products-header__description {
  max-width: 760px !important;
  margin: 0 0 18px !important;
  color: #666d76 !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
}

/* ----------------------------------------------------------
   2) TWO COLUMN CATALOG LAYOUT WHEN SIDEBAR EXISTS
   ---------------------------------------------------------- */
body.post-type-archive-product .rps-shop-shell,
body.tax-product_cat .rps-shop-shell,
body.tax-product_tag .rps-shop-shell {
  display: grid !important;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 30px !important;
  align-items: start !important;
}

/* Sidebar widget area */
body.post-type-archive-product .rps-shop-sidebar,
body.tax-product_cat .rps-shop-sidebar,
body.tax-product_tag .rps-shop-sidebar {
  position: sticky !important;
  top: 110px !important;
  padding: 20px 18px !important;
  border-radius: 26px !important;
  background: linear-gradient(145deg, #f6f8fb, #e8ebf0) !important;
  box-shadow:
    14px 14px 30px rgba(163,167,176,.18),
    -14px -14px 30px rgba(255,255,255,.95) !important;
}

body.post-type-archive-product .rps-shop-sidebar .widget,
body.tax-product_cat .rps-shop-sidebar .widget,
body.tax-product_tag .rps-shop-sidebar .widget {
  margin: 0 0 18px !important;
  padding: 0 0 16px !important;
  border-bottom: 1px solid rgba(197,22,29,.08);
}

body.post-type-archive-product .rps-shop-sidebar .widget:last-child,
body.tax-product_cat .rps-shop-sidebar .widget:last-child,
body.tax-product_tag .rps-shop-sidebar .widget:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

body.post-type-archive-product .rps-shop-sidebar .widget-title,
body.tax-product_cat .rps-shop-sidebar .widget-title,
body.tax-product_tag .rps-shop-sidebar .widget-title {
  margin: 0 0 10px !important;
  color: #11151b !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1.3 !important;
  text-transform: none !important;
}

body.post-type-archive-product .rps-shop-sidebar ul,
body.tax-product_cat .rps-shop-sidebar ul,
body.tax-product_tag .rps-shop-sidebar ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.post-type-archive-product .rps-shop-sidebar li,
body.tax-product_cat .rps-shop-sidebar li,
body.tax-product_tag .rps-shop-sidebar li {
  margin: 0 !important;
  padding: 0 !important;
}

body.post-type-archive-product .rps-shop-sidebar a,
body.tax-product_cat .rps-shop-sidebar a,
body.tax-product_tag .rps-shop-sidebar a {
  display: block !important;
  padding: 8px 0 !important;
  color: #515760 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

body.post-type-archive-product .rps-shop-sidebar a:hover,
body.tax-product_cat .rps-shop-sidebar a:hover,
body.tax-product_tag .rps-shop-sidebar a:hover {
  color: #c5161d !important;
}

/* ----------------------------------------------------------
   3) TOOLBAR — CLEAN LIKE A PROPER CATALOG
   ---------------------------------------------------------- */
body.post-type-archive-product .rps-shop-toolbar,
body.tax-product_cat .rps-shop-toolbar,
body.tax-product_tag .rps-shop-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  margin: 0 0 20px !important;
  padding: 16px 18px !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, #f8f9fc, #e9ecf2) !important;
  box-shadow:
    10px 10px 22px rgba(163,167,176,.16),
    -10px -10px 22px rgba(255,255,255,.96) !important;
}

body.post-type-archive-product .woocommerce-result-count,
body.tax-product_cat .woocommerce-result-count,
body.tax-product_tag .woocommerce-result-count {
  margin: 0 !important;
  color: #6b7179 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}

body.post-type-archive-product .woocommerce-ordering,
body.tax-product_cat .woocommerce-ordering,
body.tax-product_tag .woocommerce-ordering {
  margin: 0 !important;
}

body.post-type-archive-product .woocommerce-ordering select,
body.tax-product_cat .woocommerce-ordering select,
body.tax-product_tag .woocommerce-ordering select {
  min-height: 46px !important;
  padding: 0 40px 0 14px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: #eef1f5 !important;
  color: #22262d !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  box-shadow:
    inset 4px 4px 9px rgba(163,167,176,.18),
    inset -4px -4px 9px rgba(255,255,255,.98) !important;
}

/* ----------------------------------------------------------
   4) PRODUCT GRID — BIGGER, FULLER, MORE PREMIUM
   ---------------------------------------------------------- */
body.post-type-archive-product ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)) !important;
  gap: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  clear: both !important;
}

body.post-type-archive-product ul.products::before,
body.post-type-archive-product ul.products::after,
body.tax-product_cat ul.products::before,
body.tax-product_cat ul.products::after,
body.tax-product_tag ul.products::before,
body.tax-product_tag ul.products::after {
  display: none !important;
  content: none !important;
}

body.post-type-archive-product ul.products li.product,
body.tax-product_cat ul.products li.product,
body.tax-product_tag ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 14px !important;
  border-radius: 28px !important;
  background: linear-gradient(145deg, #f8f9fb, #e9ecf1) !important;
  box-shadow:
    16px 16px 34px rgba(163,167,176,.16),
    -16px -16px 34px rgba(255,255,255,.95) !important;
  transition: transform .24s ease, box-shadow .24s ease !important;
  overflow: hidden !important;
}

body.post-type-archive-product ul.products li.product:hover,
body.tax-product_cat ul.products li.product:hover,
body.tax-product_tag ul.products li.product:hover {
  transform: translateY(-6px) !important;
  box-shadow:
    18px 18px 38px rgba(163,167,176,.22),
    -18px -18px 38px rgba(255,255,255,1) !important;
}

body.post-type-archive-product ul.products li.product a,
body.tax-product_cat ul.products li.product a,
body.tax-product_tag ul.products li.product a {
  text-decoration: none !important;
}

/* image frame */
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__link,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__link,
body.tax-product_tag ul.products li.product .woocommerce-loop-product__link {
  display: block !important;
}

body.post-type-archive-product ul.products li.product img,
body.tax-product_cat ul.products li.product img,
body.tax-product_tag ul.products li.product img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  margin: 0 0 14px !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,.7),
    0 8px 18px rgba(120,125,135,.08) !important;
}

/* title */
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
body.tax-product_tag ul.products li.product .woocommerce-loop-product__title,
body.post-type-archive-product ul.products li.product h2,
body.tax-product_cat ul.products li.product h2,
body.tax-product_tag ul.products li.product h2 {
  min-height: 46px !important;
  margin: 0 0 8px !important;
  color: #16191f !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  text-align: left !important;
}

/* price */
body.post-type-archive-product ul.products li.product .price,
body.tax-product_cat ul.products li.product .price,
body.tax-product_tag ul.products li.product .price {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  margin: 0 0 12px !important;
  color: #c5161d !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

body.post-type-archive-product ul.products li.product .price del,
body.tax-product_cat ul.products li.product .price del,
body.tax-product_tag ul.products li.product .price del {
  color: #9aa0a8 !important;
  font-size: 13px !important;
  opacity: 1 !important;
}

body.post-type-archive-product ul.products li.product .price ins,
body.tax-product_cat ul.products li.product .price ins,
body.tax-product_tag ul.products li.product .price ins {
  text-decoration: none !important;
}

/* short bottom action */
body.post-type-archive-product ul.products li.product .button,
body.tax-product_cat ul.products li.product .button,
body.tax-product_tag ul.products li.product .button,
body.post-type-archive-product ul.products li.product a.add_to_cart_button,
body.tax-product_cat ul.products li.product a.add_to_cart_button,
body.tax-product_tag ul.products li.product a.add_to_cart_button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, #ee343b, #ae1016) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .12px !important;
  text-transform: none !important;
  box-shadow: 0 10px 22px rgba(197,22,29,.18) !important;
}

body.post-type-archive-product ul.products li.product .button:hover,
body.tax-product_cat ul.products li.product .button:hover,
body.tax-product_tag ul.products li.product .button:hover {
  transform: translateY(-1px);
}

/* sale badge */
body.post-type-archive-product ul.products li.product .onsale,
body.tax-product_cat ul.products li.product .onsale,
body.tax-product_tag ul.products li.product .onsale {
  top: 16px !important;
  left: 16px !important;
  right: auto !important;
  min-width: auto !important;
  min-height: auto !important;
  padding: 7px 10px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(145deg, #e82e35, #ab1015) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  box-shadow: 0 8px 16px rgba(197,22,29,.18) !important;
}

/* ----------------------------------------------------------
   5) PAGINATION
   ---------------------------------------------------------- */
body.post-type-archive-product nav.woocommerce-pagination,
body.tax-product_cat nav.woocommerce-pagination,
body.tax-product_tag nav.woocommerce-pagination {
  margin-top: 28px !important;
}

body.post-type-archive-product nav.woocommerce-pagination ul,
body.tax-product_cat nav.woocommerce-pagination ul,
body.tax-product_tag nav.woocommerce-pagination ul {
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
  border: 0 !important;
  padding: 0 !important;
}

body.post-type-archive-product nav.woocommerce-pagination ul li,
body.tax-product_cat nav.woocommerce-pagination ul li,
body.tax-product_tag nav.woocommerce-pagination ul li {
  border: 0 !important;
  float: none !important;
}

body.post-type-archive-product nav.woocommerce-pagination ul li a,
body.post-type-archive-product nav.woocommerce-pagination ul li span,
body.tax-product_cat nav.woocommerce-pagination ul li a,
body.tax-product_cat nav.woocommerce-pagination ul li span,
body.tax-product_tag nav.woocommerce-pagination ul li a,
body.tax-product_tag nav.woocommerce-pagination ul li span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg, #f7f8fb, #e8ebf1) !important;
  color: #2a2d34 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  box-shadow:
    6px 6px 14px rgba(163,167,176,.14),
    -6px -6px 14px rgba(255,255,255,.96) !important;
}

body.post-type-archive-product nav.woocommerce-pagination ul li span.current,
body.tax-product_cat nav.woocommerce-pagination ul li span.current,
body.tax-product_tag nav.woocommerce-pagination ul li span.current {
  background: linear-gradient(145deg, #ef343b, #af1016) !important;
  color: #fff !important;
}

/* ----------------------------------------------------------
   6) RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 1100px) {
  body.post-type-archive-product .rps-shop-shell,
  body.tax-product_cat .rps-shop-shell,
  body.tax-product_tag .rps-shop-shell {
    grid-template-columns: 1fr !important;
  }

  body.post-type-archive-product .rps-shop-sidebar,
  body.tax-product_cat .rps-shop-sidebar,
  body.tax-product_tag .rps-shop-sidebar {
    position: static !important;
  }
}

@media (max-width: 767px) {
  body.post-type-archive-product .site-main,
  body.tax-product_cat .site-main,
  body.tax-product_tag .site-main {
    width: min(100%, calc(100% - 24px)) !important;
    padding-top: 20px !important;
  }

  body.post-type-archive-product ul.products,
  body.tax-product_cat ul.products,
  body.tax-product_tag ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  body.post-type-archive-product ul.products li.product,
  body.tax-product_cat ul.products li.product,
  body.tax-product_tag ul.products li.product {
    padding: 10px !important;
    border-radius: 18px !important;
  }

  body.post-type-archive-product ul.products li.product img,
  body.tax-product_cat ul.products li.product img,
  body.tax-product_tag ul.products li.product img {
    border-radius: 14px !important;
  }

  body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
  body.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
  body.tax-product_tag ul.products li.product .woocommerce-loop-product__title {
    min-height: 38px !important;
    font-size: 13px !important;
  }

  body.post-type-archive-product ul.products li.product .button,
  body.tax-product_cat ul.products li.product .button,
  body.tax-product_tag ul.products li.product .button {
    min-height: 40px !important;
    font-size: 11px !important;
  }
}

/* ==========================================================
   THE RPS LLC — MERCHLIST-INSPIRED SHOP v1.18
   Full-width break-out catalogue, left categories, large 3-col grid
   ========================================================== */

/* ----------------------------------------------------------
   0) REMOVE CONSTRAINING THEME WIDTHS ON PRODUCT ARCHIVES
   ---------------------------------------------------------- */
body.post-type-archive-product #primary,
body.tax-product_cat #primary,
body.tax-product_tag #primary,
body.post-type-archive-product .content-area,
body.tax-product_cat .content-area,
body.tax-product_tag .content-area,
body.post-type-archive-product .site-main,
body.tax-product_cat .site-main,
body.tax-product_tag .site-main,
body.post-type-archive-product .woocommerce,
body.tax-product_cat .woocommerce,
body.tax-product_tag .woocommerce {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  float: none !important;
  clear: both !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Hide native sidebar on these archive pages; v1.18 renders its own clean sidebar */
body.post-type-archive-product #secondary,
body.tax-product_cat #secondary,
body.tax-product_tag #secondary,
body.post-type-archive-product .widget-area:not(.rps-shop-sidebar),
body.tax-product_cat .widget-area:not(.rps-shop-sidebar),
body.tax-product_tag .widget-area:not(.rps-shop-sidebar) {
  display: none !important;
}

/* ----------------------------------------------------------
   1) FULL-WIDTH BREAKOUT SHELL
   This escapes narrow parent-theme containers.
   ---------------------------------------------------------- */
body.post-type-archive-product .rps-shop-shell,
body.tax-product_cat .rps-shop-shell,
body.tax-product_tag .rps-shop-shell {
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(1580px, calc(100vw - 36px)) !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 24px 0 48px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* ----------------------------------------------------------
   2) HERO / TRUST STRIP
   ---------------------------------------------------------- */
.rps-shop-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 30px 34px;
  border: 1px solid rgba(0,0,0,.045);
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 18%, rgba(197,22,29,.08), transparent 28%),
    linear-gradient(135deg, #f8f9fb, #eef1f5 58%, #f6f7f9);
  box-shadow: 0 14px 34px rgba(38,45,55,.07);
}

.rps-shop-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: #c5161d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.35px;
  text-transform: uppercase;
}

.rps-shop-hero__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c5161d;
  box-shadow: 0 0 0 5px rgba(197,22,29,.08);
}

.rps-shop-hero h1,
.rps-shop-hero .page-title,
.rps-shop-hero .woocommerce-products-header__title {
  margin: 0 0 8px !important;
  color: #111318 !important;
  font-family: "Fraunces", Georgia, "Times New Roman", serif !important;
  font-size: clamp(34px, 4vw, 58px) !important;
  font-weight: 760 !important;
  line-height: .98 !important;
  letter-spacing: -1.5px !important;
}

.rps-shop-hero p {
  max-width: 720px;
  margin: 0;
  color: #676d76;
  font-size: 14px;
  line-height: 1.75;
}

.rps-shop-perks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  margin: 14px 0 20px;
}

.rps-shop-perk {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,.045);
  border-radius: 16px;
  background: #fff;
  color: #3f454e;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 6px 16px rgba(38,45,55,.045);
}

.rps-shop-perk strong {
  color: #c5161d;
}

/* ----------------------------------------------------------
   3) CATEGORY STRIP
   ---------------------------------------------------------- */
.rps-shop-category-strip {
  display: flex;
  gap: 9px;
  margin: 0 0 22px;
  padding: 5px 2px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.rps-shop-category-strip::-webkit-scrollbar { display:none; }

.rps-shop-category-strip a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(0,0,0,.055);
  border-radius: 999px;
  background: #fff;
  color: #444a53;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 5px 14px rgba(38,45,55,.04);
  transition: .2s ease;
}
.rps-shop-category-strip a:hover,
.rps-shop-category-strip a.is-active {
  border-color: rgba(197,22,29,.16);
  background: #c5161d;
  color: #fff;
  transform: translateY(-1px);
}

/* ----------------------------------------------------------
   4) LEFT SIDEBAR + MAIN CATALOG
   ---------------------------------------------------------- */
body.post-type-archive-product .rps-shop-layout,
body.tax-product_cat .rps-shop-layout,
body.tax-product_tag .rps-shop-layout {
  display: grid !important;
  grid-template-columns: 255px minmax(0,1fr) !important;
  gap: 26px !important;
  align-items: start !important;
  width: 100% !important;
  min-width: 0 !important;
}

.rps-shop-sidebar {
  position: sticky;
  top: 108px;
  min-width: 0;
  padding: 20px 18px;
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(38,45,55,.06);
}

.rps-shop-sidebar__title {
  margin: 0 0 14px;
  color: #111318;
  font-size: 16px;
  font-weight: 900;
}

.rps-shop-search {
  position: relative;
  margin: 0 0 18px;
}

.rps-shop-search input[type="search"] {
  width: 100%;
  min-height: 42px;
  padding: 0 40px 0 12px;
  border: 1px solid #e2e5e9;
  border-radius: 11px;
  outline: none;
  background: #fafbfc;
  color: #252a31;
  font-size: 12px;
}
.rps-shop-search input[type="search"]:focus {
  border-color: rgba(197,22,29,.30);
  box-shadow: 0 0 0 3px rgba(197,22,29,.06);
}
.rps-shop-search button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  background: #c5161d;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.rps-shop-filter-heading {
  margin: 18px 0 8px;
  color: #777d85;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.rps-shop-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rps-shop-category-list li {
  margin: 0;
  padding: 0;
}
.rps-shop-category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 7px 2px;
  color: #4f555e;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid #f0f1f3;
}
.rps-shop-category-list a:hover,
.rps-shop-category-list a.is-active {
  color: #c5161d;
}
.rps-shop-category-list .count {
  color: #a1a5ac;
  font-size: 10px;
  font-weight: 700;
}

.rps-shop-main {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

/* ----------------------------------------------------------
   5) TOOLBAR
   ---------------------------------------------------------- */
.rps-shop-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 18px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(38,45,55,.045);
}

.rps-shop-toolbar .woocommerce-result-count {
  margin: 0 !important;
  color: #727881 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}
.rps-shop-toolbar .woocommerce-ordering {
  margin: 0 !important;
}
.rps-shop-toolbar .woocommerce-ordering select {
  min-height: 40px !important;
  padding: 0 38px 0 12px !important;
  border: 1px solid #e2e5e9 !important;
  border-radius: 10px !important;
  background: #fafbfc !important;
  color: #333840 !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  box-shadow: none !important;
}

/* ----------------------------------------------------------
   6) PRODUCT GRID — 3 LARGE COLUMNS LIKE A CATALOGUE
   ---------------------------------------------------------- */
body.post-type-archive-product .rps-shop-main ul.products,
body.tax-product_cat .rps-shop-main ul.products,
body.tax-product_tag .rps-shop-main ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  gap: 22px !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.post-type-archive-product .rps-shop-main ul.products::before,
body.post-type-archive-product .rps-shop-main ul.products::after,
body.tax-product_cat .rps-shop-main ul.products::before,
body.tax-product_cat .rps-shop-main ul.products::after,
body.tax-product_tag .rps-shop-main ul.products::before,
body.tax-product_tag .rps-shop-main ul.products::after {
  display: none !important;
  content: none !important;
}

/* flat, image-led cards — closer to Merchlist than heavy neumorphism */
body.post-type-archive-product .rps-shop-main ul.products li.product,
body.tax-product_cat .rps-shop-main ul.products li.product,
body.tax-product_tag .rps-shop-main ul.products li.product,
body.post-type-archive-product .rps-shop-main ul.products li.product.first,
body.post-type-archive-product .rps-shop-main ul.products li.product.last {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 100% !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0 0 14px !important;
  overflow: hidden !important;
  border: 1px solid #e8eaee !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 6px 18px rgba(38,45,55,.045) !important;
  transition: transform .23s ease, box-shadow .23s ease !important;
}
body.post-type-archive-product .rps-shop-main ul.products li.product:hover,
body.tax-product_cat .rps-shop-main ul.products li.product:hover,
body.tax-product_tag .rps-shop-main ul.products li.product:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 14px 30px rgba(38,45,55,.09) !important;
}

body.post-type-archive-product .rps-shop-main ul.products li.product .woocommerce-loop-product__link,
body.tax-product_cat .rps-shop-main ul.products li.product .woocommerce-loop-product__link,
body.tax-product_tag .rps-shop-main ul.products li.product .woocommerce-loop-product__link {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  text-decoration: none !important;
}

body.post-type-archive-product .rps-shop-main ul.products li.product img,
body.tax-product_cat .rps-shop-main ul.products li.product img,
body.tax-product_tag .rps-shop-main ul.products li.product img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  margin: 0 0 13px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #f5f5f5 !important;
  box-shadow: none !important;
  transition: transform .32s ease !important;
}
body.post-type-archive-product .rps-shop-main ul.products li.product:hover img,
body.tax-product_cat .rps-shop-main ul.products li.product:hover img,
body.tax-product_tag .rps-shop-main ul.products li.product:hover img {
  transform: scale(1.018);
}

body.post-type-archive-product .rps-shop-main .woocommerce-loop-product__title,
body.tax-product_cat .rps-shop-main .woocommerce-loop-product__title,
body.tax-product_tag .rps-shop-main .woocommerce-loop-product__title {
  min-height: 43px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  color: #15181d !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.42 !important;
  text-align: left !important;
}

body.post-type-archive-product .rps-shop-main .price,
body.tax-product_cat .rps-shop-main .price,
body.tax-product_tag .rps-shop-main .price {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 8px 0 12px !important;
  padding: 0 14px !important;
  color: #c5161d !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}
body.post-type-archive-product .rps-shop-main .price del,
body.tax-product_cat .rps-shop-main .price del,
body.tax-product_tag .rps-shop-main .price del {
  color: #9ba0a7 !important;
  font-size: 11px !important;
  opacity: 1 !important;
}
body.post-type-archive-product .rps-shop-main .price ins,
body.tax-product_cat .rps-shop-main .price ins,
body.tax-product_tag .rps-shop-main .price ins {
  text-decoration: none !important;
}

body.post-type-archive-product .rps-shop-main ul.products li.product .button,
body.tax-product_cat .rps-shop-main ul.products li.product .button,
body.tax-product_tag .rps-shop-main ul.products li.product .button {
  align-self: flex-start !important;
  width: auto !important;
  min-width: 122px !important;
  min-height: 38px !important;
  margin: auto 14px 0 !important;
  padding: 0 15px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: #111318 !important;
  color: #fff !important;
  font-size: 10.5px !important;
  font-weight: 850 !important;
  box-shadow: none !important;
}
body.post-type-archive-product .rps-shop-main ul.products li.product .button:hover,
body.tax-product_cat .rps-shop-main ul.products li.product .button:hover,
body.tax-product_tag .rps-shop-main ul.products li.product .button:hover {
  background: #c5161d !important;
}

body.post-type-archive-product .rps-shop-main .onsale,
body.tax-product_cat .rps-shop-main .onsale,
body.tax-product_tag .rps-shop-main .onsale {
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
  min-width: auto !important;
  min-height: auto !important;
  padding: 5px 8px !important;
  border-radius: 5px !important;
  background: #c5161d !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

/* ----------------------------------------------------------
   7) PAGINATION
   ---------------------------------------------------------- */
.rps-shop-main nav.woocommerce-pagination {
  margin: 28px 0 0 !important;
}
.rps-shop-main nav.woocommerce-pagination ul {
  display: flex !important;
  justify-content: center !important;
  gap: 7px !important;
  border: 0 !important;
}
.rps-shop-main nav.woocommerce-pagination li {
  float: none !important;
  border: 0 !important;
}
.rps-shop-main nav.woocommerce-pagination a,
.rps-shop-main nav.woocommerce-pagination span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 9px !important;
  border: 1px solid #e4e7ea !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #353a42 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}
.rps-shop-main nav.woocommerce-pagination span.current {
  border-color: #c5161d !important;
  background: #c5161d !important;
  color: #fff !important;
}

/* ----------------------------------------------------------
   8) RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 1280px) {
  body.post-type-archive-product .rps-shop-layout,
  body.tax-product_cat .rps-shop-layout,
  body.tax-product_tag .rps-shop-layout {
    grid-template-columns: 220px minmax(0,1fr) !important;
    gap: 20px !important;
  }

  body.post-type-archive-product .rps-shop-main ul.products,
  body.tax-product_cat .rps-shop-main ul.products,
  body.tax-product_tag .rps-shop-main ul.products {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
}

@media (max-width: 900px) {
  body.post-type-archive-product .rps-shop-shell,
  body.tax-product_cat .rps-shop-shell,
  body.tax-product_tag .rps-shop-shell {
    width: calc(100vw - 22px) !important;
  }

  body.post-type-archive-product .rps-shop-layout,
  body.tax-product_cat .rps-shop-layout,
  body.tax-product_tag .rps-shop-layout {
    grid-template-columns: 1fr !important;
  }

  .rps-shop-sidebar {
    position: static;
    display: none;
  }

  .rps-shop-perks {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 620px) {
  .rps-shop-hero {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .rps-shop-perks {
    grid-template-columns: 1fr 1fr;
  }

  .rps-shop-toolbar {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .rps-shop-toolbar .woocommerce-ordering,
  .rps-shop-toolbar .woocommerce-ordering select {
    width: 100% !important;
  }

  body.post-type-archive-product .rps-shop-main ul.products,
  body.tax-product_cat .rps-shop-main ul.products,
  body.tax-product_tag .rps-shop-main ul.products {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 12px !important;
  }

  body.post-type-archive-product .rps-shop-main .woocommerce-loop-product__title,
  body.tax-product_cat .rps-shop-main .woocommerce-loop-product__title,
  body.tax-product_tag .rps-shop-main .woocommerce-loop-product__title {
    min-height: 38px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }

  body.post-type-archive-product .rps-shop-main .price,
  body.tax-product_cat .rps-shop-main .price,
  body.tax-product_tag .rps-shop-main .price {
    padding: 0 10px !important;
  }

  body.post-type-archive-product .rps-shop-main ul.products li.product .button,
  body.tax-product_cat .rps-shop-main ul.products li.product .button,
  body.tax-product_tag .rps-shop-main ul.products li.product .button {
    min-width: 0 !important;
    width: calc(100% - 20px) !important;
    margin-left: 10px !important;
    margin-right: 10px !important;
  }
}

/* ==========================================================
   THE RPS LLC — SHOP HERO BANNER + NEUMORPHISM POLISH v1.19
   Fix blank space, add product collage banner, better sidebar alignment
   ========================================================== */

/* ----------------------------
   1) HERO AREA REBUILT
   ---------------------------- */
.rps-shop-hero-wrap {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 18px;
}

.rps-shop-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 292px;
  margin-bottom: 0 !important;
  padding: 30px 32px !important;
  border: 0 !important;
  border-radius: 30px !important;
  background:
    linear-gradient(145deg, #f3f5f9, #e7eaf0) !important;
  box-shadow:
    16px 16px 34px rgba(163,167,176,.18),
    -16px -16px 34px rgba(255,255,255,.96) !important;
}

.rps-shop-banner {
  position: relative;
  overflow: hidden;
  min-height: 292px;
  padding: 18px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 12%, rgba(197,22,29,.07), transparent 26%),
    linear-gradient(145deg, #f3f5f9, #e8ebf0);
  box-shadow:
    16px 16px 34px rgba(163,167,176,.18),
    -16px -16px 34px rgba(255,255,255,.96);
}

.rps-shop-banner__inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 100%;
  min-height: 256px;
}

.rps-shop-banner__item {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(145deg, #f7f9fc, #e9ecf2);
  box-shadow:
    inset 2px 2px 3px rgba(255,255,255,.72),
    inset -2px -2px 3px rgba(223,227,234,.4),
    8px 8px 20px rgba(163,167,176,.15),
    -8px -8px 20px rgba(255,255,255,.96);
}

.rps-shop-banner__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .45s ease;
}

.rps-shop-banner:hover .rps-shop-banner__item img {
  transform: scale(1.04);
}

.rps-shop-banner__item.is-large {
  grid-row: 1 / span 2;
}

.rps-shop-banner__item:nth-child(2) {
  grid-column: 2 / span 2;
}

.rps-shop-banner__item:nth-child(5) {
  grid-column: 3 / span 2;
}

.rps-shop-banner__overlay {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  pointer-events: none;
}

.rps-shop-banner__content {
  max-width: 430px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(9px);
  box-shadow:
    7px 7px 18px rgba(163,167,176,.17),
    -7px -7px 18px rgba(255,255,255,.94);
}

.rps-shop-banner__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #c5161d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.rps-shop-banner__label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c5161d;
  box-shadow: 0 0 0 5px rgba(197,22,29,.08);
}

.rps-shop-banner__title {
  margin: 0 0 6px;
  color: #11151a;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 760;
  line-height: .95;
  letter-spacing: -1px;
}

.rps-shop-banner__text {
  margin: 0;
  color: #59606a;
  font-size: 13px;
  line-height: 1.7;
}

.rps-shop-banner__pill {
  flex: 0 0 auto;
  padding: 13px 18px;
  border-radius: 999px;
  background: linear-gradient(145deg, #f7f9fc, #e9ecf2);
  color: #13171d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .2px;
  white-space: nowrap;
  box-shadow:
    8px 8px 18px rgba(163,167,176,.16),
    -8px -8px 18px rgba(255,255,255,.98);
}

/* ----------------------------
   2) PERKS ALIGN CLEANLY UNDER HERO
   ---------------------------- */
.rps-shop-perks {
  margin-top: 0 !important;
  margin-bottom: 20px !important;
}

/* ----------------------------
   3) CATEGORY STRIP — MORE NEUMORPHIC
   ---------------------------- */
.rps-shop-category-strip {
  margin-bottom: 22px !important;
  padding: 4px 2px 8px !important;
}

.rps-shop-category-strip a {
  min-height: 42px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(145deg, #f5f7fb, #e7eaf0) !important;
  color: #41464f !important;
  font-size: 11.5px !important;
  font-weight: 850 !important;
  box-shadow:
    7px 7px 16px rgba(163,167,176,.15),
    -7px -7px 16px rgba(255,255,255,.96) !important;
}
.rps-shop-category-strip a:hover,
.rps-shop-category-strip a.is-active {
  background: linear-gradient(145deg, #c5161d, #a91117) !important;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(197,22,29,.18) !important;
}

/* ----------------------------
   4) SIDEBAR + TOOLBAR BETTER PLACEMENT
   ---------------------------- */
body.post-type-archive-product .rps-shop-layout,
body.tax-product_cat .rps-shop-layout,
body.tax-product_tag .rps-shop-layout {
  align-items: start !important;
  gap: 24px !important;
}

.rps-shop-sidebar {
  top: 120px !important;
  padding: 22px 20px !important;
  border: 0 !important;
  border-radius: 28px !important;
  background: linear-gradient(145deg, #f3f5f9, #e7eaf0) !important;
  box-shadow:
    16px 16px 32px rgba(163,167,176,.18),
    -16px -16px 32px rgba(255,255,255,.96) !important;
}

.rps-shop-sidebar__title {
  margin-bottom: 14px !important;
  color: #11151a !important;
  font-size: 17px !important;
  font-weight: 900 !important;
}

.rps-shop-search {
  margin-bottom: 18px !important;
}

.rps-shop-search input[type="search"] {
  min-height: 46px !important;
  padding: 0 46px 0 14px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: #eef1f5 !important;
  box-shadow:
    inset 4px 4px 9px rgba(163,167,176,.18),
    inset -4px -4px 9px rgba(255,255,255,.98) !important;
}

.rps-shop-search button {
  top: 6px !important;
  right: 6px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 11px !important;
  background: linear-gradient(145deg, #d22027, #ac1117) !important;
  box-shadow: 0 8px 16px rgba(197,22,29,.18) !important;
}

.rps-shop-filter-heading {
  margin: 18px 0 10px !important;
  color: #7a8088 !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  letter-spacing: 1.05px !important;
}

.rps-shop-category-list a {
  min-height: 38px !important;
  padding: 8px 4px !important;
  border-bottom: 1px solid rgba(0,0,0,.05) !important;
  color: #4c525b !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.rps-shop-category-list .count {
  min-width: 23px;
  height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #edf0f5;
  color: #8a919a !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  box-shadow:
    inset 2px 2px 4px rgba(163,167,176,.12),
    inset -2px -2px 4px rgba(255,255,255,.98) !important;
}

/* toolbar */
.rps-shop-toolbar {
  margin-bottom: 20px !important;
  padding: 14px 16px !important;
  border: 0 !important;
  border-radius: 20px !important;
  background: linear-gradient(145deg, #f3f5f9, #e7eaf0) !important;
  box-shadow:
    12px 12px 24px rgba(163,167,176,.16),
    -12px -12px 24px rgba(255,255,255,.96) !important;
}

.rps-shop-toolbar .woocommerce-result-count {
  color: #636972 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.rps-shop-toolbar .woocommerce-ordering select {
  min-height: 42px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: #eef1f5 !important;
  box-shadow:
    inset 4px 4px 9px rgba(163,167,176,.17),
    inset -4px -4px 9px rgba(255,255,255,.98) !important;
}

/* ----------------------------
   5) PRODUCT CARDS A BIT MORE NEUMORPHIC
   ---------------------------- */
body.post-type-archive-product .rps-shop-main ul.products li.product,
body.tax-product_cat .rps-shop-main ul.products li.product,
body.tax-product_tag .rps-shop-main ul.products li.product {
  border: 0 !important;
  border-radius: 24px !important;
  background: linear-gradient(145deg, #f4f6fa, #e8ebf1) !important;
  box-shadow:
    14px 14px 28px rgba(163,167,176,.16),
    -14px -14px 28px rgba(255,255,255,.98) !important;
}

body.post-type-archive-product .rps-shop-main ul.products li.product img,
body.tax-product_cat .rps-shop-main ul.products li.product img,
body.tax-product_tag .rps-shop-main ul.products li.product img {
  margin: 10px 10px 14px !important;
  width: calc(100% - 20px) !important;
  border-radius: 18px !important;
  box-shadow:
    0 10px 20px rgba(120,125,135,.06) !important;
}

body.post-type-archive-product .rps-shop-main ul.products li.product .button,
body.tax-product_cat .rps-shop-main ul.products li.product .button,
body.tax-product_tag .rps-shop-main ul.products li.product .button {
  border-radius: 12px !important;
  background: linear-gradient(145deg, #111318, #2b3038) !important;
}

/* ----------------------------
   6) RESPONSIVE
   ---------------------------- */
@media (max-width: 1150px) {
  .rps-shop-hero-wrap {
    grid-template-columns: 1fr !important;
  }

  .rps-shop-banner {
    min-height: 320px;
  }

  .rps-shop-banner__title {
    font-size: 30px;
  }
}

@media (max-width: 900px) {
  .rps-shop-banner__inner {
    grid-template-columns: repeat(2, minmax(0,1fr));
    grid-template-rows: repeat(3, 1fr);
  }

  .rps-shop-banner__item.is-large,
  .rps-shop-banner__item:nth-child(2),
  .rps-shop-banner__item:nth-child(5) {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .rps-shop-banner__overlay {
    position: static;
    margin-top: 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .rps-shop-banner__content {
    max-width: 100%;
  }
}

@media (max-width: 620px) {
  .rps-shop-banner {
    padding: 12px;
    border-radius: 22px;
  }

  .rps-shop-banner__inner {
    gap: 10px;
    min-height: 240px;
  }

  .rps-shop-banner__item {
    border-radius: 16px;
  }

  .rps-shop-banner__title {
    font-size: 24px;
  }

  .rps-shop-banner__pill {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================
   THE RPS LLC — SHOP BANNER FIX + CATEGORY STRIP REMOVAL v1.20
   - Removes top category pills
   - Keeps only Browse Products sidebar
   - Makes banner always visible with image collage / fallback tiles
   ========================================================== */

/* Remove top category pill row completely */
.rps-shop-category-strip {
  display: none !important;
}

/* Pull main layout upward after removing pills */
body.post-type-archive-product .rps-shop-layout,
body.tax-product_cat .rps-shop-layout,
body.tax-product_tag .rps-shop-layout {
  margin-top: 4px !important;
}

/* Stronger banner visibility */
.rps-shop-banner {
  min-height: 300px !important;
  padding: 16px !important;
  border: 0 !important;
  border-radius: 30px !important;
  background: linear-gradient(145deg, #f3f5f9, #e7eaf0) !important;
  box-shadow:
    16px 16px 34px rgba(163,167,176,.18),
    -16px -16px 34px rgba(255,255,255,.96) !important;
}

.rps-shop-banner__inner {
  display: grid !important;
  grid-template-columns: 1.35fr 1fr 1fr 1fr !important;
  grid-template-rows: 1fr 1fr !important;
  gap: 12px !important;
  min-height: 266px !important;
  height: 266px !important;
}

.rps-shop-banner__item {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, #eceff4, #e4e8ef) !important;
  box-shadow:
    inset 1px 1px 2px rgba(255,255,255,.75),
    inset -1px -1px 2px rgba(220,224,232,.35),
    8px 8px 20px rgba(163,167,176,.12),
    -8px -8px 20px rgba(255,255,255,.95) !important;
}

.rps-shop-banner__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.06));
  pointer-events: none;
}

.rps-shop-banner__item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  opacity: 1 !important;
}

.rps-shop-banner__item.is-fallback {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px !important;
  text-align: center !important;
  color: #67707a !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: .2px !important;
}

.rps-shop-banner__item.is-large {
  grid-row: 1 / span 2 !important;
}

.rps-shop-banner__item:nth-child(2) {
  grid-column: 2 / span 2 !important;
}

.rps-shop-banner__item:nth-child(5) {
  grid-column: 3 / span 2 !important;
}

.rps-shop-banner__overlay {
  position: absolute !important;
  left: 24px !important;
  right: 24px !important;
  bottom: 24px !important;
  z-index: 5 !important;
}

.rps-shop-banner__content {
  max-width: 445px !important;
  padding: 16px 18px !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.88) !important;
  backdrop-filter: blur(8px) !important;
  box-shadow:
    8px 8px 20px rgba(163,167,176,.16),
    -8px -8px 20px rgba(255,255,255,.92) !important;
}

/* Make sidebar start neatly at top of left column */
.rps-shop-sidebar {
  margin-top: 0 !important;
}

/* If no banner images, keep tiles visible */
.rps-shop-banner.is-empty .rps-shop-banner__inner {
  background: transparent !important;
}

@media (max-width: 900px) {
  .rps-shop-banner__inner {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    grid-template-rows: repeat(3, 1fr) !important;
    height: auto !important;
    min-height: 260px !important;
  }

  .rps-shop-banner__item.is-large,
  .rps-shop-banner__item:nth-child(2),
  .rps-shop-banner__item:nth-child(5) {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

/* ==========================================================
   THE RPS LLC — SHOP LAYOUT CONFLICT FIX v1.21
   IMPORTANT: overrides old v1.17/v1.18 .rps-shop-shell grid
   ========================================================== */

/* ROOT CAUSE FIX:
   Older CSS was still making .rps-shop-shell a two-column grid.
   The new structure needs .rps-shop-shell to be a normal block
   container, with hero-wrap and shop-layout controlling columns.
*/
body.post-type-archive-product .rps-shop-shell,
body.tax-product_cat .rps-shop-shell,
body.tax-product_tag .rps-shop-shell {
  display: block !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  gap: 0 !important;

  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;

  width: min(1580px, calc(100vw - 40px)) !important;
  max-width: none !important;
  min-width: 0 !important;

  margin: 24px 0 50px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Every major shop section must occupy full shell width */
.rps-shop-shell > .rps-shop-hero-wrap,
.rps-shop-shell > .rps-shop-perks,
.rps-shop-shell > .rps-shop-layout {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  grid-column: 1 / -1 !important;
}

/* HERO: left intro card + large right banner */
.rps-shop-hero-wrap {
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) !important;
  gap: 24px !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 18px !important;
}

.rps-shop-hero {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 300px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.rps-shop-banner {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;

  width: 100% !important;
  min-width: 0 !important;
  min-height: 300px !important;

  margin: 0 !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;

  border-radius: 30px !important;
  background: linear-gradient(145deg, #f3f5f9, #e7eaf0) !important;
  box-shadow:
    16px 16px 34px rgba(163,167,176,.18),
    -16px -16px 34px rgba(255,255,255,.96) !important;
}

/* Banner collage must fill the entire right area */
.rps-shop-banner__inner {
  display: grid !important;
  grid-template-columns: 1.35fr 1fr 1fr 1fr !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;

  width: 100% !important;
  height: 268px !important;
  min-height: 268px !important;
  min-width: 0 !important;
}

.rps-shop-banner__item {
  display: block !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

.rps-shop-banner__item.is-large {
  grid-row: 1 / 3 !important;
  grid-column: 1 !important;
}

.rps-shop-banner__item:nth-child(2) {
  grid-column: 2 / 4 !important;
  grid-row: 1 !important;
}

.rps-shop-banner__item:nth-child(3) {
  grid-column: 4 !important;
  grid-row: 1 !important;
}

.rps-shop-banner__item:nth-child(4) {
  grid-column: 2 !important;
  grid-row: 2 !important;
}

.rps-shop-banner__item:nth-child(5) {
  grid-column: 3 / 5 !important;
  grid-row: 2 !important;
}

.rps-shop-banner__item:nth-child(6) {
  display: none !important;
}

.rps-shop-banner__item img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  opacity: 1 !important;
}

/* Keep overlay readable but compact */
.rps-shop-banner__overlay {
  left: 28px !important;
  right: auto !important;
  bottom: 28px !important;
  max-width: 470px !important;
}

.rps-shop-banner__content {
  max-width: 470px !important;
}

/* PERKS: one clean row under hero */
.rps-shop-perks {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;

  width: 100% !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
}

/* MAIN AREA: Browse Products left, catalogue right */
body.post-type-archive-product .rps-shop-layout,
body.tax-product_cat .rps-shop-layout,
body.tax-product_tag .rps-shop-layout {
  display: grid !important;
  grid-template-columns: 255px minmax(0, 1fr) !important;
  gap: 26px !important;
  align-items: start !important;

  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  margin: 0 !important;
  padding: 0 !important;
}

.rps-shop-sidebar {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 255px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.rps-shop-main {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Toolbar must use full available catalogue width */
.rps-shop-toolbar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;

  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  margin: 0 0 20px !important;
  box-sizing: border-box !important;
}

.rps-shop-toolbar .woocommerce-result-count {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  white-space: nowrap !important;
}

.rps-shop-toolbar .woocommerce-ordering {
  width: auto !important;
  min-width: 210px !important;
  max-width: 280px !important;
  margin-left: auto !important;
}

.rps-shop-toolbar .woocommerce-ordering select {
  width: 100% !important;
  min-width: 210px !important;
}

/* Product grid: hard reset all old Woo/theme sizing */
body.post-type-archive-product .rps-shop-main ul.products,
body.tax-product_cat .rps-shop-main ul.products,
body.tax-product_tag .rps-shop-main ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;

  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  margin: 0 !important;
  padding: 0 !important;
}

body.post-type-archive-product .rps-shop-main ul.products li.product,
body.tax-product_cat .rps-shop-main ul.products li.product,
body.tax-product_tag .rps-shop-main ul.products li.product,
body.post-type-archive-product .rps-shop-main ul.products li.product.first,
body.post-type-archive-product .rps-shop-main ul.products li.product.last,
body.tax-product_cat .rps-shop-main ul.products li.product.first,
body.tax-product_cat .rps-shop-main ul.products li.product.last {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  float: none !important;
  clear: none !important;
  margin: 0 !important;

  box-sizing: border-box !important;
}

/* Old category strip must stay removed */
.rps-shop-category-strip {
  display: none !important;
}

/* Tablet */
@media (max-width: 1200px) {
  .rps-shop-hero-wrap {
    grid-template-columns: 230px minmax(0, 1fr) !important;
  }

  body.post-type-archive-product .rps-shop-layout,
  body.tax-product_cat .rps-shop-layout,
  body.tax-product_tag .rps-shop-layout {
    grid-template-columns: 220px minmax(0, 1fr) !important;
    gap: 20px !important;
  }

  body.post-type-archive-product .rps-shop-main ul.products,
  body.tax-product_cat .rps-shop-main ul.products,
  body.tax-product_tag .rps-shop-main ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Mobile */
@media (max-width: 900px) {
  body.post-type-archive-product .rps-shop-shell,
  body.tax-product_cat .rps-shop-shell,
  body.tax-product_tag .rps-shop-shell {
    width: calc(100vw - 22px) !important;
  }

  .rps-shop-hero-wrap {
    grid-template-columns: 1fr !important;
  }

  .rps-shop-hero {
    min-height: auto !important;
  }

  .rps-shop-banner {
    min-height: 320px !important;
  }

  body.post-type-archive-product .rps-shop-layout,
  body.tax-product_cat .rps-shop-layout,
  body.tax-product_tag .rps-shop-layout {
    grid-template-columns: 1fr !important;
  }

  .rps-shop-sidebar {
    position: static !important;
    max-width: none !important;
  }

  .rps-shop-perks {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .rps-shop-banner__inner {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    grid-template-rows: repeat(2, 120px) !important;
    height: auto !important;
    min-height: 252px !important;
  }

  .rps-shop-banner__item.is-large,
  .rps-shop-banner__item:nth-child(2),
  .rps-shop-banner__item:nth-child(3),
  .rps-shop-banner__item:nth-child(4),
  .rps-shop-banner__item:nth-child(5) {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .rps-shop-banner__item:nth-child(5) {
    display: none !important;
  }

  .rps-shop-banner__overlay {
    position: static !important;
    max-width: none !important;
    margin-top: 12px !important;
  }

  .rps-shop-perks {
    grid-template-columns: 1fr 1fr !important;
  }

  .rps-shop-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .rps-shop-toolbar .woocommerce-ordering,
  .rps-shop-toolbar .woocommerce-ordering select {
    width: 100% !important;
    max-width: none !important;
  }

  body.post-type-archive-product .rps-shop-main ul.products,
  body.tax-product_cat .rps-shop-main ul.products,
  body.tax-product_tag .rps-shop-main ul.products {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 12px !important;
  }
}




/* ==========================================================
   THE RPS LLC — PRODUCT POLISH v1.25
   Final cleanup: one currency UI, compact CTA row, no wishlist,
   larger trust badges, cleaner related products.
   ========================================================== */

/* --- currency: keep only the flag dropdown --- */
body.single-product .summary .rps-currency-block > select,
body.single-product .summary .rps-currency-block select.rps-currency-fallback,
body.single-product .summary .rps-native-currency-duplicate,
body.single-product .summary .rps-old-currency-wrap,
body.single-product .summary .rps-hidden-currency,
body.single-product .summary .rps-hidden-currency-wrapper {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  border: 0 !important;
}

/* --- primary CTA row tighter --- */
body.single-product .summary .rps-primary-actions {
  grid-template-columns: 112px 54px minmax(148px,1fr) !important;
  gap: 8px !important;
  padding: 8px !important;
  margin: 0 0 12px !important;
}

body.single-product .summary .rps-primary-actions .rps-quote-action a,
body.single-product .summary .rps-primary-actions .single_add_to_cart_button,
body.single-product .summary .rps-primary-actions .quantity .qty {
  height: 42px !important;
  min-height: 42px !important;
}

body.single-product .summary .rps-primary-actions .rps-quote-action a {
  font-size: 9.2px !important;
  padding: 0 8px !important;
  white-space: nowrap !important;
}

body.single-product .summary .rps-primary-actions .quantity,
body.single-product .summary .rps-primary-actions .quantity .qty {
  width: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
}

body.single-product .summary .rps-primary-actions .single_add_to_cart_button {
  font-size: 9.8px !important;
  letter-spacing: .15px !important;
  padding: 0 12px !important;
  white-space: nowrap !important;
}

/* --- remove wishlist completely --- */
body.single-product .summary .yith-wcwl-add-to-wishlist,
body.single-product .summary .tinv-wraper,
body.single-product .summary [class*="wishlist"] {
  display: none !important;
}

/* --- trust row bigger and full width --- */
body.single-product .summary .rps-secondary-actions {
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  margin: 0 0 12px !important;
}

body.single-product .summary .rps-product-trust {
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
}

body.single-product .summary .rps-product-trust span {
  min-height: 56px !important;
  padding: 8px 10px !important;
  border-radius: 14px !important;
  font-size: 10px !important;
  line-height: 1.25 !important;
  box-shadow:
    5px 5px 12px rgba(163,167,176,.12),
    -5px -5px 12px rgba(255,255,255,.97) !important;
}

/* small gap before meta */
body.single-product .summary .product_meta {
  margin-top: 4px !important;
}

/* --- related products cleanup --- */
body.single-product .related.products,
body.single-product .upsells.products {
  padding: 28px 22px !important;
}

body.single-product .related.products ul.products,
body.single-product .upsells.products ul.products {
  gap: 16px !important;
}

body.single-product .related.products ul.products li.product,
body.single-product .upsells.products ul.products li.product {
  padding: 12px 12px 16px !important;
  border-radius: 22px !important;
}

body.single-product .related.products .woocommerce-loop-product__title,
body.single-product .upsells.products .woocommerce-loop-product__title {
  min-height: 42px !important;
  margin: 2px 0 8px !important;
  padding: 0 4px !important;
  font-size: 13px !important;
  text-align: center !important;
}

body.single-product .related.products .price,
body.single-product .upsells.products .price {
  min-height: 28px !important;
  margin: 0 0 10px !important;
  padding: 0 4px !important;
  font-size: 11.5px !important;
  text-align: center !important;
}

body.single-product .related.products .button,
body.single-product .upsells.products .button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  min-width: 112px !important;
  height: 36px !important;
  margin: auto auto 0 !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  font-size: 9.7px !important;
  text-align: center !important;
}

/* responsive */
@media (max-width: 1080px) {
  body.single-product .summary .rps-primary-actions {
    grid-template-columns: 106px 52px minmax(138px,1fr) !important;
  }
}

@media (max-width: 560px) {
  body.single-product .summary .rps-primary-actions {
    grid-template-columns: 1fr !important;
  }

  body.single-product .summary .rps-primary-actions .rps-quote-action,
  body.single-product .summary .rps-primary-actions .quantity,
  body.single-product .summary .rps-primary-actions .single_add_to_cart_button {
    grid-column: auto !important;
    width: 100% !important;
    max-width: none !important;
  }

  body.single-product .summary .rps-primary-actions .quantity .qty {
    width: 100% !important;
    max-width: none !important;
  }

  body.single-product .summary .rps-product-trust {
    grid-template-columns: 1fr !important;
  }

  body.single-product .related.products ul.products,
  body.single-product .upsells.products ul.products {
    grid-template-columns: 1fr 1fr !important;
  }
}


/* ==========================================================
   THE RPS LLC — PRODUCT DETAIL POLISH v1.26
   Bigger pricing note + compact CTA row + HQ gallery images
   ========================================================== */

body.single-product .summary .woocommerce-product-details__short-description h6,
body.single-product .summary h6.rps-quote-note {
  margin: 10px 0 13px !important;
  padding: 16px 17px 16px 50px !important;
  border-radius: 16px !important;
  font-size: 12.7px !important;
  font-weight: 800 !important;
  line-height: 1.48 !important;
  letter-spacing: -.05px !important;
  background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(239,242,247,.94)) !important;
  box-shadow:
    6px 6px 15px rgba(163,167,176,.12),
    -6px -6px 15px rgba(255,255,255,.98) !important;
}
body.single-product .summary .woocommerce-product-details__short-description h6::before,
body.single-product .summary h6.rps-quote-note::before {
  left: 13px !important;
  width: 29px !important;
  height: 29px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
}
body.single-product .summary .woocommerce-product-details__short-description h6 strong,
body.single-product .summary h6.rps-quote-note strong {
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #20242a !important;
}

body.single-product .summary .rps-primary-actions {
  display: grid !important;
  grid-template-columns: 118px 52px 146px !important;
  justify-content: start !important;
  align-items: center !important;
  gap: 9px !important;
  width: 100% !important;
  padding: 9px !important;
  margin: 0 0 13px !important;
  box-sizing: border-box !important;
}
body.single-product .summary .rps-primary-actions .rps-quote-action,
body.single-product .summary .rps-primary-actions .rps-quote-action a {
  width: 118px !important;
  min-width: 118px !important;
  max-width: 118px !important;
}
body.single-product .summary .rps-primary-actions .rps-quote-action a {
  height: 41px !important;
  min-height: 41px !important;
  padding: 0 9px !important;
  border-radius: 11px !important;
  font-size: 9.5px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}
body.single-product .summary .rps-primary-actions .quantity,
body.single-product .summary .rps-primary-actions .quantity .qty {
  width: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
}
body.single-product .summary .rps-primary-actions .quantity .qty {
  height: 41px !important;
  min-height: 41px !important;
  border-radius: 11px !important;
  font-size: 13px !important;
}
body.single-product .summary .rps-primary-actions .single_add_to_cart_button {
  width: 146px !important;
  min-width: 146px !important;
  max-width: 146px !important;
  height: 41px !important;
  min-height: 41px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border-radius: 11px !important;
  font-size: 9.7px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

body.single-product .woocommerce-product-gallery__image img,
body.single-product .woocommerce-product-gallery__image.flex-active-slide img,
body.single-product .woocommerce-product-gallery__image.flex-active img {
  image-rendering: auto !important;
  filter: none !important;
  -webkit-filter: none !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
body.single-product .flex-control-thumbs img.flex-active {
  opacity: 1 !important;
  box-shadow:
    0 0 0 2px rgba(197,22,29,.38),
    0 7px 18px rgba(197,22,29,.12) !important;
}

@media (max-width: 1080px) {
  body.single-product .summary .rps-primary-actions {
    grid-template-columns: 108px 50px 136px !important;
    gap: 7px !important;
  }
  body.single-product .summary .rps-primary-actions .rps-quote-action,
  body.single-product .summary .rps-primary-actions .rps-quote-action a {
    width: 108px !important;
    min-width: 108px !important;
    max-width: 108px !important;
  }
  body.single-product .summary .rps-primary-actions .quantity,
  body.single-product .summary .rps-primary-actions .quantity .qty {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
  }
  body.single-product .summary .rps-primary-actions .single_add_to_cart_button {
    width: 136px !important;
    min-width: 136px !important;
    max-width: 136px !important;
  }
}
@media (max-width: 560px) {
  body.single-product .summary .rps-primary-actions {
    grid-template-columns: 1fr !important;
  }
  body.single-product .summary .rps-primary-actions .rps-quote-action,
  body.single-product .summary .rps-primary-actions .rps-quote-action a,
  body.single-product .summary .rps-primary-actions .quantity,
  body.single-product .summary .rps-primary-actions .quantity .qty,
  body.single-product .summary .rps-primary-actions .single_add_to_cart_button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}


/* ==========================================================
   THE RPS LLC — CTA + HQ THUMBNAILS FIX v1.27
   ========================================================== */

/* ----------------------------------------------------------
   1) TRUE ONE-LINE CTA:
      [ Get Quote Now ] [ Qty ] [ Add to cart ]
   ---------------------------------------------------------- */
body.single-product .summary .rps-primary-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 13px !important;
  padding: 9px !important;
  box-sizing: border-box !important;
}

body.single-product .summary .rps-primary-actions .rps-quote-action {
  flex: 0 0 118px !important;
  width: 118px !important;
  min-width: 118px !important;
  max-width: 118px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-product .summary .rps-primary-actions .rps-quote-action a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 118px !important;
  min-width: 118px !important;
  max-width: 118px !important;
  height: 41px !important;
  min-height: 41px !important;
  margin: 0 !important;
  padding: 0 9px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

/* IMPORTANT: make cart a compact inline flex group instead of display:contents */
body.single-product .summary .rps-primary-actions form.cart,
body.single-product .summary .rps-primary-actions .woocommerce-variation-add-to-cart {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.single-product .summary .rps-primary-actions form.cart::before,
body.single-product .summary .rps-primary-actions form.cart::after,
body.single-product .summary .rps-primary-actions .woocommerce-variation-add-to-cart::before,
body.single-product .summary .rps-primary-actions .woocommerce-variation-add-to-cart::after {
  display: none !important;
  content: none !important;
}

/* quantity */
body.single-product .summary .rps-primary-actions .quantity {
  flex: 0 0 52px !important;
  display: block !important;
  width: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
}

body.single-product .summary .rps-primary-actions .quantity .qty {
  display: block !important;
  width: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
  height: 41px !important;
  min-height: 41px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* add to cart — intentionally compact */
body.single-product .summary .rps-primary-actions .single_add_to_cart_button {
  flex: 0 0 146px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 146px !important;
  min-width: 146px !important;
  max-width: 146px !important;
  height: 41px !important;
  min-height: 41px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  float: none !important;
  clear: none !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

/* ----------------------------------------------------------
   2) HQ THUMBNAIL STRIP
   ---------------------------------------------------------- */
body.single-product .flex-control-thumbs li {
  overflow: hidden !important;
  background: #f5f6f8 !important;
}

body.single-product .flex-control-thumbs li img {
  width: 100% !important;
  height: 94px !important;
  object-fit: cover !important;
  object-position: center !important;
  image-rendering: auto !important;
  filter: none !important;
  -webkit-filter: none !important;
  opacity: .86 !important;
  transform: translateZ(0) !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

body.single-product .flex-control-thumbs li img.rps-hq-thumb {
  opacity: .92 !important;
}

body.single-product .flex-control-thumbs li img.flex-active,
body.single-product .flex-control-thumbs li img.rps-hq-thumb.flex-active {
  opacity: 1 !important;
}

/* desktop/tablet CTA shrink slightly if required */
@media (max-width: 1080px) and (min-width: 561px) {
  body.single-product .summary .rps-primary-actions {
    gap: 7px !important;
  }

  body.single-product .summary .rps-primary-actions .rps-quote-action,
  body.single-product .summary .rps-primary-actions .rps-quote-action a {
    flex-basis: 105px !important;
    width: 105px !important;
    min-width: 105px !important;
    max-width: 105px !important;
    font-size: 8.8px !important;
  }

  body.single-product .summary .rps-primary-actions .quantity,
  body.single-product .summary .rps-primary-actions .quantity .qty {
    flex-basis: 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
  }

  body.single-product .summary .rps-primary-actions .single_add_to_cart_button {
    flex-basis: 130px !important;
    width: 130px !important;
    min-width: 130px !important;
    max-width: 130px !important;
  }
}

/* mobile stacks cleanly */
@media (max-width: 560px) {
  body.single-product .summary .rps-primary-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body.single-product .summary .rps-primary-actions .rps-quote-action,
  body.single-product .summary .rps-primary-actions .rps-quote-action a {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  body.single-product .summary .rps-primary-actions form.cart,
  body.single-product .summary .rps-primary-actions .woocommerce-variation-add-to-cart {
    width: 100% !important;
    flex: 0 0 auto !important;
  }

  body.single-product .summary .rps-primary-actions .quantity {
    flex: 0 0 58px !important;
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
  }

  body.single-product .summary .rps-primary-actions .quantity .qty {
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
  }

  body.single-product .summary .rps-primary-actions .single_add_to_cart_button {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}


/* ==========================================================
   THE RPS LLC — SHARP THUMBNAILS + READABLE INTRO v1.28
   ========================================================== */

/* ----------------------------------------------------------
   1) PRODUCT INTRO — BIGGER AND CLEARER
   ---------------------------------------------------------- */
body.single-product .summary .rps-summary-copy {
  max-height: 184px !important;
}

body.single-product .summary .rps-summary-copy.is-expanded {
  max-height: 1000px !important;
}

body.single-product .summary .rps-summary-copy p,
body.single-product .summary .woocommerce-product-details__short-description p {
  margin: 0 0 10px !important;
  color: #5d646d !important;
  font-size: 13px !important;
  font-weight: 450 !important;
  line-height: 1.72 !important;
  letter-spacing: .01px !important;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

body.single-product .summary .rps-summary-toggle {
  margin-top: 1px !important;
  margin-bottom: 9px !important;
  min-height: 27px !important;
  font-size: 10.5px !important;
  font-weight: 900 !important;
}

/* smoother fade after the larger intro */
body.single-product .summary .rps-summary-copy::after {
  height: 38px !important;
}

/* ----------------------------------------------------------
   2) THUMBNAIL STRIP — REMOVE ALL SOFTENING
   ---------------------------------------------------------- */
body.single-product .flex-control-thumbs,
body.single-product ol.flex-control-thumbs {
  gap: 9px !important;
}

body.single-product .flex-control-thumbs li {
  overflow: hidden !important;
  padding: 2px !important;
  background: #f7f8fa !important;
}

/* Critical:
   no translateZ / no scale / no filtering on the actual thumbnail bitmap */
body.single-product .flex-control-thumbs li img,
body.single-product .flex-control-thumbs li img.rps-hq-thumb {
  display: block !important;
  width: 100% !important;
  height: 104px !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;

  image-rendering: auto !important;
  filter: none !important;
  -webkit-filter: none !important;

  transform: none !important;
  scale: 1 !important;
  zoom: 1 !important;

  opacity: 1 !important;

  backface-visibility: visible !important;
  -webkit-backface-visibility: visible !important;

  transition:
    box-shadow .25s ease,
    opacity .25s ease !important;
}

/* Do not zoom the bitmap on hover — lift the LI instead */
body.single-product .flex-control-thumbs li:hover img,
body.single-product .flex-control-thumbs li img:hover,
body.single-product .flex-control-thumbs li img.rps-hq-thumb:hover {
  transform: none !important;
  scale: 1 !important;
  filter: none !important;
  -webkit-filter: none !important;
}

/* active thumbnail stays crisp */
body.single-product .flex-control-thumbs li img.flex-active,
body.single-product .flex-control-thumbs li img.rps-hq-thumb.flex-active {
  opacity: 1 !important;
  filter: none !important;
  -webkit-filter: none !important;
  transform: none !important;
  box-shadow:
    0 0 0 2px rgba(197,22,29,.42),
    0 7px 16px rgba(197,22,29,.12) !important;
}

/* The card itself can lift without scaling the image */
body.single-product .flex-control-thumbs li:hover {
  transform: translateY(-3px) !important;
}

/* ----------------------------------------------------------
   3) MAIN IMAGE — KEEP ORIGINAL QUALITY
   ---------------------------------------------------------- */
body.single-product .woocommerce-product-gallery__image img {
  image-rendering: auto !important;
  filter: none !important;
  -webkit-filter: none !important;
}

/* Mobile: slightly smaller thumbs, still sharp */
@media (max-width: 560px) {
  body.single-product .summary .rps-summary-copy p,
  body.single-product .summary .woocommerce-product-details__short-description p {
    font-size: 12.6px !important;
    line-height: 1.68 !important;
  }

  body.single-product .flex-control-thumbs li img,
  body.single-product .flex-control-thumbs li img.rps-hq-thumb {
    height: 82px !important;
  }
}


/* ==========================================================
   THE RPS LLC — SHARP CUSTOM THUMBS + MOBILE WIDTH FIX v1.29
   ========================================================== */

/* ----------------------------------------------------------
   1) HIDE WOO'S SOFT THUMBNAIL STRIP
   We replace it with our own original-image thumbnail strip.
   ---------------------------------------------------------- */
body.single-product .woocommerce-product-gallery .flex-control-thumbs {
  display: none !important;
}

/* ----------------------------------------------------------
   2) CUSTOM HIGH-QUALITY THUMBNAILS
   ---------------------------------------------------------- */
body.single-product .rps-hq-thumbs {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: stretch;
  gap: 9px;
  width: 100%;
  margin: 12px 0 0;
  padding: 7px;
  overflow-x: auto;
  box-sizing: border-box;
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(255,255,255,.52), rgba(232,235,241,.82));
  box-shadow:
    inset 2px 2px 6px rgba(163,167,176,.10),
    inset -2px -2px 6px rgba(255,255,255,.96);
  scrollbar-width: none;
}

body.single-product .rps-hq-thumbs::-webkit-scrollbar {
  display: none;
}

body.single-product .rps-hq-thumb-btn {
  flex: 1 0 112px;
  width: 112px;
  max-width: 140px;
  height: 104px;
  padding: 3px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(145deg, #fafbfc, #e9ecf2);
  box-shadow:
    4px 4px 10px rgba(163,167,176,.14),
    -4px -4px 10px rgba(255,255,255,.98);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform .28s cubic-bezier(.2,.75,.2,1),
    box-shadow .28s ease;
}

body.single-product .rps-hq-thumb-btn:hover {
  transform: translateY(-4px);
  box-shadow:
    7px 7px 16px rgba(163,167,176,.18),
    -7px -7px 16px rgba(255,255,255,1);
}

body.single-product .rps-hq-thumb-btn.is-active {
  box-shadow:
    0 0 0 2px rgba(197,22,29,.42),
    6px 6px 14px rgba(163,167,176,.15),
    -6px -6px 14px rgba(255,255,255,.98);
}

body.single-product .rps-hq-thumb-btn img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;

  image-rendering: auto !important;
  filter: none !important;
  -webkit-filter: none !important;
  transform: none !important;
  scale: 1 !important;
  opacity: 1 !important;
  backface-visibility: visible !important;
  -webkit-backface-visibility: visible !important;
}

/* ----------------------------------------------------------
   3) INTRO TEXT: SLIGHTLY BIGGER + CLEARER
   ---------------------------------------------------------- */
body.single-product .summary .rps-summary-copy {
  max-height: 196px !important;
}

body.single-product .summary .rps-summary-copy p,
body.single-product .summary .woocommerce-product-details__short-description p {
  color: #565e68 !important;
  font-size: 13.4px !important;
  font-weight: 460 !important;
  line-height: 1.76 !important;
}

/* ----------------------------------------------------------
   4) MOBILE — HARD RESET HORIZONTAL WIDTHS
   Prevents page shifting right / blank space on left
   ---------------------------------------------------------- */
@media (max-width: 840px) {

  html,
  body.single-product {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body.single-product #page,
  body.single-product .site,
  body.single-product .site-content,
  body.single-product #content,
  body.single-product #primary,
  body.single-product .content-area,
  body.single-product .site-main,
  body.single-product main,
  body.single-product .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  body.single-product .woocommerce-breadcrumb,
  body.single-product div.product,
  body.single-product .woocommerce-tabs,
  body.single-product .related.products,
  body.single-product .upsells.products {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;

    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    min-width: 0 !important;

    margin-left: 12px !important;
    margin-right: 12px !important;

    box-sizing: border-box !important;
  }

  body.single-product div.product {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    column-gap: 0 !important;
    row-gap: 20px !important;
    padding: 0 !important;
  }

  body.single-product div.product > .woocommerce-product-gallery,
  body.single-product div.product > .summary {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    left: auto !important;
    right: auto !important;
    transform: none !important;

    box-sizing: border-box !important;
  }

  body.single-product div.product > .woocommerce-product-gallery {
    grid-row: 1 !important;
  }

  body.single-product div.product > .summary {
    grid-row: 2 !important;
  }

  /* no internal element may force horizontal overflow */
  body.single-product .summary *,
  body.single-product .woocommerce-product-gallery *,
  body.single-product .woocommerce-tabs *,
  body.single-product .related.products * {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* custom thumbs mobile sizing */
  body.single-product .rps-hq-thumbs {
    gap: 7px;
    padding: 6px;
  }

  body.single-product .rps-hq-thumb-btn {
    flex: 0 0 96px;
    width: 96px;
    min-width: 96px;
    max-width: 96px;
    height: 86px;
  }

  /* main gallery should never exceed viewport */
  body.single-product .woocommerce-product-gallery .flex-viewport,
  body.single-product .woocommerce-product-gallery__wrapper,
  body.single-product .woocommerce-product-gallery__image,
  body.single-product .woocommerce-product-gallery__image img {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* CTA does not cause overflow */
  body.single-product .summary .rps-primary-actions,
  body.single-product .summary .rps-secondary-actions,
  body.single-product .summary .rps-product-trust,
  body.single-product .summary .product_meta {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

/* Phone */
@media (max-width: 560px) {

  body.single-product .woocommerce-breadcrumb,
  body.single-product div.product,
  body.single-product .woocommerce-tabs,
  body.single-product .related.products,
  body.single-product .upsells.products {
    width: calc(100% - 18px) !important;
    max-width: calc(100% - 18px) !important;
    margin-left: 9px !important;
    margin-right: 9px !important;
  }

  body.single-product div.product .woocommerce-product-gallery {
    padding: 10px !important;
    border-radius: 20px !important;
  }

  body.single-product div.product .summary {
    padding: 20px 15px 18px !important;
    border-radius: 20px !important;
  }

  body.single-product .rps-hq-thumb-btn {
    flex-basis: 84px;
    width: 84px;
    min-width: 84px;
    max-width: 84px;
    height: 74px;
  }

  body.single-product .summary .rps-summary-copy p,
  body.single-product .summary .woocommerce-product-details__short-description p {
    font-size: 12.8px !important;
    line-height: 1.7 !important;
  }
}


/* ==========================================================
   THE RPS LLC — REMOVE DUPLICATE NATIVE THUMB STRIP v1.30
   Keep ONLY .rps-hq-thumbs
   ========================================================== */

/* Hide every native WooCommerce/FlexSlider thumbnail navigation */
body.single-product .woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs,
body.single-product .woocommerce-product-gallery ul.flex-control-nav.flex-control-thumbs,
body.single-product .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs,
body.single-product .woocommerce-product-gallery > .flex-control-thumbs,
body.single-product .woocommerce-product-gallery .flex-control-thumbs:not(.rps-hq-thumbs),
body.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper + .flex-control-thumbs {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Make sure our custom sharp strip remains visible */
body.single-product .woocommerce-product-gallery .rps-hq-thumbs {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  pointer-events: auto !important;
}


/* ==========================================================
   THE RPS LLC — FORCE REMOVE DUPLICATE GALLERY ROW v1.31
   ========================================================== */

/* JS marks every duplicate/native thumbnail container with this class */
body.single-product .woocommerce-product-gallery .rps-remove-native-thumbs {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Extra Woo/FlexSlider/plugin thumbnail selectors */
body.single-product .woocommerce-product-gallery .flex-control-nav,
body.single-product .woocommerce-product-gallery .flex-control-thumbs,
body.single-product .woocommerce-product-gallery .woocommerce-product-gallery__thumbnails,
body.single-product .woocommerce-product-gallery .wc-product-gallery-thumbs,
body.single-product .woocommerce-product-gallery .product-thumbnails,
body.single-product .woocommerce-product-gallery .product-gallery-thumbnails,
body.single-product .woocommerce-product-gallery .thumbnails,
body.single-product .woocommerce-product-gallery [class*="thumbnail"]:not(.rps-hq-thumbs):not(.rps-hq-thumb-btn),
body.single-product .woocommerce-product-gallery [class*="thumbs"]:not(.rps-hq-thumbs) {
  display: none !important;
}

/* Our custom HQ row must always stay visible */
body.single-product .woocommerce-product-gallery .rps-hq-thumbs {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin-top: 12px !important;
  pointer-events: auto !important;
}


/* ==========================================================
   THE RPS LLC — CLEAN GALLERY SYSTEM v1.32
   Only ONE thumbnail row is allowed.
   ========================================================== */

/* Native Woo/FlexSlider thumbnail rows are retained only as hidden JS controls. */
body.single-product .woocommerce-product-gallery ol.flex-control-thumbs,
body.single-product .woocommerce-product-gallery ul.flex-control-thumbs,
body.single-product .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs,
body.single-product .woocommerce-product-gallery .flex-control-thumbs {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  max-width: 1px !important;
  max-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* The one and only visible thumbnail rail. */
body.single-product .woocommerce-product-gallery .rps-hq-thumbs {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  left: auto !important;
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: none !important;
  margin: 12px 0 0 !important;
  padding: 7px !important;
  gap: 9px !important;
  overflow-x: auto !important;
  pointer-events: auto !important;
  box-sizing: border-box !important;
}

/* Guard against any stale row inserted by cache/plugin fragments. */
body.single-product .woocommerce-product-gallery .rps-stale-thumb-row {
  display: none !important;
}

/* Keep custom thumbnails sharp. */
body.single-product .rps-hq-thumb-btn {
  flex: 1 0 112px !important;
  width: 112px !important;
  max-width: 140px !important;
  height: 104px !important;
  padding: 3px !important;
  overflow: hidden !important;
  border-radius: 13px !important;
}

body.single-product .rps-hq-thumb-btn img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  image-rendering: auto !important;
  filter: none !important;
  -webkit-filter: none !important;
  transform: none !important;
  opacity: 1 !important;
}

/* Mobile rail stays inside viewport. */
@media (max-width: 840px) {
  body.single-product .rps-hq-thumbs {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.single-product .rps-hq-thumb-btn {
    flex: 0 0 94px !important;
    width: 94px !important;
    min-width: 94px !important;
    max-width: 94px !important;
    height: 84px !important;
  }
}

@media (max-width: 560px) {
  body.single-product .rps-hq-thumb-btn {
    flex-basis: 82px !important;
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
    height: 72px !important;
  }
}


/* ==========================================================
   THE RPS LLC — KEEP MIDDLE THUMBNAILS ONLY v1.33
   Remove lower custom rail and keep native middle row
   ========================================================== */

/* Show the native WooCommerce/FlexSlider thumbnail row again */
body.single-product .woocommerce-product-gallery ol.flex-control-thumbs,
body.single-product .woocommerce-product-gallery ul.flex-control-thumbs,
body.single-product .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs,
body.single-product .woocommerce-product-gallery .flex-control-thumbs {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  left: auto !important;
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: none !important;
  margin: 12px 0 0 !important;
  padding: 7px !important;
  gap: 9px !important;
  overflow-x: auto !important;
  pointer-events: auto !important;
  box-sizing: border-box !important;
  border-radius: 17px !important;
  background: linear-gradient(145deg, rgba(255,255,255,.52), rgba(232,235,241,.82)) !important;
  box-shadow:
    inset 2px 2px 6px rgba(163,167,176,.10),
    inset -2px -2px 6px rgba(255,255,255,.96) !important;
  scrollbar-width: none !important;
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar,
body.single-product .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs::-webkit-scrollbar {
  display: none !important;
}

/* Clean card style for the middle row */
body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
  flex: 1 0 112px !important;
  width: 112px !important;
  max-width: 140px !important;
  height: 104px !important;
  margin: 0 !important;
  padding: 3px !important;
  list-style: none !important;
  overflow: hidden !important;
  border-radius: 13px !important;
  background: linear-gradient(145deg, #fafbfc, #e9ecf2) !important;
  box-shadow:
    4px 4px 10px rgba(163,167,176,.14),
    -4px -4px 10px rgba(255,255,255,.98) !important;
  transition:
    transform .28s cubic-bezier(.2,.75,.2,1),
    box-shadow .28s ease !important;
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs li:hover {
  transform: translateY(-4px) !important;
  box-shadow:
    7px 7px 16px rgba(163,167,176,.18),
    -7px -7px 16px rgba(255,255,255,1) !important;
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 10px !important;
  image-rendering: auto !important;
  filter: none !important;
  -webkit-filter: none !important;
  transform: none !important;
  opacity: 1 !important;
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
  box-shadow:
    0 0 0 2px rgba(197,22,29,.42),
    0 7px 16px rgba(197,22,29,.12) !important;
}

/* Hide the lower custom rail and its extra chrome */
body.single-product .woocommerce-product-gallery .rps-hq-thumbs,
body.single-product .woocommerce-product-gallery .rps-gallery-status,
body.single-product .woocommerce-product-gallery .rps-gallery-badge {
  display: none !important;
}

/* Optional: keep arrows if desired; hide if they disturb the layout */
body.single-product .woocommerce-product-gallery .rps-gallery-arrows {
  display: none !important;
}

/* Mobile sizing */
@media (max-width: 840px) {
  body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
    flex: 0 0 94px !important;
    width: 94px !important;
    min-width: 94px !important;
    max-width: 94px !important;
    height: 84px !important;
  }
}

@media (max-width: 560px) {
  body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
    flex-basis: 82px !important;
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
    height: 72px !important;
  }
}
