/* Componentes próprios que substituem apps da Shopify (kits, stories, vídeos, avaliações, WhatsApp). */

/* ----- avaliação no topo do produto ----- */
.om-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; line-height: 1.4; margin: 5px 0; }
.om-stars { display: inline-flex; gap: 1px; }
.om-star { color: #d9d9d9; font-size: 16px; line-height: 1; }
.om-star--on { color: #ffc61a; }

/* ----- ofertas de kit (visual do bloco de kits da loja ao vivo) ----- */
.om-offers { margin: 1.6rem 0 0; font-family: var(--font-body-family); }
.om-offers__title { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; letter-spacing: .06em; color: #000; text-transform: uppercase; margin-bottom: 10px; }
.om-offers__title::before, .om-offers__title::after { content: ''; flex: 1; height: 2px; background: rgba(0,0,0,.35); }
.om-offers__title span { white-space: nowrap; }
.om-timer { background: #000; color: #fff; text-align: center; font-weight: 700; font-size: 13px; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; }
.om-offers__bars { display: flex; flex-direction: column; gap: 10px; }
.om-bar { position: relative; display: block; cursor: pointer; border: 1px solid #0653184d; border-radius: 8px; background: #fff; padding: 16px 18px; transition: background .15s, border-color .15s; }
.om-bar input { position: absolute; opacity: 0; pointer-events: none; }
.om-bar--selected { background: #bdffcc; border: 2px solid #000; padding: 15px 17px; }
.om-bar__radio { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; border: 2px solid #b5b5b5; background: #fff; }
.om-bar--selected .om-bar__radio { border-color: #000; }
.om-bar--selected .om-bar__radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #000; }
.om-bar__content { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-left: 38px; }
.om-bar__left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.om-bar__first { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.om-bar__title { font-size: 18px; font-weight: 700; color: #000; letter-spacing: 0; }
.om-bar__label { background: #000; color: #fff; font-size: 11px; border-radius: 6px; padding: 3px 7px; letter-spacing: 0; line-height: 1.3; }
.om-bar__subtitle { font-size: 13px; color: #000; letter-spacing: 0; }
.om-bar__pricing { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.om-bar__price { font-size: 18px; font-weight: 700; color: #000; letter-spacing: 0; }
.om-bar__full { font-size: 12px; color: #000; text-decoration: line-through; opacity: .75; }
.om-bar__popular { position: absolute; right: -14px; top: -26px; z-index: 2; background: #000; color: #fff; border-radius: 50%; padding: 8px 14px; font: 600 15px/0.95 'Brush Script MT', 'Segoe Script', cursive; transform: rotate(-6deg); text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.om-bar__popular::before, .om-bar__popular::after { content: '✦'; position: absolute; font-size: 10px; color: #fff; }
.om-bar__popular::before { right: 4px; top: 2px; } .om-bar__popular::after { left: 6px; bottom: 2px; }
.om-gift { text-align: center; font-size: 15px; line-height: 1.5; margin: 14px 0 0; color: #000; }
.om-gift strong { font-size: 17px; }
@media (max-width: 749px) { .om-bar__title, .om-bar__price { font-size: 16px; } .om-bar__label { font-size: 10px; } }

/* ----- stories (círculos) ----- */
.om-stories { display: flex; justify-content: center; gap: var(--om-gap); overflow-x: auto; scrollbar-width: none; }
.om-stories::-webkit-scrollbar { display: none; }
.om-story { flex: 0 0 auto; padding: 0; border: 0; background: none; cursor: pointer; }
.om-story__ring { display: block; width: var(--om-size); height: var(--om-size); border-radius: 50%; padding: 3px; border: 3px solid var(--om-ring); overflow: hidden; }
.om-story__ring video { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
@media (max-width: 749px) { .om-stories { justify-content: flex-start; padding-left: 1.5rem !important; } }

/* ----- carrossel de vídeos em destaque ----- */
.om-spotlight__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 10px calc(50% - 90px); align-items: center; }
.om-spotlight__track::-webkit-scrollbar { display: none; }
.om-spotlight__item { position: relative; flex: 0 0 190px; aspect-ratio: 9/14; border: 0; padding: 0; border-radius: var(--om-radius); overflow: hidden; cursor: pointer; scroll-snap-align: center; transition: transform .25s; background: #000; }
.om-spotlight__item.is-center { transform: scale(1.12); z-index: 1; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.om-spotlight__item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.om-spotlight__mute { position: absolute; right: 8px; bottom: 8px; font-size: 13px; opacity: 0; }
.om-spotlight__item.is-center .om-spotlight__mute { opacity: .9; }
.om-spotlight__nav { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.om-spotlight__arrow { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #ddd; background: #fff; cursor: pointer; font-size: 18px; line-height: 1; color: #121212; }
@media (min-width: 990px) { .om-spotlight__track { padding: 30px calc(50% - 125px); gap: 22px; } .om-spotlight__item { flex-basis: 250px; } }

/* ----- player em tela cheia ----- */
.om-player { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; }
.om-player__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.85); }
.om-player__stage { position: relative; height: min(88vh, 760px); aspect-ratio: 9/16; border-radius: 16px; overflow: hidden; background: #000; }
.om-player__stage video { width: 100%; height: 100%; object-fit: cover; }
.om-player__bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; }
.om-player__bars span { flex: 1; height: 3px; background: rgba(255,255,255,.35); border-radius: 2px; overflow: hidden; }
.om-player__bars span.done i { width: 100% !important; }
.om-player__bars i { display: block; height: 100%; width: 0; background: #fff; }
.om-player__close { position: absolute; top: 16px; right: 20px; z-index: 2; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; }
.om-player__nav { position: relative; z-index: 2; background: rgba(255,255,255,.15); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 28px; cursor: pointer; margin: 0 14px; }
@media (max-width: 749px) { .om-player__stage { height: 100%; width: 100%; border-radius: 0; aspect-ratio: auto; } .om-player__nav { position: absolute; top: 50%; } .om-player__prev { left: 0; } .om-player__next { right: 0; } }

/* ----- avaliações ----- */
.om-rv { border: 1px solid #eee; border-radius: 12px; padding: 24px; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.om-rv__head { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 24px; align-items: start; }
.om-rv__title { margin: 0; font-size: 18px; }
.om-rv__sub { font-size: 11px; opacity: .7; margin-bottom: 6px; }
.om-rv__avg { display: flex; align-items: center; gap: 8px; } .om-rv__avg strong { font-size: 30px; }
.om-rv__write { margin-top: 10px; background: #2e2a39; color: #fff; border: 0; border-radius: 4px; padding: 8px 16px; font-weight: 700; cursor: pointer; }
.om-rv__bar { display: grid; grid-template-columns: 14px 1fr 40px; align-items: center; gap: 10px; font-size: 11px; margin: 4px 0; }
.om-rv__track { height: 4px; background: #eee; border-radius: 2px; overflow: hidden; } .om-rv__track span { display: block; height: 100%; background: #f5b800; }
.om-rv__form { display: grid; gap: 10px; margin: 20px 0; max-width: 560px; }
.om-rv__form input, .om-rv__form select, .om-rv__form textarea { font: inherit; padding: 10px 12px; border: 1px solid #ccc; border-radius: 6px; }
.om-rv__form textarea { min-height: 100px; }
.om-rv__grid { columns: 4 220px; column-gap: 16px; margin-top: 24px; }
.om-rv__card { break-inside: avoid; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.08); padding: 14px; margin-bottom: 16px; font-size: 13px; background: #fff; }
.om-rv__card img { width: 100%; border-radius: 8px; margin-top: 8px; }
.om-rv__author { font-weight: 600; font-size: 13px; }
.om-rv__verified { font-size: 10px; color: #1a8f3a; font-weight: 400; }
.om-rv__card p { margin: 8px 0 0; line-height: 1.5; }
.om-rv__empty { opacity: .7; }
.om-rv__more { text-align: center; margin-top: 10px; }
@media (max-width: 749px) { .om-rv { padding: 16px; } .om-rv__head { grid-template-columns: 1fr; } }

/* ----- botão flutuante WhatsApp "Fale conosco" ----- */
.om-wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(90deg, #25d366, #128c7e); color: #fff; font: 700 14px/1 var(--font-body-family); letter-spacing: 0; padding: 14px 20px; border-radius: 40px; box-shadow: 0 6px 18px rgba(0,0,0,.18); text-decoration: none; }
.om-wa-float svg { width: 20px; height: 20px; }

/* ----- galeria: slide ativo no desktop ----- */
@media screen and (min-width: 750px) {
  .product--thumbnail_slider .product__media-list .product__media-item:not(.is-active) { display: none; }
}
.thumbnail__badge { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.thumbnail__badge svg { width: 8px; height: 10px; }
.slider-counter__link--active .dot { transform: scale(var(--pagination-dot-active-scale, 1.5)); opacity: 1; }
.cart-item__old-price { display: block; font-size: 1.2rem; opacity: .6; }
.newsletter-form__message { font-size: 1.3rem; margin-top: .8rem; }
.om-banner-link { display: block; color: inherit; }
@media (max-width: 749px) {
  .om-wa-float { padding: 14px; border-radius: 50%; right: 14px; bottom: 16px; }
  .om-wa-float span { display: none; }
  .om-wa-float svg { width: 24px; height: 24px; }
  .om-spotlight__track { padding: 14px calc(50% - 31vw); gap: 14px; }
  .om-spotlight__item { flex-basis: 62vw; }
  .om-spotlight__item.is-center { transform: scale(1.04); }
}

/* ----- vídeos: só botão de play centralizado (sem controles/baixar) ----- */
.om-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; border: 0; padding: 0; display: flex; align-items: center; justify-content: center; background: var(--om-play-bg, #fff); color: var(--om-play-icon, #000); box-shadow: 0 6px 18px rgba(0,0,0,.25); cursor: pointer; z-index: 2; transition: transform .15s; }
.om-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.om-play svg { width: 28px; height: 28px; margin-left: 3px; }
.om-play[hidden] { display: none; }
.om-spotlight__item .om-play { width: 44px; height: 44px; pointer-events: none; opacity: .92; }
.om-spotlight__item .om-play svg { width: 20px; height: 20px; }
.om-player__stage .om-play { width: 76px; height: 76px; }
.om-player__stage video { cursor: pointer; }
video::-webkit-media-controls-download-button { display: none !important; }
video::-internal-media-controls-download-button { display: none !important; }
.fabricacao__play { background: var(--om-play-bg, #fff) !important; color: var(--om-play-icon, #000) !important; }
.om-spotlight__track--loop { padding-left: 0 !important; padding-right: 0 !important; }

/* ----- botão fechar do vídeo em tela cheia: sempre visível ----- */
.om-player__close {
  position: absolute; z-index: 6;
  top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right));
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0, 0, 0, .65) !important; color: #fff !important; border: 2px solid rgba(255, 255, 255, .85) !important;
  font-size: 0 !important; line-height: 0; padding: 0; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .4); cursor: pointer;
}
.om-player__close svg { width: 18px; height: 18px; }
.om-player__close:active { transform: scale(.94); }
@media (max-width: 749px) {
  .om-player__close { top: calc(max(14px, env(safe-area-inset-top)) + 18px); }
  .om-player__nav { background: rgba(0, 0, 0, .45); }
}
