/* Rochester Cards PDP v1.6 — opt-in, scope only to custom product content.
   Desktop left artwork scrolls independently; the page and right info scroll normally.
   No cropping, no WooCommerce checkout, stock, pricing or form logic changes. */
body.single-product .rc-pdp-v16 {
  --rc-pdp-ink: #292823;
  --rc-pdp-muted: #615d57;
  --rc-pdp-line: #ded5c8;
  --rc-pdp-paper: #fffdf8;
  --rc-pdp-warm: #e9dfc9;
  --rc-pdp-green: #45635a;
  --rc-pdp-sticky-top: 90px;
  display: block;
  clear: both;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  color: var(--rc-pdp-ink);
}
body.admin-bar.single-product .rc-pdp-v16 { --rc-pdp-sticky-top: 122px; }
body.single-product .rc-pdp-v16 .rc-pdp-v16-grid {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: start;
}
body.single-product .rc-pdp-v16 .rc-pdp-gallery,
body.single-product .rc-pdp-v16 .rc-pdp-main { min-width: 0; }
/* Sticky must be on the GRID CHILD. Making the nested scroller sticky would
   constrain it to its own short parent and it would not follow the story. */
body.single-product .rc-pdp-v16 .rc-pdp-gallery {
  position: sticky;
  top: var(--rc-pdp-sticky-top);
  align-self: start;
}
body.single-product .rc-pdp-v16 .rc-pdp-gallery-scroll {
  max-height: calc(100vh - var(--rc-pdp-sticky-top) - 18px);
  max-height: calc(100dvh - var(--rc-pdp-sticky-top) - 18px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #bbb0a2 transparent;
  scroll-behavior: smooth;
  padding: 0 10px 6px 0;
}
body.single-product .rc-pdp-v16 .rc-pdp-gallery-scroll:focus-visible {
  outline: 2px solid #a35c53;
  outline-offset: 2px;
}
body.single-product .rc-pdp-v16 .rc-pdp-image {
  margin: 0 0 24px;
  padding: clamp(12px, 1.7vw, 20px);
  background: var(--rc-pdp-paper);
  border: 1px solid rgba(65, 50, 40, .08);
  border-radius: 3px;
}
body.single-product .rc-pdp-v16 .rc-pdp-image:last-child { margin-bottom: 0; }
body.single-product .rc-pdp-v16 .rc-pdp-image-link {
  display: block;
  width: 100%;
  text-align: center;
  cursor: zoom-in;
}
body.single-product .rc-pdp-v16 .rc-pdp-artwork-image,
body.single-product .rc-pdp-v16 .rc-pdp-placeholder img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  max-height: none;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  margin: 0 auto;
}
body.single-product .rc-pdp-v16 .rc-pdp-main.summary.entry-summary {
  float: none;
  clear: none;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: block;
}
body.single-product .rc-pdp-v16 .rc-pdp-collection {
  margin: 0 0 13px;
  font: 700 12px/1.6 Arial, Helvetica, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
body.single-product .rc-pdp-v16 .rc-pdp-collection a { color: #a35c53; text-decoration: none; }
body.single-product .rc-pdp-v16 h1.product_title {
  font: 400 clamp(30px, 2.7vw, 42px)/1.19 Georgia, 'Times New Roman', serif;
  margin: 0 0 22px;
  color: var(--rc-pdp-ink);
}
body.single-product .rc-pdp-v16 .woocommerce-product-rating { margin-bottom: 18px; }
body.single-product .rc-pdp-v16 .woocommerce-product-details__short-description { margin-bottom: 20px; }
body.single-product .rc-pdp-v16 .rc-pdp-story {
  font-size: 16px;
  line-height: 1.75;
  color: var(--rc-pdp-ink);
  margin: 0 0 clamp(27px, 3vw, 40px);
  overflow-wrap: anywhere;
}
body.single-product .rc-pdp-v16 .rc-pdp-story :is(p,ul,ol) { margin: 0 0 1.05em; }
body.single-product .rc-pdp-v16 .rc-pdp-story :is(h2,h3,h4) {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.27;
  margin: 22px 0 12px;
  color: var(--rc-pdp-ink);
}
body.single-product .rc-pdp-v16 .rc-pdp-story h2 { font-size: clamp(23px, 2vw, 30px); }
body.single-product .rc-pdp-v16 .rc-pdp-story h3 { font-size: clamp(20px, 1.7vw, 25px); }
body.single-product .rc-pdp-v16 .rc-pdp-story .rc-product-detail,
body.single-product .rc-pdp-v16 .rc-pdp-story .rc-product-detail--short {
  display: block;
  max-width: none;
  width: 100%;
  margin: 0;
}
body.single-product .rc-pdp-v16 .rc-pdp-story .rc-product-detail > * { margin-bottom: 23px; }
body.single-product .rc-pdp-v16 .rc-pdp-story .rc-product-detail__intro { padding: 0; border: 0; }
body.single-product .rc-pdp-v16 .rc-pdp-story .rc-product-detail__lead { font-size: 17px; line-height: 1.65; }
body.single-product .rc-pdp-v16 .rc-pdp-story .rc-product-detail__eyebrow {
  margin: 0 0 8px;
  font: 700 11px/1.5 Arial, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #a35c53;
}
body.single-product .rc-pdp-v16 .rc-pdp-story .rc-product-detail__facts {
  background: #e9dfc9;
  border-radius: 3px;
  padding: 24px;
}
body.single-product .rc-pdp-v16 .rc-pdp-story .rc-product-detail__specs { list-style: none; padding: 0; margin: 0; }
body.single-product .rc-pdp-v16 .rc-pdp-story .rc-product-detail__specs li {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 8px 0; border-bottom: 1px solid rgba(41,40,35,.12);
  font-size: 14px; line-height: 1.6;
}
body.single-product .rc-pdp-v16 .rc-pdp-story .rc-product-detail__specs li strong { text-align: right; }
body.single-product .rc-pdp-v16 .rc-pdp-story .rc-product-detail__fineprint {
  font-size: 13px; line-height: 1.6; color: var(--rc-pdp-muted);
}
body.single-product .rc-pdp-v16 .rc-pdp-story :is(.rc-product-detail__greeting, .xmas-message) {
  background: var(--rc-pdp-paper);
  border: 1px solid var(--rc-pdp-line);
  padding: 26px;
  text-align: center;
  margin: 25px 0;
}
body.single-product .rc-pdp-v16 .rc-pdp-story :is(.rc-product-detail__greeting, .xmas-message) em,
body.single-product .rc-pdp-v16 .rc-pdp-story .card-mes-first {
  font: italic 400 20px/1.55 Georgia, 'Times New Roman', serif;
}
body.single-product .rc-pdp-v16 .rc-pdp-story .card-messages { list-style: none; margin: 0; padding: 0; }
body.single-product .rc-pdp-v16 .rc-pdp-story .rc-product-detail__artist {
  border-top: 1px solid var(--rc-pdp-line);
  padding-top: 21px;
  font-size: 14px;
}
body.single-product .rc-pdp-v16 .rc-pdp-purchase {
  padding: clamp(20px, 2.3vw, 31px);
  background: var(--rc-pdp-paper);
  border: 1px solid var(--rc-pdp-line);
  border-radius: 3px;
  margin: 28px 0 23px;
}
body.single-product .rc-pdp-v16 .rc-pdp-purchase h2,
body.single-product .rc-pdp-v16 .rc-pdp-attributes h2,
body.single-product .rc-pdp-v16 .rc-pdp-delivery h2 {
  font: 400 clamp(22px, 1.8vw, 28px)/1.3 Georgia, 'Times New Roman', serif;
  color: var(--rc-pdp-ink);
  margin: 0 0 18px;
}
body.single-product .rc-pdp-v16 .rc-pdp-purchase .price { color: var(--rc-pdp-green); font-size: 21px; }
body.single-product .rc-pdp-v16 .rc-pdp-purchase .variations { margin: 8px 0 18px; }
body.single-product .rc-pdp-v16 .rc-pdp-purchase form.cart,
body.single-product .rc-pdp-v16 .rc-pdp-purchase .variations_form { max-width: 100%; }
body.single-product .rc-pdp-v16 .rc-pdp-purchase .single_add_to_cart_button { min-height: 46px; }
body.single-product .rc-pdp-v16 .product_meta { margin: 0 0 23px; }
body.single-product .rc-pdp-v16 .rc-pdp-features {
  display: flex; flex-wrap: wrap; gap: 9px;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--rc-pdp-line);
  margin-bottom: 26px;
}
body.single-product .rc-pdp-v16 .rc-pdp-features span {
  background: #f1ebe1; border-radius: 2px;
  padding: 7px 11px; color: #45635a; font: 600 12px/1.5 Arial, sans-serif;
}
body.single-product .rc-pdp-v16 .rc-pdp-attributes,
body.single-product .rc-pdp-v16 .rc-pdp-delivery { margin: 0 0 28px; }
body.single-product .rc-pdp-v16 .woocommerce-product-attributes { width: 100%; border-collapse: collapse; }
body.single-product .rc-pdp-v16 .woocommerce-product-attributes th,
body.single-product .rc-pdp-v16 .woocommerce-product-attributes td {
  vertical-align: top; padding: 11px 9px 11px 0;
  border-bottom: 1px solid var(--rc-pdp-line);
  font-size: 14px; line-height: 1.65;
  text-align: left;
  background: transparent;
  color: var(--rc-pdp-ink);
}
body.single-product .rc-pdp-v16 .woocommerce-product-attributes th { width: 38%; font-weight: 600; }
body.single-product .rc-pdp-v16 .woocommerce-product-attributes td p { margin: 0; }
body.single-product .rc-pdp-v16 .rc-pdp-delivery {
  padding: 21px 25px; background: #f1ebe1; border-radius: 3px;
}
body.single-product .rc-pdp-v16 .rc-pdp-delivery p { margin: 0 0 11px; font-size: 14px; line-height: 1.7; }
body.single-product .rc-pdp-v16 .rc-pdp-delivery p:last-child { margin-bottom: 0; }
body.single-product .rc-pdp-v16 .rc-pdp-delivery a { color: var(--rc-pdp-green); text-decoration: underline; }
body.single-product .rc-pdp-v16 .rc-pdp-after-summary { clear: both; margin-top: clamp(42px, 5vw, 75px); }
body.single-product .rc-pdp-v16 :is(.related,.upsells,.up-sells) { margin-top: 45px; }
body.single-product .rc-pdp-v16 :is(.related,.upsells,.up-sells) > h2 { margin-bottom: 25px; }
body.single-product .rc-pdp-v16 :is(.woocommerce-tabs,.ct-product-tabs) { margin-top: 0; }



/* ===== PDP v1.6.1: image-led gallery / clear single buying area =====
   Opt-in layout only. Everything below is restricted to this template. */
body.single-product .rc-pdp-v16 { max-width: 1200px; }
body.single-product .rc-pdp-v16 .rc-pdp-v16-grid {
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
  gap: clamp(27px, 4vw, 56px);
}
/* Main image full-width, remaining full artwork displayed 2 per row. */
body.single-product .rc-pdp-v16 .rc-pdp-gallery-scroll {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
  scroll-behavior: auto;
  padding: 0 10px 4px 0;
}
body.single-product .rc-pdp-v16 .rc-pdp-gallery-scroll .rc-pdp-image {
  min-width: 0;
  margin: 0;
  padding: clamp(8px, 1vw, 13px);
}
body.single-product .rc-pdp-v16 .rc-pdp-gallery-scroll .rc-pdp-image--first { grid-column: 1 / -1; }
body.single-product .rc-pdp-v16 .rc-pdp-gallery-scroll .rc-pdp-image-link {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 0;
}
body.single-product .rc-pdp-v16 .rc-pdp-gallery-scroll .rc-pdp-image--first .rc-pdp-artwork-image {
  width: auto;
  max-width: 100%;
  max-height: 575px;
  height: auto !important;
  object-fit: contain !important;
}
body.single-product .rc-pdp-v16 .rc-pdp-gallery-scroll .rc-pdp-image:not(.rc-pdp-image--first) .rc-pdp-image-link {
  min-height: 0;
  height: min(250px, 23vw);
}
body.single-product .rc-pdp-v16 .rc-pdp-gallery-scroll .rc-pdp-image:not(.rc-pdp-image--first) .rc-pdp-artwork-image {
  width: auto;
  max-width: 100%;
  height: auto !important;
  max-height: 100%;
  object-fit: contain !important;
}
/* The saved rich description is not edited. Hide only its optional, duplicated
   introductory blurb and outdated hard-coded pack-price note in this view. */
body.single-product .rc-pdp-v16 .rc-pdp-story .rc-product-detail__intro,
body.single-product .rc-pdp-v16 .rc-pdp-existing-facts .rc-product-detail__fineprint {
  display: none;
}
body.single-product .rc-pdp-v16 .rc-pdp-story { margin-bottom: 10px; }
body.single-product .rc-pdp-v16 .rc-pdp-story .rc-product-detail > * { margin-bottom: 20px; }
body.single-product .rc-pdp-v16 .rc-pdp-story .rc-product-detail__story { margin-top: 0; }
body.single-product .rc-pdp-v16 .rc-pdp-story .rc-product-detail__story > h3:first-child { margin-top: 0; }
/* Buy panel and delivery are consecutive; all prices are inside the buy panel. */
body.single-product .rc-pdp-v16 .rc-pdp-purchase { margin: 24px 0 0; padding: 23px; }
body.single-product .rc-pdp-v16 .rc-pdp-purchase > .price { margin: 0 0 17px; }
body.single-product .rc-pdp-v16 .rc-pdp-purchase.rc-pdp-has-variation > .price { display: none; }
body.single-product .rc-pdp-v16 .rc-pdp-purchase .woocommerce-variation-price .price { margin: 12px 0; }
body.single-product .rc-pdp-v16 .rc-pdp-delivery {
  padding: 16px 23px;
  margin: 0 0 24px;
  border: 1px solid var(--rc-pdp-line);
  border-top: 0;
  background: #f1ebe1;
}
body.single-product .rc-pdp-v16 .rc-pdp-delivery h2 { font-size: 21px; margin: 0 0 7px; }
body.single-product .rc-pdp-v16 .rc-pdp-delivery p { margin-bottom: 5px; }
body.single-product .rc-pdp-v16 :is(.rc-pdp-existing-facts,.rc-pdp-existing-greeting,.rc-pdp-existing-artist):empty { display: none; }
body.single-product .rc-pdp-v16 .rc-pdp-features { margin-top: 18px; }
/* Reuse the existing authored card details and greeting after the purchase panel. */
body.single-product .rc-pdp-v16 .rc-pdp-existing-facts .rc-product-detail__facts {
  margin: 12px 0 25px;
  padding: 22px;
  background: #e9dfc9;
  border-radius: 3px;
}
body.single-product .rc-pdp-v16 .rc-pdp-existing-facts .rc-product-detail__eyebrow,
body.single-product .rc-pdp-v16 .rc-pdp-existing-greeting .rc-product-detail__eyebrow,
body.single-product .rc-pdp-v16 .rc-pdp-existing-artist .rc-product-detail__eyebrow {
  color: #a35c53;
  font: 700 11px/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin: 0 0 9px;
}
body.single-product .rc-pdp-v16 .rc-pdp-existing-facts h3,
body.single-product .rc-pdp-v16 .rc-pdp-existing-greeting h3,
body.single-product .rc-pdp-v16 .rc-pdp-existing-artist h3 {
  font: 400 24px/1.3 Georgia, 'Times New Roman', serif;
  margin: 0 0 13px;
  color: var(--rc-pdp-ink);
}
body.single-product .rc-pdp-v16 .rc-pdp-existing-facts .rc-product-detail__specs { list-style: none; padding: 0; margin: 0; }
body.single-product .rc-pdp-v16 .rc-pdp-existing-facts .rc-product-detail__specs li {
  display: flex; gap: 16px; justify-content: space-between;
  padding: 8px 0; margin: 0;
  border-bottom: 1px solid rgba(41,40,35,.13);
  font-size: 14px; line-height: 1.6;
}
body.single-product .rc-pdp-v16 .rc-pdp-existing-facts .rc-product-detail__specs li strong { text-align: right; }
body.single-product .rc-pdp-v16 .rc-pdp-existing-greeting :is(.rc-product-detail__greeting,.xmas-message) {
  background: var(--rc-pdp-paper);
  padding: 24px;
  border: 1px solid var(--rc-pdp-line);
  text-align: center;
  margin-bottom: 25px;
}
body.single-product .rc-pdp-v16 .rc-pdp-existing-greeting :is(em,.card-mes-first) {
  font: italic 400 20px/1.5 Georgia, 'Times New Roman', serif;
}
body.single-product .rc-pdp-v16 .rc-pdp-existing-artist { margin: 30px 0 12px; border-top: 1px solid var(--rc-pdp-line); padding-top: 22px; }
body.single-product .rc-pdp-v16 .rc-pdp-existing-artist p { font-size: 14px; line-height: 1.7; }
/* Optional enhancement of the native single-attribute WooCommerce variation form.
   Native <select> stays present for validation, accessibility and form processing. */
body.single-product .rc-pdp-v16 .rc-pdp-pack-enhanced table.variations,
body.single-product .rc-pdp-v16 .rc-pdp-pack-enhanced table.variations tbody,
body.single-product .rc-pdp-v16 .rc-pdp-pack-enhanced table.variations tr,
body.single-product .rc-pdp-v16 .rc-pdp-pack-enhanced table.variations th,
body.single-product .rc-pdp-v16 .rc-pdp-pack-enhanced table.variations td {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
}
body.single-product .rc-pdp-v16 .rc-pdp-pack-enhanced .variations th.label { margin: 0 0 10px; }
body.single-product .rc-pdp-v16 .rc-pdp-pack-enhanced .variations th.label label {
  font: 700 12px/1.4 Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: .09em;
}
body.single-product .rc-pdp-v16 .rc-pdp-pack-enhanced .variations select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  clip-path: inset(50%);
  overflow: hidden;
}
body.single-product .rc-pdp-v16 .rc-pdp-pack-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 7px;
}
body.single-product .rc-pdp-v16 .rc-pdp-pack-choice {
  position: relative;
  border: 1px solid #cfc5b9;
  border-radius: 2px;
  background: #fffdf9;
  min-height: 107px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  color: #292823;
  text-align: left;
  font: 400 15px/1.45 Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
body.single-product .rc-pdp-v16 .rc-pdp-pack-choice:hover,
body.single-product .rc-pdp-v16 .rc-pdp-pack-choice:focus-visible { border-color: #45635a; }
body.single-product .rc-pdp-v16 .rc-pdp-pack-choice:focus-visible { outline: 2px solid #45635a; outline-offset: 2px; }
body.single-product .rc-pdp-v16 .rc-pdp-pack-choice[aria-pressed="true"] {
  background: #f1ebe1;
  border: 2px solid #45635a;
  padding: 13px 11px;
}
body.single-product .rc-pdp-v16 .rc-pdp-pack-choice:disabled { opacity: .50; cursor: not-allowed; }
body.single-product .rc-pdp-v16 .rc-pdp-pack-choice-label { font-weight: 600; font-size: 15px; }
body.single-product .rc-pdp-v16 .rc-pdp-pack-choice-price { font-weight: 600; font-size: 15px; color: #45635a; }
body.single-product .rc-pdp-v16 .rc-pdp-pack-enhanced .reset_variations { margin: 3px 0 9px; display: inline-block; }


@media (prefers-reduced-motion: reduce) {
  body.single-product .rc-pdp-v16 .rc-pdp-pack-choice { transition: none; }
}


/* === Rochester Cards v1.6.2: one price and an artwork-led discovery area ===
 * The native WooCommerce price in the purchase panel remains visible.
 * Blocksy can output a separate summary price directly after the title;
 * suppress only that duplicate in this opt-in product template.
 */
body.single-product .rc-pdp-v16 .rc-pdp-main.summary.entry-summary > .price {
  display: none !important;
}

/* === v1.6.3: Related gallery, correctly scoped to Blocksy rendering ===
 * Blocksy may render the related section OUTSIDE .rc-pdp-v16, at the end of
 * woocommerce_after_main_content. The v1.6.2 descendant selector could not
 * reach it, so the grid remained four columns. Scope by the opt-in body class
 * instead. The Shop, category listings, and other product templates are not
 * affected. Related product selection and values remain native WooCommerce.
 */
body.single-product.rc-pdp-v16-active :is(.related.products, .ct-related-products) {
  width: min(100%, 1180px);
  max-width: 1180px;
  margin: clamp(48px, 5vw, 78px) auto 0;
  padding-top: clamp(24px, 3vw, 37px);
  border-top: 1px solid #ded5c8;
}
body.single-product.rc-pdp-v16-active :is(.related.products, .ct-related-products) > h2 {
  font: 400 clamp(27px, 2.6vw, 37px)/1.22 Georgia, 'Times New Roman', serif;
  letter-spacing: -.016em;
  color: #292823;
  margin: 0 0 clamp(22px, 3vw, 30px);
}
body.single-product.rc-pdp-v16-active :is(.related.products, .ct-related-products) > h2::before {
  content: 'EXPLORE MORE ARTWORK';
  display: block;
  margin-bottom: 9px;
  font: 700 11px/1.5 Arial, Helvetica, sans-serif;
  color: #a35c53;
  letter-spacing: .15em;
}
/* Native WooCommerce's ul.products and Blocksy's [data-products] both receive
 * the correct two-column hint. --shop-columns is what Blocksy uses in its
 * breakpoint rules; grid-template-columns also covers standard WooCommerce.
 */
body.single-product.rc-pdp-v16-active :is(.related.products, .ct-related-products) :is(ul.products, [data-products]) {
  --shop-columns: repeat(2, minmax(0, 1fr)) !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: clamp(22px, 3vw, 36px) !important;
  row-gap: clamp(30px, 3vw, 40px) !important;
  margin: 0;
}
body.single-product.rc-pdp-v16-active :is(.related.products, .ct-related-products) :is(ul.products, [data-products]) > li.product {
  box-sizing: border-box;
  float: none !important;
  width: auto !important;
  min-width: 0;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(14px, 1.8vw, 22px);
  border: 1px solid #e5dbcd;
  background: #fffdf8;
  border-radius: 3px;
}
/* Artwork is fitted INSIDE one consistently sized gallery frame, without crop.
 * This is a display frame only: no attachment is regenerated or resized.
 */
body.single-product.rc-pdp-v16-active :is(.related.products, .ct-related-products) li.product .ct-media-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3 !important;
  height: auto !important;
  min-height: 0;
  overflow: hidden;
  background: #f7f3ea;
}
body.single-product.rc-pdp-v16-active :is(.related.products, .ct-related-products) li.product .ct-media-container img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  object-fit: contain !important;
  object-position: center;
}
body.single-product.rc-pdp-v16-active :is(.related.products, .ct-related-products) li.product :is(.woocommerce-loop-product__title,.ct-woo-card-title) {
  font: 400 clamp(17px, 1.5vw, 20px)/1.35 Georgia, 'Times New Roman', serif;
  margin-top: 14px;
  color: #292823;
}
body.single-product.rc-pdp-v16-active :is(.related.products, .ct-related-products) li.product .price {
  font-size: 15px;
  color: #45635a;
}
@media (max-width: 700px) {
  body.single-product.rc-pdp-v16-active :is(.related.products, .ct-related-products) :is(ul.products, [data-products]) {
    --shop-columns: repeat(1, minmax(0, 1fr)) !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: 22px !important;
  }
  body.single-product.rc-pdp-v16-active :is(.related.products, .ct-related-products) :is(ul.products, [data-products]) > li.product {
    padding: 14px;
  }
}

/* === v1.6.4: single source of truth for PDP responsive layout ===
 * This block intentionally follows every desktop grid rule above.
 * v1.6.3 placed a later 1.28fr/1fr desktop rule AFTER its mobile
 * breakpoint. As a result, narrow screens still rendered two columns.
 * Do not move the mobile breakpoints above the desktop declarations.
 */
@media (max-width: 991px) {
  body.single-product .rc-pdp-v16 {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }
  body.single-product .rc-pdp-v16 .rc-pdp-v16-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    width: 100%;
    min-width: 0;
  }
  body.single-product .rc-pdp-v16 .rc-pdp-gallery {
    position: static;
    top: auto;
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  body.single-product .rc-pdp-v16 .rc-pdp-gallery-scroll {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 12px;
    max-height: none;
    height: auto;
    width: 100%;
    overflow: visible;
    padding: 0;
  }
  body.single-product .rc-pdp-v16 .rc-pdp-gallery-scroll .rc-pdp-image {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
  }
  body.single-product .rc-pdp-v16 .rc-pdp-gallery-scroll .rc-pdp-image--first {
    grid-column: 1 / -1;
  }
  body.single-product .rc-pdp-v16 .rc-pdp-gallery-scroll .rc-pdp-image:not(.rc-pdp-image--first) .rc-pdp-image-link {
    height: auto;
    min-height: 0;
  }
  body.single-product .rc-pdp-v16 .rc-pdp-gallery-scroll .rc-pdp-image:not(.rc-pdp-image--first) .rc-pdp-artwork-image {
    width: auto;
    height: auto !important;
    max-width: 100%;
    max-height: 270px;
    object-fit: contain !important;
  }
  body.single-product .rc-pdp-v16 .rc-pdp-main.summary.entry-summary {
    float: none;
    display: block;
    clear: none;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
  body.single-product .rc-pdp-v16 .rc-pdp-story,
  body.single-product .rc-pdp-v16 .rc-pdp-purchase,
  body.single-product .rc-pdp-v16 .rc-pdp-delivery,
  body.single-product .rc-pdp-v16 .rc-pdp-attributes,
  body.single-product .rc-pdp-v16 .rc-pdp-existing-facts,
  body.single-product .rc-pdp-v16 .rc-pdp-existing-greeting,
  body.single-product .rc-pdp-v16 .rc-pdp-existing-artist {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}
@media (max-width: 600px) {
  body.single-product .rc-pdp-v16 {
    padding-inline: 0;
  }
  body.single-product .rc-pdp-v16 .rc-pdp-v16-grid { gap: 23px; }
  body.single-product .rc-pdp-v16 h1.product_title {
    font-size: clamp(28px, 7vw, 34px);
    line-height: 1.2;
    overflow-wrap: break-word;
    margin-bottom: 16px;
  }
  body.single-product .rc-pdp-v16 .rc-pdp-gallery-scroll {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  body.single-product .rc-pdp-v16 .rc-pdp-gallery-scroll .rc-pdp-image {
    padding: 8px;
  }
  body.single-product .rc-pdp-v16 .rc-pdp-gallery-scroll .rc-pdp-image:not(.rc-pdp-image--first) .rc-pdp-artwork-image {
    max-height: 210px;
  }
  body.single-product .rc-pdp-v16 .rc-pdp-story {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 9px;
  }
  body.single-product .rc-pdp-v16 .rc-pdp-purchase {
    margin-top: 20px;
    padding: clamp(14px, 4vw, 20px);
  }
  body.single-product .rc-pdp-v16 .rc-pdp-purchase h2 {
    font-size: 24px;
  }
  body.single-product .rc-pdp-v16 .rc-pdp-pack-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  body.single-product .rc-pdp-v16 .rc-pdp-pack-choice-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  body.single-product .rc-pdp-v16 .rc-pdp-pack-choice {
    box-sizing: border-box;
    min-width: 0;
    min-height: 92px;
    padding: 12px;
    font-size: 14px;
    overflow-wrap: break-word;
  }
  body.single-product .rc-pdp-v16 .rc-pdp-pack-choice[aria-pressed="true"] {
    padding: 11px;
  }
  body.single-product .rc-pdp-v16 .rc-pdp-delivery {
    padding: 16px;
  }
  body.single-product .rc-pdp-v16 .rc-pdp-existing-facts .rc-product-detail__facts {
    padding: 18px 16px;
  }
  body.single-product .rc-pdp-v16 .rc-pdp-existing-facts .rc-product-detail__specs li {
    gap: 12px;
  }
  body.single-product .rc-pdp-v16 .woocommerce-product-attributes th,
  body.single-product .rc-pdp-v16 .woocommerce-product-attributes td {
    padding: 9px 6px 9px 0;
    overflow-wrap: anywhere;
  }
  body.single-product .rc-pdp-v16 .rc-pdp-after-summary {
    margin-top: 36px;
  }
}
@media (max-width: 360px) {
  body.single-product .rc-pdp-v16 .rc-pdp-pack-choice-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  body.single-product .rc-pdp-v16 .rc-pdp-pack-choice-grid > :last-child:nth-child(odd) {
    grid-column: auto;
  }
  body.single-product .rc-pdp-v16 .rc-pdp-pack-choice {
    min-height: 64px;
    flex-direction: row;
    align-items: center;
  }
}
