/* FILTER BAR
============================================= */

/* Theme */
.rcg-original-archive-filters {
  --rcg-accent: #c74235;
  --rcg-accent-soft: rgba(199, 66, 53, 0.3);
  --rcg-accent-ring: rgba(199, 66, 53, 0.1);
  --rcg-text: #444;
  --rcg-text-muted: #666;
  --rcg-text-light: #777;
  --rcg-bg-soft: #f6f6f6;
  --rcg-bg-hover: #fff7f5;
  --rcg-bg-active-soft: #fff1ef;
  --rcg-button: #76777f;
  --rcg-button-hover: #c74235;
  --rcg-radius-sm: 8px;
  --rcg-radius-md: 14px;
  --rcg-radius-pill: 999px;
  --rcg-transition: all 0.2s ease;

  max-width: 1120px;
  margin: 28px auto 48px;
  padding: 0;
}

.woocommerce-js .woocommerce-breadcrumb {
  color: #999;
  font-weight: 600;
}
.woocommerce-js .woocommerce-breadcrumb a {
    color: #c74235;
}
.woocommerce-js .woocommerce-breadcrumb a:hover {
    color:#555;
} 

/* Base group reset
============================================= */
.rcg-original-filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
}

.rcg-original-filter-group span:not(.rcg-filter-label) {
  display: none;
}

.rcg-original-filter-group a {
  text-decoration: none;
  transition: var(--rcg-transition);
}

/* Two-row layout
============================================= */
.rcg-original-archive-filters .rcg-original-filters-top {
  display: grid;
  grid-template-columns: auto minmax(520px, 1fr);
  align-items: center;
  column-gap: 40px;
  row-gap: 0;
}

.rcg-original-archive-filters .rcg-original-filters-bottom {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 40px;
  row-gap: 0;
  margin-top: 28px;
}

/* Status filter
============================================= */
.rcg-original-status-filter {
  justify-content: flex-start;
  gap: 12px;
  margin: 0;
  white-space: nowrap;
}

.rcg-original-status-filter .rcg-filter-label {
  margin-right: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #5a3d20;
}

.rcg-original-status-filter a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.25rem 0.75rem;
  border-radius: var(--rcg-radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--rcg-accent);
  background: transparent;
  border: 1px solid var(--rcg-accent-soft);
}

.rcg-original-status-filter a:hover {
  color: var(--rcg-accent);
  border-color: var(--rcg-accent);
  background: var(--rcg-bg-hover);
}

.rcg-original-status-filter a.active {
  color: #fff;
  background: var(--rcg-accent);
  border-color: rgba(199, 66, 53, 0.52);
  box-shadow: 0 6px 14px rgba(160, 109, 67, 0.18);
}

/* Search form
============================================= */
.rcg-original-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 20px;
  align-items: center;
  width: 100%;
  margin: 0;
  min-width: 0;
}

.rcg-original-search-form input[type="text"] {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 24px;
  border: 1.5px solid var(--rcg-accent);
  border-radius: var(--rcg-radius-md);
  background: var(--rcg-bg-soft);
  color: var(--rcg-text);
  font-size: 1rem;
  outline: none;
  transition: var(--rcg-transition);
}

.rcg-original-search-form input[type="text"]::placeholder {
  color: var(--rcg-text-muted);
}

.rcg-original-search-form input[type="text"]:focus {
  background: #fff;
  box-shadow: 0 0 0 4px var(--rcg-accent-ring);
}

.rcg-original-search-form button {
  height: 48px;
  border: none;
  border-radius: 28px;
  background: var(--rcg-button);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--rcg-transition);
}

.rcg-original-search-form button:hover {
  background: var(--rcg-button-hover);
  transform: translateY(-1px);
}


/* Giclee archive-only filter layout adjustments
============================================= */
.rcg-original-archive-filters.is-giclee-archive {
  display: flex;
  flex-direction: column;
}
.rcg-original-archive-filters.is-giclee-archive .rcg-original-filters-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.rcg-original-archive-filters.is-giclee-archive .rcg-original-search-form {
  width: min(100%, 720px);
  grid-template-columns: minmax(0, 1fr) 180px;
  justify-content: end;
  margin-left: auto;
}

.rcg-original-archive-filters.is-giclee-archive .rcg-original-search-form input[type="text"] {
  min-width: 0;
  padding-inline: 24px;
}

.rcg-original-archive-filters.is-giclee-archive .rcg-original-filters-bottom {
  display: flex;
  justify-content: flex-end;
  max-width: 500px!important;
  align-self: end!important;
}

.rcg-original-archive-filters.is-giclee-archive .rcg-original-letter-filter {
  width: min(100%, 720px);
  max-width: 720px;
  justify-content: flex-end;
  margin-left: auto;
}

/* Medium dropdown
============================================= */
.rcg-original-medium-form {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  white-space: nowrap;
}

.rcg-original-medium-form .rcg-filter-label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #24324a;
}

.rcg-original-medium-form select {
  min-width: 220px;
  height: 48px;
  padding: 0 44px 0 18px;
  border: 1.5px solid #c9ced6;
  border-radius: 6px;
  background-color: #fff;
  color: #4a5568;
  font-size: 1rem;
  box-shadow: none;

  /* custom arrow */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'><path d='M5 7.5L10 12.5L15 7.5' stroke='%23606f85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  cursor: pointer;
}

.rcg-original-medium-form select:focus {
  outline: none;
  border-color: var(--rcg-accent);
  box-shadow: 0 0 0 4px var(--rcg-accent-ring);
}

.rcg-original-medium-form select::-ms-expand {
  display: none;
}

.rcg-clear-medium {
  font-size: 0.9rem;
  color: var(--rcg-accent);
}

/* Alphabet picker
============================================= */
.rcg-original-letter-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  margin: 0;
  width:100%;
  max-width:500px;
  margin-left:auto;
}

.rcg-original-letter-filter .rcg-filter-label {
  display: none;
}

/* First link becomes ABC badge */
.rcg-original-letter-filter a:first-of-type {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  margin-right: 14px;
  padding: 0.75rem;
  border-radius: var(--rcg-radius-pill);
  background: transparent;
  border: 1px solid var(--rcg-accent-soft);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: transparent;
  font-size: 0;
}

.rcg-original-letter-filter a:first-of-type::before {
  content: "ABC";
  color: var(--rcg-text-light);
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rcg-original-letter-filter a:first-of-type:hover {
  border-color: var(--rcg-accent);
  background: var(--rcg-bg-hover);
}

.rcg-original-letter-filter a:first-of-type:hover::before {
  color: var(--rcg-accent);
}

.rcg-original-letter-filter a:first-of-type.active {
  background: var(--rcg-accent);
  border-color: #fff7f5;
}

.rcg-original-letter-filter a:first-of-type.active::before {
  color: #fff;
}

/* Letter links */
.rcg-original-letter-filter a:not(:first-of-type) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0;
  border-radius: var(--rcg-radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rcg-text-light);
  background: transparent;
  border: 1px solid transparent;
}

.rcg-original-letter-filter a:not(:first-of-type):hover {
  color: var(--rcg-accent);
  background: var(--rcg-bg-hover);
  border-color: #ecd2cd;
}

.rcg-original-letter-filter a:not(:first-of-type).active {
  color: var(--rcg-accent);
  background: var(--rcg-bg-active-soft);
  border-color: #e5beb8;
}

/* Mobile
============================================= */
@media (max-width: 900px) {
  .rcg-original-archive-filters .rcg-original-filters-top,
  .rcg-original-archive-filters .rcg-original-filters-bottom {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }

  .rcg-original-status-filter,
  .rcg-original-search-form,
  .rcg-original-medium-form,
  .rcg-original-letter-filter {
    width: 100%;
    max-width: 100%;
  }

  .rcg-original-search-form {
    grid-template-columns: 1fr;
  }

  .rcg-original-archive-filters.is-giclee-archive .rcg-original-filters-top {
    display: block;
  }

  .rcg-original-archive-filters.is-giclee-archive .rcg-original-search-form {
    width: 100%;
  }

  .rcg-original-archive-filters.is-giclee-archive .rcg-original-search-form input[type="text"] {
    min-width: 0;
  }

  .rcg-original-search-form button {
    width: 100%;
  }

  .rcg-original-medium-form {
    flex-wrap: wrap;
    white-space: normal;
  }

  .rcg-original-medium-form select {
    width: 100%;
    min-width: 0;
  }

  .rcg-original-letter-filter {
    justify-content: flex-start;
    gap: 12px 16px;
  }
}


/* SINGLE PRODUCT TABS
============================================= */
.rcg-giclee-box{
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
}
.rcg-giclee-row{
  margin: 10px 0;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.rcg-giclee-row select{
  min-width: 200px;
}
.rcg-giclee-framing-options{
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.rcg-giclee-framing-choice{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
}
.rcg-giclee-framing-choice input[type="checkbox"]{
  flex: 0 0 auto;
  margin: 0;
}
.rcg-giclee-status{
  margin-left: 10px;
  font-size: 0.95em;
  opacity: 0.85;
}
.rcg-giclee-status.is-error{
  opacity: 1;
  font-weight: 600;
}
.rcg-giclee-help{
  margin: 10px 0 0;
  font-size: 0.92em;
  opacity: 0.8;
}
.rcg-tabs{
  margin: 18px 0 35px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  overflow: hidden;
}
.rcg-tabs-header{
  display: flex;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.02);
}
button.rcg-tab-btn{
  flex: 1 1 0;
  padding: 12px 14px;
  border: 0;
  background: #c7423599;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  border: 2px solid #ffffff00;
  box-shadow: none;
  border-radius: 0;
}
button.rcg-tab-btn.is-active {
  background: #c74235;
  color: #fff;
}
button.rcg-tab-btn:hover,
button.rcg-tab-btn:focus,
button.rcg-tab-btn.is-active:hover,
button.rcg-tab-btn.is-active:focus {
  background: #b3362a;
  color: #fff;
  outline: none;
}
button.rcg-tab-btn:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35);
}
.button.alt.rcg-giclee-add-to-cart {
    background:#c74235;
}
.button.alt.rcg-giclee-add-to-cart:is(:hover,:active,:focus) {
    background: #b3362a;
}
.rcg-tabs-panels{
  padding: 14px 16px;
  background: #fff;
}
.rcg-tab-panel{ display:none; }
.rcg-tab-panel.is-active{ display:block; }
.rcg-giclee-title{ margin: 0 0 10px; }
.rcg-oos-box{
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.02);
}
.rcg-oos-sub{ margin: 6px 0; opacity: 0.85; }
.rcg-tabs .rcg-giclee-box{ margin-top: 0; padding: 0; border: 0; }
.rcg-giclee-price-row{ padding: 8px 0; }
.rcg-giclee-price{ font-size: 1.15em; }
.rcg-giclee-price-label{ opacity: 0.8; margin-right: 8px; }
.rcg-giclee-price-value{ font-weight: 800; }

/*
 * Gallery pagination reset
 *
 * The [rcg_gallery] shortcode uses the "plain" type for paginate_links(),
 * which outputs inline anchors and spans with the class "page-numbers".
 * Without custom styling these can inherit theme defaults that may
 * introduce unwanted borders, backgrounds or list bullets. The rules
 * below reset the appearance and layout of the pagination to be clean
 * and consistent with the filter controls.
 */
.rcg-gallery-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.rcg-gallery-pagination .page-numbers {
  display: inline-block;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  color: inherit;
  text-decoration: none;
  line-height: 1.2;
  font-weight: 500;
  transition: var(--rcg-transition, all 0.2s ease);
}

.rcg-gallery-pagination .page-numbers:hover {
  color: var(--rcg-accent, inherit);
}

.rcg-gallery-pagination .page-numbers.current {
  font-weight: 700;
  color: var(--rcg-accent, inherit);
}

.rcg-gallery-pagination .page-numbers.dots {
  pointer-events: none;
  opacity: 0.6;
}

/*
 * Hide any stock overlays on product cards within the gallery grid. These
 * overlays are typically used by themes to indicate sold/out-of-stock
 * status with a badge over the image. We prefer a subtle status line
 * instead of an overlay in this context. The selectors below target
 * common class names used by popular WooCommerce themes.
 */
ul.products li.product.rcg-has-art-status .stock-overlay,
ul.products li.product.rcg-has-art-status .out-of-stock-overlay,
ul.products li.product.rcg-has-art-status .sold-overlay,
ul.products li.product.rcg-has-art-status .ast-shop-product-out-of-stock,
ul.products li.product.rcg-hide-stock-overlay .stock-overlay,
ul.products li.product.rcg-hide-stock-overlay .out-of-stock-overlay,
ul.products li.product.rcg-hide-stock-overlay .sold-overlay,
ul.products li.product.rcg-hide-stock-overlay .ast-shop-product-out-of-stock,
.rcg-gallery-grid ul.products li.product .stock-overlay,
.rcg-gallery-grid ul.products li.product .out-of-stock-overlay,
.rcg-gallery-grid ul.products li.product .sold-overlay,
.rcg-gallery-grid ul.products li.product .ast-shop-product-out-of-stock {
  display: none !important;
}

/* Hide the theme's stock text/label on sold-original cards so the only
 * "Original Sold" indicator is the .art-status pill below (no duplicates). */
ul.products li.product.rcg-hide-stock-overlay .stock,
ul.products li.product.rcg-hide-stock-overlay .ast-stock-detail,
ul.products li.product.rcg-hide-stock-overlay p.stock,
.woocommerce ul.products li.product.rcg-hide-stock-overlay .price ~ .stock {
  display: none !important;
}

/* Small pill "Original Sold" / "Call for Availability" callout on the card image. */
.woocommerce ul.products li.product.rcg-hide-stock-overlay,
.related.products ul.products li.product.rcg-hide-stock-overlay,
.rcg-gallery-grid ul.products li.product.rcg-hide-stock-overlay { position: relative; }

.woocommerce ul.products li.product .art-status,
.related.products ul.products li.product .art-status,
.rcg-gallery-grid ul.products li.product .art-status {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: clamp(12px, 1.4vw, 18px) !important;
  z-index: 5 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: calc(100% - 24px) !important;
  margin: 0 !important;
  padding: 7px 12px !important;
  transform: translateX(-50%) !important;
  border: 1px solid rgba(199, 66, 53, 0.24) !important;
  border-radius: 999px !important;
  background: rgba(255, 248, 244, 0.94) !important;
  box-shadow: 0 10px 24px rgba(36, 50, 74, 0.14) !important;
  color: #a7352c !important;
  /* Naming the family is what makes these pills identical everywhere.
     Without it the pill inherited whatever font its surrounding context
     supplied — the brand serif on pages scoped to heading typography, sans
     elsewhere — so the same "Original Sold" badge rendered differently from one
     archive to the next. */
  font-family: Roboto, Arial, sans-serif !important;
  font-size: clamp(0.66rem, 0.78vw, 0.74rem) !important;
  font-weight: 850 !important;
  letter-spacing: 0.055em !important;
  line-height: 1.15 !important;
  text-align: center !important;
  text-transform: uppercase;
  pointer-events: none;
}

/* Catch-all for contexts that fall outside the products-loop selector above
   (the pill markup is emitted by a loop hook, but nothing guarantees a
   .woocommerce / .related.products / .rcg-gallery-grid ancestor in every
   template). Low specificity on purpose: it only supplies the family where the
   scoped rule has not already. */
.art-status,
.art-status__label {
  font-family: Roboto, Arial, sans-serif;
}

.woocommerce ul.products li.product .art-status--unavailable,
.related.products ul.products li.product .art-status--unavailable,
.rcg-gallery-grid ul.products li.product .art-status--unavailable {
  background: rgba(36, 50, 74, 0.92) !important;
  color: #fff !important;
  border-color: rgba(36, 50, 74, 0.24) !important;
}

/* Single-product original panel: minimized pill status (the Call for
   Availability button is the primary prompt, not the status text). */
.rcg-oos-box .rcg-original-sold-pill {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(199, 66, 53, 0.12);
  color: #c74235;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}


/* CATEGORY NAV DROPDOWN + GIFT COLLECTION NAVIGATION
============================================= */
.entry-content .rcg-category-nav a {
    text-decoration:none;
}
.rcg-category-nav__entry {
  position: relative;
  min-width: 0;
}

.rcg-category-nav__entry--has-children {
  z-index: 41;
}

.rcg-category-nav__entry .rcg-category-nav__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.rcg-category-nav__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 40;
  display: none;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(36, 50, 74, 0.14);
  box-shadow: 0 20px 40px rgba(36, 50, 74, 0.14);
}

.rcg-category-nav__dropdown::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
}

.rcg-category-nav__entry--has-children:hover .rcg-category-nav__dropdown,
.rcg-category-nav__entry--has-children:focus-within .rcg-category-nav__dropdown {
  display: grid;
  gap: 8px;
}

.rcg-category-nav__dropdown-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  background: #fff;
  transition: background 0.2s ease, color 0.2s ease;
}

.rcg-category-nav__dropdown-link:hover,
.rcg-category-nav__dropdown-link:focus {
  background: rgba(36, 50, 74, 0.06);
  color: inherit;
}

.rcg-gift-collection-nav {
  padding-top: 10px;
}

.rcg-gift-collection-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 28px 0 20px;
}

.rcg-gift-collection-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  padding: 24px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(36, 50, 74, 0.12);
  box-shadow: 0 14px 34px rgba(36, 50, 74, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rcg-gift-collection-card:hover,
.rcg-gift-collection-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(36, 50, 74, 0.12);
  border-color: rgba(36, 50, 74, 0.22);
  color: inherit;
}

/* v0.7.21: matted square + contain. Category thumbnail sources arrive in
 * mixed ratios (square 600x600 uploads and pre-cropped 3:4 watermark
 * derivatives), and the old 4/3 cover frame sliced those sources to fill,
 * pushing the product off-center or cropping it. The square contain mat
 * matches the archive/product card language and keeps the whole product
 * visible and centered on both axes. */
.rcg-gift-collection-card__media {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: #fbf8f2;
  aspect-ratio: 1 / 1;
}

.rcg-gift-collection-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
}

/* v0.7.22: the "Gift category" kicker and description paragraph were
 * removed from the card template; only title + item count remain. */
.rcg-gift-collection-card__title {
  margin: 0;
}

.rcg-gift-collection-card__count {
  margin-top: auto;
  font-weight: 700;
}

.rcg-gift-collection-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.rcg-gift-collection-shortcuts__label {
  font-weight: 700;
}

.rcg-gift-collection-shortcuts__link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(36, 50, 74, 0.06);
  color: inherit;
}

.rcg-gift-collection-shortcuts__link:hover,
.rcg-gift-collection-shortcuts__link:focus {
  background: rgba(36, 50, 74, 0.12);
  color: inherit;
}

@media (max-width: 900px) {
  .rcg-category-nav__dropdown {
    position: static;
    margin-top: 10px;
    box-shadow: none;
  }
}


/* ORIGINALS VIRTUAL ARCHIVE + CURATED DROPDOWN
============================================= */
.rcg-originals-nav__hero {
  margin-bottom: 18px;
  padding: 26px 30px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(248,249,251,.98) 100%);
  border: 1px solid rgba(36, 50, 74, 0.08);
  box-shadow: 0 18px 40px rgba(36, 50, 74, 0.08);
}

.rcg-originals-nav__eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7c889d;
}

.rcg-originals-nav__hero .page-title {
  margin-bottom: 10px;
}

.rcg-originals-nav__hero .term-description p {
  margin-bottom: 0;
  max-width: 760px;
}

.rcg-originals-nav__cards {
  margin-top: 8px;
}

.rcg-originals-nav__card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
}

.rcg-originals-nav__card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, #c74235 0%, #d77d73 100%);
  opacity: .9;
}

.rcg-originals-nav__card .rcg-gift-collection-card__title {
  font-size: clamp(1.6rem, 2.3vw, 2.2rem);
  line-height: 1.1;
}

.rcg-originals-nav__count {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: rgba(199, 66, 53, 0.08);
  color: #a6362b;
  font-size: .88rem;
  font-weight: 700;
}

.rcg-originals-nav__cta {
  margin-top: auto;
  font-weight: 700;
  color: #24324a;
}

.rcg-originals-nav__cta::after {
  content: " \2192";
}

.rcg-originals-nav__shortcuts {
  margin-top: 18px;
}

.rcg-category-nav__entry--has-children .rcg-category-nav__dropdown {
  min-width: 220px;
}

.rcg-category-nav__dropdown-link {
  font-weight: 600;
}

@media (max-width: 900px) {
  .rcg-originals-nav__hero {
    padding: 22px 20px;
    border-radius: 18px;
  }

  .rcg-originals-nav__card {
    min-height: 220px;
  }
}


/* Original medium archive refinements
============================================= */
.rcg-original-archive-filters.no-status-filter .rcg-original-filters-top,
.rcg-original-archive-filters.is-original-medium-archive .rcg-original-filters-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.rcg-original-archive-filters.no-status-filter .rcg-original-search-form,
.rcg-original-archive-filters.is-original-medium-archive .rcg-original-search-form {
  width: min(100%, 720px);
  grid-template-columns: minmax(0, 1fr) 180px;
  justify-content: end;
  margin-left: auto;
}

.rcg-original-archive-filters.no-medium-filter .rcg-original-filters-bottom,
.rcg-original-archive-filters.is-original-medium-archive .rcg-original-filters-bottom {
  display: flex;
  justify-content: flex-end;
  max-width: 720px;
  align-self: end;
  margin-left: auto;
}

.rcg-original-archive-filters.no-medium-filter .rcg-original-letter-filter,
.rcg-original-archive-filters.is-original-medium-archive .rcg-original-letter-filter {
  width: min(100%, 720px);
  max-width: 720px;
  justify-content: flex-end;
  margin-left: auto;
}


.rcg-original-medium-archive .rcg-original-archive-filters {
  margin-top: 22px;
}

.rcg-original-medium-archive .woocommerce-products-header {
  position: relative;
  margin: 10px 0 12px;
  padding: 17px 0px 15px;
  /* border-radius: 24px; */
  /* background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(247,248,250,0.96) 100%); */
  /* border: 1px solid rgba(36, 50, 74, 0.10); */
  /* box-shadow: 0 18px 40px rgba(36, 50, 74, 0.08); */
}

