/* AWD_HOME_AUDIO_V1 */

/* Centralização dos três produtos */
.awd-product-grid {
  width: min(100%, 920px) !important;
  margin-inline: auto !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  justify-content: center !important;
}

/* Estrutura dos players */
.awd-product-card,
.awd-home-product-stage {
  position: relative;
}

.awd-cover-audio {
  pointer-events: none;
}

.awd-cover-audio__play,
.awd-cover-audio__progress {
  pointer-events: auto;
}

/* Botão central */
.awd-cover-audio__play {
  
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
position: absolute;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #07090b;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.awd-cover-audio__play span {
  display: block;
  width: 0;
  height: 0;
  margin: 0 0 0 4px;
  padding: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid currentColor;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0;
  line-height: 0;
}

.awd-cover-audio__play:hover,
.awd-cover-audio.is-playing .awd-cover-audio__play {
  color: #07090b;
  background: #dfff00;
  transform: translate(-50%, -50%) scale(1);
}

/* Card do catálogo */
.awd-cover-audio--card {
  position: absolute;
  z-index: 7;
  top: 0;
  right: 0;
  left: 0;
  aspect-ratio: 1;
}

.awd-cover-audio--card .awd-cover-audio__play {
  top: 50%;
  left: 50%;
}

.awd-product-card:hover .awd-cover-audio__play,
.awd-cover-audio--card:focus-within .awd-cover-audio__play,
.awd-cover-audio--card.is-playing .awd-cover-audio__play {
  opacity: 1;
}

/* Produto em destaque */
.awd-cover-audio--featured {
  position: absolute;
  z-index: 9;
  inset: 0;
}

.awd-cover-audio--featured .awd-cover-audio__play {
  top: 50%;
  left: 50%;
}

.awd-home-product-stage:hover .awd-cover-audio__play,
.awd-cover-audio--featured:focus-within .awd-cover-audio__play,
.awd-cover-audio--featured.is-playing .awd-cover-audio__play {
  opacity: 1;
}

/* Barra fina */
.awd-cover-audio__progress {
  position: absolute;
  right: 12px;
  bottom: 9px;
  left: 12px;
  z-index: 9;
  display: block;
  height: 4px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.awd-cover-audio__progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #dfff00;
  transition: width 80ms linear;
}

.awd-cover-audio__time {
  position: absolute;
  right: 14px;
  bottom: 18px;
  z-index: 9;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  opacity: 0;
  text-shadow: 0 1px 8px #000;
  transition: opacity 180ms ease;
}

.awd-cover-audio.is-playing .awd-cover-audio__time {
  opacity: 1;
}

@media (hover: none) {
  .awd-cover-audio__play {
    width: 52px;
    height: 52px;
    opacity: 0.92;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 820px) {
  .awd-product-grid {
    width: min(100%, 620px) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .awd-product-grid {
    width: min(100%, 340px) !important;
    grid-template-columns: 1fr !important;
  }
}
