/* RR Single Product — namespaced rr-product-* (1.3.26 visual upgrade) */
:root {
  --rr-product-bg: var(--rr-design-bg, var(--rr-design-bg));
  --rr-product-surface: var(--rr-design-card, var(--rr-design-white));
  --rr-product-brand: var(--rr-design-brand, var(--rr-design-brand));
  --rr-product-brand-hover: var(--rr-design-brand-hover, var(--rr-design-brand-hover));
  --rr-product-ink: var(--rr-design-text, var(--rr-design-slate));
  --rr-product-muted: var(--rr-design-muted, var(--rr-design-muted));
  --rr-product-line: var(--rr-design-line, var(--rr-design-line));
  --rr-product-sale: var(--rr-design-sale, var(--rr-design-danger-soft));
  --rr-product-ok: var(--rr-design-brand-bright);
  --rr-product-ok-bg: var(--rr-design-tint-green);
  --rr-product-danger-bg: #f8ecec;
  --rr-product-info-bg: var(--rr-design-bar);
  --rr-product-radius: 12px;
  --rr-product-radius-sm: 8px;
  --rr-product-max: var(--rr-design-max, 1240px);
  --rr-product-serif: var(--rr-design-serif, "Fraunces", Georgia, "Times New Roman", serif);
  --rr-product-sans: var(--rr-design-sans, "DM Sans", "Segoe UI", system-ui, sans-serif);
}

.rr-product-preview-shell {
  margin: 0;
  background: var(--rr-product-bg);
  color: var(--rr-product-ink);
  font-family: var(--rr-product-sans);
}
.rr-product-preview-note {
  margin: 0;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--rr-product-muted);
  border-bottom: 1px solid var(--rr-product-line);
  background: var(--rr-design-white);
}
.rr-product-preview-note code {
  font-size: 12px;
  background: #f0eee9;
  padding: 1px 6px;
  border-radius: 4px;
}

.rr-product {
  --rr-product-local: 1;
  color: var(--rr-product-ink);
  font-family: var(--rr-product-sans);
  background: var(--rr-product-bg);
  padding: 22px 0 80px;
}
.rr-product__wrap {
  width: min(100% - 40px, var(--rr-product-max));
  margin: 0 auto;
  max-width: 100%;
}

.rr-product__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  font-size: 13px;
  color: var(--rr-product-muted);
  margin-bottom: 22px;
}
.rr-product__breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.rr-product__breadcrumb a:hover { color: var(--rr-product-brand); text-decoration: underline; }
.rr-product__breadcrumb span[aria-current="page"] { color: var(--rr-product-ink); }
.rr-product__crumb-sep { opacity: 0.55; }

.rr-product__main {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); /* ~52 / 48 */
  gap: 28px 36px;
  align-items: start;
}

