/* ============================================================
   ESPECÍFICOS (Stories por produto)
   Isolado para não conflitar com outros widgets
   ============================================================ */

/* Variáveis exclusivas para este escopo */
.stories-wrapper.specific-wrapper {
  /* Tamanhos dinâmicos */
  --sp-circle: clamp(66px, 19vw, 73px);
  --sp-gap: clamp(26px, 7.2vw, 50px);
  --sp-ring-width: 3px;
  --sp-title-margin: 10px;

  /* Configuração do container */
  display: block;
  width: 100%;
  margin: 16px 0 30px 0; /* Margens ajustadas para PDP */
  box-sizing: border-box;
  position: relative;
  z-index: 5;
}

/* ============================================================
   CARROSSEL E ITENS (lado a lado)
   ============================================================ */

.stories-wrapper.specific-wrapper .hmsp-carousel {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;

  gap: var(--sp-gap);

  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 5px 15px 5px;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  user-select: none;
}

.stories-wrapper.specific-wrapper .hmsp-carousel::-webkit-scrollbar {
  display: none;
}

.stories-wrapper.specific-wrapper .hmsp-item {
  scroll-snap-align: start;
  flex: 0 0 auto !important;
  width: var(--sp-circle) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  margin: 0 !important;
}

/* ============================================================
   CÍRCULOS (RING)
   ============================================================ */

.stories-wrapper.specific-wrapper .jv-ring {
  width: var(--sp-circle);
  height: var(--sp-circle);
  padding: var(--sp-ring-width);
  border-radius: 50%;

  background: conic-gradient(
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888,
    #f09433
  );

  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  transition:
    transform 0.2s ease,
    filter 0.2s;
}

.stories-wrapper.specific-wrapper .jv-ring:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.stories-wrapper.specific-wrapper .jv-ring.is-viewed {
  background: #cfcfcf;
}

.stories-wrapper.specific-wrapper .jv-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #fff;
  overflow: hidden;
  background: #fff;
  box-sizing: border-box;
}

.stories-wrapper.specific-wrapper .jv-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   TÍTULOS
   ============================================================ */

.stories-wrapper.specific-wrapper .jv-title {
  font-size: 12px;
  line-height: 1.2;
  color: #333;
  margin-top: var(--sp-title-margin);
  text-align: center;
  width: 100%;

  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ============================================================
   MODAL (PLAYER)
   Mantido igual ao seu padrão atual
   ============================================================ */

#jvStoryModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999 !important;
  background: #000;
  justify-content: center;
  align-items: center;
}

#jvStoryModal.active {
  display: flex;
}

#jvStoryPlayerWrap {
  width: 100%;
  height: 100%;
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

#jv-btn-close-unique {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 50%;
  font-size: 32px;
  line-height: 44px;
  text-align: center;
  font-family: sans-serif;
  font-weight: bold;
  cursor: pointer;
  z-index: 2147483647;
  user-select: none;
}

#jv-btn-close-unique:active {
  transform: scale(0.9);
  background: rgba(0, 0, 0, 0.9);
}
