/* Product-page presentation; all colors and offer copy come from section settings. */
body.ruby-product-page [ui-section=single-product] {
  --ruby-product-accent: #84214f;
  --ruby-product-tint: #fff1f6;
  --ruby-product-border: #eed6e1;
  width: min(1420px, 100%);
  margin-inline: auto;
  padding: var(--top-spacing) clamp(18px, 4vw, 64px) var(--bottom-spacing) !important;
  color: #302029;
}
body.ruby-product-page [ui-section=single-product] .core {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr) !important;
  gap: clamp(28px, 4vw, 64px);
  overflow: visible;
  align-items: start;
}
body.ruby-product-page [ui-section=single-product] .core > .media[data-layout=carousel] {
  position: sticky;
  top: 98px;
  min-width: 0;
}
body.ruby-product-page [ui-section=single-product] .core > .media[data-layout=grid] { min-width: 0; }
body.ruby-product-page [ui-section=single-product] .main-media,
body.ruby-product-page [ui-section=single-product] .media[data-layout=grid] .image {
  border: 1px solid var(--ruby-product-border);
  background: var(--ruby-product-tint);
  border-radius: 20px !important;
}
body.ruby-product-page [ui-section=single-product] .media .markers { justify-content: flex-start; margin: 0 !important; }
body.ruby-product-page [ui-section=single-product] .media .markers .marker { border-radius: 10px !important; }
body.ruby-product-page [ui-section=single-product] .core .content { gap: 14px; min-width: 0; }
body.ruby-product-page [ui-section=single-product] .core .content [ui-block=title] {
  margin: 0;
  color: #302029;
  font-family: var(--font-heading-family);
  font-size: clamp(2rem, 3.25vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.035em;
}
body.ruby-product-page [ui-section=single-product] .core .content [ui-block=price] { margin-bottom: 4px; }
body.ruby-product-page [ui-section=single-product] .core .content [ui-block=price] .original-price { color: var(--ruby-product-accent); }
body.ruby-product-page [ui-section=single-product] .ruby-price-percent { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 5px; background: var(--ruby-product-accent); color: #fff; font-size: .68rem; font-weight: 850; line-height: 1; }
body.ruby-product-page [ui-section=single-product] .ruby-price-percent[hidden] { display: none; }
body.ruby-product-page [ui-section=single-product] .ruby-product-tag {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid var(--ruby-product-accent);
  border-radius: 4px;
  color: var(--ruby-product-accent);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .09em;
  line-height: 1.3;
  text-transform: uppercase;
}
body.ruby-product-page [ui-section=single-product] .ruby-product-tag span { margin-inline-end: 5px; }
body.ruby-product-page [ui-section=single-product] .ruby-product-benefit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  line-height: 1.5;
  font-size: .96rem;
}
body.ruby-product-page [ui-section=single-product] .ruby-product-benefit > span { flex: 0 0 22px; color: var(--ruby-product-accent); font-size: 1.12rem; text-align: center; }
body.ruby-product-page [ui-section=single-product] ui-variants { margin-top: 8px; }
body.ruby-product-page [ui-section=single-product] .ruby-product-tiers {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 13px 0 2px;
  padding: 16px 0 0;
  border: 0;
  border-top: 2px solid var(--ruby-product-accent);
}
body.ruby-product-page [ui-section=single-product] .ruby-product-tiers legend {
  margin-inline: auto;
  padding-inline: 12px;
  color: #302029;
  font-size: .88rem;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .045em;
}
body.ruby-product-page [ui-section=single-product] .ruby-product-tier {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1.5px solid var(--ruby-product-border);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(74, 22, 49, .04);
  cursor: pointer;
}
body.ruby-product-page [ui-section=single-product] .ruby-product-tier:has(input:checked) {
  border-color: var(--ruby-product-accent);
  background: var(--ruby-product-tint);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ruby-product-accent) 12%, transparent);
}
body.ruby-product-page [ui-section=single-product] .ruby-product-tier:focus-within { outline: 3px solid var(--ruby-product-accent); outline-offset: 2px; }
body.ruby-product-page [ui-section=single-product] .ruby-product-tier input { width: 18px; height: 18px; margin: 0; accent-color: var(--ruby-product-accent); }
body.ruby-product-page [ui-section=single-product] .ruby-product-tier__copy,
body.ruby-product-page [ui-section=single-product] .ruby-product-tier__prices { display: grid; gap: 2px; min-width: 0; }
body.ruby-product-page [ui-section=single-product] .ruby-product-tier__copy strong { color: #302029; font-size: .96rem; }
body.ruby-product-page [ui-section=single-product] .ruby-product-tier__copy small { color: #735c67; font-size: .76rem; }
body.ruby-product-page [ui-section=single-product] .ruby-product-tier__prices { justify-items: end; white-space: nowrap; }
body.ruby-product-page [ui-section=single-product] .ruby-product-tier__prices strong { color: var(--ruby-product-accent); font-weight: 850; }
body.ruby-product-page [ui-section=single-product] .ruby-product-tier__prices del { color: #8f7c87; font-size: .78rem; }
body.ruby-product-page [ui-section=single-product] .ruby-product-tier__prices del[hidden] { display: none; }
body.ruby-product-page [ui-section=single-product] .ruby-product-tier__tag {
  position: absolute;
  top: -12px;
  inset-inline-end: -1px;
  padding: 4px 9px;
  border-radius: 4px 4px 0 4px;
  background: var(--ruby-product-accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.2;
}
body.ruby-product-page [ui-section=single-product] .ruby-product-tiers__note { margin: 3px 2px 0; color: #735c67; font-size: .74rem; line-height: 1.45; }
body.ruby-product-page [ui-section=single-product] .ruby-product-cart-actions { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px; margin-top: 6px; }
body.ruby-product-page [ui-section=single-product] .ruby-product-cart-actions ui-quantity { align-self: stretch; }
body.ruby-product-page [ui-section=single-product] .ruby-product-cart-actions ui-shop-button { display: block; min-width: 0; }
body.ruby-product-page [ui-section=single-product] .ruby-product-cart-actions ui-shop-button > [ui-slot=button] { width: 100%; min-height: 50px; border-radius: 12px; background: var(--ruby-product-accent); color: #fff; font-weight: 800; }
body.ruby-product-page [ui-section=single-product] .ruby-direct-checkout { margin-top: 8px; border-color: var(--ruby-product-border); background: #fff; }
body.ruby-product-page [ui-section=single-product] .ruby-direct-checkout h2 { color: var(--ruby-product-accent); }
body.ruby-product-page [ui-section=single-product] #ruby-direct-checkout { scroll-margin-top: 90px; }
body.ruby-product-page [ui-section=single-product] .ruby-direct-checkout .actions ui-shop-button > [ui-slot=button] { border-radius: 12px; background: var(--ruby-product-accent); color: #fff; }
body.ruby-product-page [ui-section=single-product] .ruby-product-assurance { display: flex; gap: 10px; align-items: center; margin: 0; color: #5b4350; font-size: .82rem; line-height: 1.4; }
body.ruby-product-page [ui-section=single-product] .ruby-product-assurance span { display: grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; background: var(--ruby-product-tint); color: var(--ruby-product-accent); font-weight: 900; }
body.ruby-product-page [ui-section=single-product] .ruby-product-accordion { border-top: 1px solid var(--ruby-product-border); }
body.ruby-product-page [ui-section=single-product] .ruby-product-accordion:last-of-type { border-bottom: 1px solid var(--ruby-product-border); }
body.ruby-product-page [ui-section=single-product] .ruby-product-accordion summary { display: flex; justify-content: space-between; gap: 14px; padding: 16px 2px; color: #302029; font-weight: 750; cursor: pointer; list-style: none; }
body.ruby-product-page [ui-section=single-product] .ruby-product-accordion summary::-webkit-details-marker { display: none; }
body.ruby-product-page [ui-section=single-product] .ruby-product-accordion summary span { color: var(--ruby-product-accent); font-size: 1.2rem; line-height: 1; }
body.ruby-product-page [ui-section=single-product] .ruby-product-accordion[open] summary span { transform: rotate(45deg); }
body.ruby-product-page [ui-section=single-product] .ruby-product-accordion > div { padding: 0 2px 16px; color: #604e58; line-height: 1.65; }
body.ruby-product-page [ui-section=single-product] .ruby-product-description { width: 100%; }
body.ruby-product-page [ui-section=single-product] .ruby-product-description__layout:not(:has(.ruby-product-description__visual)) { display: block; }
body.ruby-product-page [ui-section=single-product] .ruby-product-sticky {
  position: fixed;
  z-index: 40;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px max(18px, calc((100vw - 1320px) / 2));
  border-top: 1px solid var(--ruby-product-border);
  background: rgba(255,255,255,.97);
  box-shadow: 0 -6px 24px rgba(65, 19, 42, .1);
}
body.ruby-product-page [ui-section=single-product] .ruby-product-sticky[hidden] { display: none; }
body.ruby-product-page [ui-section=single-product] .ruby-product-sticky > div { display: grid; gap: 2px; min-width: 0; }
body.ruby-product-page [ui-section=single-product] .ruby-product-sticky strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
body.ruby-product-page [ui-section=single-product] .ruby-product-sticky [data-ruby-sticky-price] { color: var(--ruby-product-accent); font-weight: 800; }
body.ruby-product-page [ui-section=single-product] .ruby-product-sticky a { flex: 0 0 auto; padding: 12px 18px; border-radius: 10px; background: var(--ruby-product-accent); color: #fff; font-size: .86rem; font-weight: 800; text-decoration: none; }
@media (max-width: 769px) {
  body.ruby-product-page [ui-section=single-product] { padding: 16px 16px 34px !important; }
  body.ruby-product-page [ui-section=single-product] .core { grid-template-columns: 1fr !important; gap: 18px; }
  body.ruby-product-page [ui-section=single-product] .core > .media[data-layout=carousel] { position: static; }
  body.ruby-product-page [ui-section=single-product] .core .content [ui-block=title] { font-size: clamp(1.65rem, 6vw, 2.25rem); }
  body.ruby-product-page [ui-section=single-product] .ruby-product-sticky { padding: 9px 14px; }
}
@media (max-width: 480px) {
  body.ruby-product-page [ui-section=single-product] .ruby-product-tier { grid-template-columns: 18px minmax(0,1fr) auto; gap: 9px; padding-inline: 11px; }
  body.ruby-product-page [ui-section=single-product] .ruby-product-tier__copy strong { font-size: .84rem; }
  body.ruby-product-page [ui-section=single-product] .ruby-product-tier__copy small { font-size: .68rem; }
  body.ruby-product-page [ui-section=single-product] .ruby-product-tier__prices strong { font-size: .85rem; }
  body.ruby-product-page [ui-section=single-product] .ruby-product-sticky strong { max-width: 160px; }
  body.ruby-product-page [ui-section=single-product] .ruby-product-sticky a { padding: 11px 13px; font-size: .78rem; }
}