/* Gallery */
.rr-product__gallery {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.rr-product__thumbs-col { display: flex; flex-direction: column; gap: 8px; }
.rr-product__thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow: auto;
  scrollbar-width: thin;
}
.rr-product__thumb {
  width: 64px;
  height: 64px;
  border: 1px solid var(--rr-product-line);
  border-radius: var(--rr-product-radius-sm);
  padding: 4px;
  background: var(--rr-design-white);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.rr-product__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.rr-product__thumb.is-active {
  border-color: var(--rr-product-brand);
  box-shadow: 0 0 0 1px var(--rr-product-brand);
}
.rr-product__thumbs-more {
  border: 1px solid var(--rr-product-line);
  background: var(--rr-design-white);
  border-radius: 8px;
  height: 28px;
  cursor: pointer;
}
.rr-product__stage {
  position: relative;
  background: var(--rr-design-white);
  border: 1px solid var(--rr-product-line);
  border-radius: var(--rr-product-radius);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.rr-product__main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 12px;
  box-sizing: border-box;
}
.rr-product__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  border-radius: var(--rr-design-radius-pill);
  border: 1px solid var(--rr-product-line);
  background: var(--rr-design-white);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.rr-product__zoom:hover { border-color: var(--rr-product-brand); color: var(--rr-product-brand); }

/* Buy column */
.rr-product__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.rr-product__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.rr-product__badge--sale { background: #fdecea; color: var(--rr-product-sale); }
.rr-product__badge--stock { background: #e8f5e9; color: var(--rr-product-ok); }
.rr-product__badge--oos { background: #f5f5f5; color: #757575; }

.rr-product__brand {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rr-product-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rr-product__title {
  margin: 0 0 10px;
  font-family: var(--rr-product-serif);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--rr-product-brand);
  max-width: 28ch;
}
.rr-product__short {
  margin: 0 0 12px;
  color: var(--rr-product-muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 48ch;
}
.rr-product__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 14px;
  margin-bottom: 12px;
}
.rr-product__stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--rr-design-radius-pill);
  background: var(--rr-product-ok-bg);
  color: var(--rr-product-ok);
  font-size: 13px;
  font-weight: 600;
}
.rr-product.outofstock .rr-product__stock {
  background: var(--rr-product-danger-bg);
  color: var(--rr-product-sale);
}
.rr-product__stars { color: var(--rr-design-gold); letter-spacing: 1px; }
.rr-product__meta-row a,
.rr-product__meta-row button.linkish {
  color: var(--rr-product-brand);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rr-product__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 12px;
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 700;
  color: var(--rr-product-brand);
  line-height: 1.2;
}
.rr-product__price {
  font-size: 30px;
  font-weight: 700;
  color: var(--rr-product-brand);
}
.rr-product__price.is-sale { color: var(--rr-product-brand); }
.rr-product__price-row del,
.rr-product__price-row .price del {
  color: var(--rr-product-muted);
  font-size: 18px;
  font-weight: 500;
}
.rr-product__price-row ins {
  text-decoration: none;
  color: var(--rr-product-brand);
}
.rr-product__sku {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--rr-product-muted);
}

.rr-product__variations { margin: 18px 0 20px; }
.rr-product__attr { margin-bottom: 16px; }
.rr-product__attr-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 10px;
}
.rr-product__attr-label strong { font-weight: 600; }
.rr-product__stock-inline {
  color: var(--rr-product-ok);
  font-size: 13px;
  font-weight: 500;
}
.rr-product__stock-inline.is-oos { color: var(--rr-product-sale); }
.rr-product__swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.rr-product__swatch {
  width: 34px;
  height: 34px;
  border-radius: var(--rr-design-radius-pill);
  border: 2px solid var(--rr-design-white);
  box-shadow: 0 0 0 1px var(--rr-design-line-warm);
  cursor: pointer;
  padding: 0;
}
.rr-product__swatch.is-selected {
  box-shadow: 0 0 0 2px var(--rr-design-white), 0 0 0 4px var(--rr-product-ink);
}
.rr-product__swatch:disabled,
.rr-product__option:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  position: relative;
}
.rr-product__swatch:disabled::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 46%, #999 47%, #999 53%, transparent 54%);
  border-radius: inherit;
}
.rr-product__options { display: flex; flex-wrap: wrap; gap: 8px; }
.rr-product__option {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--rr-product-line);
  background: var(--rr-design-white);
  cursor: pointer;
  font: inherit;
}
.rr-product__option.is-selected {
  border-color: var(--rr-product-brand);
  background: var(--rr-design-tint-green-2);
  color: var(--rr-product-brand);
  font-weight: 600;
}

