/*
 * WCAG 2.2 AA typography normalization — 2026-08-05.
 *
 * WCAG does not prescribe a maximum heading size. This layer keeps headings
 * readable and restrained while preserving 200% browser zoom, reflow and
 * user-defined text spacing. It is intentionally loaded after page CSS.
 */

:root {
  --rp-type-page-title: 2.5rem;       /* 40px at the default 16px root */
  --rp-type-section-title: 1.875rem;  /* 30px */
  --rp-type-subtitle: 1.25rem;        /* 20px */
  --rp-type-minor-title: 1.125rem;    /* 18px */
  --rp-type-product-title: 1.0625rem; /* 17px */
}

body.rp-theme {
  font-size: 1rem;
  line-height: 1.6;
}

/*
 * Main content headings. Fixed relative units are used instead of viewport-only
 * sizing so browser text enlargement remains predictable.
 */
body.rp-theme main.site-main :where(h1),
body.rp-theme .wp-block-post-content :where(h1),
body.rp-theme .entry-content :where(h1) {
  max-width: 100%;
  max-height: none !important;
  overflow: visible !important;
  font-size: var(--rp-type-page-title) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.025em !important;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
}

body.rp-theme main.site-main :where(h2):not(.product-name),
body.rp-theme .wp-block-post-content :where(h2):not(.product-name),
body.rp-theme .entry-content :where(h2):not(.product-name) {
  max-width: 100%;
  max-height: none !important;
  overflow: visible !important;
  font-size: var(--rp-type-section-title) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.018em !important;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
}

body.rp-theme main.site-main :where(h3):not(.product-name),
body.rp-theme .wp-block-post-content :where(h3):not(.product-name),
body.rp-theme .entry-content :where(h3):not(.product-name) {
  max-height: none !important;
  overflow: visible !important;
  font-size: var(--rp-type-subtitle) !important;
  line-height: 1.3 !important;
  letter-spacing: -0.008em !important;
  overflow-wrap: break-word;
  word-break: normal;
}

body.rp-theme main.site-main :where(h4):not(.product-name),
body.rp-theme .wp-block-post-content :where(h4):not(.product-name),
body.rp-theme .entry-content :where(h4):not(.product-name) {
  max-height: none !important;
  overflow: visible !important;
  font-size: var(--rp-type-minor-title) !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  overflow-wrap: break-word;
  word-break: normal;
}

/** Compact mobile scale without returning to oversized display typography. */
@media (max-width: 767px) {
  :root {
    --rp-type-page-title: 2.25rem;       /* 36px */
    --rp-type-section-title: 1.625rem;   /* 26px */
    --rp-type-subtitle: 1.1875rem;       /* 19px */
     --rp-type-minor-title: 1.0625rem;    /* 17px */
    --rp-type-product-title: 1.0625rem;  /* 17px */
  }

  body.rp-theme main.site-main :where(h1),
  body.rp-theme .wp-block-post-content :where(h1),
  body.rp-theme .entry-content :where(h1) {
    line-height: 1.16 !important;
  }

  body.rp-theme main.site-main :where(h2):not(.product-name),
  body.rp-theme .wp-block-post-content :where(h2):not(.product-name),
  body.rp-theme .entry-content :where(h2):not(.product-name) {
    line-height: 1.22 !important;
  }
}



/* RP-SYSTEM Product Card V2 — single authoritative style layer for shared native cards.
 * The legacy name/price/card-button overrides are retired below.
 * The control is SVG-only; the real cart handler stays on [data-cart-add].
 */
