/*
 * Parte de cima da página de produto (template-parts/sections/main-product.php).
 * Visual da loja publicada (tema Concept + ajustes Rose Poudré), refeito com código próprio; medidas tiradas da página
 * publicada em 390px, 800px e 1440px de largura. Os blocos rp-* têm o CSS deles em assets/css/sections/rp-*.css.
 */

.rp-mp {
  --rp-mp-ink: #171717;
  --rp-mp-media-bg: #fafafa;
  --rp-mp-radius: clamp(10px, 1.053vw, 20px);
  --rp-mp-page-pad: 20px;
  --rp-mp-sticky-top: max(24px, calc(var(--rp-header-offset, 0px) + 12px));
  padding-block: calc(var(--rp-mp-pad-top, 0px) * 0.75) calc(var(--rp-mp-pad-bottom, 0px) * 0.75);
  background: #fff;
  color: var(--rp-mp-ink);
  font-family: var(--font-body-family, 'SF Pro Display Fexx', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif);
  font-size: 12px;
  letter-spacing: -0.005em;
}

.rp-mp--divider { border-top: 1px solid rgb(23 23 23 / 0.1); }

.rp-mp__page {
  position: relative;
  width: 100%;
  max-width: calc(var(--page-width, 1900px) + var(--rp-mp-page-pad) * 2);
  margin-inline: auto;
  padding-inline: var(--rp-mp-page-pad);
}

.rp-mp__page--full { max-width: none; }

.rp-mp__grid {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.rp-mp__gallery-col {
  position: relative;
  width: 100%;
  min-width: 0;
}

.rp-mp__info {
  display: block;
  width: 100%;
  min-width: 0;
}

@media screen and (min-width: 768px) {
  .rp-mp { padding-block: var(--rp-mp-pad-top, 0px) var(--rp-mp-pad-bottom, 0px); }
}

@media screen and (min-width: 1024px) {
  .rp-mp { --rp-mp-page-pad: 36px; }

  /* Como no tema: até 1279px a coluna de informações tem largura fixa (25rem a 35rem); daí em diante, a proporção
     media_size da seção. */
  .rp-mp__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(25rem, 30.26vw, 35rem);
    align-items: start;
    gap: 40px;
  }

  .rp-mp__grid.no-media { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin-inline: auto; }
  .rp-mp__info.is-sticky { position: sticky; top: var(--rp-mp-info-top, var(--rp-mp-sticky-top)); }
  .rp-mp__gallery-col.is-sticky { position: sticky; top: var(--rp-mp-sticky-top); }
}

@media screen and (min-width: 1280px) {
  .rp-mp { --rp-mp-page-pad: 48px; }

  .rp-mp__grid {
    grid-template-columns: minmax(0, var(--rp-mp-media-fr, 1.32fr)) minmax(0, var(--rp-mp-info-fr, 0.68fr));
    gap: clamp(48px, 4.73vw, 92px);
  }
}

@media screen and (min-width: 1536px) {
  .rp-mp__grid { gap: 60px; }
}

/* ---------- Galeria ---------- */

.rp-mp-gallery {
  position: relative;
  display: block;
  width: 100%;
}

.rp-mp-gallery__preview { display: none; }

.rp-mp-gallery__container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.rp-mp-gallery__slider {
  position: relative;
  display: block;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--rp-mp-radius);
  -webkit-overflow-scrolling: touch;
}

.rp-mp-gallery__slider::-webkit-scrollbar { display: none; }
.rp-mp-gallery__slider:focus-visible { outline-offset: -2px; }

.rp-mp-gallery__list {
  display: flex;
  gap: 4px;
  width: 100%;
}

.rp-mp-media {
  position: relative;
  display: flex;
  flex: 0 0 100%;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  overflow: hidden;
  background: var(--rp-mp-media-bg);
  scroll-snap-align: start;
}

/* Cada foto na proporção dela; no carrossel do celular todas ficam na proporção da primeira (media--adapt_first). */
.rp-mp-media > img,
.rp-mp-media > video,
.rp-mp-media > iframe,
.rp-mp-media > .rp-mp-media__poster {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
}

.rp-mp-media > iframe { aspect-ratio: 16 / 9; height: auto; }

@media screen and (max-width: 1023px) {
  .rp-mp-gallery__list > .rp-mp-media > img,
  .rp-mp-gallery__list > .rp-mp-media > video { height: 100%; }
}