.rr-product__actions {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 22px;
}
.rr-product__qty {
  display: inline-grid;
  grid-template-columns: 36px 48px 36px;
  border: 1px solid var(--rr-product-line);
  border-radius: var(--rr-design-radius-sm);
  overflow: hidden;
  background: var(--rr-design-white);
  min-height: 48px;
}
.rr-product__qty button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}
.rr-product__qty input {
  border: 0;
  border-left: 1px solid var(--rr-product-line);
  border-right: 1px solid var(--rr-product-line);
  text-align: center;
  font: inherit;
  width: 100%;
  -moz-appearance: textfield;
}
.rr-product__qty input::-webkit-outer-spin-button,
.rr-product__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.rr-product__atc {
  border: 0;
  border-radius: var(--rr-design-radius-sm);
  background: var(--rr-product-brand);
  color: var(--rr-design-white);
  font: inherit;
  font-weight: 600;
  min-height: 48px;
  padding: 0 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.rr-product__atc:hover { background: var(--rr-product-brand-hover); }
.rr-product__atc:active { transform: translateY(1px); }
.rr-product__wish {
  border: 1px solid var(--rr-product-line);
  border-radius: var(--rr-design-radius-sm);
  background: var(--rr-design-white);
  min-height: 48px;
  padding: 0 14px;
  cursor: pointer;
  font: inherit;
  color: var(--rr-product-ink);
  white-space: nowrap;
}
.rr-product__wish:hover { border-color: var(--rr-product-brand); color: var(--rr-product-brand); }

.rr-product__services {
  list-style: none;
  margin: 0 0 22px;
  padding: 16px 0 0;
  border-top: 1px solid var(--rr-product-line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.rr-product__services li {
  text-align: center;
  font-size: 12px;
  color: var(--rr-product-muted);
  line-height: 1.35;
}
.rr-product__services .ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  border-radius: var(--rr-design-radius-pill);
  background: var(--rr-design-tint-green-2);
  color: var(--rr-product-brand);
  font-size: 16px;
}
.rr-product__services strong {
  display: block;
  color: var(--rr-product-ink);
  font-size: 12px;
  margin-bottom: 2px;
}

.rr-product__features {
  border: 1px solid var(--rr-product-line);
  border-radius: 12px;
  background: var(--rr-design-white);
  padding: 16px 18px 18px;
}
.rr-product__features-title {
  margin: 0 0 14px;
  font-family: var(--rr-product-serif);
  font-size: 18px;
  font-weight: 600;
}
.rr-product__features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.rr-product__feature {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}
.rr-product__feature .ico {
  width: 36px;
  height: 36px;
  border-radius: var(--rr-design-radius-pill);
  display: grid;
  place-items: center;
  background: var(--rr-design-tint-green-2);
  color: var(--rr-product-brand);
}

/* Tabs */
.rr-product__tabs-block {
  margin-top: 48px;
  background: var(--rr-design-white);
  border: 1px solid var(--rr-product-line);
  border-radius: var(--rr-design-radius);
  padding: 0 0 8px;
  overflow: hidden;
}
.rr-product__tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0 22px;
  padding: 0 22px;
  border-bottom: 1px solid var(--rr-product-line);
  overflow-x: auto;
  scrollbar-width: thin;
}
.rr-product__tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 16px 2px 14px;
  font: inherit;
  font-weight: 600;
  color: var(--rr-product-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.rr-product__tab[aria-selected="true"],
.rr-product__tab.is-active {
  color: var(--rr-product-brand);
  border-bottom-color: var(--rr-product-brand);
}
.rr-product__tab:focus-visible {
  outline: 2px solid var(--rr-product-brand);
  outline-offset: 2px;
}
.rr-product__panels { padding: 28px 28px 24px; }
.rr-product__panel[hidden] { display: none !important; }
.rr-product__desc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: start;
}
.rr-product__desc-copy {
  font-size: 15px;
  line-height: 1.7;
  color: var(--rr-product-ink);
  min-width: 0;
}
.rr-product__desc-copy h2,
.rr-product__desc-copy h3 {
  margin: 0 0 12px;
  font-family: var(--rr-product-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--rr-product-brand);
}
.rr-product__desc-copy p {
  margin: 0 0 14px;
  color: var(--rr-product-ink);
  line-height: 1.7;
}
.rr-product__desc-copy ul,
.rr-product__desc-copy ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
  color: var(--rr-product-ink);
}
.rr-product__desc-copy img,
.rr-product__desc-copy video,
.rr-product__desc-copy iframe {
  max-width: 100%;
  height: auto;
}
.rr-product__desc-copy table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  margin: 0 0 16px;
}
.rr-product__desc-copy table th,
.rr-product__desc-copy table td {
  border-bottom: 1px solid var(--rr-product-line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.rr-product__check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rr-product__check-list li {
  position: relative;
  padding-left: 28px;
  margin: 0 0 10px;
  line-height: 1.45;
}
.rr-product__check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--rr-product-brand);
  font-weight: 700;
}