body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card {
  display:flex !important;flex-direction:column!important;min-width:0!important;
  width:auto!important;height:100%;grid-template-rows:none!important;
  position:relative!important;isolation:isolate;
  padding:9px!important;gap:0!important;overflow:hidden!important;
  border:1px solid var(--line,#dedede)!important;border-radius:18px!important;
  background:#fff!important;box-sizing:border-box!important;
  box-shadow:none!important;transition:border-color .18s,box-shadow .18s;
}
body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card:hover {border-color:var(--line,#dedede)!important;box-shadow:0 12px 32px #44382a10!important}
body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card > .product-img {
  display:block!important;width:100%!important;min-width:0!important;flex:0 0 auto!important;
  aspect-ratio:1/1!important;min-height:0!important;height:auto!important;
  border-radius:11px!important;overflow:hidden!important;background:#f5f3ee!important;
  position:relative!important;margin:0!important;padding:0!important;
}
body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card > .product-img > img:not(.rp-product-card__second-image) {
  display:block!important;position:absolute!important;inset:0!important;
  max-width:none!important;width:100%!important;max-height:none!important;
  height:100%!important;object-fit:cover!important;object-position:center!important;
  margin:0!important;padding:0!important;
}
body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card > .like-btn {
  position:absolute!important;z-index:5!important;top:17px!important;right:17px!important;
  left:auto!important;bottom:auto!important;width:34px!important;height:34px!important;
  min-width:34px!important;min-height:34px!important;padding:6px!important;
  border-radius:50%!important;border:1px solid var(--line,#dedede)!important;
  background:var(--surface,#fff)!important;box-shadow:none!important;
}
body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card > .rp-card-v2__body,
body.rp-theme.rp-shop-context .shop-main .product-card > .rp-card-v2__body {
  display:flex!important;flex-direction:column!important;flex:1 1 auto!important;
  grid-template-rows:none!important;min-width:0!important;width:100%!important;
  padding:13px 6px 4px!important;gap:0!important;background:transparent!important;
}
body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__meta {
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  min-width:0!important;gap:5px!important;margin:0 0 8px!important;
}
body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__brand {
  font-size:9px!important;font-weight:800!important;letter-spacing:.06em!important;
  color:var(--rp-muted-on-cream,#6b6b6b)!important;white-space:nowrap!important;overflow:hidden!important;
  text-overflow:ellipsis!important;min-width:0!important;text-transform:uppercase!important;
}
body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__rating {
  display:inline-flex!important;flex:0 0 auto!important;align-items:center!important;
  justify-content:flex-end!important;min-width:0!important;width:auto!important;
  min-height:20px!important;height:20px!important;padding:0!important;
  margin:0!important;border:0!important;background:none!important;
}
body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__rating .rp-rating-star,
body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__rating .rp-rating-star svg {
  width:11px!important;height:11px!important;flex:0 0 11px!important;
}
body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__rating .rp-stars-svg {gap:2px!important}
body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__rating .rp-rating-text {display:none!important}
body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__title {
  display:-webkit-box!important;-webkit-line-clamp:2!important;line-clamp:2!important;
  -webkit-box-orient:vertical!important;overflow:hidden!important;
  max-height:2.6em!important;min-height:2.6em!important;height:2.6em!important;
  font-size:14px!important;line-height:1.3!important;font-weight:720!important;
  letter-spacing:-.012em!important;color:var(--text,#050505)!important;
  text-transform:none!important;white-space:normal!important;
  overflow-wrap:anywhere!important;margin:0!important;padding:0!important;
}
body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__title > a {
  display:initial!important;font:inherit!important;line-height:inherit!important;
  color:inherit!important;height:auto!important;max-height:none!important;
  overflow:visible!important;white-space:normal!important;letter-spacing:inherit!important;
  -webkit-line-clamp:unset!important;line-clamp:unset!important;
}
body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__purchase {
  display:flex!important;align-items:flex-end!important;justify-content:space-between!important;
  gap:7px!important;min-width:0!important;margin-top:auto!important;
  padding-top:15px!important;flex:0 0 auto!important;
}
body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__pricing {
  display:block!important;flex:1 1 0!important;width:auto!important;min-width:0!important;
  height:auto!important;margin:0!important;padding:0!important;
  overflow:visible!important;background:none!important;
}
body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__pricing > .product-price {
  display:block!important;width:100%!important;min-width:0!important;
  color:var(--text,#050505)!important;font-size:19px!important;font-weight:850!important;
  letter-spacing:-.035em!important;line-height:1.16!important;
  white-space:normal!important;overflow-wrap:normal!important;
}
body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__pricing .product-price > del {
  font-size:.66em!important;color:var(--rp-muted-on-cream,#6b6b6b)!important;opacity:1!important;
  font-weight:650!important;text-decoration:line-through!important;
}
body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__pricing .product-price > ins {
  text-decoration:none!important;font-weight:850!important;color:var(--text,#050505)!important;
}
body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__pricing .woocommerce-price-suffix {
  display:none!important; /* already displayed at product/checkout level */
}
body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__pricing .rps-unit-price {
  display:block!important;width:100%!important;margin-top:7px!important;
  color:var(--rp-muted-on-cream,#6b6b6b)!important;font-size:12.8px!important;line-height:1.35!important;
  font-weight:540!important;letter-spacing:0!important;white-space:normal!important;
  overflow-wrap:anywhere!important;
}
body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__pricing .rps-unit-price .woocommerce-Price-amount,
body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__pricing .rps-unit-price > span {
  font-size:inherit!important;font-weight:700!important;line-height:inherit!important;
  white-space:normal!important;
}
body.rp-theme main#main .product-card .rp-card-v2__cart,
body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__cart,
body.rp-theme.page-id-85066 .woocommerce ul.products li.product .rp-card-v2__cart {
  flex:0 0 39px!important;display:inline-flex!important;justify-content:center!important;
  align-items:center!important;width:39px!important;max-width:39px!important;
  min-width:39px!important;height:39px!important;min-height:39px!important;
  max-height:39px!important;border-radius:50%!important;
  padding:0!important;margin:0!important;
  background:var(--rp-brand-brown,#8d6c48)!important;color:white!important;border:1px solid var(--rp-brand-brown,#8d6c48)!important;
  font-size:0!important;letter-spacing:0!important;line-height:1!important;
  overflow:visible!important;text-indent:0!important;
}
body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__cart > svg {display:block!important;flex:0 0 20px!important;width:20px!important;height:20px!important}
body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__cart:is(:hover,:focus-visible) {background:var(--rp-brand-brown-dark,#634721)!important;border-color:var(--rp-brand-brown-dark,#634721)!important;color:#fff!important}
body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__cart:focus-visible {outline:3px solid var(--rp-gold,#d6a21e)!important;outline-offset:2px!important}
@media (max-width:767px) {
  body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card {padding:6px!important;border-radius:13px!important}
  body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card > .product-img {border-radius:9px!important}
  body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card > .like-btn {top:10px!important;right:10px!important;width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important}
  body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card > .rp-card-v2__body {padding:10px 5px 4px!important}
  body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__title {font-size:12.5px!important}
  body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__meta {margin-bottom:6px!important}
  body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__brand {font-size:8px!important}
  body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__rating .rp-rating-star,
  body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__rating .rp-rating-star svg {width:10px!important;height:10px!important;flex-basis:10px!important}
  body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__purchase {padding-top:12px!important;gap:4px!important}
  body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__pricing > .product-price {font-size:17px!important}
  body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__pricing .rps-unit-price {font-size:12px!important;line-height:1.35!important}
  body.rp-theme main#main .product-card .rp-card-v2__cart,
  body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__cart {width:34px!important;max-width:34px!important;min-width:34px!important;flex-basis:34px!important;height:34px!important;min-height:34px!important;max-height:34px!important}
}
@media (max-width:359px) {
 body.rp-theme :is(.site-main, .rp-native-cart-cross-sells, .search-full) .product-card .rp-card-v2__purchase {flex-wrap:wrap!important}
}


/* RP native category pill arrow navigation — shared home and product archives. */
body.rp-theme .rp-pill-scroll-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
  margin: 0 0 18px;
}
body.rp-theme .rp-pill-scroll-shell .category-strip {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  margin: 0 !important;
  padding: 5px 2px 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-behavior: auto; /* arrow click updates scrollLeft immediately */
  scroll-snap-type: none;
}
body.rp-theme .rp-pill-scroll-shell .category-strip::-webkit-scrollbar { display: none; }
body.rp-theme .rp-pill-scroll-shell > .rp-pill-scroll-arrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  flex: 0 0 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--line,#dedede) !important;
  border-radius: 50% !important;
  color: var(--rp-brand-brown-dark,#634721) !important;
  background: #fff !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  cursor: pointer;
}
body.rp-theme .rp-pill-scroll-shell > .rp-pill-scroll-arrow svg {
  width: 17px;
  height: 17px;
  display: block;
}
body.rp-theme .rp-pill-scroll-shell > .rp-pill-scroll-arrow:disabled {
  cursor: default;
  color: var(--rp-muted-on-cream,#6b6b6b) !important;
  border-color: var(--line,#dedede) !important;
  opacity: .48;
}
body.rp-theme .rp-pill-scroll-shell > .rp-pill-scroll-arrow:focus-visible {
  outline: 3px solid var(--rp-gold,#d6a21e);
  outline-offset: 2px;
}
body.rp-theme .rp-pill-scroll-shell:not(.is-scrollable) > .rp-pill-scroll-arrow {
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 767px) {
  body.rp-theme .rp-pill-scroll-shell { gap: 5px; }
  body.rp-theme .rp-pill-scroll-shell > .rp-pill-scroll-arrow {
    width: 34px !important;
    height: 38px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    flex-basis: 34px !important;
  }
}




/* RP search corrective styling: 2026-10-31.
 * Search V2 cards reuse shared typography selectors extended for .search-full.
 */
html:has(body.rp-theme.search-open) {
  overflow: hidden;
}
body.rp-theme.search-open {
  overflow: hidden;
  touch-action: auto;
}
body.rp-theme .search-full {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
body.rp-theme .search-full .search-results {
  max-height: max(160px, calc(100dvh - 240px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  align-content: start;
  scrollbar-gutter: stable;
  padding: 4px 6px 8px;
}
body.rp-theme .search-full .search-results > .product-card {
  min-width: 0;
  list-style: none;
}
@media (max-width: 767px) {
  body.rp-theme .search-full .search-results {
    max-height: max(140px, calc(100dvh - var(--mobile-header, 64px) - 215px));
    gap: 10px;
    padding-inline: 2px;
  }
}
