/* =========================
   RECOMENDAÇÕES SHOPEE
   Estilos específicos da página da lojinha
   Arquivo: lojinha.css
   Descrição: Fundo fixo, grid de produtos, carrossel com vídeos, modal
 ========================= */

/* =========================
   FUNDO DA PÁGINA
   Fundo rosa simples (sem slides animadas)
 ========================= */
.bg-stage {
  display: none;
}

body {
  background: linear-gradient(180deg, var(--cor-fundo-gradiente-topo) 0%, var(--cor-fundo-gradiente-meio) 45%, var(--cor-fundo-gradiente-baixo) 100%) !important;
}

.container {
  position: relative;
  text-align: left !important;
}

/* =========================
   CABEÇALHO
   Botão Voltar + Título
 ========================= */
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.voltar-btn {
  display: inline-block;
  color: var(--cor-texto-principal);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  background: rgba(246, 230, 235, 0.6);
  border-radius: 20px;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.voltar-btn:hover {
  background: rgba(246, 230, 235, 0.9);
}

.title {
  text-align: right;
  font-size: 16px;
  color: var(--cor-texto-principal);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(255,255,255,0.10);
  margin-inline: auto;
  margin-bottom: 0px;
}

/* =========================
   FILTRO DE CATEGORIAS
 ========================= */
.filtro-categorias {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0;
  margin-bottom: 12px;
  padding: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 25px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filtro-categorias::-webkit-scrollbar {
  display: none;
}

.filtro-btn {
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cor-texto-principal);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  border-radius: 20px;
}

.filtro-btn:hover {
  background: rgba(255,255,255,0.5);
}

.filtro-btn.active {
  background: linear-gradient(135deg, var(--cor-botao-shopee-inicio) 0%, var(--cor-botao-shopee-fim) 100%);
  color: var(--cor-branco);
  box-shadow: 0 3px 10px rgba(224,72,115,0.4);
}

/* =========================
   GRID DE PRODUTOS
   Layout em duas colunas
 ========================= */
.produtos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* =========================
   CARD DE PRODUTO
   Container de cada produto
 ========================= */
.produto-card {
  background: linear-gradient(135deg, var(--cor-lojinha-card-fundo) 0%, var(--cor-lojinha-card-fundo) 100%);
  border: 2px solid var(--cor-lojinha-card-borda);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 8px 8px 0px 8px;
  text-decoration: none;
  color: var(--cor-lojinha-card-titulo);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 25px var(--cor-lojinha-card-sombra);
  transition: all 0.3s ease;
}

.produto-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px var(--cor-lojinha-card-sombra);
  border-color: var(--cor-destaque-borda);
}

/* =========================
   CARROSSEL DE MÍDIAS
   Suporta imagens e vídeos
 ========================= */
.carousel {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 14px;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
  height: 100%;
}

.carousel-track img,
.carousel-track video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: var(--cor-branco);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.carousel-btn.prev {
  left: 6px;
}

.carousel-btn.next {
  right: 6px;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.carousel-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 2;
}

.carousel-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.carousel-dots .dot.active {
  background: var(--cor-branco);
}

.carousel-dots .dot.video-dot {
  background: var(--cor-dot-video);
}

.carousel-dots .dot.video-dot.active {
  background: var(--cor-dot-video-ativo);
}

/* =========================
   INFORMAÇÕES DO PRODUTO
   Título e botão Shopee
 ========================= */
.produto-info {
  padding: 6px 4px 2px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.produto-titulo {
  font-weight: 700;
  font-size: 11px;
  margin-bottom: 8px;
  line-height: 1.3;
  color: var(--cor-lojinha-card-titulo);
  text-shadow: 0 1px 1px rgba(255,255,255,0.5);
}

.produto-comprar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--cor-botao-shopee-inicio) 0%, var(--cor-botao-shopee-fim) 100%);
  color: var(--cor-branco);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 15px var(--cor-destaque-sombra);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.produto-comprar:hover {
  background: linear-gradient(135deg, var(--cor-botao-shopee-fim) 0%, var(--cor-botao-shopee-hover) 100%);
  box-shadow: 0 6px 20px var(--cor-destaque-sombra);
  transform: scale(1.05);
}

.produto-comprar img {
  width: 14px;
  height: 14px;
}

/* =========================
   RESPONSIVO
   Ajustes para mobile
 ========================= */
@media (max-width: 420px) {
  .carousel {
    height: 150px;
  }

  .produto-titulo {
    font-size: 10px;
  }

  .produtos-grid {
    gap: 8px;
  }
}

/* =========================
   MODAL DE MÍDIA
   Visualização ampliada de imagens e vídeos
 ========================= */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
}

.modal-content {
  width: 95vw;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content img,
.modal-content video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Controls hidden by JS (modalVideo.controls = false) */

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: var(--cor-branco);
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.modal-close:hover {
  color: var(--cor-fundo-gradiente-topo);
  transform: scale(1.1);
}

.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cor-branco);
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  padding: 20px;
  user-select: none;
  z-index: 1001;
  background: transparent;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

.modal-prev:hover,
.modal-next:hover {
  color: var(--cor-fundo-gradiente-topo);
  transform: translateY(-50%) scale(1.1);
}