.rr-product__video-card {
  border: 1px solid var(--rr-product-line);
  border-radius: 12px;
  overflow: hidden;
  background: #efece6;
}
.rr-product__video-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #efece6;
}
.rr-product__video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rr-product__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: var(--rr-design-radius-pill);
  background: var(--rr-design-white);
  color: var(--rr-product-brand);
  display: grid;
  place-items: center;
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.rr-product__video-caption {
  margin: 0;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--rr-product-muted);
}

.rr-product__spec-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 720px;
}
.rr-product__spec-table th,
.rr-product__spec-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rr-product-line);
  font-weight: 500;
}
.rr-product__spec-table th {
  width: 40%;
  color: var(--rr-product-muted);
  font-weight: 600;
}
.rr-product__demo-note {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--rr-product-muted);
  background: var(--rr-design-bg-soft);
  border: 1px dashed var(--rr-product-line);
  border-radius: 8px;
  padding: 10px 12px;
}
.rr-product__review,
.rr-product__qa-item {
  border-bottom: 1px solid var(--rr-product-line);
  padding: 14px 0;
}
.rr-product__review h3,
.rr-product__qa-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.rr-product__review p,
.rr-product__qa-item p {
  margin: 0;
  color: var(--rr-product-muted);
  line-height: 1.55;
}
.rr-product__review-meta {
  font-size: 13px;
  color: var(--rr-product-muted);
  margin-bottom: 6px;
}

/* Related */
.rr-product__related { margin-top: 48px; }
.rr-product__related-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}
.rr-product__related-head h2 {
  margin: 0;
  font-family: var(--rr-product-serif);
  font-size: 28px;
  font-weight: 600;
}
.rr-product__related-head a {
  color: var(--rr-product-brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.rr-product__related-head a:hover { text-decoration: underline; }
.rr-product__related-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.rr-product__card {
  background: var(--rr-design-white);
  border: 1px solid var(--rr-product-line);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.rr-product__card:hover {
  border-color: var(--rr-design-line-warm);
  transform: translateY(-2px);
}
.rr-product__card-media {
  position: relative;
  aspect-ratio: 1;
  background: #f3f1ec;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}
.rr-product__card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.rr-product__card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--rr-product-brand);
  color: var(--rr-design-white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.rr-product__card-badge.is-sale { background: var(--rr-product-sale); }
.rr-product__card-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.rr-product__card-rating {
  font-size: 12px;
  color: var(--rr-product-muted);
  margin-bottom: 6px;
  min-height: 16px;
}
.rr-product__card-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.rr-product__card-price { font-weight: 700; font-size: 15px; }
.rr-product__card-price del {
  margin-left: 6px;
  color: var(--rr-product-muted);
  font-weight: 500;
  font-size: 12px;
}
.rr-product__card-atc {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--rr-product-brand);
  color: var(--rr-design-white);
  cursor: pointer;
}

/* Sticky / overlays */
.rr-product__sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--rr-product-line);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(110%);
  transition: transform 0.2s ease;
  display: none;
}
.rr-product__sticky.is-visible { transform: translateY(0); }
.rr-product__sticky-inner {
  width: min(100% - 24px, var(--rr-product-max));
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.rr-product__sticky-title {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 48vw;
}
.rr-product__sticky-price {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--rr-product-sale);
  font-weight: 700;
}
.rr-product__atc--sticky { min-width: 140px; min-height: 42px; }

.rr-product__lightbox,
.rr-product__video-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(20, 20, 20, 0.86);
  display: grid;
  place-items: center;
  padding: 56px 24px 24px;
  cursor: zoom-out;
}
.rr-product__lightbox[hidden],
.rr-product__video-modal[hidden] { display: none !important; }
.rr-product__lightbox img {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 900px);
  max-height: 80vh;
  object-fit: contain;
  background: var(--rr-design-white);
  border-radius: var(--rr-design-radius-sm);
  cursor: default;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.rr-product__lightbox-close {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--rr-design-radius-pill);
  background: var(--rr-design-white);
  color: var(--rr-design-brand);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}