@media screen and (max-width: 767px) {
  .rp-mp-gallery__list > .rp-mp-media > img,
  .rp-mp-gallery__list > .rp-mp-media > video { height: auto; aspect-ratio: var(--rp-mp-first-ratio, auto); }
}

.rp-mp-media > iframe { border: 0; background: #000; }
.rp-mp-media > .rp-mp-media__poster { position: absolute; inset: 0; }
.rp-mp-media > iframe[src] + .rp-mp-media__poster { display: none; }

/* Pontos (sem o indicador "linha" do rp-gallery-motion) */
.rp-mp-gallery__dots {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.rp-mp-gallery__dots media-dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.rp-mp-gallery__dots .product__thumbnail {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.rp-mp-gallery__dots .product__thumbnail::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background-color: var(--rp-mp-ink);
  transition: box-shadow 0.3s, background-color 0.3s;
}

.rp-mp-gallery__dots .product__thumbnail[aria-current="true"]::before {
  background-color: transparent;
  box-shadow: 0 0 0 2px var(--rp-mp-ink);
}

@media screen and (min-width: 768px) {
  .rp-mp-media { flex-basis: 75%; width: 75%; }
}

/* Computador: as fotos em grade de 2 colunas. */
@media screen and (min-width: 1024px) {
  .rp-mp-gallery__slider {
    overflow: visible;
    scroll-snap-type: none;
    border-radius: 0;
  }

  .rp-mp-gallery__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .rp-mp-media {
    width: auto;
    border-radius: var(--rp-mp-radius);
  }

  .rp-mp-gallery__dots { display: none; }
}

/* Telas largas: foto grande parada à esquerda (a da variante escolhida) e as outras numa coluna ao lado. */
@media screen and (min-width: 1280px) {
  .rp-mp-gallery {
    display: grid;
    grid-template-columns: 1fr 0.55fr;
    align-items: start;
    gap: 20px;
  }

  .rp-mp-gallery__preview {
    position: relative;
    display: block;
    width: 100%;
    /* Como no tema: tela - cabeçalho - 20px; com o cabeçalho escondido, tela - 48px. */
    height: calc(100vh - max(48px, var(--rp-header-offset, 0px) + 20px));
    min-height: 480px;
    overflow: hidden;
  }

  .rp-mp-gallery__preview.is-sticky { position: sticky; top: var(--rp-mp-sticky-top); }

  .rp-mp-gallery__preview > .rp-mp-media {
    height: 100%;
    border-radius: var(--rp-mp-radius);
  }

  .rp-mp-gallery__preview > .rp-mp-media > img,
  .rp-mp-gallery__preview > .rp-mp-media > video {
    height: 100%;
    object-fit: cover;
  }

  .rp-mp-gallery__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .rp-mp-gallery__list > .is-first { display: none; }
}

/* ---------- Título e preço ---------- */

.rp-mp-title {
  display: grid;
  gap: 12px;
}

.rp-mp-title.with-price {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: flex-end;
  justify-content: space-between;
}

.rp-mp .oe-product-title-stack {
  display: flex;
  flex-direction: column;
  grid-column: 1 / -1;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}

/* Marca do produto: os 110px × 26,3px do original. */
.rp-mp .oe-product-title-logo {
  position: relative;
  display: block;
  width: 110px;
  max-width: 110px;
  height: calc(110px * 175 / 732);
  margin: 0 0 10px;
  padding: 0;
  overflow: hidden;
}

.rp-mp .oe-product-title-logo > img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 114%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}

.rp-mp-title__heading {
  margin: 0;
  color: var(--rp-mp-ink);
  font-family: var(--font-heading-family, 'SF Pro Display Fexx', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  word-break: break-word;
}

.rp-mp-title__heading.product-title-sm { font-size: clamp(1rem, 0.4966rem + 1.1818vw, 1.625rem); }
.rp-mp-title__heading.product-title-md { font-size: clamp(1.25rem, 0.6rem + 1.6vw, 2rem); }
.rp-mp-title__heading.product-title-lg { font-size: clamp(1.5rem, 0.7rem + 2vw, 2.5rem); }

@media screen and (max-width: 767px) {
  .rp-mp-title__heading { font-size: 1.25rem !important; line-height: 1.25; }
}

@media screen and (min-width: 768px) {
  .rp-mp .oe-product-title-stack { gap: 4px; }
}

.rp-mp .product__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  justify-self: start;
  gap: 2px 4px;
  min-width: 0;
  max-width: 100%;
  font-size: clamp(0.875rem, 0.9722rem + 0.4444vw, 1.25rem);
}

.rp-mp .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.rp-mp .price__regular {
  color: var(--rp-mp-ink);
  font-size: 100%;
  white-space: nowrap;
}

.rp-mp .price--on-sale .price__regular { font-weight: 500; }

.rp-mp .price__sale {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: rgb(23 23 23 / 0.6);
  font-size: 70%;
}

.rp-mp .price__sale::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 100%;
  border-bottom: 1px solid #000;
}