.rcg-original-medium-archive .woocommerce-products-header::before {
  content: "Original Medium Gallery";
  display: block;
  margin-bottom: 14px;
  color: #7a879c;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rcg-original-medium-archive .woocommerce-products-header .page-title {
  margin: 0;
  color: #24324a;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.rcg-original-medium-archive .woocommerce-products-header .term-description,
.rcg-original-medium-archive .woocommerce-products-header .archive-description,
.rcg-original-medium-archive .woocommerce-products-header p {
  margin-top: 14px;
  max-width: 760px;
  color: #586579;
  font-size: 1.02rem;
  line-height: 1.7;
}

.rcg-original-medium-archive .woocommerce-products-header .term-description p:last-child,
.rcg-original-medium-archive .woocommerce-products-header .archive-description p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .rcg-original-medium-archive .woocommerce-products-header {
    padding: 12px 0px 11px;
    border-radius: 18px;
  }

  .rcg-original-archive-filters.no-status-filter .rcg-original-filters-top,
  .rcg-original-archive-filters.is-original-medium-archive .rcg-original-filters-top,
  .rcg-original-archive-filters.no-medium-filter .rcg-original-filters-bottom,
  .rcg-original-archive-filters.is-original-medium-archive .rcg-original-filters-bottom {
    display: block;
    max-width: none;
  }

  .rcg-original-archive-filters.no-status-filter .rcg-original-search-form,
  .rcg-original-archive-filters.is-original-medium-archive .rcg-original-search-form,
  .rcg-original-archive-filters.no-medium-filter .rcg-original-letter-filter,
  .rcg-original-archive-filters.is-original-medium-archive .rcg-original-letter-filter {
    width: 100%;
    max-width: 100%;
  }
}


/* Originals archive decoupled card styles
============================================= */
.rcg-originals-nav {
  padding-top: 10px;
}

.rcg-originals-nav__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 28px 0 20px;
}

.rcg-originals-nav__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
  padding: 24px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(36, 50, 74, 0.12);
  box-shadow: 0 14px 34px rgba(36, 50, 74, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rcg-originals-nav__card:hover,
.rcg-originals-nav__card:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(36, 50, 74, 0.12);
  border-color: rgba(36, 50, 74, 0.22);
  color: inherit;
}

.rcg-originals-nav__kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
  display:none;
}

.rcg-originals-nav__title {
  margin: 0;
  font-size: clamp(1.6rem, 2.3vw, 2.2rem);
  line-height: 1.1;
}

.rcg-originals-nav__description {
  margin: 0;
  opacity: 0.8;
}

.rcg-originals-nav__shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.rcg-originals-nav__shortcuts-label {
  font-weight: 700;
}

.rcg-originals-nav__shortcuts-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(36, 50, 74, 0.06);
  color: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}

.rcg-originals-nav__shortcuts-link:hover,
.rcg-originals-nav__shortcuts-link:focus {
  background: rgba(36, 50, 74, 0.12);
  color: inherit;
}

/* Root Originals category archive styling
============================================= */
.rcg-original-root-archive .woocommerce-products-header {
  position: relative;
  margin: 10px 0 12px;
  padding: 15px 0px 13px;
  /* border-radius: 24px; */
  /* background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(247,248,250,0.97) 100%); */
  /* border: 1px solid rgba(36, 50, 74, 0.10); */
  /* box-shadow: 0 18px 40px rgba(36, 50, 74, 0.08); */
}

.rcg-original-root-archive .woocommerce-products-header::before {
  content: "";
  display: block;
  margin-bottom: 12px;
  color: #7a879c;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rcg-original-root-archive .woocommerce-products-header .page-title {
  margin: 0;
  color: #24324a;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.rcg-original-root-archive .woocommerce-products-header .term-description,
.rcg-original-root-archive .woocommerce-products-header .archive-description,
.rcg-original-root-archive .woocommerce-products-header p {
  margin-top: 12px;
  max-width: 760px;
  color: #586579;
  font-size: 1rem;
  line-height: 1.7;
}

.rcg-original-root-archive .woocommerce-products-header .term-description p:last-child,
.rcg-original-root-archive .woocommerce-products-header .archive-description p:last-child {
  margin-bottom: 0;
}

.rcg-original-root-archive .rcg-original-archive-filters {
  padding: 0;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .rcg-original-root-archive .woocommerce-products-header {
    padding: 12px 0px 11px;
    border-radius: 18px;
  }
}

/* Archive overlay + filter alignment follow-up
============================================= */
.rcg-original-archive-filters:is(.is-giclee-archive,.is-original-archive,.is-nudes-archive) .rcg-original-filters-bottom {
  display: flex;
  justify-content: flex-end;
  max-width: 500px !important;
  align-self: end !important;
}

body.rcg-giclee-archive ul.products li.product .stock-overlay,
body.rcg-giclee-archive ul.products li.product .out-of-stock-overlay,
body.rcg-giclee-archive ul.products li.product .sold-overlay,
body.rcg-giclee-archive ul.products li.product .ast-shop-product-out-of-stock,
body.rcg-seasonal-sales-archive ul.products li.product .stock-overlay,
body.rcg-seasonal-sales-archive ul.products li.product .out-of-stock-overlay,
body.rcg-seasonal-sales-archive ul.products li.product .sold-overlay,
body.rcg-seasonal-sales-archive ul.products li.product .ast-shop-product-out-of-stock,
body.rcg-original-archive-context ul.products li.product .stock-overlay,
body.rcg-original-archive-context ul.products li.product .out-of-stock-overlay,
body.rcg-original-archive-context ul.products li.product .sold-overlay,
body.rcg-original-archive-context ul.products li.product .ast-shop-product-out-of-stock,
.rcg-giclee-virtual-archive ul.products li.product .stock-overlay,
.rcg-giclee-virtual-archive ul.products li.product .out-of-stock-overlay,
.rcg-giclee-virtual-archive ul.products li.product .sold-overlay,
.rcg-giclee-virtual-archive ul.products li.product .ast-shop-product-out-of-stock,
.rcg-seasonal-sales-virtual-archive ul.products li.product .stock-overlay,
.rcg-seasonal-sales-virtual-archive ul.products li.product .out-of-stock-overlay,
.rcg-seasonal-sales-virtual-archive ul.products li.product .sold-overlay,
.rcg-seasonal-sales-virtual-archive ul.products li.product .ast-shop-product-out-of-stock {
  display: none !important;
}

/* Seasonal Sales virtual archive */
.rcg-seasonal-sales-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px;
}

.rcg-seasonal-sales-nav__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid currentColor;
    border-radius: 999px;
    text-decoration: none;
    line-height: 1.2;
}

.rcg-seasonal-sales-empty {
    margin-top: 20px;
}

.rcg-seasonal-sales-nav__item.is-active {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rcg-seasonal-sales-copy,
.rcg-seasonal-sales-active-list {
    margin: 0 0 1.5rem;
}

.rcg-seasonal-sales-active-list {
    display: grid;
    gap: 1rem;
}

.rcg-seasonal-sales-active-list__item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
}

.rcg-seasonal-sales-active-list__item h2 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.rcg-seasonal-sales-active-list__item p:last-child,
.rcg-seasonal-sales-copy p:last-child {
    margin-bottom: 0;
}

/* RCG category navigation + archive pagination polish
============================================= */
.entry-content .rcg-category-nav,
#categories .rcg-category-nav,
.rcg-category-nav {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  grid-template-columns: none !important;
  gap: 10px !important;
  margin: 18px 0 28px !important;
}

.entry-content .rcg-category-nav__entry,
#categories .rcg-category-nav__entry,
.rcg-category-nav__entry {
  flex: 0 1 auto !important;
  min-width: 0 !important;
}

.entry-content .rcg-category-nav__entry .rcg-category-nav__item,
#categories .rcg-category-nav__entry .rcg-category-nav__item,
.rcg-category-nav__entry .rcg-category-nav__item {
  min-height: 46px !important;
  width: auto !important;
  padding: 9px 18px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(36, 50, 74, 0.18) !important;
  background: #fff !important;
  color: #24324a !important;
  box-shadow: none !important;
  font-size: clamp(14px, 1.15vw, 17px) !important;
  font-weight: 700 !important;
  letter-spacing: 0.045em !important;
  line-height: 1.15 !important;
  text-transform: uppercase !important;
  transform: none !important;
}

.entry-content .rcg-category-nav__entry .rcg-category-nav__item:hover,
.entry-content .rcg-category-nav__entry .rcg-category-nav__item:focus,
#categories .rcg-category-nav__entry .rcg-category-nav__item:hover,
#categories .rcg-category-nav__entry .rcg-category-nav__item:focus,
.rcg-category-nav__entry .rcg-category-nav__item:hover,
.rcg-category-nav__entry .rcg-category-nav__item:focus {
  border-color: #c74235 !important;
  background: #fff7f5 !important;
  color: #c74235 !important;
  box-shadow: 0 6px 16px rgba(36, 50, 74, 0.08) !important;
  transform: none !important;
}

.rcg-category-nav__dropdown {
  top: calc(100% + 8px) !important;
  left: 50% !important;
  right: auto !important;
  min-width: min(300px, calc(100vw - 32px)) !important;
  max-width: 340px !important;
  max-height: min(430px, 70vh) !important;
  overflow: auto !important;
  padding: 8px !important;
  border-radius: 14px !important;
  transform: translateX(-50%) !important;
}

.rcg-category-nav__dropdown-link {
  padding: 8px 10px !important;
  border-radius: 9px !important;
  font-size: 0.92rem !important;
  line-height: 1.25 !important;
}

.rcg-gallery-pagination,
.woocommerce nav.woocommerce-pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 30px auto 0 !important;
  text-align: center !important;
}

.woocommerce nav.woocommerce-pagination ul {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.woocommerce nav.woocommerce-pagination ul li {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  list-style: none !important;
}

.rcg-gallery-pagination .page-numbers,
.woocommerce nav.woocommerce-pagination ul li .page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 38px !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid rgba(36, 50, 74, 0.18) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #24324a !important;
  box-shadow: none !important;
  text-decoration: none !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease !important;
}

.rcg-gallery-pagination a.page-numbers:hover,
.rcg-gallery-pagination a.page-numbers:focus,
.woocommerce nav.woocommerce-pagination ul li a.page-numbers:hover,
.woocommerce nav.woocommerce-pagination ul li a.page-numbers:focus {
  border-color: #c74235 !important;
  background: #fff7f5 !important;
  color: #c74235 !important;
  box-shadow: 0 6px 16px rgba(36, 50, 74, 0.08) !important;
}

.rcg-gallery-pagination .page-numbers.current,
.woocommerce nav.woocommerce-pagination ul li .page-numbers.current {
  border-color: #c74235 !important;
  background: #c74235 !important;
  color: #fff !important;
}

.rcg-gallery-pagination .page-numbers.dots,
.woocommerce nav.woocommerce-pagination ul li .page-numbers.dots {
  min-width: auto !important;
  border-color: transparent !important;
  background: transparent !important;
  color: rgba(36, 50, 74, 0.5) !important;
  pointer-events: none !important;
}

@media (max-width: 900px) {
  .entry-content .rcg-category-nav,
  #categories .rcg-category-nav,
  .rcg-category-nav {
    justify-content: flex-start !important;
    gap: 8px !important;
  }

  .entry-content .rcg-category-nav__entry .rcg-category-nav__item,
  #categories .rcg-category-nav__entry .rcg-category-nav__item,
  .rcg-category-nav__entry .rcg-category-nav__item {
    min-height: 42px !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
  }

  .rcg-category-nav__dropdown {
    position: static !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin-top: 8px !important;
    transform: none !important;
  }

  .rcg-category-nav__entry--has-children {
    flex-basis: 100% !important;
  }
}

/* Archive filter UX redesign: compact search-first controls with expandable A-Z browsing.
============================================= */
.rcg-original-archive-filters {
  --rcg-filter-border: rgba(36, 50, 74, 0.1);
  --rcg-filter-shadow: 0 14px 34px rgba(36, 50, 74, 0.07);
  --rcg-filter-panel-bg: rgba(255, 255, 255, 0.94);
  max-width: 1120px;
  margin: 22px auto 36px;
  padding: 18px;
  border: 1px solid var(--rcg-filter-border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,249,251,0.96) 100%);
  box-shadow: var(--rcg-filter-shadow);
}

.rcg-original-archive-filters .rcg-original-filters-top,
.rcg-original-archive-filters .rcg-original-filters-bottom,
.rcg-original-archive-filters:is(.is-giclee-archive,.is-original-archive) .rcg-original-filters-bottom,
.rcg-original-archive-filters.no-status-filter .rcg-original-filters-top,
.rcg-original-archive-filters.is-original-medium-archive .rcg-original-filters-top,
.rcg-original-archive-filters.no-medium-filter .rcg-original-filters-bottom,
.rcg-original-archive-filters.is-original-medium-archive .rcg-original-filters-bottom {
  width: 100%;
  max-width: none !important;
  align-self: stretch !important;
}

.rcg-original-archive-filters.has-status-filter .rcg-original-filters-top {
  display: grid;
  grid-template-columns: minmax(260px, max-content) minmax(360px, 1fr);
  align-items: center;
  gap: 14px 22px;
}

.rcg-original-archive-filters.has-status-filter .rcg-original-filters-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 18px;
  margin-top: 14px;
}

.rcg-original-archive-filters.no-status-filter.no-medium-filter {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(220px, 330px);
  align-items: start;
  gap: 14px;
}

.rcg-original-archive-filters.no-status-filter.no-medium-filter .rcg-original-filters-top,
.rcg-original-archive-filters.no-status-filter.no-medium-filter .rcg-original-filters-bottom {
  display: block;
  margin: 0;
}