.rr-product__lightbox-close:hover,
.rr-product__lightbox-close:focus-visible {
  background: var(--rr-design-brand);
  color: var(--rr-design-white);
  outline: none;
}
.rr-product__lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--rr-design-radius-pill);
  background: var(--rr-design-white);
  color: var(--rr-design-brand);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}
.rr-product__lightbox-nav[data-rr-product-lightbox-prev] { left: max(12px, env(safe-area-inset-left, 0px)); }
.rr-product__lightbox-nav[data-rr-product-lightbox-next] { right: max(12px, env(safe-area-inset-right, 0px)); }
.rr-product__video-modal video {
  width: min(92vw, 960px);
  max-height: 80vh;
  background: #000;
  border-radius: var(--rr-design-radius-sm);
}

.rr-product__toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--rr-product-ink);
  color: var(--rr-design-white);
  padding: 12px 16px;
  border-radius: var(--rr-design-radius-sm);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 70;
  max-width: min(92vw, 420px);
  text-align: center;
}
.rr-product__toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Native WooCommerce cart / variations — visual wrap only */
.rr-product__buy {
  min-width: 0;
}
.rr-product__cart {
  margin: 14px 0 10px;
}
.rr-product__cart form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.rr-product__cart form.variations_form {
  display: block;
}
.rr-product__cart form.variations_form .variations {
  width: 100%;
  margin: 0 0 14px;
  border: 0;
}
.rr-product__cart form.variations_form .variations th,
.rr-product__cart form.variations_form .variations td {
  display: block;
  text-align: left;
  padding: 0 0 8px;
  border: 0;
  font-weight: 600;
  font-size: 13px;
}
.rr-product__cart form.variations_form select {
  width: 100%;
  max-width: 320px;
  border: 1px solid var(--rr-product-line);
  border-radius: var(--rr-product-radius-sm);
  padding: 10px 12px;
  min-height: 44px;
  background: var(--rr-design-white);
  font: inherit;
}
.rr-product__cart form.variations_form .single_variation_wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.rr-product__cart .quantity {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--rr-product-line);
  border-radius: var(--rr-product-radius-sm);
  overflow: hidden;
  background: var(--rr-design-white);
  min-height: 46px;
  width: auto;
}
.rr-product__cart .quantity.rr-product__quantity--stepper {
  display: inline-grid;
  grid-template-columns: 44px minmax(48px, 72px) 44px;
}
.rr-product__cart .quantity .qty {
  width: 64px;
  min-width: 0;
  min-height: 46px;
  border: 0;
  text-align: center;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  padding: 10px 4px;
  background: transparent;
  color: var(--rr-product-ink);
  box-shadow: none;
  outline: none;
  -moz-appearance: textfield;
}
.rr-product__cart .quantity.rr-product__quantity--stepper .qty {
  width: 100%;
  border-left: 1px solid var(--rr-product-line);
  border-right: 1px solid var(--rr-product-line);
}
.rr-product__cart .quantity .qty::-webkit-outer-spin-button,
.rr-product__cart .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.rr-product__qty-btn {
  border: 0;
  background: var(--rr-design-bg-soft);
  color: var(--rr-product-brand);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  min-height: 46px;
  padding: 0;
}
.rr-product__qty-btn:hover,
.rr-product__qty-btn:focus-visible {
  background: var(--rr-product-ok-bg);
  color: var(--rr-product-brand);
  outline: none;
}
.rr-product__qty-btn:active {
  background: #dce8e1;
}
.rr-product__cart .single_add_to_cart_button,
.rr-product__cart .button.alt,
.rr-product .woocommerce-variation-add-to-cart .button {
  border: 0;
  background: var(--rr-product-brand);
  color: var(--rr-design-white);
  border-radius: var(--rr-product-radius-sm);
  min-height: 48px;
  height: 48px;
  padding: 0 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: none;
  box-sizing: border-box;
}
.rr-product__cart .single_add_to_cart_button:hover,
.rr-product__cart .button.alt:hover {
  background: var(--rr-product-brand-hover);
  color: var(--rr-design-white);
}
.rr-product__cart .single_add_to_cart_button:disabled,
.rr-product__cart .single_add_to_cart_button.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.rr-product__cart a.buy-now,
.rr-product__cart button.buy-now,
.rr-product__cart .buy-now-button,
.rr-product__cart .wc-buy-now-btn,
.rr-product__cart .button.buy_now,
.rr-product__cart [class*="buy-now"]:not(div):not(span):not(p) {
  min-height: 48px;
  height: 48px;
  border-radius: var(--rr-product-radius-sm);
  padding: 0 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* PC buy actions: fixed button widths; qty unchanged. Mobile keeps 100% via product-responsive. */
@media (min-width: 721px) {
  .rr-product__cart form.cart,
  .rr-product__cart form.variations_form .single_variation_wrap {
    align-items: stretch;
  }
  .rr-product__cart .single_add_to_cart_button,
  .rr-product .woocommerce-variation-add-to-cart .single_add_to_cart_button {
    width: 220px;
    min-width: 0;
    max-width: 100%;
    flex: 0 1 220px;
  }
  .rr-product__cart a.buy-now,
  .rr-product__cart button.buy-now,
  .rr-product__cart .buy-now-button,
  .rr-product__cart .wc-buy-now-btn,
  .rr-product__cart .button.buy_now,
  .rr-product__cart [class*="buy-now"]:not(div):not(span):not(p) {
    width: 180px;
    min-width: 0;
    max-width: 100%;
    flex: 0 1 180px;
  }
}
.rr-product__cart .group_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}
.rr-product__price-row .price,
.rr-product__price-row .woocommerce-Price-amount,
.rr-product__sticky-price .woocommerce-Price-amount {
  font-weight: 700;
  color: var(--rr-product-brand);
}
.rr-product__price-row del {
  color: var(--rr-product-muted);
  font-weight: 500;
  margin-left: 6px;
}