@media screen and (min-width: 1024px) {
  .rp-mp .price { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media screen and (min-width: 1280px) {
  .rp-mp .price { align-items: flex-end; }
}

/* ---------- Blocos ---------- */

.rp-mp__info > :where(.rp-mp-block) { margin-top: 24px; }
.rp-mp__info > :where(.rp-mp-buy) { margin-top: 32px; }
.rp-mp__info > :where(.rp-mp-block):first-child { margin-top: 0; }

.rp-mp-vendor { color: var(--rp-mp-ink); font-size: 12px; }
.rp-mp-sku { color: rgb(23 23 23 / 0.6); font-size: 12px; }
.rp-mp-text { font-size: 12px; line-height: 1.6; }
.rp-mp-text .text-sm { font-size: 12px; }
.rp-mp-text .text-base { font-size: 12px; }
.rp-mp-text .text-lg { font-size: 14px; }

/* ---------- Opções ---------- */

.rp-mp-picker {
  display: grid;
  gap: 20px;
}

.rp-mp-option {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.rp-mp-option__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin-bottom: 12px;
  font-size: 12px;
}

.rp-mp-option__label > div { display: flex; gap: 8px; }
.rp-mp-option__value { font-weight: 500; }

.rp-mp-swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rp-mp-swatches .block,
.rp-mp-picker .rp-shades .block { display: block; }

.rp-mp .label-swatch {
  position: relative;
  display: block;
  padding: 16px 20px;
  border-radius: 5px;
  color: var(--rp-mp-ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.7, 0, 0.3, 1);
}

.rp-mp .label-swatch::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgb(23 23 23 / 0.1);
  transition: all 0.2s cubic-bezier(0.7, 0, 0.3, 1);
  pointer-events: none;
}

.rp-mp input:checked + .label-swatch::after { box-shadow: 0 0 0 2px var(--rp-mp-ink); }
.rp-mp input:focus-visible + .label-swatch { outline: 2px solid rgb(var(--color-keyboard-focus, 138 106 49)); outline-offset: 3px; }
.rp-mp input.disabled + .label-swatch { background-color: rgb(254 202 202 / 0.115); color: rgb(252 165 165); }
.rp-mp input.disabled + .label-swatch::after { box-shadow: 0 0 0 1px rgb(254 202 202); }

/* Tamanho esgotado: riscado na diagonal, como no tema. */
.rp-mp input.disabled + .label-swatch::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to bottom right, transparent calc(50% - 0.5px), rgb(254 202 202) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}

.rp-mp-swatches .block { position: relative; isolation: isolate; }

@media (pointer: fine) {
  .rp-mp input:not(.disabled) + .label-swatch:hover::after { box-shadow: 0 0 0 2px var(--rp-mp-ink); }
}

.rp-mp-select select {
  width: 100%;
  min-height: 48px;
  padding: 0 40px 0 16px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgb(23 23 23 / 0.1);
  font-size: 12px;
  -webkit-appearance: none;
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23171717' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 16px center no-repeat;
}

/* Bolinhas de cor de cada tom (snippets/product-variant-picker-variant.liquid, parte Rose Poudré). */
.rp-shade-list { display: block; width: 100%; }

.rp-shade-list .rp-shades {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 4px;
  list-style: none;
}

.rp-shade-list:not([open]) .rp-shades { max-height: 78px; overflow: hidden; }
.rp-shade-list .rp-shades > li { flex: none; margin: 0; }

.rp-shade {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--rp-shade, #eadfe0);
  box-shadow: inset 0 0 0 1px rgba(43, 23, 32, .12);
  cursor: pointer;
  transition: box-shadow .2s ease, transform .2s ease;
}