.rcg-original-archive-filters .rcg-original-search-form,
.rcg-original-archive-filters.is-giclee-archive .rcg-original-search-form,
.rcg-original-archive-filters.no-status-filter .rcg-original-search-form,
.rcg-original-archive-filters.is-original-medium-archive .rcg-original-search-form {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.rcg-original-archive-filters .rcg-original-search-form input[type="text"] {
  height: 46px;
  padding: 0 18px;
  border-width: 1px;
  border-radius: 14px;
  background: #fff;
  font-size: 1rem;
}

.rcg-original-archive-filters .rcg-original-search-form button {
  min-width: 132px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
}

.rcg-original-archive-filters .rcg-clear-search,
.rcg-original-archive-filters .rcg-clear-medium {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: rgba(199, 66, 53, 0.08);
  color: var(--rcg-accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.rcg-original-archive-filters .rcg-clear-search {
  grid-column: 1 / -1;
  justify-self: end;
  margin-top: -4px;
}

.rcg-original-status-filter {
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(36, 50, 74, 0.08);
  border-radius: 999px;
  background: rgba(36, 50, 74, 0.04);
}

.rcg-original-status-filter .rcg-filter-label {
  margin: 0 4px 0 8px;
  color: #24324a;
  font-size: 0.88rem;
}

.rcg-original-status-filter a {
  min-height: 34px;
  padding: 0.28rem 0.8rem;
  border-color: transparent;
  background: transparent;
}

.rcg-original-status-filter a.active {
  box-shadow: 0 8px 18px rgba(199, 66, 53, 0.18);
}

.rcg-original-medium-form {
  min-height: 46px;
  padding: 0;
  gap: 10px;
  flex-wrap: wrap;
}

.rcg-original-medium-form .rcg-filter-label {
  color: #24324a;
  font-size: 0.92rem;
}

.rcg-original-medium-form select {
  height: 44px;
  min-width: 240px;
  border-radius: 14px;
  border-color: rgba(36, 50, 74, 0.18);
}

.rcg-original-letter-control {
  width: min(100%, 330px);
  margin-left: auto;
}

.rcg-original-archive-filters.has-medium-filter .rcg-original-letter-control {
  width: min(100%, 380px);
}

.rcg-original-letter-disclosure {
  position: relative;
  width: 100%;
}

.rcg-original-letter-toggle {
  list-style: none;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0.25rem 0.55rem 0.25rem 1rem;
  border: 1px solid rgba(36, 50, 74, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #24324a;
  cursor: pointer;
  user-select: none;
  transition: var(--rcg-transition);
}

.rcg-original-letter-toggle::-webkit-details-marker {
  display: none;
}

.rcg-original-letter-toggle::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(199, 66, 53, 0.1);
  color: var(--rcg-accent);
  font-weight: 800;
  line-height: 1;
}

.rcg-original-letter-disclosure[open] .rcg-original-letter-toggle::after {
  content: "−";
}

.rcg-original-letter-toggle:hover,
.rcg-original-letter-toggle:focus {
  border-color: rgba(199, 66, 53, 0.45);
  box-shadow: 0 0 0 4px rgba(199, 66, 53, 0.08);
  outline: none;
}

.rcg-original-letter-toggle__main {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.rcg-original-letter-toggle__state {
  margin-left: auto;
  color: #687386;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.rcg-original-archive-filters.has-active-letter .rcg-original-letter-toggle {
  border-color: rgba(199, 66, 53, 0.36);
  background: #fff7f5;
}

.rcg-original-letter-panel {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(36, 50, 74, 0.1);
  border-radius: 18px;
  background: var(--rcg-filter-panel-bg);
  box-shadow: 0 16px 34px rgba(36, 50, 74, 0.1);
}

.rcg-original-letter-disclosure .rcg-original-letter-filter {
  width: 100%;
  max-width: none;
  margin: 0;
  justify-content: flex-start;
  gap: 8px;
}

.rcg-original-letter-disclosure .rcg-original-letter-filter .rcg-filter-label {
  display: block;
  flex: 1 0 100%;
  margin: 0 0 4px;
  color: #687386;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rcg-original-letter-disclosure .rcg-original-letter-filter a,
.rcg-original-letter-disclosure .rcg-original-letter-filter a:first-of-type,
.rcg-original-letter-disclosure .rcg-original-letter-filter a:not(:first-of-type) {
  min-width: 38px;
  height: 38px;
  margin: 0;
  padding: 0 0.62rem;
  border: 1px solid rgba(36, 50, 74, 0.1);
  border-radius: 12px;
  background: #fff;
  color: #5f6878;
  box-shadow: none;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
}

.rcg-original-letter-disclosure .rcg-original-letter-filter a:first-of-type::before {
  content: none;
}

.rcg-original-letter-disclosure .rcg-original-letter-filter a:hover,
.rcg-original-letter-disclosure .rcg-original-letter-filter a:focus {
  border-color: rgba(199, 66, 53, 0.38);
  background: #fff7f5;
  color: var(--rcg-accent);
}

.rcg-original-letter-disclosure .rcg-original-letter-filter a.active,
.rcg-original-letter-disclosure .rcg-original-letter-filter a:first-of-type.active,
.rcg-original-letter-disclosure .rcg-original-letter-filter a:not(:first-of-type).active {
  border-color: var(--rcg-accent);
  background: var(--rcg-accent);
  color: #fff;
}

@media (max-width: 980px) {
  .rcg-original-archive-filters,
  .rcg-original-archive-filters.has-status-filter .rcg-original-filters-top,
  .rcg-original-archive-filters.no-status-filter.no-medium-filter {
    display: block;
  }

  .rcg-original-archive-filters.has-status-filter .rcg-original-filters-bottom,
  .rcg-original-archive-filters .rcg-original-filters-bottom {
    display: block;
    margin-top: 14px;
  }

  .rcg-original-status-filter,
  .rcg-original-medium-form,
  .rcg-original-letter-control {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

  .rcg-original-archive-filters .rcg-original-search-form,
  .rcg-original-status-filter,
  .rcg-original-medium-form {
    margin-bottom: 12px;
  }
}

@media (max-width: 640px) {
  .rcg-original-archive-filters {
    padding: 14px;
    border-radius: 18px;
    margin: 18px auto 28px;
  }

  .rcg-original-archive-filters .rcg-original-search-form {
    grid-template-columns: 1fr;
  }

  .rcg-original-archive-filters .rcg-original-search-form button {
    width: 100%;
  }

  .rcg-original-status-filter {
    justify-content: flex-start;
    border-radius: 16px;
    padding: 8px;
  }

  .rcg-original-status-filter .rcg-filter-label {
    flex: 1 0 100%;
    margin: 0 0 2px;
  }

  .rcg-original-medium-form select {
    width: 100%;
    min-width: 0;
  }

  .rcg-original-letter-toggle {
    border-radius: 16px;
  }

  .rcg-original-letter-toggle__state {
    display: none;
  }
}

/* Mobile A-Z filter spacing refinement
============================================= */
@media (max-width: 640px) {
  .rcg-original-letter-panel {
    margin-top: 12px;
    padding: 16px;
  }

  .rcg-original-letter-disclosure .rcg-original-letter-filter,
  .rcg-original-letter-filter {
    gap: 10px 10px;
    row-gap: 12px;
  }

  .rcg-original-letter-disclosure .rcg-original-letter-filter .rcg-filter-label {
    margin-bottom: 8px;
  }

  .rcg-original-letter-disclosure .rcg-original-letter-filter a,
  .rcg-original-letter-disclosure .rcg-original-letter-filter a:first-of-type,
  .rcg-original-letter-disclosure .rcg-original-letter-filter a:not(:first-of-type) {
    min-width: 42px;
    height: 42px;
    padding-inline: 0.7rem;
  }
}

@media (max-width: 380px) {
  .rcg-original-letter-disclosure .rcg-original-letter-filter a,
  .rcg-original-letter-disclosure .rcg-original-letter-filter a:first-of-type,
  .rcg-original-letter-disclosure .rcg-original-letter-filter a:not(:first-of-type) {
    min-width: 39px;
    height: 39px;
  }
}

/* ORIGINALS MEDIUM EDUCATIONAL LIST
============================================= */
.rcg-originals-medium-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 10%, rgba(199, 66, 53, 0.14), transparent 32%),
    linear-gradient(135deg, #fffaf7 0%, #ffffff 55%, #f6eee8 100%);
}

.rcg-originals-medium-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(199, 66, 53, 0.22);
  border-radius: 999px;
  pointer-events: none;
}

.rcg-originals-medium-hero__actions,
.rcg-originals-medium-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rcg-originals-medium-hero__actions {
  position: relative;
  z-index: 1;
  margin-top: 20px;
}

.rcg-originals-medium-button,
.rcg-originals-medium-card__primary,
.rcg-originals-medium-card__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

button.rcg-originals-medium-card__secondary {
  cursor: pointer;
  font-family: inherit;
  appearance: none;
}

.rcg-originals-medium-button,
.rcg-originals-medium-card__primary {
  border: 1px solid #c74235;
  background: #c74235;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(199, 66, 53, 0.18);
}

.rcg-originals-medium-button--ghost,
.rcg-originals-medium-card__secondary {
  border: 1px solid rgba(199, 66, 53, 0.26);
  background: rgba(255, 255, 255, 0.72);
  color: #a9342a !important;
  box-shadow: none;
}

.rcg-originals-medium-button:hover,
.rcg-originals-medium-button:focus,
.rcg-originals-medium-card__primary:hover,
.rcg-originals-medium-card__primary:focus,
.rcg-originals-medium-card__secondary:hover,
.rcg-originals-medium-card__secondary:focus {
  transform: translateY(-1px);
  text-decoration: none !important;
}

.rcg-originals-medium-button:not(.rcg-originals-medium-button--ghost):hover,
.rcg-originals-medium-button:not(.rcg-originals-medium-button--ghost):focus,
.rcg-originals-medium-card__primary:hover,
.rcg-originals-medium-card__primary:focus {
  border-color: #a9342a;
  background: #a9342a;
  color: #fff !important;
}

.rcg-originals-medium-button--ghost:hover,
.rcg-originals-medium-button--ghost:focus,
.rcg-originals-medium-card__secondary:hover,
.rcg-originals-medium-card__secondary:focus {
  border-color: rgba(199, 66, 53, 0.42);
  background: #fff;
  color: #8f2d24 !important;
}

.rcg-originals-medium-list {
  --rcg-red: #c74235;
  --rcg-red-dark: #a9342a;
  --rcg-ink: #24324a;
  --rcg-muted: rgba(36, 50, 74, 0.72);
  --rcg-line: rgba(36, 50, 74, 0.12);
  --rcg-cream: #fffaf7;
  color: var(--rcg-ink);
}

.rcg-originals-medium-list__intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  margin: 24px 0 28px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(199, 66, 53, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 250, 247, 0.96), rgba(255, 255, 255, 0.94)),
    repeating-linear-gradient(135deg, rgba(199, 66, 53, 0.045) 0 1px, transparent 1px 12px);
}

.rcg-originals-medium-list__intro span {
  display: block;
  margin-bottom: 8px;
  color: var(--rcg-red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.rcg-originals-medium-list__intro strong {
  display: block;
  max-width: 420px;
  color: var(--rcg-ink);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
}

.rcg-originals-medium-list__intro p {
  max-width: 760px;
  margin: 0;
  color: var(--rcg-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.rcg-originals-medium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 24px;
  margin: 28px 0 20px;
}

.rcg-originals-medium-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid var(--rcg-line);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
  box-shadow: 0 16px 38px rgba(36, 50, 74, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rcg-originals-medium-card:hover,
.rcg-originals-medium-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(199, 66, 53, 0.24);
  box-shadow: 0 22px 48px rgba(36, 50, 74, 0.12);
}

.rcg-originals-medium-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(36, 50, 74, 0.04);
  text-decoration: none;
}

.rcg-originals-medium-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rcg-originals-medium-card:hover .rcg-originals-medium-card__image,
.rcg-originals-medium-card:focus-within .rcg-originals-medium-card__image {
  transform: scale(1.04);
}

.rcg-originals-medium-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 3vw, 26px);
}

.rcg-originals-medium-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--rcg-red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.rcg-originals-medium-card__title {
  margin: 0;
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  line-height: 1.08;
}

.rcg-originals-medium-card__title a {
  color: var(--rcg-ink);
  text-decoration: none !important;
}

.rcg-originals-medium-card__title a:hover,
.rcg-originals-medium-card__title a:focus {
  color: var(--rcg-red);
}

.rcg-originals-medium-card__description,
.rcg-originals-medium-card__note {
  margin: 0;
  color: var(--rcg-muted);
  line-height: 1.65;
}

/* v0.7.24: the collector-note callout was removed from the medium cards —
 * the same guidance lives in the medium guide modal ("What collectors should
 * notice"), which is where the tile and Learn more now send the reader. */

.rcg-originals-medium-card__footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
  padding-top: 4px;
}

.rcg-originals-medium-card__count {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(199, 66, 53, 0.08);
  color: var(--rcg-red-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

.rcg-originals-medium-card__count--empty {
  background: rgba(36, 50, 74, 0.07);
  color: rgba(36, 50, 74, 0.72);
}

.rcg-originals-medium-card__actions {
  align-items: center;
}

@media (max-width: 820px) {
  .rcg-originals-medium-list__intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 544px) {
  .rcg-originals-medium-grid {
    grid-template-columns: 1fr;
  }

  .rcg-originals-medium-card__actions,
  .rcg-originals-medium-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .rcg-originals-medium-button,
  .rcg-originals-medium-card__primary,
  .rcg-originals-medium-card__secondary {
    width: 100%;
  }
}

/* Originals medium archive: common media + complete A-Z index */
.rcg-originals-medium-section {
  margin: clamp(34px, 5vw, 60px) 0;
}

.rcg-originals-medium-section__head {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.rcg-originals-medium-section__head--split {
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(16px, 3vw, 36px);
}

.rcg-originals-medium-section__head span {
  display: block;
  margin-bottom: 8px;
  color: var(--rcg-red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.rcg-originals-medium-section__head h2 {
  margin: 0;
  color: var(--rcg-ink);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.rcg-originals-medium-section__head p {
  max-width: 780px;
  margin: 0;
  color: var(--rcg-muted);
  line-height: 1.7;
}

.rcg-originals-medium-grid--common {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.rcg-originals-medium-card--common {
  background:
    linear-gradient(180deg, rgba(255, 250, 247, 0.96) 0%, #ffffff 100%);
}

.rcg-originals-medium-alpha-list {
  display: grid;
  gap: 12px;
}

.rcg-originals-medium-alpha-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(14px, 3vw, 28px);
  align-items: center;
  padding: clamp(16px, 2.6vw, 24px);
  border: 1px solid var(--rcg-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(36, 50, 74, 0.055);
}

.rcg-originals-medium-alpha-item__main {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.rcg-originals-medium-alpha-item__thumb {
  display: block;
  overflow: hidden;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(36, 50, 74, 0.12);
  border-radius: 14px;
  background: rgba(36, 50, 74, 0.04);
  box-shadow: 0 8px 18px rgba(36, 50, 74, 0.08);
  text-decoration: none !important;
}

.rcg-originals-medium-alpha-item__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.rcg-originals-medium-alpha-item__thumb:hover img,
.rcg-originals-medium-alpha-item__thumb:focus img {
  transform: scale(1.06);
}

.rcg-originals-medium-alpha-item__letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(199, 66, 53, 0.09);
  color: var(--rcg-red-dark);
  font-weight: 900;
}

.rcg-originals-medium-alpha-item h3 {
  margin: 0 0 5px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.2;
}

.rcg-originals-medium-alpha-item h3 a {
  color: var(--rcg-ink);
  text-decoration: none !important;
}

.rcg-originals-medium-alpha-item h3 a:hover,
.rcg-originals-medium-alpha-item h3 a:focus {
  color: var(--rcg-red);
}

.rcg-originals-medium-alpha-item p {
  margin: 0;
  color: var(--rcg-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* v0.7.24: the row's actions stack into a small count chip over ONE aligned
 * link row, instead of three inline items wrapping arbitrarily inside the
 * two-column index rows. Link styling lives in the v0.7.10 layer below,
 * retargeted at the __links group. */
.rcg-originals-medium-alpha-item__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.rcg-originals-medium-alpha-item__links {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 14px;
}

.rcg-originals-medium-alpha-item__actions a:first-of-type:hover,
.rcg-originals-medium-alpha-item__actions a:first-of-type:focus {
  background: var(--rcg-red-dark);
  color: #fff !important;
}

.rcg-originals-medium-alpha-item__actions a:last-of-type,
.rcg-originals-medium-alpha-item__actions button {
  border: 1px solid rgba(199, 66, 53, 0.28);
  background: #fff;
  color: var(--rcg-red-dark) !important;
}

.rcg-originals-medium-alpha-item__actions a:last-of-type:hover,
.rcg-originals-medium-alpha-item__actions a:last-of-type:focus,
.rcg-originals-medium-alpha-item__actions button:hover,
.rcg-originals-medium-alpha-item__actions button:focus {
  border-color: rgba(199, 66, 53, 0.46);
  color: #84291f !important;
}

@media (max-width: 880px) {
  .rcg-originals-medium-section__head--split,
  .rcg-originals-medium-alpha-item {
    grid-template-columns: 1fr;
  }

  .rcg-originals-medium-alpha-item__actions {
    justify-content: flex-start;
    align-items: flex-start;
    min-width: 0;
  }
}

@media (max-width: 544px) {
  .rcg-originals-medium-alpha-item__main {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .rcg-originals-medium-alpha-item__thumb,
  .rcg-originals-medium-alpha-item__letter {
    width: 48px;
    height: 48px;
  }

  .rcg-originals-medium-alpha-item__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .rcg-originals-medium-alpha-item__actions span,
  .rcg-originals-medium-alpha-item__actions a,
  .rcg-originals-medium-alpha-item__actions button {
    width: 100%;
  }
}

/* v0.7.07: compact two-column A-Z medium index.
 *
 * The previous single-column stack rendered every medium as a heavy full-width
 * card, so a 20+ medium index scrolled forever and each row carried a large
 * thumb, two buttons and a shadow for what is fundamentally a directory. The
 * index is now a lighter two-column list: smaller thumbs, quieter borders, and
 * text-weight actions — the big visual treatment stays on the common-medium
 * cards above, which are the curated entry points. */
.rcg-originals-medium-alpha-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
  gap: 10px;
}

.rcg-originals-medium-alpha-item {
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(36, 50, 74, 0.09);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.rcg-originals-medium-alpha-item:hover,
.rcg-originals-medium-alpha-item:focus-within {
  border-color: rgba(199, 66, 53, 0.26);
  box-shadow: 0 10px 26px rgba(36, 50, 74, 0.07);
}

.rcg-originals-medium-alpha-item__main {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.rcg-originals-medium-alpha-item__thumb,
.rcg-originals-medium-alpha-item__letter {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(36, 50, 74, 0.08);
}

.rcg-originals-medium-alpha-item h3 {
  margin: 0 0 3px;
  font-size: clamp(1rem, 1.6vw, 1.16rem);
}

.rcg-originals-medium-alpha-item p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.88rem;
  line-height: 1.5;
}

.rcg-originals-medium-alpha-item__actions {
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.rcg-originals-medium-alpha-item__actions span {
  min-height: 0;
  padding: 0.12rem 0.6rem;
  font-size: 0.76rem;
}

.rcg-originals-medium-alpha-item__actions a,
.rcg-originals-medium-alpha-item__actions button {
  min-height: 0;
  padding: 0.22rem 0.5rem;
  font-size: 0.8rem;
  background: transparent !important;
  border: 0;
}

.rcg-originals-medium-alpha-item__actions a:first-of-type {
  color: var(--rcg-red-dark) !important;
}

.rcg-originals-medium-alpha-item__actions a:first-of-type:hover,
.rcg-originals-medium-alpha-item__actions a:first-of-type:focus {
  color: var(--rcg-red) !important;
  background: transparent !important;
}

.rcg-originals-medium-alpha-item__actions a:last-of-type,
.rcg-originals-medium-alpha-item__actions button {
  border: 0;
  background: transparent;
}

@media (max-width: 880px) {
  .rcg-originals-medium-alpha-item__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* v0.7.10: quieter card footers and inline index actions.
 *
 * The common-medium cards ended in a red pill + ghost pill pair under a lone
 * count pill; the pair wrapped unevenly between cards and read heavier than
 * everything above it. Both card and index actions are now single-line
 * text-weight links over a hairline divider — the same editorial action
 * language the /mediums/ discovery cards use — and the count is a small
 * neutral chip. Descriptions and collector notes clamp so card bottoms align. */
.rcg-originals-medium-card__body {
  gap: 10px;
}

.rcg-originals-medium-card__description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* (v0.7.24: collector-note clamp retired with the note itself.) */

.rcg-originals-medium-card__footer {
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(36, 50, 74, 0.08);
}

.rcg-originals-medium-card__count {
  min-height: 0;
  padding: 0.16rem 0.6rem;
  background: rgba(36, 50, 74, 0.055);
  color: rgba(36, 50, 74, 0.66);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rcg-originals-medium-card__count--empty {
  background: rgba(36, 50, 74, 0.055);
  color: rgba(36, 50, 74, 0.6);
}

.rcg-originals-medium-card .rcg-originals-medium-card__actions {
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 10px;
}

.rcg-originals-medium-card .rcg-originals-medium-card__primary,
.rcg-originals-medium-card .rcg-originals-medium-card__secondary {
  min-height: 0;
  padding: 0.12rem 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rcg-originals-medium-card .rcg-originals-medium-card__primary {
  color: var(--rcg-red-dark) !important;
}

.rcg-originals-medium-card .rcg-originals-medium-card__primary::after {
  content: "\2192";
  margin-left: 6px;
  display: inline-block;
  transition: transform 0.18s ease;
}

.rcg-originals-medium-card .rcg-originals-medium-card__primary:hover,
.rcg-originals-medium-card .rcg-originals-medium-card__primary:focus {
  border-color: transparent;
  background: transparent;
  color: var(--rcg-red) !important;
  transform: none;
}

.rcg-originals-medium-card .rcg-originals-medium-card__primary:hover::after,
.rcg-originals-medium-card .rcg-originals-medium-card__primary:focus::after {
  transform: translateX(3px);
}

.rcg-originals-medium-card .rcg-originals-medium-card__secondary {
  color: rgba(36, 50, 74, 0.62) !important;
  text-decoration: underline;
  text-decoration-color: rgba(36, 50, 74, 0.24);
  text-underline-offset: 4px;
}

.rcg-originals-medium-card .rcg-originals-medium-card__secondary:hover,
.rcg-originals-medium-card .rcg-originals-medium-card__secondary:focus {
  border-color: transparent;
  background: transparent;
  color: var(--rcg-red-dark) !important;
  text-decoration-color: rgba(199, 66, 53, 0.5);
  transform: none;
}

@media (max-width: 544px) {
  .rcg-originals-medium-card .rcg-originals-medium-card__actions {
    flex-direction: row;
    align-items: center;
  }

  .rcg-originals-medium-card .rcg-originals-medium-card__primary,
  .rcg-originals-medium-card .rcg-originals-medium-card__secondary {
    width: auto;
  }
}

/* v0.7.10 (v0.7.24 revision): A-Z row actions — count chip above one aligned
 * link row. VIEW ARTWORK keeps its arrow and LEARN MORE its underline, but
 * both now sit in the __links group so the pair never wraps apart from the
 * count. */
.rcg-originals-medium-alpha-item__actions {
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
}

.rcg-originals-medium-alpha-item__actions span {
  width: auto;
  min-height: 0;
  padding: 0.14rem 0.55rem;
  background: rgba(36, 50, 74, 0.055);
  color: rgba(36, 50, 74, 0.66);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rcg-originals-medium-alpha-item__links a,
.rcg-originals-medium-alpha-item__links button {
  width: auto;
  padding: 0.1rem 0;
  white-space: nowrap;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.rcg-originals-medium-alpha-item__links a {
  color: var(--rcg-red-dark) !important;
}

.rcg-originals-medium-alpha-item__links a::after {
  content: "\2192";
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.18s ease;
}

.rcg-originals-medium-alpha-item__links a:hover::after,
.rcg-originals-medium-alpha-item__links a:focus::after {
  transform: translateX(3px);
}

.rcg-originals-medium-alpha-item__links button {
  border: 0;
  background: transparent;
  color: rgba(36, 50, 74, 0.62) !important;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  text-decoration: underline;
  text-decoration-color: rgba(36, 50, 74, 0.24);
  text-underline-offset: 4px;
}

.rcg-originals-medium-alpha-item__links button:hover,
.rcg-originals-medium-alpha-item__links button:focus {
  color: var(--rcg-red-dark) !important;
  text-decoration-color: rgba(199, 66, 53, 0.5);
}


/* Originals medium in-page guide modal */
.rcg-originals-medium-modal[hidden] {
  display: none !important;
}

.rcg-originals-medium-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 42px);
}

.rcg-originals-medium-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(4px);
}

.rcg-originals-medium-modal__dialog {
  position: relative;
  z-index: 1;
  overflow: auto;
  width: min(1080px, 100%);
  max-height: min(86vh, 900px);
  border: 1px solid rgba(199, 66, 53, 0.2);
  border-radius: 24px;
  background: #fffaf7;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.32);
  outline: none;
}

.rcg-originals-medium-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  left: auto;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  border: 1px solid rgba(36, 50, 74, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rcg-ink, #24324a);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(36, 50, 74, 0.12);
}

.rcg-originals-medium-modal__close:hover,
.rcg-originals-medium-modal__close:focus {
  background: #fff;
  color: #c74235;
}

body.rcg-originals-medium-modal-open {
  overflow: hidden;
}

.rcg-originals-medium-modal .body-wrapper,
.rcg-originals-medium-modal .rcg-medium-page-intro {
  padding: 0;
}

.rcg-originals-medium-modal .rcg-medium-page-intro--detail {
  padding: clamp(42px, 5vw, 62px) clamp(26px, 5vw, 46px) clamp(26px, 5vw, 46px);
  background:
    linear-gradient(135deg, rgba(255, 250, 247, 0.98), #ffffff 58%, rgba(246, 238, 232, 0.72));
}

.rcg-originals-medium-modal .rcg-medium-container {
  max-width: none;
  margin: 0;
}

.rcg-originals-medium-modal .rcg-medium-detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
}

.rcg-originals-medium-modal .rcg-medium-eyebrow {
  margin: 0 0 8px;
  color: #c74235;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.rcg-originals-medium-modal h2,
.rcg-originals-medium-modal h3 {
  color: var(--rcg-ink, #24324a);
}

.rcg-originals-medium-modal .rcg-medium-page-intro h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.02;
}

.rcg-originals-medium-modal .rcg-medium-page-intro p {
  max-width: 700px;
  margin: 0;
  color: rgba(36, 50, 74, 0.76);
  font-size: 1.03rem;
  line-height: 1.7;
}

.rcg-originals-medium-modal .rcg-medium-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.rcg-originals-medium-modal .rcg-medium-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 1rem;
  border: 1px solid #c74235;
  border-radius: 999px;
  background: #c74235;
  color: #fff !important;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(199, 66, 53, 0.16);
}

.rcg-originals-medium-modal .rcg-medium-button--ghost,
.rcg-originals-medium-modal .rcg-medium-button--quiet {
  border-color: rgba(199, 66, 53, 0.26);
  background: rgba(255, 255, 255, 0.78);
  color: #a9342a !important;
  box-shadow: none;
}

.rcg-originals-medium-modal .rcg-medium-button--quiet {
  border-color: rgba(36, 50, 74, 0.14);
  color: rgba(36, 50, 74, 0.78) !important;
}

.rcg-originals-medium-modal .rcg-medium-detail-image {
  overflow: hidden;
  margin: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(36, 50, 74, 0.12);
}

.rcg-originals-medium-modal .rcg-medium-detail-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.rcg-originals-medium-modal .rcg-medium-detail-image figcaption {
  padding: 10px 14px;
  color: rgba(36, 50, 74, 0.68);
  font-size: 0.86rem;
  font-weight: 700;
}

.rcg-originals-medium-modal .rcg-medium-section {
  padding: clamp(24px, 4vw, 42px);
  background: #fff;
}

.rcg-originals-medium-modal .rcg-medium-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: clamp(20px, 4vw, 38px);
  align-items: start;
}

.rcg-originals-medium-modal .rcg-medium-detail-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.18;
}

.rcg-originals-medium-modal .rcg-medium-detail-copy p,
.rcg-originals-medium-modal .rcg-medium-aside p {
  margin: 0 0 18px;
  color: rgba(36, 50, 74, 0.74);
  line-height: 1.7;
}

.rcg-originals-medium-modal .rcg-medium-aside {
  padding: 18px;
  border: 1px solid rgba(199, 66, 53, 0.18);
  border-radius: 18px;
  background: rgba(255, 250, 247, 0.88);
}

.rcg-originals-medium-modal .rcg-medium-aside h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.rcg-originals-medium-modal .rcg-medium-aside a {
  color: #a9342a;
  font-weight: 800;
  text-decoration: none !important;
}

@media (max-width: 760px) {
  .rcg-originals-medium-modal {
    align-items: stretch;
    padding: 10px;
  }

  .rcg-originals-medium-modal__dialog {
    max-height: calc(100vh - 20px);
    border-radius: 18px;
  }

  .rcg-originals-medium-modal .rcg-medium-detail-hero-grid,
  .rcg-originals-medium-modal .rcg-medium-detail-layout {
    grid-template-columns: 1fr;
  }

  .rcg-originals-medium-modal .rcg-medium-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .rcg-originals-medium-modal .rcg-medium-button {
    width: 100%;
  }
}

/* Originals archive heading normalization
============================================= */
.rcg-original-archive-context .woocommerce-products-header,
.rcg-nudes-archive-page .woocommerce-products-header,
.rcg-originals-medium-hero {
  position: relative;
  margin: 10px 0 24px;
  padding: 17px 0 15px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
}

.rcg-originals-medium-hero::after {
  content: none !important;
  display: none !important;
}

.rcg-original-root-archive .woocommerce-products-header::before,
.rcg-original-medium-archive .woocommerce-products-header::before,
.rcg-originals-nav__eyebrow {
  display: block;
  margin: 0 0 12px;
  color: #7a879c;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.rcg-original-root-archive .woocommerce-products-header::before {
  content: "Original Artwork";
}

.rcg-original-medium-archive .woocommerce-products-header::before {
  content: "Original Medium Gallery";
}

.rcg-original-archive-context .woocommerce-products-header .page-title,
.rcg-nudes-archive-page .woocommerce-products-header .page-title,
.rcg-originals-medium-hero .page-title {
  margin: 0;
  color: #24324a;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
}

.rcg-original-archive-context .woocommerce-products-header .term-description,
.rcg-original-archive-context .woocommerce-products-header .archive-description,
.rcg-original-archive-context .woocommerce-products-header p,
.rcg-originals-medium-hero .term-description,
.rcg-originals-medium-hero .archive-description,
.rcg-originals-medium-hero p {
  max-width: 760px;
  margin-top: 14px;
  color: #586579;
  font-size: 1.02rem;
  line-height: 1.7;
}

.rcg-original-archive-context .woocommerce-products-header .term-description p:last-child,
.rcg-original-archive-context .woocommerce-products-header .archive-description p:last-child,
.rcg-originals-medium-hero .term-description p:last-child,
.rcg-originals-medium-hero .archive-description p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .rcg-original-archive-context .woocommerce-products-header,
  .rcg-nudes-archive-page .woocommerce-products-header,
  .rcg-originals-medium-hero {
    margin-bottom: 22px;
    padding: 12px 0 11px;
    border-radius: 0 !important;
  }
}


.rcg-originals-virtual-archive .woocommerce-products-header.rcg-originals-medium-hero::before {
  content: none !important;
  display: none !important;
}

/* Modern artwork archive cards
============================================= */
.rcg-gallery-grid ul.products,
body.rcg-original-archive-context.woocommerce ul.products,
body.rcg-giclee-archive.woocommerce ul.products,
body.rcg-seasonal-sales-archive.woocommerce ul.products,
.rcg-giclee-virtual-archive ul.products,
.rcg-seasonal-sales-virtual-archive ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(18px, 2.4vw, 34px) !important;
  align-items: stretch;
  margin: 28px 0 0 !important;
  padding: 0 !important;
}

.rcg-gallery-grid ul.products::before,
.rcg-gallery-grid ul.products::after,
body.rcg-original-archive-context.woocommerce ul.products::before,
body.rcg-original-archive-context.woocommerce ul.products::after,
body.rcg-giclee-archive.woocommerce ul.products::before,
body.rcg-giclee-archive.woocommerce ul.products::after,
body.rcg-seasonal-sales-archive.woocommerce ul.products::before,
body.rcg-seasonal-sales-archive.woocommerce ul.products::after,
.rcg-giclee-virtual-archive ul.products::before,
.rcg-giclee-virtual-archive ul.products::after,
.rcg-seasonal-sales-virtual-archive ul.products::before,
.rcg-seasonal-sales-virtual-archive ul.products::after {
  content: none !important;
  display: none !important;
}

.rcg-gallery-grid ul.products li.product,
body.rcg-original-archive-context.woocommerce ul.products li.product,
body.rcg-giclee-archive.woocommerce ul.products li.product,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product,
.rcg-giclee-virtual-archive ul.products li.product,
.rcg-seasonal-sales-virtual-archive ul.products li.product {
  position: relative;
  float: none !important;
  display: block;
  width: auto !important;
  min-width: 0;
  min-height: clamp(310px, 33vw, 430px);
  margin: 0 !important;
  overflow: hidden;
  border-radius: 24px;
  background: #151b27;
  box-shadow: 0 22px 48px rgba(36, 50, 74, 0.13);
  isolation: isolate;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

@media (min-width: 900px) {
  .rcg-gallery-grid ul.products li.product:nth-child(9n+1),
  body.rcg-original-archive-context.woocommerce ul.products li.product:nth-child(9n+1) {
    grid-column: span 2;
    min-height: clamp(360px, 38vw, 520px);
  }
}

.rcg-gallery-grid ul.products li.product:hover,
.rcg-gallery-grid ul.products li.product:focus-within,
body.rcg-original-archive-context.woocommerce ul.products li.product:hover,
body.rcg-original-archive-context.woocommerce ul.products li.product:focus-within,
body.rcg-giclee-archive.woocommerce ul.products li.product:hover,
body.rcg-giclee-archive.woocommerce ul.products li.product:focus-within,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product:hover,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product:focus-within,
.rcg-giclee-virtual-archive ul.products li.product:hover,
.rcg-giclee-virtual-archive ul.products li.product:focus-within,
.rcg-seasonal-sales-virtual-archive ul.products li.product:hover,
.rcg-seasonal-sales-virtual-archive ul.products li.product:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 30px 70px rgba(36, 50, 74, 0.2);
}

.rcg-gallery-grid ul.products li.product .astra-shop-thumbnail-wrap,
body.rcg-original-archive-context.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
body.rcg-giclee-archive.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
.rcg-giclee-virtual-archive ul.products li.product .astra-shop-thumbnail-wrap,
.rcg-seasonal-sales-virtual-archive ul.products li.product .astra-shop-thumbnail-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  margin: 0 !important;
  overflow: hidden;
}

.rcg-gallery-grid ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
body.rcg-original-archive-context.woocommerce ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
body.rcg-giclee-archive.woocommerce ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
.rcg-giclee-virtual-archive ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
.rcg-seasonal-sales-virtual-archive ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link {
  display: block;
  width: 100%;
  height: 100%;
}

.rcg-gallery-grid ul.products li.product img,
body.rcg-original-archive-context.woocommerce ul.products li.product img,
body.rcg-giclee-archive.woocommerce ul.products li.product img,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product img,
.rcg-giclee-virtual-archive ul.products li.product img,
.rcg-seasonal-sales-virtual-archive ul.products li.product img {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: cover;
  transform: scale(1.015);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.rcg-gallery-grid ul.products li.product:hover img,
.rcg-gallery-grid ul.products li.product:focus-within img,
body.rcg-original-archive-context.woocommerce ul.products li.product:hover img,
body.rcg-original-archive-context.woocommerce ul.products li.product:focus-within img,
body.rcg-giclee-archive.woocommerce ul.products li.product:hover img,
body.rcg-giclee-archive.woocommerce ul.products li.product:focus-within img,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product:hover img,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product:focus-within img,
.rcg-giclee-virtual-archive ul.products li.product:hover img,
.rcg-giclee-virtual-archive ul.products li.product:focus-within img,
.rcg-seasonal-sales-virtual-archive ul.products li.product:hover img,
.rcg-seasonal-sales-virtual-archive ul.products li.product:focus-within img {
  transform: scale(1.075);
  filter: saturate(1.08) contrast(1.02);
}

.rcg-gallery-grid ul.products li.product::after,
body.rcg-original-archive-context.woocommerce ul.products li.product::after,
body.rcg-giclee-archive.woocommerce ul.products li.product::after,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product::after,
.rcg-giclee-virtual-archive ul.products li.product::after,
.rcg-seasonal-sales-virtual-archive ul.products li.product::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13, 18, 28, 0.08) 0%, rgba(13, 18, 28, 0.18) 44%, rgba(13, 18, 28, 0.9) 100%),
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.28), transparent 28%);
  opacity: 0.96;
  transition: opacity 0.24s ease;
}

.rcg-gallery-grid ul.products li.product:hover::after,
.rcg-gallery-grid ul.products li.product:focus-within::after,
body.rcg-original-archive-context.woocommerce ul.products li.product:hover::after,
body.rcg-original-archive-context.woocommerce ul.products li.product:focus-within::after,
body.rcg-giclee-archive.woocommerce ul.products li.product:hover::after,
body.rcg-giclee-archive.woocommerce ul.products li.product:focus-within::after,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product:hover::after,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product:focus-within::after,
.rcg-giclee-virtual-archive ul.products li.product:hover::after,
.rcg-giclee-virtual-archive ul.products li.product:focus-within::after,
.rcg-seasonal-sales-virtual-archive ul.products li.product:hover::after,
.rcg-seasonal-sales-virtual-archive ul.products li.product:focus-within::after {
  opacity: 1;
}

.rcg-gallery-grid ul.products li.product .astra-shop-summary-wrap,
body.rcg-original-archive-context.woocommerce ul.products li.product .astra-shop-summary-wrap,
body.rcg-giclee-archive.woocommerce ul.products li.product .astra-shop-summary-wrap,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .astra-shop-summary-wrap,
.rcg-giclee-virtual-archive ul.products li.product .astra-shop-summary-wrap,
.rcg-seasonal-sales-virtual-archive ul.products li.product .astra-shop-summary-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 42%;
  padding: clamp(18px, 2vw, 26px);
  color: #fff;
  text-align: left;
  pointer-events: auto;
}

.rcg-gallery-grid ul.products li.product .ast-woo-product-category,
body.rcg-original-archive-context.woocommerce ul.products li.product .ast-woo-product-category,
body.rcg-giclee-archive.woocommerce ul.products li.product .ast-woo-product-category,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .ast-woo-product-category,
.rcg-giclee-virtual-archive ul.products li.product .ast-woo-product-category,
.rcg-seasonal-sales-virtual-archive ul.products li.product .ast-woo-product-category {
  display: inline-flex;
  width: auto;
  margin: 0 0 2px !important;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.rcg-gallery-grid ul.products li.product .ast-loop-product__link,
body.rcg-original-archive-context.woocommerce ul.products li.product .ast-loop-product__link,
body.rcg-giclee-archive.woocommerce ul.products li.product .ast-loop-product__link,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .ast-loop-product__link,
.rcg-giclee-virtual-archive ul.products li.product .ast-loop-product__link,
.rcg-seasonal-sales-virtual-archive ul.products li.product .ast-loop-product__link {
  color: #fff !important;
  text-decoration: none !important;
}

.rcg-gallery-grid ul.products li.product .woocommerce-loop-product__title,
body.rcg-original-archive-context.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.rcg-giclee-archive.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .woocommerce-loop-product__title,
.rcg-giclee-virtual-archive ul.products li.product .woocommerce-loop-product__title,
.rcg-seasonal-sales-virtual-archive ul.products li.product .woocommerce-loop-product__title {
  max-width: 92%;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  font-size: clamp(1.15rem, 1.65vw, 1.55rem) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

.rcg-gallery-grid ul.products li.product .ncm-cfp-loop-helper,
body.rcg-original-archive-context.woocommerce ul.products li.product .ncm-cfp-loop-helper,
body.rcg-giclee-archive.woocommerce ul.products li.product .ncm-cfp-loop-helper,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .ncm-cfp-loop-helper,
.rcg-giclee-virtual-archive ul.products li.product .ncm-cfp-loop-helper,
.rcg-seasonal-sales-virtual-archive ul.products li.product .ncm-cfp-loop-helper {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

.rcg-gallery-grid ul.products li.product .ncm-cfp-see-artwork,
body.rcg-original-archive-context.woocommerce ul.products li.product .ncm-cfp-see-artwork,
body.rcg-giclee-archive.woocommerce ul.products li.product .ncm-cfp-see-artwork,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .ncm-cfp-see-artwork,
.rcg-giclee-virtual-archive ul.products li.product .ncm-cfp-see-artwork,
.rcg-seasonal-sales-virtual-archive ul.products li.product .ncm-cfp-see-artwork {
  align-self: flex-start;
  margin-top: 10px !important;
  padding: 11px 16px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #24324a !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  line-height: 1 !important;
  text-decoration: none !important;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2) !important;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.rcg-gallery-grid ul.products li.product:hover .ncm-cfp-see-artwork,
.rcg-gallery-grid ul.products li.product:focus-within .ncm-cfp-see-artwork,
body.rcg-original-archive-context.woocommerce ul.products li.product:hover .ncm-cfp-see-artwork,
body.rcg-original-archive-context.woocommerce ul.products li.product:focus-within .ncm-cfp-see-artwork,
body.rcg-giclee-archive.woocommerce ul.products li.product:hover .ncm-cfp-see-artwork,
body.rcg-giclee-archive.woocommerce ul.products li.product:focus-within .ncm-cfp-see-artwork,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product:hover .ncm-cfp-see-artwork,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product:focus-within .ncm-cfp-see-artwork,
.rcg-giclee-virtual-archive ul.products li.product:hover .ncm-cfp-see-artwork,
.rcg-giclee-virtual-archive ul.products li.product:focus-within .ncm-cfp-see-artwork,
.rcg-seasonal-sales-virtual-archive ul.products li.product:hover .ncm-cfp-see-artwork,
.rcg-seasonal-sales-virtual-archive ul.products li.product:focus-within .ncm-cfp-see-artwork {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.rcg-gallery-grid ul.products li.product .ncm-cfp-see-artwork:hover,
.rcg-gallery-grid ul.products li.product .ncm-cfp-see-artwork:focus,
body.rcg-original-archive-context.woocommerce ul.products li.product .ncm-cfp-see-artwork:hover,
body.rcg-original-archive-context.woocommerce ul.products li.product .ncm-cfp-see-artwork:focus,
body.rcg-giclee-archive.woocommerce ul.products li.product .ncm-cfp-see-artwork:hover,
body.rcg-giclee-archive.woocommerce ul.products li.product .ncm-cfp-see-artwork:focus,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .ncm-cfp-see-artwork:hover,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .ncm-cfp-see-artwork:focus,
.rcg-giclee-virtual-archive ul.products li.product .ncm-cfp-see-artwork:hover,
.rcg-giclee-virtual-archive ul.products li.product .ncm-cfp-see-artwork:focus,
.rcg-seasonal-sales-virtual-archive ul.products li.product .ncm-cfp-see-artwork:hover,
.rcg-seasonal-sales-virtual-archive ul.products li.product .ncm-cfp-see-artwork:focus {
  background: #c74235 !important;
  color: #fff !important;
}

.rcg-gallery-grid ul.products li.product .ast-on-card-button,
body.rcg-original-archive-context.woocommerce ul.products li.product .ast-on-card-button,
body.rcg-giclee-archive.woocommerce ul.products li.product .ast-on-card-button,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .ast-on-card-button,
.rcg-giclee-virtual-archive ul.products li.product .ast-on-card-button,
.rcg-seasonal-sales-virtual-archive ul.products li.product .ast-on-card-button {
  display: none !important;
}

/* The "Original Sold" overlay stamp is styled above (bottom-of-image pill);
   the old static pill treatment is retired. */

/* Retired: .art-status no longer uses a .dot; the "Original Sold" pill is
   styled consistently for all sold originals by the base .art-status rule. */

@media (hover: none), (max-width: 760px) {
  .rcg-gallery-grid ul.products,
  body.rcg-original-archive-context.woocommerce ul.products,
  body.rcg-giclee-archive.woocommerce ul.products,
  body.rcg-seasonal-sales-archive.woocommerce ul.products,
  .rcg-giclee-virtual-archive ul.products,
  .rcg-seasonal-sales-virtual-archive ul.products {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .rcg-gallery-grid ul.products li.product,
  body.rcg-original-archive-context.woocommerce ul.products li.product,
  body.rcg-giclee-archive.woocommerce ul.products li.product,
  body.rcg-seasonal-sales-archive.woocommerce ul.products li.product,
  .rcg-giclee-virtual-archive ul.products li.product,
  .rcg-seasonal-sales-virtual-archive ul.products li.product {
    min-height: 320px;
  }

  .rcg-gallery-grid ul.products li.product .ncm-cfp-see-artwork,
  body.rcg-original-archive-context.woocommerce ul.products li.product .ncm-cfp-see-artwork,
  body.rcg-giclee-archive.woocommerce ul.products li.product .ncm-cfp-see-artwork,
  body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .ncm-cfp-see-artwork,
  .rcg-giclee-virtual-archive ul.products li.product .ncm-cfp-see-artwork,
  .rcg-seasonal-sales-virtual-archive ul.products li.product .ncm-cfp-see-artwork {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

/* Artwork archive cards: gallery-safe full-artwork refinement
============================================= */
.rcg-gallery-grid ul.products,
body.rcg-original-archive-context.woocommerce ul.products,
body.rcg-giclee-archive.woocommerce ul.products,
body.rcg-seasonal-sales-archive.woocommerce ul.products,
.rcg-giclee-virtual-archive ul.products,
.rcg-seasonal-sales-virtual-archive ul.products {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
  gap: clamp(22px, 2.4vw, 36px) !important;
  align-items: start;
}

.rcg-gallery-grid ul.products li.product,
body.rcg-original-archive-context.woocommerce ul.products li.product,
body.rcg-giclee-archive.woocommerce ul.products li.product,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product,
.rcg-giclee-virtual-archive ul.products li.product,
.rcg-seasonal-sales-virtual-archive ul.products li.product {
  display: flex !important;
  flex-direction: column;
  min-height: 0 !important;
  overflow: visible !important;
  padding: clamp(10px, 1vw, 14px) !important;
  border: 1px solid rgba(36, 50, 74, 0.1);
  border-radius: 22px !important;
  background: #ffffff !important;
  box-shadow: 0 18px 42px rgba(36, 50, 74, 0.1) !important;
}

@media (min-width: 900px) {
  .rcg-gallery-grid ul.products li.product:nth-child(9n+1),
  body.rcg-original-archive-context.woocommerce ul.products li.product:nth-child(9n+1) {
    grid-column: auto !important;
    min-height: 0 !important;
  }
}

.rcg-gallery-grid ul.products li.product:hover,
.rcg-gallery-grid ul.products li.product:focus-within,
body.rcg-original-archive-context.woocommerce ul.products li.product:hover,
body.rcg-original-archive-context.woocommerce ul.products li.product:focus-within,
body.rcg-giclee-archive.woocommerce ul.products li.product:hover,
body.rcg-giclee-archive.woocommerce ul.products li.product:focus-within,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product:hover,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product:focus-within,
.rcg-giclee-virtual-archive ul.products li.product:hover,
.rcg-giclee-virtual-archive ul.products li.product:focus-within,
.rcg-seasonal-sales-virtual-archive ul.products li.product:hover,
.rcg-seasonal-sales-virtual-archive ul.products li.product:focus-within {
  transform: translateY(-4px) !important;
  box-shadow: 0 26px 64px rgba(36, 50, 74, 0.16) !important;
}

.rcg-gallery-grid ul.products li.product::after,
body.rcg-original-archive-context.woocommerce ul.products li.product::after,
body.rcg-giclee-archive.woocommerce ul.products li.product::after,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product::after,
.rcg-giclee-virtual-archive ul.products li.product::after,
.rcg-seasonal-sales-virtual-archive ul.products li.product::after {
  content: none !important;
  display: none !important;
}

.rcg-gallery-grid ul.products li.product .astra-shop-thumbnail-wrap,
body.rcg-original-archive-context.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
body.rcg-giclee-archive.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
.rcg-giclee-virtual-archive ul.products li.product .astra-shop-thumbnail-wrap,
.rcg-seasonal-sales-virtual-archive ul.products li.product .astra-shop-thumbnail-wrap {
  position: relative !important;
  inset: auto !important;
  z-index: 1 !important;
  display: block !important;
  width: 100% !important;
  aspect-ratio: 1 / 1;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 25px !important;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.94), rgba(247, 242, 234, 0.82) 58%, rgba(237, 229, 217, 0.72) 100%);
}

.rcg-gallery-grid ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
body.rcg-original-archive-context.woocommerce ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
body.rcg-giclee-archive.woocommerce ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
.rcg-giclee-virtual-archive ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
.rcg-seasonal-sales-virtual-archive ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 100% !important;
  padding: clamp(8px, 1vw, 12px);
}

.rcg-gallery-grid ul.products li.product img,
body.rcg-original-archive-context.woocommerce ul.products li.product img,
body.rcg-giclee-archive.woocommerce ul.products li.product img,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product img,
.rcg-giclee-virtual-archive ul.products li.product img,
.rcg-seasonal-sales-virtual-archive ul.products li.product img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  transform: none !important;
  filter: none !important;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.rcg-gallery-grid ul.products li.product:hover img,
.rcg-gallery-grid ul.products li.product:focus-within img,
body.rcg-original-archive-context.woocommerce ul.products li.product:hover img,
body.rcg-original-archive-context.woocommerce ul.products li.product:focus-within img,
body.rcg-giclee-archive.woocommerce ul.products li.product:hover img,
body.rcg-giclee-archive.woocommerce ul.products li.product:focus-within img,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product:hover img,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product:focus-within img,
.rcg-giclee-virtual-archive ul.products li.product:hover img,
.rcg-giclee-virtual-archive ul.products li.product:focus-within img,
.rcg-seasonal-sales-virtual-archive ul.products li.product:hover img,
.rcg-seasonal-sales-virtual-archive ul.products li.product:focus-within img {
  transform: scale(1.018) !important;
  filter: saturate(1.03) contrast(1.01) !important;
}

.rcg-gallery-grid ul.products li.product .astra-shop-summary-wrap,
body.rcg-original-archive-context.woocommerce ul.products li.product .astra-shop-summary-wrap,
body.rcg-giclee-archive.woocommerce ul.products li.product .astra-shop-summary-wrap,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .astra-shop-summary-wrap,
.rcg-giclee-virtual-archive ul.products li.product .astra-shop-summary-wrap,
.rcg-seasonal-sales-virtual-archive ul.products li.product .astra-shop-summary-wrap {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-height: 0 !important;
  width: 100%;
  padding: 14px 3px 2px !important;
  color: #24324a !important;
  text-align: left;
}

.rcg-gallery-grid ul.products li.product .ast-woo-product-category,
body.rcg-original-archive-context.woocommerce ul.products li.product .ast-woo-product-category,
body.rcg-giclee-archive.woocommerce ul.products li.product .ast-woo-product-category,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .ast-woo-product-category,
.rcg-giclee-virtual-archive ul.products li.product .ast-woo-product-category,
.rcg-seasonal-sales-virtual-archive ul.products li.product .ast-woo-product-category {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #c74235 !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
  backdrop-filter: none !important;
}

.rcg-gallery-grid ul.products li.product .ast-loop-product__link,
body.rcg-original-archive-context.woocommerce ul.products li.product .ast-loop-product__link,
body.rcg-giclee-archive.woocommerce ul.products li.product .ast-loop-product__link,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .ast-loop-product__link,
.rcg-giclee-virtual-archive ul.products li.product .ast-loop-product__link,
.rcg-seasonal-sales-virtual-archive ul.products li.product .ast-loop-product__link {
  color: #24324a !important;
}

.rcg-gallery-grid ul.products li.product .woocommerce-loop-product__title,
body.rcg-original-archive-context.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.rcg-giclee-archive.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .woocommerce-loop-product__title,
.rcg-giclee-virtual-archive ul.products li.product .woocommerce-loop-product__title,
.rcg-seasonal-sales-virtual-archive ul.products li.product .woocommerce-loop-product__title {
  max-width: 100% !important;
  margin: 0 !important;
  color: #24324a !important;
  font-family: var(--rcg-medium-heading-font, "Libre Baskerville", Georgia, serif) !important;
  font-size: clamp(1.04rem, 1.2vw, 1.28rem) !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
  text-shadow: none !important;
}

.rcg-gallery-grid ul.products li.product .ncm-cfp-loop-helper,
body.rcg-original-archive-context.woocommerce ul.products li.product .ncm-cfp-loop-helper,
body.rcg-giclee-archive.woocommerce ul.products li.product .ncm-cfp-loop-helper,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .ncm-cfp-loop-helper,
.rcg-giclee-virtual-archive ul.products li.product .ncm-cfp-loop-helper,
.rcg-seasonal-sales-virtual-archive ul.products li.product .ncm-cfp-loop-helper {
  color: #586579 !important;
}

.rcg-gallery-grid ul.products li.product .ncm-cfp-see-artwork,
body.rcg-original-archive-context.woocommerce ul.products li.product .ncm-cfp-see-artwork,
body.rcg-giclee-archive.woocommerce ul.products li.product .ncm-cfp-see-artwork,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .ncm-cfp-see-artwork,
.rcg-giclee-virtual-archive ul.products li.product .ncm-cfp-see-artwork,
.rcg-seasonal-sales-virtual-archive ul.products li.product .ncm-cfp-see-artwork {
  margin-top: 4px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #c74235 !important;
  font-size: 0.78rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.1em;
  line-height: 1.4 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 5px !important;
  text-transform: uppercase;
  box-shadow: none !important;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2px);
}

.rcg-gallery-grid ul.products li.product:hover .ncm-cfp-see-artwork,
.rcg-gallery-grid ul.products li.product:focus-within .ncm-cfp-see-artwork,
body.rcg-original-archive-context.woocommerce ul.products li.product:hover .ncm-cfp-see-artwork,
body.rcg-original-archive-context.woocommerce ul.products li.product:focus-within .ncm-cfp-see-artwork,
body.rcg-giclee-archive.woocommerce ul.products li.product:hover .ncm-cfp-see-artwork,
body.rcg-giclee-archive.woocommerce ul.products li.product:focus-within .ncm-cfp-see-artwork,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product:hover .ncm-cfp-see-artwork,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product:focus-within .ncm-cfp-see-artwork,
.rcg-giclee-virtual-archive ul.products li.product:hover .ncm-cfp-see-artwork,
.rcg-giclee-virtual-archive ul.products li.product:focus-within .ncm-cfp-see-artwork,
.rcg-seasonal-sales-virtual-archive ul.products li.product:hover .ncm-cfp-see-artwork,
.rcg-seasonal-sales-virtual-archive ul.products li.product:focus-within .ncm-cfp-see-artwork {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.rcg-gallery-grid ul.products li.product .ncm-cfp-see-artwork:hover,
.rcg-gallery-grid ul.products li.product .ncm-cfp-see-artwork:focus,
body.rcg-original-archive-context.woocommerce ul.products li.product .ncm-cfp-see-artwork:hover,
body.rcg-original-archive-context.woocommerce ul.products li.product .ncm-cfp-see-artwork:focus,
body.rcg-giclee-archive.woocommerce ul.products li.product .ncm-cfp-see-artwork:hover,
body.rcg-giclee-archive.woocommerce ul.products li.product .ncm-cfp-see-artwork:focus,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .ncm-cfp-see-artwork:hover,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .ncm-cfp-see-artwork:focus,
.rcg-giclee-virtual-archive ul.products li.product .ncm-cfp-see-artwork:hover,
.rcg-giclee-virtual-archive ul.products li.product .ncm-cfp-see-artwork:focus,
.rcg-seasonal-sales-virtual-archive ul.products li.product .ncm-cfp-see-artwork:hover,
.rcg-seasonal-sales-virtual-archive ul.products li.product .ncm-cfp-see-artwork:focus {
  background: transparent !important;
  color: #9f3027 !important;
}

/* Retired: the "Original Sold" pill is now styled consistently for all sold
   originals by the base .art-status rule above (bottom-center), regardless of
   giclée availability. The per-context .rcg-has-art-status overrides below are
   kept only where they do not conflict with the base pill. */

@media (hover: none), (max-width: 760px) {
  .rcg-gallery-grid ul.products,
  body.rcg-original-archive-context.woocommerce ul.products,
  body.rcg-giclee-archive.woocommerce ul.products,
  body.rcg-seasonal-sales-archive.woocommerce ul.products,
  .rcg-giclee-virtual-archive ul.products,
  .rcg-seasonal-sales-virtual-archive ul.products {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
  }

  .rcg-gallery-grid ul.products li.product,
  body.rcg-original-archive-context.woocommerce ul.products li.product,
  body.rcg-giclee-archive.woocommerce ul.products li.product,
  body.rcg-seasonal-sales-archive.woocommerce ul.products li.product,
  .rcg-giclee-virtual-archive ul.products li.product,
  .rcg-seasonal-sales-virtual-archive ul.products li.product {
    min-height: 0 !important;
  }

  .rcg-gallery-grid ul.products li.product .ncm-cfp-see-artwork,
  body.rcg-original-archive-context.woocommerce ul.products li.product .ncm-cfp-see-artwork,
  body.rcg-giclee-archive.woocommerce ul.products li.product .ncm-cfp-see-artwork,
  body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .ncm-cfp-see-artwork,
  .rcg-giclee-virtual-archive ul.products li.product .ncm-cfp-see-artwork,
  .rcg-seasonal-sales-virtual-archive ul.products li.product .ncm-cfp-see-artwork {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}


/* Medium modal: keep the detail background continuous behind the close control. */
.rcg-originals-medium-modal__dialog {
  background: #fffaf7;
}

.rcg-originals-medium-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  left: auto;
  margin: 0;
}

.rcg-originals-medium-modal .rcg-medium-page-intro--detail {
  padding-top: clamp(42px, 5vw, 62px);
}

/* Artwork archive cards: simplify the gallery presentation and remove nested formal card framing. */
.rcg-gallery-grid ul.products,
body.rcg-original-archive-context.woocommerce ul.products,
body.rcg-giclee-archive.woocommerce ul.products,
body.rcg-seasonal-sales-archive.woocommerce ul.products,
.rcg-giclee-virtual-archive ul.products,
.rcg-seasonal-sales-virtual-archive ul.products {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: clamp(24px, 3vw, 42px) !important;
}

.rcg-gallery-grid ul.products li.product,
body.rcg-original-archive-context.woocommerce ul.products li.product,
body.rcg-giclee-archive.woocommerce ul.products li.product,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product,
.rcg-giclee-virtual-archive ul.products li.product,
.rcg-seasonal-sales-virtual-archive ul.products li.product {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: transform 0.22s ease;
}

.rcg-gallery-grid ul.products li.product:hover,
.rcg-gallery-grid ul.products li.product:focus-within,
body.rcg-original-archive-context.woocommerce ul.products li.product:hover,
body.rcg-original-archive-context.woocommerce ul.products li.product:focus-within,
body.rcg-giclee-archive.woocommerce ul.products li.product:hover,
body.rcg-giclee-archive.woocommerce ul.products li.product:focus-within,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product:hover,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product:focus-within,
.rcg-giclee-virtual-archive ul.products li.product:hover,
.rcg-giclee-virtual-archive ul.products li.product:focus-within,
.rcg-seasonal-sales-virtual-archive ul.products li.product:hover,
.rcg-seasonal-sales-virtual-archive ul.products li.product:focus-within {
  transform: translateY(-3px) !important;
  box-shadow: none !important;
}

.rcg-gallery-grid ul.products li.product .astra-shop-thumbnail-wrap,
body.rcg-original-archive-context.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
body.rcg-giclee-archive.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
.rcg-giclee-virtual-archive ul.products li.product .astra-shop-thumbnail-wrap,
.rcg-seasonal-sales-virtual-archive ul.products li.product .astra-shop-thumbnail-wrap {
  aspect-ratio: 1 / 1 !important;
  border: 1px solid rgba(36, 50, 74, 0.08) !important;
  border-radius: 25px !important;
  background: #fbf8f2 !important;
  box-shadow: 0 10px 28px rgba(36, 50, 74, 0.07) !important;
}

.rcg-gallery-grid ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
body.rcg-original-archive-context.woocommerce ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
body.rcg-giclee-archive.woocommerce ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
.rcg-giclee-virtual-archive ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
.rcg-seasonal-sales-virtual-archive ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link {
  padding: clamp(4px, 0.8vw, 8px) !important;
}

.rcg-gallery-grid ul.products li.product .astra-shop-summary-wrap,
body.rcg-original-archive-context.woocommerce ul.products li.product .astra-shop-summary-wrap,
body.rcg-giclee-archive.woocommerce ul.products li.product .astra-shop-summary-wrap,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .astra-shop-summary-wrap,
.rcg-giclee-virtual-archive ul.products li.product .astra-shop-summary-wrap,
.rcg-seasonal-sales-virtual-archive ul.products li.product .astra-shop-summary-wrap {
  padding: 12px 0 0 !important;
}

.rcg-gallery-grid ul.products li.product .woocommerce-loop-product__title,
body.rcg-original-archive-context.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.rcg-giclee-archive.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .woocommerce-loop-product__title,
.rcg-giclee-virtual-archive ul.products li.product .woocommerce-loop-product__title,
.rcg-seasonal-sales-virtual-archive ul.products li.product .woocommerce-loop-product__title {
  font-size: clamp(1rem, 1.15vw, 1.22rem) !important;
}

@media (hover: none), (max-width: 760px) {
  .rcg-gallery-grid ul.products li.product .ncm-cfp-see-artwork,
  body.rcg-original-archive-context.woocommerce ul.products li.product .ncm-cfp-see-artwork,
  body.rcg-giclee-archive.woocommerce ul.products li.product .ncm-cfp-see-artwork,
  body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .ncm-cfp-see-artwork,
  .rcg-giclee-virtual-archive ul.products li.product .ncm-cfp-see-artwork,
  .rcg-seasonal-sales-virtual-archive ul.products li.product .ncm-cfp-see-artwork {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

/* v0.2.27: category and archive filter dropdown refinements
============================================= */
.rcg-category-nav__entry--has-children {
  padding-bottom: 16px !important;
  margin-bottom: -16px !important;
}

.rcg-category-nav__entry--has-children .rcg-category-nav__dropdown {
  display: grid !important;
  gap: 8px !important;
  top: calc(100% - 2px) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.14s ease, visibility 0s linear 0.22s !important;
}

.rcg-category-nav__entry--has-children:hover .rcg-category-nav__dropdown,
.rcg-category-nav__entry--has-children:focus-within .rcg-category-nav__dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition-delay: 0s !important;
}

.rcg-category-nav__dropdown::before {
  top: -24px !important;
  height: 24px !important;
}

.rcg-original-letter-disclosure {
  position: relative;
  z-index: 12;
}

.rcg-original-letter-disclosure[open] {
  z-index: 90;
}

.rcg-original-letter-panel {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
  width: min(520px, calc(100vw - 32px)) !important;
  max-height: min(430px, 68vh) !important;
  overflow: auto !important;
  margin-top: 0 !important;
  z-index: 95 !important;
}

.rcg-original-letter-panel::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

@media (max-width: 900px) {
  .rcg-category-nav__entry--has-children {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .rcg-category-nav__entry--has-children .rcg-category-nav__dropdown {
    top: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .rcg-original-letter-panel {
    left: 0 !important;
    right: auto !important;
    width: min(100%, calc(100vw - 32px)) !important;
    max-height: min(420px, 64vh) !important;
  }
}

/* Single product breadcrumbs: pin the trail to the archive-page breadcrumb anchor. */
.single-product .summary.entry-summary > nav.woocommerce-breadcrumb,
.single-product .summary.entry-summary > .woocommerce-breadcrumb {
  display: none !important;
}

.single-product .ast-woocommerce-container > nav.woocommerce-breadcrumb,
.single-product .ast-woocommerce-container > .woocommerce-breadcrumb.rcg-single-product-breadcrumb {
  display: block !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 clamp(28px, 3vw, 44px) !important;
  padding: 0 !important;
}

@media (min-width: 768px) {
  body.single-product .site .site-content #primary {
    /* Match archive pages by normalizing the single-product primary container
       top margin instead of pulling the breadcrumb upward with a negative
       offset. Archive pages use #primary margin: 4em 0, while Astra/single
       product styling can add a deeper 100px top margin. */
    margin-top: 4em !important;
  }
}


/* Single product gallery visibility guard: WooCommerce initializes galleries at
   opacity 0 and flips them to 1 with JS. Keep the base gallery visible without
   forcing WooCommerce zoom overlay images to display at rest. */
.single-product div.product .woocommerce-product-gallery {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Single product related products: match the gallery-safe archive card rhythm. */
.single-product .related.products {
  margin-top: clamp(42px, 5vw, 76px);
}

.single-product .related.products > h2,
.single-product .related.products .related-title {
  margin-bottom: clamp(22px, 2vw, 34px) !important;
  color: #24324a !important;
  font-family: var(--rcg-medium-heading-font, "Libre Baskerville", Georgia, serif) !important;
  font-size: clamp(1.8rem, 3vw, 2.65rem) !important;
  font-weight: 700 !important;
  line-height: 1.14 !important;
}

.single-product .related.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
  gap: clamp(22px, 2.4vw, 36px) !important;
  align-items: stretch;
}

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

/* Cards rest borderless so uneven title lengths never read as ragged boxes;
   the bordered card materializes on hover/focus. The 1px transparent border
   and preserved padding/radius keep the reveal from shifting layout. */
.single-product .related.products ul.products li.product {
  display: flex !important;
  flex-direction: column;
  float: none !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  padding: clamp(10px, 1vw, 14px) !important;
  border: 1px solid transparent;
  border-radius: 22px !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background-color 0.28s ease;
}

.single-product .related.products ul.products li.product:hover,
.single-product .related.products ul.products li.product:focus-within {
  transform: translateY(-4px) !important;
  border-color: rgba(36, 50, 74, 0.1);
  background: #ffffff !important;
  box-shadow: 0 22px 48px rgba(36, 50, 74, 0.14) !important;
}

.single-product .related.products ul.products li.product .astra-shop-thumbnail-wrap {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  aspect-ratio: 1 / 1;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 17px !important;
  background: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
}

.single-product .related.products ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
}

.single-product .related.products ul.products li.product img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  transform: none !important;
  filter: none !important;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.single-product .related.products ul.products li.product:hover img,
.single-product .related.products ul.products li.product:focus-within img {
  transform: scale(1.018) !important;
  filter: saturate(1.03) contrast(1.01) !important;
}

.single-product .related.products ul.products li.product .astra-shop-summary-wrap {
  position: relative !important;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  width: 100%;
  min-height: 0 !important;
  padding: 14px 3px 2px !important;
  color: #24324a !important;
  text-align: left;
}

.single-product .related.products ul.products li.product .ast-woo-product-category {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #c74235 !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.single-product .related.products ul.products li.product .woocommerce-loop-product__title {
  max-width: 100% !important;
  margin: 0 !important;
  color: #24324a !important;
  font-family: var(--rcg-medium-heading-font, "Libre Baskerville", Georgia, serif) !important;
  font-size: clamp(1.04rem, 1.2vw, 1.28rem) !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
}

.single-product .related.products ul.products li.product .ncm-cfp-see-artwork,
.single-product .related.products ul.products li.product .astra-shop-summary-wrap > a.button {
  margin-top: 4px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #c74235 !important;
  font-size: 0.78rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.1em;
  line-height: 1.4 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 5px !important;
  text-transform: uppercase;
  box-shadow: none !important;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2px);
  transition: opacity 0.22s ease, transform 0.22s ease, color 0.22s ease;
}

.single-product .related.products ul.products li.product:hover .ncm-cfp-see-artwork,
.single-product .related.products ul.products li.product:focus-within .ncm-cfp-see-artwork,
.single-product .related.products ul.products li.product:hover .astra-shop-summary-wrap > a.button,
.single-product .related.products ul.products li.product:focus-within .astra-shop-summary-wrap > a.button {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.single-product .related.products ul.products li.product .ncm-cfp-see-artwork:hover,
.single-product .related.products ul.products li.product .ncm-cfp-see-artwork:focus,
.single-product .related.products ul.products li.product .astra-shop-summary-wrap > a.button:hover,
.single-product .related.products ul.products li.product .astra-shop-summary-wrap > a.button:focus {
  background: transparent !important;
  color: #9f3027 !important;
}

.single-product .related.products ul.products li.product .ast-on-card-button {
  display: none !important;
}


.single-product .related.products ul.products li.product .ast-shop-product-out-of-stock,
.single-product .related.products ul.products li.product .out-of-stock,
.single-product .related.products ul.products li.product .out-of-stock-overlay,
.single-product .related.products ul.products li.product p.stock,
.single-product .related.products ul.products li.product .stock {
  display: none !important;
}

@media (hover: none), (max-width: 760px) {
  .single-product .related.products ul.products {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
  }

  .single-product .related.products ul.products li.product .ncm-cfp-see-artwork,
  .single-product .related.products ul.products li.product .astra-shop-summary-wrap > a.button {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

/* Art status overlay refinement: keep the positive giclee path over the artwork image. */
.rcg-gallery-grid ul.products li.product.rcg-has-art-status .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
body.rcg-original-archive-context.woocommerce ul.products li.product.rcg-has-art-status .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
body.rcg-giclee-archive.woocommerce ul.products li.product.rcg-has-art-status .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product.rcg-has-art-status .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
.rcg-giclee-virtual-archive ul.products li.product.rcg-has-art-status .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
.rcg-seasonal-sales-virtual-archive ul.products li.product.rcg-has-art-status .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
.single-product .related.products ul.products li.product.rcg-has-art-status .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link {
  position: relative !important;
}

/* v0.7.27 (v0.7.36 position revision): identical "Original Sold" pill
 * placement for every sold original. This anchor rule is what makes the pill's
 * edge offset reliable, and it is why the badge can sit on the bottom edge:
 * rcg-has-art-status is only added when a giclée recreation exists, so sold
 * originals WITHOUT one rendered the pill against a different positioned
 * ancestor (the card itself) — the pill floated off-image at the card bottom
 * while giclée-available neighbors sat over the artwork. v0.7.34 worked around
 * that by moving the pill to the top edge; the real fix is this rule, which
 * gives every rcg-hide-stock-overlay card (all sold originals) the thumbnail
 * link as its anchor. With the anchor consistent, v0.7.36 restored the
 * original bottom-of-image placement — it now lands inside the artwork for
 * every sold original, giclée or not. */
.rcg-gallery-grid ul.products li.product.rcg-hide-stock-overlay .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
.woocommerce ul.products li.product.rcg-hide-stock-overlay .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
.woocommerce-page ul.products li.product.rcg-hide-stock-overlay .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
.single-product .related.products ul.products li.product.rcg-hide-stock-overlay .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link {
  position: relative !important;
}

/* Retired: the per-context .rcg-has-art-status .art-status overrides are
   removed so the "Original Sold" pill renders identically for every sold
   original (with or without a giclée), via the base .art-status rule. */

/* Alphabet position hints for gallery pagination */
.rcg-gallery-pagination .page-numbers[data-rcg-alpha-hint] {
  position: relative !important;
}

.rcg-gallery-pagination .page-numbers[data-rcg-alpha-hint]::after {
  content: attr(data-rcg-alpha-hint);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 80;
  width: max-content;
  max-width: min(320px, 86vw);
  padding: 8px 11px;
  border-radius: 10px;
  background: #24324a;
  color: #fff;
  box-shadow: 0 12px 28px rgba(36, 50, 74, 0.18);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.rcg-gallery-pagination .page-numbers[data-rcg-alpha-hint]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  z-index: 81;
  width: 10px;
  height: 10px;
  background: #24324a;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px) rotate(45deg);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.rcg-gallery-pagination .page-numbers[data-rcg-alpha-hint]:hover::after,
.rcg-gallery-pagination .page-numbers[data-rcg-alpha-hint]:focus::after,
.rcg-gallery-pagination .page-numbers[data-rcg-alpha-hint]:hover::before,
.rcg-gallery-pagination .page-numbers[data-rcg-alpha-hint]:focus::before {
  opacity: 1;
  transform: translate(-50%, 0) rotate(0deg);
}

.rcg-gallery-pagination .page-numbers[data-rcg-alpha-hint]:hover::before,
.rcg-gallery-pagination .page-numbers[data-rcg-alpha-hint]:focus::before {
  transform: translate(-50%, 0) rotate(45deg);
}

/* Exact page jump control for large alphabetical gallery pagination. */
.rcg-gallery-pagination.rcg-gallery-pagination--scrubber {
  width: min(100%, 1180px) !important;
  margin: 40px auto 0 !important;
  display: grid !important;
  grid-template-columns: minmax(90px, 1fr) minmax(520px, 640px) minmax(90px, 1fr);
  grid-auto-flow: column;
  grid-auto-rows: auto;
  align-items: center !important;
  gap: clamp(12px, 1.7vw, 22px) !important;
  overflow: visible;
}

.rcg-gallery-pagination--scrubber .rcg-gallery-pagination__cluster {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.rcg-gallery-pagination--scrubber .rcg-gallery-pagination__cluster--start {
  grid-column: 1;
  grid-row: 1;
  justify-content: flex-end;
}

.rcg-gallery-pagination--scrubber .rcg-gallery-pagination__cluster--end {
  grid-column: 3;
  grid-row: 1;
  justify-content: flex-start;
}

.rcg-gallery-page-jump {
  --rcg-page-progress: 0%;
  grid-column: 2;
  grid-row: 1;
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 0;
}

.rcg-gallery-page-jump__form {
  display: grid;
  grid-template-columns: minmax(214px, 0.76fr) minmax(260px, 1.24fr);
  align-items: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  margin: 0;
  padding: 8px 10px 8px 18px;
  border: 1px solid rgba(36, 50, 74, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 28px rgba(36, 50, 74, 0.06);
  overflow: hidden;
}

.rcg-gallery-page-jump__summary {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  gap: 10px;
  white-space: nowrap;
  overflow: hidden;
}

.rcg-gallery-page-jump__direct-label {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  margin: 0;
  color: #24324a;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.rcg-gallery-page-jump__direct-label span:first-child {
  color: #24324a;
  font-weight: 900;
}

.rcg-gallery-page-jump__total {
  color: #7d8798;
  font-size: 0.78rem;
  font-weight: 850;
}

.rcg-gallery-page-jump__number {
  width: 50px !important;
  min-height: 32px;
  padding: 2px 4px !important;
  border: 1px solid rgba(36, 50, 74, 0.12) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #24324a !important;
  font-size: 0.9rem !important;
  font-weight: 900 !important;
  text-align: center;
  box-shadow: 0 3px 10px rgba(36, 50, 74, 0.05);
}

.rcg-gallery-page-jump__number:focus {
  border-color: rgba(199, 66, 53, 0.56) !important;
  box-shadow: 0 0 0 3px rgba(199, 66, 53, 0.12) !important;
  outline: none;
}

.rcg-gallery-page-jump__hint {
  flex: 1 1 auto;
  min-width: 0;
  max-width: clamp(112px, 14vw, 210px);
  margin: 0;
  overflow: hidden;
  color: #617089;
  font-size: clamp(0.78rem, 1.05vw, 0.9rem);
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rcg-gallery-page-jump__scrub,
.rcg-gallery-page-jump__range-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  padding: 0 0 0 2px;
  white-space: nowrap;
}

input[type="range"].rcg-gallery-page-jump__range,
.rcg-gallery-page-jump__range {
  width: 100%;
  min-width: 0;
  height: 24px;
  margin: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: ew-resize;
  accent-color: #c74235;
  appearance: none !important;
  -webkit-appearance: none !important;
}

input[type="range"].rcg-gallery-page-jump__range:focus,
.rcg-gallery-page-jump__range:focus {
  outline: none;
}

input[type="range"].rcg-gallery-page-jump__range::-webkit-slider-runnable-track,
.rcg-gallery-page-jump__range::-webkit-slider-runnable-track {
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(199, 66, 53, 0.74) 0%, rgba(199, 66, 53, 0.74) var(--rcg-page-progress), rgba(36, 50, 74, 0.13) var(--rcg-page-progress), rgba(36, 50, 74, 0.13) 100%);
  box-shadow: inset 0 1px 2px rgba(36, 50, 74, 0.08);
}

input[type="range"].rcg-gallery-page-jump__range::-webkit-slider-thumb,
.rcg-gallery-page-jump__range::-webkit-slider-thumb {
  width: 12px;
  height: 20px;
  margin-top: -6.5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #c74235;
  box-shadow: 0 5px 14px rgba(199, 66, 53, 0.22), 0 0 0 1px rgba(199, 66, 53, 0.24);
  appearance: none !important;
  -webkit-appearance: none !important;
}

input[type="range"].rcg-gallery-page-jump__range:focus::-webkit-slider-thumb,
.rcg-gallery-page-jump__range:focus::-webkit-slider-thumb {
  box-shadow: 0 5px 14px rgba(199, 66, 53, 0.22), 0 0 0 4px rgba(199, 66, 53, 0.13);
}

input[type="range"].rcg-gallery-page-jump__range::-moz-range-track,
.rcg-gallery-page-jump__range::-moz-range-track {
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(36, 50, 74, 0.13);
  box-shadow: inset 0 1px 2px rgba(36, 50, 74, 0.08);
}

input[type="range"].rcg-gallery-page-jump__range::-moz-range-progress,
.rcg-gallery-page-jump__range::-moz-range-progress {
  height: 7px;
  border-radius: 999px;
  background: rgba(199, 66, 53, 0.74);
}

input[type="range"].rcg-gallery-page-jump__range::-moz-range-thumb,
.rcg-gallery-page-jump__range::-moz-range-thumb {
  width: 12px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #c74235;
  box-shadow: 0 5px 14px rgba(199, 66, 53, 0.22), 0 0 0 1px rgba(199, 66, 53, 0.24);
}

input[type="range"].rcg-gallery-page-jump__range:focus::-moz-range-thumb,
.rcg-gallery-page-jump__range:focus::-moz-range-thumb {
  box-shadow: 0 5px 14px rgba(199, 66, 53, 0.22), 0 0 0 4px rgba(199, 66, 53, 0.13);
}

.rcg-gallery-page-jump__button,
.rcg-gallery-page-jump__go {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(199, 66, 53, 0.18);
  border-radius: 999px;
  background: #c74235;
  color: #fff;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 8px 16px rgba(199, 66, 53, 0.14);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.rcg-gallery-page-jump__button:hover,
.rcg-gallery-page-jump__button:focus,
.rcg-gallery-page-jump__go:hover,
.rcg-gallery-page-jump__go:focus {
  background: #a9342c;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(199, 66, 53, 0.18);
}

.rcg-gallery-page-jump.is-fetching-hint .rcg-gallery-page-jump__hint::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-left: 0.5em;
  border: 2px solid rgba(199, 66, 53, 0.18);
  border-top-color: #c74235;
  border-radius: 50%;
  vertical-align: -0.05em;
  animation: rcgPageHintSpin 0.7s linear infinite;
}

@keyframes rcgPageHintSpin {
  to { transform: rotate(360deg); }
}

.rcg-gallery-page-jump::after {
  content: attr(data-rcg-active-hint);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 8;
  width: max-content;
  max-width: min(520px, 84vw);
  padding: 8px 12px;
  border: 1px solid rgba(36, 50, 74, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 28px rgba(36, 50, 74, 0.14);
  color: #24324a;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.rcg-gallery-page-jump:hover::after,
.rcg-gallery-page-jump:focus-within::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .rcg-gallery-pagination.rcg-gallery-pagination--scrubber {
    grid-template-columns: 1fr;
    gap: 18px !important;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-pagination__cluster {
    justify-content: center;
    flex-wrap: wrap;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-pagination__cluster--start,
  .rcg-gallery-page-jump,
  .rcg-gallery-pagination--scrubber .rcg-gallery-pagination__cluster--end {
    grid-column: 1;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-pagination__cluster--start {
    grid-row: 2;
  }

  .rcg-gallery-page-jump {
    grid-row: 1;
    order: -1;
    width: 100%;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-pagination__cluster--end {
    grid-row: 3;
  }
}

@media (max-width: 720px) {
  .rcg-gallery-page-jump__form {
    grid-template-columns: 1fr;
    border-radius: 28px;
    padding: 12px 14px;
  }

  .rcg-gallery-page-jump__summary {
    justify-content: flex-start;
  }

  .rcg-gallery-page-jump__hint {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .rcg-gallery-page-jump__summary,
  .rcg-gallery-page-jump__scrub,
  .rcg-gallery-page-jump__range-wrap {
    grid-template-columns: 1fr;
    display: grid;
  }

  .rcg-gallery-page-jump__hint {
    white-space: nowrap;
  }

  .rcg-gallery-page-jump__button,
  .rcg-gallery-page-jump__go {
    justify-self: end;
  }
}

/* Consistent archive product columns: keep card sizing stable even for sparse result sets. */
.rcg-gallery-grid ul.products,
body.rcg-original-archive-context.woocommerce ul.products,
body.rcg-giclee-archive.woocommerce ul.products,
body.rcg-seasonal-sales-archive.woocommerce ul.products,
.rcg-giclee-virtual-archive ul.products,
.rcg-seasonal-sales-virtual-archive ul.products {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  justify-content: start !important;
}

.rcg-gallery-grid ul.products li.product,
body.rcg-original-archive-context.woocommerce ul.products li.product,
body.rcg-giclee-archive.woocommerce ul.products li.product,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product,
.rcg-giclee-virtual-archive ul.products li.product,
.rcg-seasonal-sales-virtual-archive ul.products li.product {
  width: 100% !important;
  max-width: none !important;
}

@media (max-width: 1180px) {
  .rcg-gallery-grid ul.products,
  body.rcg-original-archive-context.woocommerce ul.products,
  body.rcg-giclee-archive.woocommerce ul.products,
  body.rcg-seasonal-sales-archive.woocommerce ul.products,
  .rcg-giclee-virtual-archive ul.products,
  .rcg-seasonal-sales-virtual-archive ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .rcg-gallery-grid ul.products,
  body.rcg-original-archive-context.woocommerce ul.products,
  body.rcg-giclee-archive.woocommerce ul.products,
  body.rcg-seasonal-sales-archive.woocommerce ul.products,
  .rcg-giclee-virtual-archive ul.products,
  .rcg-seasonal-sales-virtual-archive ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .rcg-gallery-grid ul.products,
  body.rcg-original-archive-context.woocommerce ul.products,
  body.rcg-giclee-archive.woocommerce ul.products,
  body.rcg-seasonal-sales-archive.woocommerce ul.products,
  .rcg-giclee-virtual-archive ul.products,
  .rcg-seasonal-sales-virtual-archive ul.products {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}


/* Gallery archive thumbnail height reset
============================================= */
/*
 * The gallery shortcode can be placed inside the shared .rcg-shortcode-frame wrapper.
 * Featured Items previously used broad .rcg-shortcode-frame image rules with a large
 * min-height, which made normal gallery/archive thumbnails render as tall empty cards.
 * Keep generated gallery/product archive cards compact and predictable here.
 */
.rcg-gallery-shortcode .rcg-gallery-grid ul.products li.product .astra-shop-thumbnail-wrap,
.rcg-gallery-shortcode .woocommerce.rcg-gallery-grid ul.products li.product .astra-shop-thumbnail-wrap,
.rcg-refresh .rcg-shortcode-frame .rcg-gallery-shortcode .astra-shop-thumbnail-wrap {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(36, 50, 74, 0.08) !important;
  border-radius: 25px !important;
  background: #fbf8f2 !important;
  box-shadow: 0 10px 28px rgba(36, 50, 74, 0.07) !important;
}

.rcg-gallery-shortcode .rcg-gallery-grid ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
.rcg-gallery-shortcode .woocommerce.rcg-gallery-grid ul.products li.product .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link,
.rcg-refresh .rcg-shortcode-frame .rcg-gallery-shortcode .astra-shop-thumbnail-wrap > a.woocommerce-LoopProduct-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: clamp(4px, 0.8vw, 8px) !important;
  margin: 0 !important;
}

.rcg-gallery-shortcode .rcg-gallery-grid ul.products li.product .astra-shop-thumbnail-wrap img,
.rcg-gallery-shortcode .woocommerce.rcg-gallery-grid ul.products li.product .astra-shop-thumbnail-wrap img,
.rcg-refresh .rcg-shortcode-frame .rcg-gallery-shortcode .astra-shop-thumbnail-wrap img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}


/* v0.3.10: keep archive-loop View Artwork CTAs as compact text links, not large theme buttons. */
.rcg-gallery-grid ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > a.button.ncm-cfp-see-artwork,
.rcg-gallery-grid ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > a.button.ncm-cfp-view-artwork,
body.rcg-original-archive-context.woocommerce ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > a.button.ncm-cfp-see-artwork,
body.rcg-original-archive-context.woocommerce ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > a.button.ncm-cfp-view-artwork,
body.rcg-giclee-archive.woocommerce ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > a.button.ncm-cfp-see-artwork,
body.rcg-giclee-archive.woocommerce ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > a.button.ncm-cfp-view-artwork,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > a.button.ncm-cfp-see-artwork,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > a.button.ncm-cfp-view-artwork,
.rcg-giclee-virtual-archive ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > a.button.ncm-cfp-see-artwork,
.rcg-giclee-virtual-archive ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > a.button.ncm-cfp-view-artwork,
.rcg-seasonal-sales-virtual-archive ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > a.button.ncm-cfp-see-artwork,
.rcg-seasonal-sales-virtual-archive ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > a.button.ncm-cfp-view-artwork,
.woocommerce ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > a.button.ncm-cfp-see-artwork,
.woocommerce ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > a.button.ncm-cfp-view-artwork {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  max-width: max-content !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 4px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #c74235 !important;
  box-shadow: none !important;
  font-size: 0.78rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.1em !important;
  line-height: 1.35 !important;
  text-align: left !important;
  text-decoration: underline !important;
  text-decoration-color: currentColor !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 5px !important;
  text-transform: uppercase !important;
  white-space: normal !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-2px) !important;
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease !important;
}

.rcg-gallery-grid ul.products li.product:not(.rcg-featured-item):hover .astra-shop-summary-wrap > a.button.ncm-cfp-see-artwork,
.rcg-gallery-grid ul.products li.product:not(.rcg-featured-item):focus-within .astra-shop-summary-wrap > a.button.ncm-cfp-see-artwork,
.rcg-gallery-grid ul.products li.product:not(.rcg-featured-item):hover .astra-shop-summary-wrap > a.button.ncm-cfp-view-artwork,
.rcg-gallery-grid ul.products li.product:not(.rcg-featured-item):focus-within .astra-shop-summary-wrap > a.button.ncm-cfp-view-artwork,
body.rcg-original-archive-context.woocommerce ul.products li.product:not(.rcg-featured-item):hover .astra-shop-summary-wrap > a.button.ncm-cfp-see-artwork,
body.rcg-original-archive-context.woocommerce ul.products li.product:not(.rcg-featured-item):focus-within .astra-shop-summary-wrap > a.button.ncm-cfp-see-artwork,
body.rcg-original-archive-context.woocommerce ul.products li.product:not(.rcg-featured-item):hover .astra-shop-summary-wrap > a.button.ncm-cfp-view-artwork,
body.rcg-original-archive-context.woocommerce ul.products li.product:not(.rcg-featured-item):focus-within .astra-shop-summary-wrap > a.button.ncm-cfp-view-artwork,
body.rcg-giclee-archive.woocommerce ul.products li.product:not(.rcg-featured-item):hover .astra-shop-summary-wrap > a.button.ncm-cfp-see-artwork,
body.rcg-giclee-archive.woocommerce ul.products li.product:not(.rcg-featured-item):focus-within .astra-shop-summary-wrap > a.button.ncm-cfp-see-artwork,
body.rcg-giclee-archive.woocommerce ul.products li.product:not(.rcg-featured-item):hover .astra-shop-summary-wrap > a.button.ncm-cfp-view-artwork,
body.rcg-giclee-archive.woocommerce ul.products li.product:not(.rcg-featured-item):focus-within .astra-shop-summary-wrap > a.button.ncm-cfp-view-artwork,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product:not(.rcg-featured-item):hover .astra-shop-summary-wrap > a.button.ncm-cfp-see-artwork,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product:not(.rcg-featured-item):focus-within .astra-shop-summary-wrap > a.button.ncm-cfp-see-artwork,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product:not(.rcg-featured-item):hover .astra-shop-summary-wrap > a.button.ncm-cfp-view-artwork,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product:not(.rcg-featured-item):focus-within .astra-shop-summary-wrap > a.button.ncm-cfp-view-artwork,
.rcg-giclee-virtual-archive ul.products li.product:not(.rcg-featured-item):hover .astra-shop-summary-wrap > a.button.ncm-cfp-see-artwork,
.rcg-giclee-virtual-archive ul.products li.product:not(.rcg-featured-item):focus-within .astra-shop-summary-wrap > a.button.ncm-cfp-see-artwork,
.rcg-giclee-virtual-archive ul.products li.product:not(.rcg-featured-item):hover .astra-shop-summary-wrap > a.button.ncm-cfp-view-artwork,
.rcg-giclee-virtual-archive ul.products li.product:not(.rcg-featured-item):focus-within .astra-shop-summary-wrap > a.button.ncm-cfp-view-artwork,
.rcg-seasonal-sales-virtual-archive ul.products li.product:not(.rcg-featured-item):hover .astra-shop-summary-wrap > a.button.ncm-cfp-see-artwork,
.rcg-seasonal-sales-virtual-archive ul.products li.product:not(.rcg-featured-item):focus-within .astra-shop-summary-wrap > a.button.ncm-cfp-see-artwork,
.rcg-seasonal-sales-virtual-archive ul.products li.product:not(.rcg-featured-item):hover .astra-shop-summary-wrap > a.button.ncm-cfp-view-artwork,
.rcg-seasonal-sales-virtual-archive ul.products li.product:not(.rcg-featured-item):focus-within .astra-shop-summary-wrap > a.button.ncm-cfp-view-artwork,
.woocommerce ul.products li.product:not(.rcg-featured-item):hover .astra-shop-summary-wrap > a.button.ncm-cfp-see-artwork,
.woocommerce ul.products li.product:not(.rcg-featured-item):focus-within .astra-shop-summary-wrap > a.button.ncm-cfp-see-artwork,
.woocommerce ul.products li.product:not(.rcg-featured-item):hover .astra-shop-summary-wrap > a.button.ncm-cfp-view-artwork,
.woocommerce ul.products li.product:not(.rcg-featured-item):focus-within .astra-shop-summary-wrap > a.button.ncm-cfp-view-artwork {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.woocommerce ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > a.button.ncm-cfp-see-artwork:hover,
.woocommerce ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > a.button.ncm-cfp-see-artwork:focus,
.woocommerce ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > a.button.ncm-cfp-view-artwork:hover,
.woocommerce ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > a.button.ncm-cfp-view-artwork:focus {
  background: transparent !important;
  color: #9f3027 !important;
}

/* Sale Carousel auto-sale messaging for configurable Giclees. */
.rcg-giclee-sale-notice {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(199, 66, 53, 0.25);
  border-radius: 10px;
  background: rgba(199, 66, 53, 0.08);
  color: #333;
  line-height: 1.45;
}

.rcg-giclee-sale-notice strong {
  margin-right: 4px;
}

.rcg-giclee-price-value ins {
  text-decoration: none;
  font-weight: 800;
}

.rcg-giclee-price-value del {
  opacity: 0.72;
  font-weight: 600;
}

/* Unified RCG WooCommerce archive cards
=============================================
   Applies the same card/button language to native product archives such as
   Gift Collection subcategories, Original medium archives, and any archive
   that receives the shared pagination/filter treatment. */
body.rcg-commerce-archive-context.woocommerce {
  --rcg-archive-red: #c74235;
  --rcg-archive-red-hover: #b3362a;
  --rcg-archive-ink: #233044;
  --rcg-archive-muted: #7d8796;
  --rcg-archive-line: rgba(35,48,68,.12);
  --rcg-archive-soft: #f7f9f8;
  --rcg-archive-shadow: 0 18px 42px rgba(35,48,68,.075);
}

body.rcg-commerce-archive-context.woocommerce .woocommerce-products-header__title,
body.rcg-commerce-archive-context.woocommerce .page-title {
  color: var(--rcg-archive-ink);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  letter-spacing: -.04em;
  line-height: 1.05;
  margin: 0 0 clamp(22px, 4vw, 42px);
}

body.rcg-commerce-archive-context.woocommerce .woocommerce-result-count,
body.rcg-commerce-archive-context.woocommerce .woocommerce-ordering {
  color: var(--rcg-archive-muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  font-weight: 500;
}

body.rcg-commerce-archive-context.woocommerce .woocommerce-ordering select {
  border: 0;
  border-bottom: 1px solid transparent;
  background-color: transparent;
  color: var(--rcg-archive-muted);
  font: inherit;
  padding-right: 2rem;
}

body.rcg-commerce-archive-context.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 38px);
  margin-top: clamp(28px, 4vw, 50px);
}

body.rcg-commerce-archive-context.woocommerce ul.products::before,
body.rcg-commerce-archive-context.woocommerce ul.products::after {
  display: none !important;
}

body.rcg-commerce-archive-context.woocommerce ul.products li.product,
body.rcg-commerce-archive-context.woocommerce-page ul.products li.product {
  float: none !important;
  clear: none !important;
  width: auto !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 0 0 4px;
  box-shadow: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.rcg-commerce-archive-context.woocommerce ul.products li.product:hover,
body.rcg-commerce-archive-context.woocommerce ul.products li.product:focus-within {
  transform: translateY(-3px);
  border-color: var(--rcg-archive-line);
  box-shadow: var(--rcg-archive-shadow);
}

body.rcg-commerce-archive-context.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
body.rcg-commerce-archive-context.woocommerce-page ul.products li.product .astra-shop-thumbnail-wrap,
body.rcg-commerce-archive-context.woocommerce ul.products li.product a.woocommerce-LoopProduct-link:first-child,
body.rcg-commerce-archive-context.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link:first-child {
  display: block;
  overflow: hidden;
  border-radius: 25px !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.rcg-commerce-archive-context.woocommerce ul.products li.product img,
body.rcg-commerce-archive-context.woocommerce-page ul.products li.product img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: transparent !important;
  border-radius: 20px !important;
  box-shadow: none !important;
  transition: transform .22s ease, filter .22s ease;
}

body.rcg-commerce-archive-context.woocommerce ul.products li.product:hover img,
body.rcg-commerce-archive-context.woocommerce ul.products li.product:focus-within img {
  transform: scale(1.015);
  filter: saturate(1.02) contrast(1.01);
}

body.rcg-commerce-archive-context.woocommerce ul.products li.product .astra-shop-summary-wrap {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding-top: 16px;
}

body.rcg-commerce-archive-context.woocommerce ul.products li.product .ast-woo-product-category,
body.rcg-commerce-archive-context.woocommerce ul.products li.product .posted_in,
body.rcg-commerce-archive-context.woocommerce ul.products li.product .woocommerce-loop-category__title mark {
  color: var(--rcg-archive-muted);
  font-size: .83rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.rcg-commerce-archive-context.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.rcg-commerce-archive-context.woocommerce ul.products li.product .ast-loop-product__link,
body.rcg-commerce-archive-context.woocommerce ul.products li.product .woocommerce-loop-product__link {
  color: var(--rcg-archive-ink) !important;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.24;
  text-decoration: none !important;
}

body.rcg-commerce-archive-context.woocommerce ul.products li.product .price {
  color: var(--rcg-archive-ink);
  font-size: 1.02rem;
  font-weight: 800;
  margin-top: .65rem;
}

body.rcg-commerce-archive-context.woocommerce ul.products li.product a.button,
body.rcg-commerce-archive-context.woocommerce ul.products li.product .button,
body.rcg-commerce-archive-context.woocommerce ul.products li.product .added_to_cart,
body.rcg-commerce-archive-context.woocommerce a.button,
body.rcg-commerce-archive-context.woocommerce button.button,
body.rcg-commerce-archive-context.woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: auto;
  border: 1px solid var(--rcg-archive-red) !important;
  border-radius: 8px !important;
  background: var(--rcg-archive-red) !important;
  color: #fff !important;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(199,66,53,.16);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

body.rcg-commerce-archive-context.woocommerce ul.products li.product a.button:hover,
body.rcg-commerce-archive-context.woocommerce ul.products li.product a.button:focus,
body.rcg-commerce-archive-context.woocommerce a.button:hover,
body.rcg-commerce-archive-context.woocommerce a.button:focus,
body.rcg-commerce-archive-context.woocommerce button.button:hover,
body.rcg-commerce-archive-context.woocommerce button.button:focus,
body.rcg-commerce-archive-context.woocommerce input.button:hover,
body.rcg-commerce-archive-context.woocommerce input.button:focus {
  background: var(--rcg-archive-red-hover) !important;
  border-color: var(--rcg-archive-red-hover) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(179,54,42,.18);
}

body.rcg-commerce-archive-context.woocommerce ul.products li.product .ast-shop-product-out-of-stock,
body.rcg-commerce-archive-context.woocommerce ul.products li.product .out-of-stock {
  display: none !important;
}

@media (max-width: 1024px) {
  body.rcg-commerce-archive-context.woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.rcg-commerce-archive-context.woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
  }
}

@media (max-width: 480px) {
  body.rcg-commerce-archive-context.woocommerce ul.products {
    grid-template-columns: 1fr;
  }
}

/* v0.3.36: keep scrubber pagination on one horizontal row with a contained width.
   The scrubber replaces the pagination gap, so the page-number clusters should never
   jump above or below it at desktop/tablet widths. On very narrow screens the row
   may scroll horizontally instead of wrapping into multiple rows. */
.rcg-gallery-pagination.rcg-gallery-pagination--scrubber {
  width: clamp(900px, 78vw, 1500px) !important;
  max-width: calc(100% - clamp(52px, 10vw, 220px)) !important;
  box-sizing: border-box !important;
  margin-inline: auto !important;
  padding: 8px clamp(14px, 2vw, 28px) !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(10px, 1.4vw, 18px) !important;
  overflow: visible !important;
}

.rcg-gallery-pagination--scrubber .rcg-gallery-pagination__cluster,
.rcg-gallery-pagination--scrubber .rcg-gallery-pagination__cluster--start,
.rcg-gallery-pagination--scrubber .rcg-gallery-pagination__cluster--end {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(8px, 1vw, 12px) !important;
  min-width: max-content !important;
  max-width: none !important;
  grid-column: auto !important;
  grid-row: auto !important;
  white-space: nowrap !important;
}

.rcg-gallery-page-jump {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 520px !important;
  max-width: 980px !important;
  grid-column: auto !important;
  grid-row: auto !important;
  order: 0 !important;
}

.rcg-gallery-page-jump__form {
  display: grid !important;
  grid-template-columns: minmax(210px, 0.52fr) minmax(280px, 1.48fr) !important;
  align-items: center !important;
  min-height: 58px !important;
  border-radius: 999px !important;
}

.rcg-gallery-page-jump__hint {
  max-width: clamp(120px, 13vw, 220px) !important;
  min-width: 0 !important;
}

.rcg-gallery-page-jump__scrub,
.rcg-gallery-page-jump__range-wrap {
  display: grid !important;
  grid-template-columns: minmax(160px, 1fr) auto !important;
  align-items: center !important;
  min-width: 0 !important;
}

@media (max-width: 900px) {
  .rcg-gallery-pagination.rcg-gallery-pagination--scrubber {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding: 8px 12px 16px !important;
    -webkit-overflow-scrolling: touch;
  }

  .rcg-gallery-page-jump {
    flex: 0 0 620px !important;
    min-width: 620px !important;
    max-width: 620px !important;
  }
}

/* Mobile archive/product layout fixes - v0.3.57
============================================= */
@media (max-width: 900px) {
  .entry-content .rcg-category-nav,
  #categories .rcg-category-nav,
  .rcg-category-nav {
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 16px auto 24px !important;
    overflow: visible !important;
  }

  .entry-content .rcg-category-nav__entry,
  #categories .rcg-category-nav__entry,
  .rcg-category-nav__entry,
  .rcg-category-nav__entry--has-children {
    position: relative !important;
    flex: 0 1 auto !important;
    flex-basis: auto !important;
    width: auto !important;
    min-width: 0 !important;
  }

  .entry-content .rcg-category-nav__entry .rcg-category-nav__item,
  #categories .rcg-category-nav__entry .rcg-category-nav__item,
  .rcg-category-nav__entry .rcg-category-nav__item {
    min-height: 42px !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
    letter-spacing: 0.08em !important;
    white-space: nowrap !important;
  }

  .rcg-category-nav__dropdown,
  .entry-content .rcg-category-nav__dropdown,
  #categories .rcg-category-nav__dropdown {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 50% !important;
    right: auto !important;
    z-index: 60 !important;
    display: none !important;
    width: min(300px, calc(100vw - 32px)) !important;
    min-width: 0 !important;
    max-width: min(300px, calc(100vw - 32px)) !important;
    max-height: min(360px, 62vh) !important;
    margin-top: 0 !important;
    overflow: auto !important;
    transform: translateX(-50%) !important;
    box-shadow: 0 18px 38px rgba(36, 50, 74, 0.16) !important;
  }

  .rcg-category-nav__entry--has-children:hover .rcg-category-nav__dropdown,
  .rcg-category-nav__entry--has-children:focus-within .rcg-category-nav__dropdown {
    display: grid !important;
    gap: 8px !important;
  }
}

@media (max-width: 767px) {
  #ast-scroll-top,
  .ast-scroll-top-icon.ast-scroll-to-top-right,
  .ast-scroll-to-top-right {
    position: fixed !important;
    top: auto !important;
    right: max(16px, env(safe-area-inset-right)) !important;
    bottom: calc(18px + env(safe-area-inset-bottom)) !important;
    left: auto !important;
    z-index: 9999 !important;
    transform: none !important;
  }

  .rcg-gallery-pagination.rcg-gallery-pagination--scrubber,
  .woocommerce nav.woocommerce-pagination.rcg-gallery-pagination--scrubber {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    margin: 24px auto 0 !important;
    padding: 8px 10px 14px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-pagination__cluster,
  .rcg-gallery-pagination--scrubber .rcg-gallery-pagination__cluster--start,
  .rcg-gallery-pagination--scrubber .rcg-gallery-pagination__cluster--end {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-width: max-content !important;
    white-space: nowrap !important;
  }

  .rcg-gallery-pagination--scrubber .page-numbers,
  .rcg-gallery-pagination--scrubber .rcg-gallery-pagination__cluster .page-numbers,
  .woocommerce nav.woocommerce-pagination.rcg-gallery-pagination--scrubber .page-numbers {
    min-width: 36px !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    flex: 0 0 36px !important;
  }

  .rcg-gallery-page-jump {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .rcg-gallery-page-jump__form {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 46px !important;
    padding: 7px 8px 7px 12px !important;
    border-radius: 999px !important;
  }

  .rcg-gallery-page-jump__summary {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    min-width: 0 !important;
    white-space: nowrap !important;
  }

  .rcg-gallery-page-jump__direct-label span:first-child,
  .rcg-gallery-page-jump__hint {
    display: none !important;
  }

  .rcg-gallery-page-jump__number {
    width: 42px !important;
    min-height: 30px !important;
    font-size: 0.84rem !important;
  }

  .rcg-gallery-page-jump__scrub,
  .rcg-gallery-page-jump__range-wrap {
    display: inline-grid !important;
    grid-template-columns: 150px auto !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }

  input[type="range"].rcg-gallery-page-jump__range,
  .rcg-gallery-page-jump__range {
    width: 150px !important;
    min-width: 150px !important;
  }

  .rcg-gallery-page-jump__button,
  .rcg-gallery-page-jump__go {
    min-height: 32px !important;
    padding: 7px 11px !important;
    font-size: 0.68rem !important;
    justify-self: auto !important;
  }

  .single-product .ast-woocommerce-container > nav.woocommerce-breadcrumb,
  .single-product .ast-woocommerce-container > .woocommerce-breadcrumb.rcg-single-product-breadcrumb {
    display: block !important;
    width: 100% !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    clear: both !important;
  }

  .single-product div.product,
  .single-product .product.type-product {
    display: flex !important;
    flex-direction: column !important;
  }

  .single-product div.product .woocommerce-product-gallery {
    order: -20 !important;
  }
}


/* v0.3.65: keep native archive pagination scrubber inline on tablet/mobile.
   The compact rules below override the earlier fixed-width mobile scrubber styles so
   the start page cluster, page jump control, slider, Go button, and end page cluster
   share one row instead of wrapping. */
@media (max-width: 1024px) {
  nav.woocommerce-pagination.rcg-gallery-pagination--scrubber.rcg-archive-pagination-scrubber,
  .rcg-gallery-pagination.rcg-gallery-pagination--scrubber.rcg-archive-pagination-scrubber {
    width: min(100%, calc(100vw - 20px)) !important;
    max-width: min(100%, calc(100vw - 20px)) !important;
    margin: 22px auto 0 !important;
    padding: 8px clamp(6px, 1.2vw, 12px) !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(5px, .9vw, 10px) !important;
    overflow: visible !important;
  }

  .rcg-archive-pagination-scrubber .rcg-gallery-pagination__cluster,
  .rcg-archive-pagination-scrubber .rcg-gallery-pagination__cluster--start,
  .rcg-archive-pagination-scrubber .rcg-gallery-pagination__cluster--end {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(4px, .7vw, 8px) !important;
    min-width: max-content !important;
    max-width: none !important;
    white-space: nowrap !important;
  }

  .rcg-archive-pagination-scrubber .page-numbers,
  .woocommerce nav.woocommerce-pagination.rcg-archive-pagination-scrubber .page-numbers {
    width: clamp(34px, 4.6vw, 42px) !important;
    min-width: clamp(34px, 4.6vw, 42px) !important;
    height: clamp(34px, 4.6vw, 42px) !important;
    flex: 0 0 clamp(34px, 4.6vw, 42px) !important;
    padding: 0 !important;
    font-size: clamp(.86rem, 1.55vw, 1rem) !important;
    line-height: 1 !important;
  }

  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__form {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: clamp(6px, 1vw, 10px) !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    padding: 7px clamp(7px, 1.2vw, 12px) !important;
    border-radius: 999px !important;
  }

  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__summary {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: clamp(4px, .7vw, 7px) !important;
    min-width: 0 !important;
    white-space: nowrap !important;
  }

  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__hint {
    max-width: clamp(78px, 12vw, 150px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__scrub,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__range-wrap {
    display: grid !important;
    grid-template-columns: minmax(88px, 1fr) auto !important;
    align-items: center !important;
    gap: clamp(5px, .8vw, 8px) !important;
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
  }

  .rcg-archive-pagination-scrubber input[type="range"].rcg-gallery-page-jump__range,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__range {
    width: 100% !important;
    min-width: 76px !important;
    max-width: none !important;
  }

  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__button,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__go {
    flex: 0 0 auto !important;
    min-width: 40px !important;
    min-height: 34px !important;
    padding: 7px 10px !important;
    font-size: .68rem !important;
    letter-spacing: .08em !important;
  }
}

@media (max-width: 900px) {
  nav.woocommerce-pagination.rcg-gallery-pagination--scrubber.rcg-archive-pagination-scrubber,
  .rcg-gallery-pagination.rcg-gallery-pagination--scrubber.rcg-archive-pagination-scrubber {
    justify-content: center !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    gap: 6px !important;
  }

  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__direct-label span:first-child,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__hint {
    display: none !important;
  }

  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__number {
    width: clamp(34px, 5vw, 40px) !important;
    min-width: clamp(34px, 5vw, 40px) !important;
    min-height: 30px !important;
    padding: 3px 4px !important;
    font-size: .84rem !important;
    text-align: center !important;
  }

  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__total {
    font-size: .84rem !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 767px) {
  nav.woocommerce-pagination.rcg-gallery-pagination--scrubber.rcg-archive-pagination-scrubber,
  .rcg-gallery-pagination.rcg-gallery-pagination--scrubber.rcg-archive-pagination-scrubber {
    width: min(100%, calc(100vw - 10px)) !important;
    max-width: min(100%, calc(100vw - 10px)) !important;
    padding: 6px 5px !important;
    gap: 4px !important;
    scrollbar-width: none !important;
  }

  nav.woocommerce-pagination.rcg-gallery-pagination--scrubber.rcg-archive-pagination-scrubber::-webkit-scrollbar,
  .rcg-gallery-pagination.rcg-gallery-pagination--scrubber.rcg-archive-pagination-scrubber::-webkit-scrollbar {
    display: none !important;
  }

  .rcg-archive-pagination-scrubber .rcg-gallery-pagination__cluster,
  .rcg-archive-pagination-scrubber .rcg-gallery-pagination__cluster--start,
  .rcg-archive-pagination-scrubber .rcg-gallery-pagination__cluster--end {
    gap: 4px !important;
  }

  .rcg-archive-pagination-scrubber .page-numbers,
  .woocommerce nav.woocommerce-pagination.rcg-archive-pagination-scrubber .page-numbers {
    width: clamp(30px, 8vw, 34px) !important;
    min-width: clamp(30px, 8vw, 34px) !important;
    height: clamp(30px, 8vw, 34px) !important;
    flex-basis: clamp(30px, 8vw, 34px) !important;
    font-size: .82rem !important;
  }

  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__form {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: 4px !important;
    min-height: 40px !important;
    padding: 5px 6px !important;
  }

  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__summary {
    gap: 3px !important;
  }

  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__number {
    width: clamp(32px, 9vw, 36px) !important;
    min-width: clamp(32px, 9vw, 36px) !important;
    min-height: 28px !important;
    font-size: .8rem !important;
    -moz-appearance: textfield;
  }

  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__number::-webkit-outer-spin-button,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__number::-webkit-inner-spin-button {
    margin: 0 !important;
    -webkit-appearance: none !important;
  }

  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__total {
    font-size: .8rem !important;
  }

  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__scrub,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__range-wrap {
    grid-template-columns: minmax(56px, 1fr) auto !important;
    gap: 4px !important;
  }

  .rcg-archive-pagination-scrubber input[type="range"].rcg-gallery-page-jump__range,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__range {
    min-width: 56px !important;
  }

  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__button,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__go {
    min-width: 32px !important;
    min-height: 30px !important;
    padding: 6px 8px !important;
    border-radius: 999px !important;
    font-size: .62rem !important;
  }
}

/* v0.3.96: fit scrubber pagination inside the mobile viewport.
   Applies to both the Gallery shortcode scrubber and native WooCommerce archive
   scrubbers. Earlier mobile rules allowed the range + Go control to keep a
   fixed 150px track, which could push the right side outside the viewport. */
@media (max-width: 767px) {
  .rcg-gallery-pagination.rcg-gallery-pagination--scrubber,
  .woocommerce nav.woocommerce-pagination.rcg-gallery-pagination--scrubber,
  nav.woocommerce-pagination.rcg-gallery-pagination--scrubber.rcg-archive-pagination-scrubber,
  .rcg-gallery-pagination.rcg-gallery-pagination--scrubber.rcg-archive-pagination-scrubber {
    box-sizing: border-box !important;
    width: min(100%, calc(100vw - 14px)) !important;
    max-width: min(100%, calc(100vw - 14px)) !important;
    margin: 22px auto 0 !important;
    padding: 6px 4px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    overflow: visible !important;
    scrollbar-width: none !important;
  }

  .rcg-gallery-pagination.rcg-gallery-pagination--scrubber::-webkit-scrollbar,
  .woocommerce nav.woocommerce-pagination.rcg-gallery-pagination--scrubber::-webkit-scrollbar,
  nav.woocommerce-pagination.rcg-gallery-pagination--scrubber.rcg-archive-pagination-scrubber::-webkit-scrollbar,
  .rcg-gallery-pagination.rcg-gallery-pagination--scrubber.rcg-archive-pagination-scrubber::-webkit-scrollbar {
    display: none !important;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-pagination__cluster,
  .rcg-gallery-pagination--scrubber .rcg-gallery-pagination__cluster--start,
  .rcg-gallery-pagination--scrubber .rcg-gallery-pagination__cluster--end,
  .rcg-archive-pagination-scrubber .rcg-gallery-pagination__cluster,
  .rcg-archive-pagination-scrubber .rcg-gallery-pagination__cluster--start,
  .rcg-archive-pagination-scrubber .rcg-gallery-pagination__cluster--end {
    box-sizing: border-box !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    min-width: 0 !important;
    max-width: none !important;
    white-space: nowrap !important;
  }

  .rcg-gallery-pagination--scrubber .page-numbers,
  .rcg-gallery-pagination--scrubber .rcg-gallery-pagination__cluster .page-numbers,
  .woocommerce nav.woocommerce-pagination.rcg-gallery-pagination--scrubber .page-numbers,
  nav.woocommerce-pagination.rcg-gallery-pagination--scrubber.rcg-archive-pagination-scrubber .page-numbers,
  .woocommerce nav.woocommerce-pagination.rcg-gallery-pagination--scrubber.rcg-archive-pagination-scrubber .page-numbers,
  .woocommerce nav.woocommerce-pagination.rcg-archive-pagination-scrubber .page-numbers,
  .rcg-archive-pagination-scrubber .page-numbers {
    box-sizing: border-box !important;
    width: clamp(30px, 7.8vw, 34px) !important;
    min-width: clamp(30px, 7.8vw, 34px) !important;
    height: clamp(30px, 7.8vw, 34px) !important;
    min-height: clamp(30px, 7.8vw, 34px) !important;
    flex: 0 0 clamp(30px, 7.8vw, 34px) !important;
    padding: 0 !important;
    font-size: clamp(.74rem, 2.4vw, .82rem) !important;
    line-height: 1 !important;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump {
    box-sizing: border-box !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__form,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__form {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 38px !important;
    gap: 3px !important;
    padding: 4px 5px !important;
    border-radius: 999px !important;
    overflow: hidden !important;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__summary,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__summary {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 2px !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow: visible !important;
    white-space: nowrap !important;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__direct-label,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__direct-label {
    gap: 0 !important;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__direct-label span:first-child,
  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__hint,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__direct-label span:first-child,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__hint {
    display: none !important;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__number,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__number {
    box-sizing: border-box !important;
    width: clamp(29px, 8vw, 34px) !important;
    min-width: clamp(29px, 8vw, 34px) !important;
    min-height: 28px !important;
    padding: 2px 3px !important;
    border-radius: 10px !important;
    font-size: clamp(.72rem, 2.4vw, .8rem) !important;
    text-align: center !important;
    -moz-appearance: textfield;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__number::-webkit-outer-spin-button,
  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__number::-webkit-inner-spin-button,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__number::-webkit-outer-spin-button,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__number::-webkit-inner-spin-button {
    margin: 0 !important;
    -webkit-appearance: none !important;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__total,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__total {
    font-size: clamp(.68rem, 2.35vw, .78rem) !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__scrub,
  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__range-wrap,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__scrub,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__range-wrap {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(42px, 1fr) auto !important;
    align-items: center !important;
    gap: 3px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }

  .rcg-gallery-pagination--scrubber input[type="range"].rcg-gallery-page-jump__range,
  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__range,
  .rcg-archive-pagination-scrubber input[type="range"].rcg-gallery-page-jump__range,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__range {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 42px !important;
    max-width: none !important;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__button,
  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__go,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__button,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__go {
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
    width: clamp(26px, 7vw, 31px) !important;
    min-width: clamp(26px, 7vw, 31px) !important;
    min-height: 28px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    font-size: clamp(.55rem, 1.95vw, .62rem) !important;
    letter-spacing: .02em !important;
    line-height: 1 !important;
  }
}

@media (max-width: 374px) {
  .rcg-gallery-pagination.rcg-gallery-pagination--scrubber,
  .woocommerce nav.woocommerce-pagination.rcg-gallery-pagination--scrubber,
  nav.woocommerce-pagination.rcg-gallery-pagination--scrubber.rcg-archive-pagination-scrubber,
  .rcg-gallery-pagination.rcg-gallery-pagination--scrubber.rcg-archive-pagination-scrubber {
    width: min(100%, calc(100vw - 10px)) !important;
    max-width: min(100%, calc(100vw - 10px)) !important;
    padding-inline: 2px !important;
    gap: 2px !important;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-pagination__cluster,
  .rcg-gallery-pagination--scrubber .rcg-gallery-pagination__cluster--start,
  .rcg-gallery-pagination--scrubber .rcg-gallery-pagination__cluster--end,
  .rcg-archive-pagination-scrubber .rcg-gallery-pagination__cluster,
  .rcg-archive-pagination-scrubber .rcg-gallery-pagination__cluster--start,
  .rcg-archive-pagination-scrubber .rcg-gallery-pagination__cluster--end {
    gap: 2px !important;
  }

  .rcg-gallery-pagination--scrubber .page-numbers,
  .rcg-gallery-pagination--scrubber .rcg-gallery-pagination__cluster .page-numbers,
  .woocommerce nav.woocommerce-pagination.rcg-gallery-pagination--scrubber .page-numbers,
  nav.woocommerce-pagination.rcg-gallery-pagination--scrubber.rcg-archive-pagination-scrubber .page-numbers,
  .woocommerce nav.woocommerce-pagination.rcg-gallery-pagination--scrubber.rcg-archive-pagination-scrubber .page-numbers,
  .woocommerce nav.woocommerce-pagination.rcg-archive-pagination-scrubber .page-numbers,
  .rcg-archive-pagination-scrubber .page-numbers {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    flex-basis: 28px !important;
    font-size: .72rem !important;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__form,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__form {
    gap: 2px !important;
    padding: 3px 4px !important;
    min-height: 36px !important;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__number,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__number {
    width: 28px !important;
    min-width: 28px !important;
    min-height: 26px !important;
    font-size: .7rem !important;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__scrub,
  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__range-wrap,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__scrub,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__range-wrap {
    grid-template-columns: minmax(34px, 1fr) auto !important;
    gap: 2px !important;
  }

  .rcg-gallery-pagination--scrubber input[type="range"].rcg-gallery-page-jump__range,
  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__range,
  .rcg-archive-pagination-scrubber input[type="range"].rcg-gallery-page-jump__range,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__range {
    min-width: 34px !important;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__button,
  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__go,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__button,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__go {
    width: 25px !important;
    min-width: 25px !important;
    min-height: 26px !important;
    font-size: .52rem !important;
  }
}

/* v0.3.97: tablet containment for archive/gallery scrubber pagination.
   Tablet widths still have less usable space than desktop, especially inside the
   WooCommerce archive container. Hide the nonessential direct label/hint and let
   the slider track shrink so the Go button stays inside the viewport. */
@media (min-width: 768px) and (max-width: 1100px) {
  .rcg-gallery-pagination.rcg-gallery-pagination--scrubber,
  .woocommerce nav.woocommerce-pagination.rcg-gallery-pagination--scrubber,
  nav.woocommerce-pagination.rcg-gallery-pagination--scrubber.rcg-archive-pagination-scrubber,
  .rcg-gallery-pagination.rcg-gallery-pagination--scrubber.rcg-archive-pagination-scrubber {
    box-sizing: border-box !important;
    width: min(100%, calc(100vw - 36px)) !important;
    max-width: min(100%, calc(100vw - 36px)) !important;
    margin: 26px auto 0 !important;
    padding: 8px 6px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(5px, .75vw, 8px) !important;
    overflow: visible !important;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-pagination__cluster,
  .rcg-gallery-pagination--scrubber .rcg-gallery-pagination__cluster--start,
  .rcg-gallery-pagination--scrubber .rcg-gallery-pagination__cluster--end,
  .rcg-archive-pagination-scrubber .rcg-gallery-pagination__cluster,
  .rcg-archive-pagination-scrubber .rcg-gallery-pagination__cluster--start,
  .rcg-archive-pagination-scrubber .rcg-gallery-pagination__cluster--end {
    box-sizing: border-box !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(5px, .7vw, 8px) !important;
    min-width: 0 !important;
    max-width: none !important;
    white-space: nowrap !important;
  }

  .rcg-gallery-pagination--scrubber .page-numbers,
  .rcg-gallery-pagination--scrubber .rcg-gallery-pagination__cluster .page-numbers,
  .woocommerce nav.woocommerce-pagination.rcg-gallery-pagination--scrubber .page-numbers,
  nav.woocommerce-pagination.rcg-gallery-pagination--scrubber.rcg-archive-pagination-scrubber .page-numbers,
  .woocommerce nav.woocommerce-pagination.rcg-gallery-pagination--scrubber.rcg-archive-pagination-scrubber .page-numbers,
  .woocommerce nav.woocommerce-pagination.rcg-archive-pagination-scrubber .page-numbers,
  .rcg-archive-pagination-scrubber .page-numbers {
    box-sizing: border-box !important;
    width: clamp(36px, 4.25vw, 42px) !important;
    min-width: clamp(36px, 4.25vw, 42px) !important;
    height: clamp(36px, 4.25vw, 42px) !important;
    min-height: clamp(36px, 4.25vw, 42px) !important;
    flex: 0 0 clamp(36px, 4.25vw, 42px) !important;
    padding: 0 !important;
    font-size: clamp(.84rem, 1.35vw, .96rem) !important;
    line-height: 1 !important;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump {
    box-sizing: border-box !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: min(100%, 680px) !important;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__form,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__form {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 46px !important;
    gap: clamp(5px, .8vw, 8px) !important;
    padding: 6px 8px !important;
    border-radius: 999px !important;
    overflow: hidden !important;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__summary,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__summary {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 5px !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow: visible !important;
    white-space: nowrap !important;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__direct-label span:first-child,
  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__hint,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__direct-label span:first-child,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__hint {
    display: none !important;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__number,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__number {
    box-sizing: border-box !important;
    width: clamp(38px, 4.8vw, 44px) !important;
    min-width: clamp(38px, 4.8vw, 44px) !important;
    min-height: 31px !important;
    padding: 2px 4px !important;
    border-radius: 11px !important;
    font-size: clamp(.82rem, 1.25vw, .9rem) !important;
    text-align: center !important;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__total,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__total {
    flex: 0 0 auto !important;
    font-size: clamp(.76rem, 1.15vw, .84rem) !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__scrub,
  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__range-wrap,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__scrub,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__range-wrap {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(82px, 1fr) auto !important;
    align-items: center !important;
    gap: clamp(5px, .75vw, 8px) !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }

  .rcg-gallery-pagination--scrubber input[type="range"].rcg-gallery-page-jump__range,
  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__range,
  .rcg-archive-pagination-scrubber input[type="range"].rcg-gallery-page-jump__range,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__range {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 82px !important;
    max-width: none !important;
  }

  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__button,
  .rcg-gallery-pagination--scrubber .rcg-gallery-page-jump__go,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__button,
  .rcg-archive-pagination-scrubber .rcg-gallery-page-jump__go {
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
    width: clamp(36px, 4.7vw, 44px) !important;
    min-width: clamp(36px, 4.7vw, 44px) !important;
    min-height: 32px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    font-size: clamp(.6rem, .95vw, .68rem) !important;
    letter-spacing: .04em !important;
    line-height: 1 !important;
  }
}


/* v0.4.02: Gift Collection product-card breathing room and compact stock badge
============================================= */
body.rcg-gift-collection-archive-context.woocommerce ul.products li.product,
body.rcg-gift-collection-archive-context.woocommerce-page ul.products li.product {
  padding: 12px !important;
  box-sizing: border-box;
}

body.rcg-gift-collection-archive-context.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
body.rcg-gift-collection-archive-context.woocommerce ul.products li.product a.woocommerce-LoopProduct-link:first-child {
  border-radius: 25px !important;
}

body.rcg-gift-collection-archive-context.woocommerce ul.products li.product .astra-shop-summary-wrap,
body.rcg-gift-collection-archive-context.woocommerce-page ul.products li.product .astra-shop-summary-wrap {
  padding: 18px 6px 12px !important;
  transition: padding 0.18s ease !important;
}

body.rcg-gift-collection-archive-context.woocommerce ul.products li.product:hover .astra-shop-summary-wrap,
body.rcg-gift-collection-archive-context.woocommerce ul.products li.product:focus-within .astra-shop-summary-wrap,
body.rcg-gift-collection-archive-context.woocommerce-page ul.products li.product:hover .astra-shop-summary-wrap,
body.rcg-gift-collection-archive-context.woocommerce-page ul.products li.product:focus-within .astra-shop-summary-wrap {
  padding: 18px 6px 34px !important;
}

body.rcg-gift-collection-archive-context.woocommerce ul.products li.product .astra-shop-summary-wrap > a.button.rcg-view-gift-item,
body.rcg-gift-collection-archive-context.woocommerce-page ul.products li.product .astra-shop-summary-wrap > a.button.rcg-view-gift-item {
  margin-top: 22px !important;
}

body.rcg-gift-collection-archive-context.woocommerce ul.products li.product .ast-on-card-button,
body.rcg-gift-collection-archive-context.woocommerce-page ul.products li.product .ast-on-card-button,
body.rcg-commerce-archive-context.woocommerce ul.products li.product .ast-on-card-button,
body.rcg-commerce-archive-context.woocommerce-page ul.products li.product .ast-on-card-button {
  display: none !important;
}

body.rcg-gift-collection-archive-context.woocommerce ul.products li.product .ast-shop-product-out-of-stock,
body.rcg-gift-collection-archive-context.woocommerce ul.products li.product .out-of-stock,
body.rcg-gift-collection-archive-context.woocommerce-page ul.products li.product .ast-shop-product-out-of-stock,
body.rcg-gift-collection-archive-context.woocommerce-page ul.products li.product .out-of-stock {
  display: none !important;
}


@media (hover: none), (max-width: 760px) {
  body.rcg-gift-collection-archive-context.woocommerce ul.products li.product .astra-shop-summary-wrap,
  body.rcg-gift-collection-archive-context.woocommerce-page ul.products li.product .astra-shop-summary-wrap {
    padding: 18px 6px 26px !important;
  }
}

/* v0.6.77: Gallery mobile navigation and filter alignment.
   Keep the four primary gallery destinations in a stable 2x2 grid and make
   the status-group label read from the same left edge as the controls below. */
@media (max-width: 767px) {
  .entry-content .rcg-category-nav,
  #categories .rcg-category-nav,
  .rcg-category-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: min(100%, 430px) !important;
    max-width: 430px !important;
    gap: 10px !important;
    margin: 16px auto 26px !important;
    align-items: stretch !important;
    justify-content: initial !important;
  }

  .entry-content .rcg-category-nav__entry,
  #categories .rcg-category-nav__entry,
  .rcg-category-nav__entry,
  .rcg-category-nav__entry--has-children {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
    flex-basis: auto !important;
  }

  .entry-content .rcg-category-nav__entry .rcg-category-nav__item,
  #categories .rcg-category-nav__entry .rcg-category-nav__item,
  .rcg-category-nav__entry .rcg-category-nav__item {
    display: flex !important;
    width: 100% !important;
    min-height: 46px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 9px 10px !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .rcg-original-status-filter .rcg-filter-label {
    flex: 1 0 100% !important;
    width: 100% !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    text-align: left !important;
    align-self: flex-start !important;
  }
}
/* End v0.6.77 Gallery mobile navigation and filter alignment. */



/* v0.7.13: main archive matting + 20px artwork radius.
 *
 * Native product archives (shop, product_cat term pages) carry BOTH
 * rcg-commerce-archive-context and — for original-tree terms —
 * rcg-original-archive-context. The commerce "clean background" layer sits
 * later in the file than the originals mat rules, so it was stripping the warm
 * fill and shadow from the main archive list while the gallery grid kept
 * them. These rules re-seat the mat for original-tree archives and set the
 * artwork image radius (20px inside the 25px wrap) across every archive
 * context, so the matted look reads identically on /gallery/ and the
 * product-category archives. */
body.rcg-original-archive-context.rcg-commerce-archive-context.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
body.rcg-original-archive-context.rcg-commerce-archive-context.woocommerce-page ul.products li.product .astra-shop-thumbnail-wrap,
body.rcg-original-archive-context.rcg-commerce-archive-context.woocommerce ul.products li.product a.woocommerce-LoopProduct-link:first-child,
body.rcg-original-archive-context.rcg-commerce-archive-context.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link:first-child {
  background: #fbf8f2 !important;
  box-shadow: 0 10px 28px rgba(36, 50, 74, 0.07) !important;
}

.rcg-gallery-grid ul.products li.product .astra-shop-thumbnail-wrap img,
body.rcg-original-archive-context.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img,
body.rcg-original-archive-context.woocommerce-page ul.products li.product .astra-shop-thumbnail-wrap img,
body.rcg-giclee-archive.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img,
body.rcg-seasonal-sales-archive.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img,
.rcg-giclee-virtual-archive ul.products li.product .astra-shop-thumbnail-wrap img,
.rcg-seasonal-sales-virtual-archive ul.products li.product .astra-shop-thumbnail-wrap img,
body.rcg-commerce-archive-context.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img,
body.rcg-commerce-archive-context.woocommerce-page ul.products li.product .astra-shop-thumbnail-wrap img,
.rcg-gallery-shortcode .rcg-gallery-grid ul.products li.product .astra-shop-thumbnail-wrap img,
body.rcg-gift-collection-archive-context.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img,
body.rcg-gift-collection-archive-context.woocommerce-page ul.products li.product .astra-shop-thumbnail-wrap img {
  border-radius: 20px !important;
}
/* End v0.7.13 main archive matting. */

/* v0.7.20: WooCommerce product-category cards — centered artwork.
 *
 * Product cards get the matted square frame (aspect-ratio 1/1 wrap, cream
 * fill, 25px/20px radii) from the archive layers above, but WooCommerce's
 * category loop items (li.product-category, title + "(n)" count mark) have no
 * .astra-shop-thumbnail-wrap, so their artwork rendered full-width at its
 * natural height — top-stuck inside the card with all the empty space below.
 * Give category cards the same matted square with the artwork centered both
 * axes (square box + object-fit: contain centers by default; object-position
 * is pinned defensively in case a theme sets it). */
.woocommerce ul.products li.product-category,
.woocommerce-page ul.products li.product-category {
  display: flex;
  flex-direction: column;
  padding: clamp(8px, 1vw, 12px);
  overflow: hidden;
  border: 1px solid var(--rcg-archive-line, rgba(35, 48, 68, 0.13));
  border-radius: 25px !important;
  background: #fbf8f2;
  box-shadow: 0 10px 28px rgba(36, 50, 74, 0.07);
}

.woocommerce ul.products li.product-category > a,
.woocommerce-page ul.products li.product-category > a {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  text-decoration: none !important;
}

.woocommerce ul.products li.product-category img,
.woocommerce-page ul.products li.product-category img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: 50% 50%;
  margin: 0 auto;
  border-radius: 20px !important;
  background: transparent;
}

.woocommerce ul.products li.product-category .woocommerce-loop-category__title,
.woocommerce-page ul.products li.product-category .woocommerce-loop-category__title {
  width: 100%;
  padding: 14px 6px 6px;
  color: var(--rcg-archive-ink, #24324a) !important;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.24;
  text-align: center;
}

.woocommerce ul.products li.product-category .woocommerce-loop-category__title mark,
.woocommerce-page ul.products li.product-category .woocommerce-loop-category__title mark {
  background: transparent;
  color: var(--rcg-archive-muted, #747b85);
  font-family: Roboto, Arial, sans-serif;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
/* End v0.7.20 category card centering. */

/* v0.7.25: product search results — plain Add to Cart joins the archive card
 * language. Search pages now carry rcg-commerce-archive-context (see the
 * frontend body-class filter), which brings the matted cards and typography
 * but also the commerce layer's always-on red pill button. The archives the
 * search page should match reveal their card actions as quiet underlined
 * text links on hover/focus only (the .ncm-cfp-* rules above), so the plain
 * .add_to_cart_button gets exactly that treatment here, scoped to search. */
body.search.rcg-commerce-archive-context.woocommerce ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > .button.add_to_cart_button,
body.search.rcg-commerce-archive-context.woocommerce-page ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > .button.add_to_cart_button {
  margin: 4px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #c74235 !important;
  box-shadow: none !important;
  font-size: 0.78rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.1em !important;
  line-height: 1.35 !important;
  text-align: left !important;
  text-decoration: underline !important;
  text-decoration-color: currentColor !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 5px !important;
  text-transform: uppercase !important;
  white-space: normal !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-2px) !important;
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease !important;
}

body.search.rcg-commerce-archive-context.woocommerce ul.products li.product:not(.rcg-featured-item):hover .astra-shop-summary-wrap > .button.add_to_cart_button,
body.search.rcg-commerce-archive-context.woocommerce ul.products li.product:not(.rcg-featured-item):focus-within .astra-shop-summary-wrap > .button.add_to_cart_button,
body.search.rcg-commerce-archive-context.woocommerce-page ul.products li.product:not(.rcg-featured-item):hover .astra-shop-summary-wrap > .button.add_to_cart_button,
body.search.rcg-commerce-archive-context.woocommerce-page ul.products li.product:not(.rcg-featured-item):focus-within .astra-shop-summary-wrap > .button.add_to_cart_button {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

body.search.rcg-commerce-archive-context.woocommerce ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > .button.add_to_cart_button:hover,
body.search.rcg-commerce-archive-context.woocommerce ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > .button.add_to_cart_button:focus {
  background: transparent !important;
  color: #9f3027 !important;
}
/* End v0.7.25 search card add-to-cart treatment. */

/* v0.7.26 (v0.7.33 revision): search results hover padding.
 * The hover border belongs to the product li, so summary-only padding still
 * left the image and copy almost flush with the card edge. Reserve an inset on
 * the card in every state: the transparent resting border and the visible
 * hover/focus border then share identical geometry and nothing jumps when the
 * card is revealed. Keep the summary's bottom room for its in-flow action. */
body.search.rcg-commerce-archive-context.woocommerce ul.products li.product,
body.search.rcg-commerce-archive-context.woocommerce-page ul.products li.product {
  box-sizing: border-box;
  padding: clamp(14px, 1.25vw, 18px) !important;
}

body.search.rcg-commerce-archive-context.woocommerce ul.products li.product .astra-shop-summary-wrap,
body.search.rcg-commerce-archive-context.woocommerce-page ul.products li.product .astra-shop-summary-wrap {
  align-items: flex-start;
  gap: 7px;
  padding: 14px 3px 18px !important;
  text-align: left;
}
/* End v0.7.26 search hover padding. */

/* v0.7.29: no "Read more" buttons on product search cards.
 * WooCommerce prints the loop add-to-cart link as a plain
 * `a.button.product_type_simple` reading "Read more" whenever a product is
 * out of stock or otherwise not purchasable — no `add_to_cart_button` class,
 * so the v0.7.25 hover-reveal rule missed it and the commerce layer's
 * always-on red pill styled it instead. The card's thumbnail and title
 * already link to the same product page, so the button is pure duplication:
 * drop it and leave the sold-out card as image, category, title and price.
 * The purchasable action (.add_to_cart_button) and the call-for-price /
 * gift-item links (.ncm-cfp-*) are the real card actions and are spared. */
body.search.rcg-commerce-archive-context.woocommerce ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > a.button:not(.add_to_cart_button):not(.ncm-cfp-see-artwork):not(.ncm-cfp-view-artwork),
body.search.rcg-commerce-archive-context.woocommerce-page ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > a.button:not(.add_to_cart_button):not(.ncm-cfp-see-artwork):not(.ncm-cfp-view-artwork) {
  display: none !important;
}
/* End v0.7.29 search card "Read more" removal. */

/* v0.7.29: touch devices get the search card action outright.
 * v0.7.25 copied the archives' hover-revealed action onto search cards but
 * not the archives' `hover: none` escape hatch (see the .ncm-cfp-see-artwork
 * block above), so on phones and tablets the card's Add to Cart / View
 * Artwork link stayed at opacity 0 with pointer-events off — reserved space
 * holding an untappable link. Reveal it where there is no hover to give. */
@media (hover: none), (max-width: 760px) {
  body.search.rcg-commerce-archive-context.woocommerce ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > .button.add_to_cart_button,
  body.search.rcg-commerce-archive-context.woocommerce-page ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > .button.add_to_cart_button,
  body.search.rcg-commerce-archive-context.woocommerce ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > a.button.ncm-cfp-see-artwork,
  body.search.rcg-commerce-archive-context.woocommerce ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > a.button.ncm-cfp-view-artwork,
  body.search.rcg-commerce-archive-context.woocommerce-page ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > a.button.ncm-cfp-see-artwork,
  body.search.rcg-commerce-archive-context.woocommerce-page ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > a.button.ncm-cfp-view-artwork {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
  }
}
/* End v0.7.29 touch reveal. */

/* v0.7.30: make the always-on mobile search action actually presentable.
 *
 * Three things were wrong once v0.7.29 revealed the action on touch devices,
 * all visible at the 2-column phone grid Astra gives search (123px columns at
 * 375px, 88px at 320px):
 *
 * 1. v0.7.25 restyled the plain add-to-cart as a text link but never reset the
 *    commerce layer's `min-height: 46px`, so a 15px line of text sat in a 46px
 *    flex box. The call-for-price rule above DOES reset it (`min-height: 0`,
 *    `height: auto`), which is why "ADD TO CART" and "VIEW ARTWORK" landed at
 *    different heights on neighbouring cards. Same reset, same result.
 * 2. `white-space: normal` let "VIEW ARTWORK" break into two underlined lines
 *    in a narrow column. These labels are two short words — keep them whole
 *    and step the type down instead, with headroom measured against the
 *    longest label at 320px.
 * 3. v0.7.25's `margin: 4px 0 0` dropped the commerce layer's `margin-top:
 *    auto`, so the action floated directly under the price — leaving it ragged
 *    across a row whenever a card had a 2-line category, a 3-line title or no
 *    price at all. Restoring auto margin on touch pins every action to the
 *    bottom of its card so a row reads as one line of actions.
 */
body.search.rcg-commerce-archive-context.woocommerce ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > .button.add_to_cart_button,
body.search.rcg-commerce-archive-context.woocommerce-page ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > .button.add_to_cart_button {
  min-height: 0 !important;
  height: auto !important;
  width: auto !important;
  max-width: max-content !important;
  justify-content: flex-start !important;
}

@media (hover: none), (max-width: 767px) {
  body.search.rcg-commerce-archive-context.woocommerce ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > .button.add_to_cart_button,
  body.search.rcg-commerce-archive-context.woocommerce-page ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > .button.add_to_cart_button,
  body.search.rcg-commerce-archive-context.woocommerce ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > a.button.ncm-cfp-see-artwork,
  body.search.rcg-commerce-archive-context.woocommerce ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > a.button.ncm-cfp-view-artwork,
  body.search.rcg-commerce-archive-context.woocommerce-page ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > a.button.ncm-cfp-see-artwork,
  body.search.rcg-commerce-archive-context.woocommerce-page ul.products li.product:not(.rcg-featured-item) .astra-shop-summary-wrap > a.button.ncm-cfp-view-artwork {
    margin-top: auto !important;
    white-space: nowrap !important;
  }
}
/* End v0.7.30 mobile search action. */

/* v0.7.31: one product per row for the whole mobile band on search.
 *
 * The commerce layer intends 4 -> 3 (<=1024px) -> 2 (<=767px) -> 1 (<=480px),
 * but that is not what search actually rendered: measured on the live page it
 * was two 123px columns at 375px and three 152px columns at 600px, so
 * WooCommerce's own `(max-width: 921px)` three-column inline rule was winning
 * over both of the plugin's narrow steps. Either way the 481-767px band — a
 * large phone in landscape, a small tablet, a narrowed desktop window — is
 * where the category eyebrow, the serif title and the action all wrap, and it
 * is the view that prompted this change.
 *
 * Rather than chase which rule wins at which width, this states the intent once
 * for search at a specificity that beats both: body.search plus the context
 * class outranks the commerce rule and WooCommerce's
 * `.woocommerce-page ul.products:not(.elementor-grid)` alike. Verified 1 column
 * at 375/600/767px and untouched (3 columns) at 768px. The archives keep their
 * own steps. 767px is the commerce layer's existing two-column breakpoint and
 * Astra's header break point, so no new breakpoint is introduced.
 *
 * The track is capped and centred rather than left at 1fr: the card image is
 * aspect-ratio 1/1, so a full-bleed single column made one product fill the
 * whole screen (measured 598px tall at a 600px viewport, 655px at 767px). The
 * cap only engages above ~476px — at 375px the available 263px is already less
 * than the cap, so phones get the full content width either way.
 */
@media (max-width: 767px) {
  body.search.rcg-commerce-archive-context.woocommerce ul.products,
  body.search.rcg-commerce-archive-context.woocommerce-page ul.products {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
  }
}
/* End v0.7.31 single-column mobile search grid. */

/* v0.7.35: low-volume gift types are individual product cards inside one
 * native, keyboard-accessible disclosure instead of three empty category
 * cards plus a link back to the same archive. */
.rcg-gift-collection-more {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px dashed rgba(199, 66, 53, 0.32);
  border-radius: 18px;
  color: inherit;
  background: rgba(199, 66, 53, 0.03);
  box-shadow: 0 14px 34px rgba(36, 50, 74, 0.05);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rcg-gift-collection-more:hover,
.rcg-gift-collection-more:focus-within,
.rcg-gift-collection-more[open] {
  border-color: rgba(199, 66, 53, 0.55);
  background: rgba(199, 66, 53, 0.05);
  box-shadow: 0 18px 38px rgba(36, 50, 74, 0.08);
}

.rcg-gift-collection-more__summary {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 112px;
  padding: 24px 28px;
  cursor: pointer;
  list-style: none;
}

.rcg-gift-collection-more__summary::-webkit-details-marker {
  display: none;
}

.rcg-gift-collection-more__summary:focus-visible {
  outline: 3px solid rgba(199, 66, 53, 0.42);
  outline-offset: -4px;
  border-radius: 16px;
}

.rcg-gift-collection-more__title {
  color: var(--rcg-red-dark, #a9342a);
  font-family: var(--rcg-medium-heading-font, "Libre Baskerville", Georgia, serif);
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.1;
}

.rcg-gift-collection-more__count {
  margin-left: auto;
  color: rgba(36, 50, 74, 0.78);
  font-weight: 700;
}

.rcg-gift-collection-more__chevron {
  width: 13px;
  height: 13px;
  margin: 0 5px 6px 4px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease, margin 0.2s ease;
}

.rcg-gift-collection-more[open] .rcg-gift-collection-more__chevron {
  margin-top: 7px;
  margin-bottom: 0;
  transform: rotate(225deg);
}

.rcg-gift-collection-more__panel {
  padding: 0 28px 28px;
}

.rcg-gift-collection-more__products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid rgba(199, 66, 53, 0.18);
}

.rcg-gift-collection-more__product {
  display: flex;
  min-width: 0;
  padding: 18px;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(36, 50, 74, 0.12);
  border-radius: 16px;
  color: inherit;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(36, 50, 74, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rcg-gift-collection-more__product:hover,
.rcg-gift-collection-more__product:focus {
  color: inherit;
  border-color: rgba(36, 50, 74, 0.24);
  box-shadow: 0 14px 30px rgba(36, 50, 74, 0.11);
  transform: translateY(-2px);
}

.rcg-gift-collection-more__product:focus-visible {
  outline: 3px solid rgba(199, 66, 53, 0.36);
  outline-offset: 3px;
}

.rcg-gift-collection-more__media {
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 13px;
  background: #fbf8f2;
}

.rcg-gift-collection-more__image {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: 50% 50%;
}

.rcg-gift-collection-more__group {
  margin-top: 4px;
  color: #aeb6c2;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.rcg-gift-collection-more__product-title {
  color: var(--rcg-ink, #24324a);
  font-family: var(--rcg-medium-heading-font, "Libre Baskerville", Georgia, serif);
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
  font-weight: 700;
  line-height: 1.15;
}

.rcg-gift-collection-more__price {
  margin-top: auto;
  color: var(--rcg-ink, #24324a);
  font-weight: 800;
}

.rcg-gift-collection-more__action {
  width: max-content;
  color: var(--rcg-red, #c74235);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

@media (max-width: 767px) {
  .rcg-gift-collection-more__summary {
    align-items: flex-start;
    gap: 10px;
    min-height: 0;
    padding: 22px;
    flex-wrap: wrap;
  }

  .rcg-gift-collection-more__count {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .rcg-gift-collection-more__chevron {
    margin-left: auto;
  }

  .rcg-gift-collection-more__panel {
    padding: 0 22px 22px;
  }

  .rcg-gift-collection-more__products {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-top: 22px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .rcg-gift-collection-more__products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .rcg-gift-collection-more,
  .rcg-gift-collection-more__chevron,
  .rcg-gift-collection-more__product {
    transition: none;
  }
}
/* End v0.7.35 Gift Collection "& More" disclosure. */