/* PAngV meta — do not inherit 30px/700 from .rr-product__price-row (legal.css is legal-pages only) */
.rr-product__price-row .rr2-price-meta,
.rr-product__price-row .rr2-unit-price,
.rr-product__price-row .rr2-unit-price .price-unit,
.rr-product__price-row .rr2-unit-price .wc-gzd-additional-info,
.rr-product__price-row .rr2-unit-price p {
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.35;
  color: var(--rr-product-muted);
  opacity: 1;
  margin: 0;
}
.rr-product__price-row .rr2-legal-info,
.rr-product__price-row .rr2-legal-info .wc-gzd-additional-info,
.rr-product__price-row .rr2-legal-info .legal-price-info,
.rr-product__price-row .rr2-legal-info p {
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.4;
  color: var(--rr-product-muted);
  margin: 0;
}
.rr-product__price-row .rr2-legal-info a,
.rr-product__price-row .rr2-price-meta a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 400;
}
.rr-product__cats,
.rr-product__sku {
  font-size: 13px;
  color: var(--rr-product-muted);
  margin: 4px 0;
}
.rr-product__cats a {
  color: var(--rr-product-brand);
  text-decoration: none;
  font-weight: 600;
}
.rr-product__cats a:hover { text-decoration: underline; }
.rr-product__features { margin-top: 16px; }