.rp-shades input:checked + .rp-shade { box-shadow: inset 0 0 0 1px rgba(43, 23, 32, .12), 0 0 0 2px #fff, 0 0 0 3px #2b1720; }
.rp-shades input:focus-visible + .rp-shade { outline: 2px solid #2b1720; outline-offset: 4px; }
.rp-shades input.disabled + .rp-shade { opacity: .45; }

.rp-shades input.disabled + .rp-shade::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  right: 3px;
  height: 1px;
  background: rgba(43, 23, 32, .55);
  transform: rotate(-45deg);
}

.rp-shade-list__more {
  margin: 6px 0 0 4px;
  padding: 0;
  border: 0;
  background: none;
  color: #2b1720;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.rp-shade-list__more[hidden] { display: none; }

@media (hover: hover) and (pointer: fine) {
  .rp-shade:hover { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .rp-shade { transition: none; }
}

.rp-medaillon-shade .swatches {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.rp-medaillon-shade .swatches > li { width: 100%; }

.rp-medaillon-shade .rp-medaillon-shade__choice {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #33383c;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 17px;
  text-align: left;
  cursor: pointer;
}

.rp-medaillon-shade__color {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  /* Rose Poudré: textura real do bálsamo Crystal Pink (rp-swatch-crystal-pink.webp), recortada no fundo com glitter. */
  background: #f3b2b4 url("https://cdn.shopify.com/s/files/1/0805/3774/7627/files/rp-swatch-crystal-pink.webp?v=1792462273&width=640") 14% 8% / 600% auto no-repeat;
}

.rp-medaillon-shade input:checked + .rp-medaillon-shade__choice .rp-medaillon-shade__color { box-shadow: 0 0 0 2px #fff, 0 0 0 3px #171717; }
.rp-medaillon-shade input:focus-visible + .rp-medaillon-shade__choice { outline: 2px solid #33383c; outline-offset: 3px; }
.rp-medaillon-shade input.disabled + .rp-medaillon-shade__choice { opacity: .55; }

/* ---------- Quantidade e botão de compra ---------- */

.rp-mp-form__buttons { display: grid; gap: 16px; }
.rp-mp-form__row { display: flex; gap: 12px; }

.rp-mp-form__error {
  padding: 12px 16px;
  border-radius: 6px;
  background: #fff1f2;
  color: #be123c;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}

.rp-mp-qty {
  display: flex;
  flex: none;
  align-items: center;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgb(23 23 23 / 0.1);
}

.rp-mp-qty__btn {
  width: 40px;
  height: 100%;
  min-height: 48px;
  border: 0;
  background: none;
  font-size: 16px;
  cursor: pointer;
}

.rp-mp-qty input {
  width: 36px;
  border: 0;
  background: transparent;
  font-size: 14px;
  text-align: center;
  -moz-appearance: textfield;
}

.rp-mp-qty input::-webkit-outer-spin-button,
.rp-mp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Botão rosa da Rose Poudré: no passar do mouse o preenchimento escuro entra por baixo e, ao sair, continua subindo
   e sai por cima (main-product.js → setupHoverFill, como o hover-button do tema). */
.rp-mp-submit {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 192px;
  min-height: 48px;
  padding: 17px 26px;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background-color: #f4cfd3;
  color: #2b1720;
  font-family: var(--font-body-family, inherit);
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: normal;
  text-align: center;
  cursor: pointer;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}

.rp-mp-submit__fill {
  position: absolute;
  z-index: -1;
  top: -50%;
  left: -25%;
  display: block;
  width: 150%;
  height: 200%;
  border-radius: 50%;
  background-color: #2b1720;
  transform: translate3d(0, -76%, 0);
  pointer-events: none;
}

.rp-mp-submit__text {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s, color 0.5s cubic-bezier(0.3, 1, 0.3, 1) 0.1s;
}

.rp-mp-submit__loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

.rp-mp-submit__loader span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  animation: rp-mp-loader 0.35s ease infinite alternate;
}

.rp-mp-submit__loader span:nth-child(2) { animation-delay: 0.175s; }
.rp-mp-submit__loader span:nth-child(3) { animation-delay: 0.35s; }

@keyframes rp-mp-loader {
  from { transform: scale(1.6); }
  to { transform: scale(0.6); }
}

.rp-mp-submit.is-loading .rp-mp-submit__text { opacity: 0; }
.rp-mp-submit.is-loading .rp-mp-submit__loader { opacity: 1; }
.rp-mp-submit[disabled] { cursor: not-allowed; opacity: 0.6; }
.rp-mp-submit[disabled] .rp-mp-submit__fill { display: none; }
.rp-mp-submit.is-loading[disabled] .rp-mp-submit__fill { display: block; }
.rp-mp-submit.is-loading[disabled] { cursor: wait; opacity: 1; }

@media (hover: hover) and (pointer: fine) {
  .rp-mp-submit[data-hover-fill]:not([disabled]):hover { color: #f4cfd3; }
}

@media screen and (min-width: 768px) {
  .rp-mp-submit { min-height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .rp-mp-submit__text { transition: none; }
  .rp-mp-submit__loader span { animation: none; }
}

/* ---------- Abas soltas e contagem regressiva ---------- */

.rp-mp-accordion { border-bottom: 1px solid rgb(23 23 23 / 0.1); }

.rp-mp-accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  list-style: none;
  cursor: pointer;
}

.rp-mp-accordion__icon { position: relative; width: 12px; height: 12px; flex: none; }

.rp-mp-accordion__icon::before,
.rp-mp-accordion__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 1.2px;
  margin-top: -0.6px;
  background: currentColor;
  transition: transform 0.3s;
}

.rp-mp-accordion__icon::after { transform: rotate(90deg); }
.rp-mp-accordion[open] .rp-mp-accordion__icon::after { transform: rotate(0deg); }
.rp-mp-accordion__content { padding: 0 0 16px; color: rgb(23 23 23 / 0.75); font-size: 12px; line-height: 1.6; }

.rp-mp-countdown {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  border-radius: 10px;
  background: #fbf2f3;
}

.rp-mp-countdown__heading { font-size: 16px; font-weight: 500; line-height: 1.25; }
.rp-mp-countdown__sub { margin-top: 4px; font-size: 9px; font-weight: 500; letter-spacing: 0.1em; line-height: 1; text-transform: uppercase; }
.rp-mp-countdown__timer { display: flex; text-align: center; }
.rp-mp-countdown__item { min-width: 48px; }
.rp-mp-countdown__item p { font-size: 18px; font-weight: 500; line-height: 1.2; }
.rp-mp-countdown__item span { font-size: 10px; opacity: 0.7; }

/* Entrada suave da galeria e das informações (o "fade-up" do tema: sobe 2rem e aparece em 1,5s). O que abre fora
   da tela espera aparecer para animar (main-product.js → setupReveal: .is-reveal-wait e depois .is-revealed). */
@media (prefers-reduced-motion: no-preference) {
  .rp-mp-gallery,
  .rp-mp__info { animation: rp-mp-fade-up 1.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .rp-mp-gallery.is-reveal-wait,
  .rp-mp__info.is-reveal-wait { animation: none; opacity: 0; transform: translateY(min(2rem, 90%)); }
  .rp-mp-gallery.is-reveal-wait.is-revealed,
  .rp-mp__info.is-reveal-wait.is-revealed { animation: rp-mp-fade-up 1.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
}

/* Título palavra por palavra (split-words do tema Concept, "animação dos títulos" ligada na Shopify): cada palavra
   sobe de dentro da própria linha, 30 ms depois da anterior. Fora da tela ao abrir, espera aparecer, como a galeria.
   No fim a máscara sai (.is-done, main-product.js), para acentos e letras que descem não ficarem cortados. */
.rp-split__word { display: inline-flex; margin: -0.08em -0.05em; padding: 0.08em 0.05em; }
.rp-split__word > span { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .rp-split:not(.is-done) .rp-split__word { overflow: hidden; }
  .rp-split__word > span { animation: rp-mp-fade-up 1.5s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--rp-word, 0) * 30ms) both; }
  .rp-split.is-reveal-wait .rp-split__word > span { animation: none; opacity: 0; transform: translateY(min(2rem, 90%)); }
  .rp-split.is-reveal-wait.is-revealed .rp-split__word > span { animation: rp-mp-fade-up 1.5s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--rp-word, 0) * 30ms) both; }
}

@keyframes rp-mp-fade-up {
  from { opacity: 0; transform: translateY(min(2rem, 90%)); }
  to { opacity: 1; transform: none; }
}

/* Arrastar a galeria com o mouse (main-product.js → setupDrag). */
/* Só onde a galeria é um carrossel (abaixo de 1024px); no computador as fotos ficam em coluna, sem arrastar. */
@media (hover: hover) and (pointer: fine) and (max-width: 1023px) {
  .rp-mp-gallery__slider { cursor: grab; }
  .rp-mp-gallery__slider.is-dragging { cursor: grabbing; user-select: none; }
}