/* Buy-column compact attributes (real Woo data only) */
.rr-product__highlights {
  margin: 14px 0 8px;
  padding: 12px 14px;
  border: 1px solid var(--rr-product-line);
  border-radius: var(--rr-product-radius);
  background: var(--rr-design-white);
  display: grid;
  gap: 8px;
}
.rr-product__highlight {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 8px 12px;
  align-items: baseline;
  font-size: 13px;
  line-height: 1.35;
}
.rr-product__highlight dt {
  margin: 0;
  color: var(--rr-product-muted);
  font-weight: 600;
}
.rr-product__highlight dd {
  margin: 0;
  color: var(--rr-product-ink);
  font-weight: 600;
  text-align: right;
}
.rr-product__policy-link {
  margin: 8px 0 0;
  font-size: 13px;
}
.rr-product__policy-link a {
  color: var(--rr-product-brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Reviews form — brand submit / inputs */
.rr-product__panel #reviews,
.rr-product__panel .woocommerce-Reviews {
  max-width: 720px;
}
.rr-product__panel #reviews .woocommerce-Reviews-title,
.rr-product__panel #reply-title {
  font-family: var(--rr-product-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--rr-product-brand);
  margin: 0 0 14px;
}
.rr-product__panel .comment-form-rating label,
.rr-product__panel .comment-form label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rr-product-ink);
}
.rr-product__panel .comment-form-rating p.stars {
  margin: 0 0 14px;
}
.rr-product__panel .comment-form-rating p.stars a {
  color: var(--rr-design-gold);
  font-size: 18px;
}
.rr-product__panel .comment-form input[type="text"],
.rr-product__panel .comment-form input[type="email"],
.rr-product__panel .comment-form textarea,
.rr-product__panel #comment {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--rr-product-line);
  border-radius: 12px;
  background: var(--rr-design-white);
  color: var(--rr-product-ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  padding: 12px 14px;
  min-height: 46px;
  box-shadow: none;
}
.rr-product__panel .comment-form textarea,
.rr-product__panel #comment {
  min-height: 140px;
  resize: vertical;
}
.rr-product__panel .comment-form input:focus,
.rr-product__panel .comment-form textarea:focus,
.rr-product__panel #comment:focus {
  outline: none;
  border-color: var(--rr-product-brand);
  box-shadow: 0 0 0 3px var(--rr-design-shadow-brand-12);
}
.rr-product__panel .comment-form .form-submit {
  margin: 12px 0 0;
}
.rr-product__panel .comment-form #submit,
.rr-product__panel .comment-form input[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 8px;
  min-height: 46px;
  padding: 0 22px;
  background: var(--rr-product-brand) !important;
  color: var(--rr-design-white) !important;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
}
.rr-product__panel .comment-form #submit:hover,
.rr-product__panel .comment-form input[type="submit"]:hover {
  background: var(--rr-product-brand-hover) !important;
}
.rr-product__panel .comment-form #submit:focus-visible,
.rr-product__panel .comment-form input[type="submit"]:focus-visible {
  outline: 2px solid var(--rr-product-brand);
  outline-offset: 2px;
}
.rr-product__panel .comment-form #submit:disabled,
.rr-product__panel .comment-form input[type="submit"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/*
 * WooCommerce notices — document flow, brand-aligned.
 * Scope: single product page (wrapper may sit in .rr-product__wrap).
 */
body.single-product .woocommerce-notices-wrapper,
.rr-product .woocommerce-notices-wrapper {
  margin: 0 0 18px;
  width: 100%;
  max-width: 100%;
}
body.single-product .woocommerce-notices-wrapper .woocommerce-message,
body.single-product .woocommerce-notices-wrapper .woocommerce-info,
body.single-product .woocommerce-notices-wrapper .woocommerce-error,
.rr-product .woocommerce-message,
.rr-product .woocommerce-info,
.rr-product .woocommerce-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 10px;
  padding: 14px 16px;
  border-radius: var(--rr-product-radius);
  border: 1px solid var(--rr-product-line);
  box-shadow: none;
  list-style: none !important;
  font-size: 14px;
  line-height: 1.45;
  color: var(--rr-product-ink);
  word-break: break-word;
}
body.single-product .woocommerce-message,
.rr-product .woocommerce-message {
  background: var(--rr-product-ok-bg);
  border-color: #c5d9cc;
  color: var(--rr-product-brand);
}
body.single-product .woocommerce-info,
.rr-product .woocommerce-info {
  background: var(--rr-product-info-bg);
  border-color: var(--rr-product-line);
  color: var(--rr-product-ink);
}
body.single-product .woocommerce-error,
.rr-product .woocommerce-error {
  background: var(--rr-product-danger-bg);
  border-color: #e2c4c4;
  color: var(--rr-product-sale);
}
body.single-product .woocommerce-message::before,
body.single-product .woocommerce-info::before,
body.single-product .woocommerce-error::before,
.rr-product .woocommerce-message::before,
.rr-product .woocommerce-info::before,
.rr-product .woocommerce-error::before {
  display: none;
}
body.single-product .woocommerce-message .button,
body.single-product .woocommerce-info .button,
body.single-product .woocommerce-error .button,
.rr-product .woocommerce-message .button,
.rr-product .woocommerce-info .button,
.rr-product .woocommerce-error .button {
  margin: 0;
  float: none !important;
  order: 2;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--rr-product-radius-sm);
  background: var(--rr-product-brand) !important;
  color: var(--rr-design-white) !important;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: none;
}
body.single-product .woocommerce-message .button:hover,
.rr-product .woocommerce-message .button:hover {
  background: var(--rr-product-brand-hover) !important;
}

/* Specs + reviews readability */
.rr-product__spec-table th {
  width: 36%;
  color: var(--rr-product-muted);
  font-weight: 600;
  font-size: 14px;
}
.rr-product__spec-table td {
  color: var(--rr-product-ink);
  font-size: 14px;
}
.rr-product__panel .woocommerce-Reviews,
.rr-product__panel #reviews {
  max-width: 720px;
}
.rr-product__panel .commentlist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rr-product__panel .comment_container {
  border-bottom: 1px solid var(--rr-product-line);
  padding: 14px 0;
}
.rr-product__panel .star-rating {
  color: var(--rr-design-gold);
}

/* Related cards reuse archive card markup */
.rr-product__related { margin-top: 40px; }
.rr-product__related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.rr-product__related-grid .rr-archive__card {
  background: var(--rr-product-surface);
  border: 1px solid var(--rr-product-line);
  border-radius: var(--rr-product-radius);
  padding: 10px;
  margin: 0;
  min-width: 0;
}
.rr-product__related-grid .rr-archive__card:hover {
  border-color: var(--rr-design-line-warm);
  box-shadow: 0 8px 20px var(--rr-design-shadow-brand-08);
}
.rr-product__related-grid .rr-archive__card-media {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--rr-design-radius-sm);
  overflow: hidden;
  display: block;
  background: var(--rr-design-white);
  margin-bottom: 10px;
}
.rr-product__related-grid .rr-archive__card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 6px;
  box-sizing: border-box;
}
.rr-product__related-grid .rr-archive__card-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.6em;
}
.rr-product__related-grid .rr-archive__card-title a {
  color: var(--rr-product-brand);
  text-decoration: none;
}
.rr-product__related-grid .rr-archive__card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.rr-product__related-grid .rr-archive__price {
  font-weight: 700;
  color: var(--rr-product-brand);
}
.rr-product__related-grid .rr-archive__price del {
  color: var(--rr-product-muted);
  font-weight: 500;
  font-size: 12px;
}
.rr-product__related-grid .rr-archive__atc {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--rr-design-radius-sm);
  background: var(--rr-product-brand);
  color: var(--rr-design-white);
  display: grid;
  place-items: center;
  text-decoration: none;
}
.rr-product__feature {
  background: var(--rr-design-white);
  border: 1px solid var(--rr-product-line);
  border-radius: var(--rr-design-radius-sm);
  padding: 12px;
}
.rr-product__feature strong { display: block; font-size: 13px; }
.rr-product__feature span { font-size: 12px; color: var(--rr-product-muted); }

@media (max-width: 900px) {
  .rr-product__related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
