/* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f6f8;
    color: #333;
    line-height: 1.5;
}

/* Container geral */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* ===========================
   HEADER DA LOJA
=========================== */
.loja-header {
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: -60px 20px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    z-index: 500;
    margin-bottom: 30px;
}

.loja-header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* Logo da loja */
.loja-logo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #007bff;
}

/* Nome da loja */
.loja-nome {
    font-size: 2.2rem;
    color: #007bff;
    margin-top: -20px;
    margin-bottom: -10px;
}

/* Detalhes da loja */
.loja-detalhes-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.loja-detalhes-container p {
    font-size: 1rem;
    color: #555;
}

.loja-detalhes-container a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.loja-detalhes-container a:hover {
    text-decoration: underline;
}

/* ===========================
   DETALHE DO PRODUTO
=========================== */
.produto-detalhe {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background-color: #b2baff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.produto-imagem {
    flex: 1 1 350px;
    max-width: 450px;
}

.produto-imagem img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.produto-imagem img:hover {
    transform: scale(1.03);
}

.produto-info {
    flex: 2 1 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.produto-info h2 {
    font-size: 2.4rem; /* título maior */
    color: #000000;
    margin-bottom: 15px;
    font-weight: 700;
}

.produto-info p {
    font-size: 1.2rem; /* texto maior */
    line-height: 1.6;  /* melhora a leitura */
    margin-bottom: 15px;
    color: #333;
}


.produto-descricao {
    max-width: 600px;
    position: relative;
    line-height: 1.6;
}

#descricao-texto {
    display: block;
    max-height: 150px; /* altura visível inicial */
    overflow: hidden;
    text-overflow: ellipsis;
    transition: max-height 0.3s ease;
}

#descricao-texto.expandido {
    max-height: none; /* mostra tudo ao expandir */
}

.btn-ver-mais {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    padding: 5px 0;
    font-size: 17px;
    font-weight: bold;
}

.btn-ver-mais:hover {
    text-decoration: underline;
}


.cupom {
    display: inline-block;
    background-color: #e6f0ff;
    color: #000000;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 10px;
}

/* ===========================
   LISTA DE PRODUTOS
=========================== */
h3 {
    font-size: 1.6rem;
    color: #007bff;
    margin-bottom: 20px;
}

.produtos-loja {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
    gap: 20px;
}

.produto-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.produto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.produto-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.produto-card:hover img {
    transform: scale(1.05);
}

.produto-card p {
    padding: 12px;
    font-weight: 600;
    color: #007bff;
    font-size: 1rem;
}

/* ===========================
   RESPONSIVO
=========================== */
@media(max-width: 992px) {
    .produto-detalhe {
        flex-direction: column;
        align-items: center;
    }

    .produto-info {
        text-align: center;
    }

    .loja-logo {
        width: 140px;
        height: 140px;
    }

    .loja-nome {
        font-size: 1.8rem;
    }
}

@media(max-width: 576px) {
    .loja-logo {
        width: 120px;
        height: 120px;
    }

    .loja-nome {
        font-size: 1.6rem;
    }

    .produto-card img {
        height: 140px;
    }
}


.btn-voltar {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 16px;
    font-size: 0.95rem;
    border-radius: 6px;
    text-decoration: none;
    background-color: #007bff;
    color: #fff;
    font-weight: 600;
    transition: background 0.3s;
    z-index: 600;
}

.btn-voltar:hover {
    background-color: #0056b3;
}


.produto-preco {
  font-size: 1.3em;
  color: #000000;
  font-weight: bold;
  margin-bottom: 10px;
}


.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}


/* Botões inicialmente escondidos */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0; /* invisível por padrão */
    transition: opacity 0.3s;
    z-index: 5;
}

/* Botão da esquerda */
.carousel-btn.prev {
    left: 10px;
}

/* Botão da direita */
.carousel-btn.next {
    right: 10px;
}

/* Mostra os botões quando passa o mouse no carousel */
.carousel:hover .carousel-btn {
    opacity: 1;
}


/* Modal (fundo escuro) */
.modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  padding-top: 60px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.8);
}

/* Imagem dentro do modal */
.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

/* Botão fechar */
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover {
  color: #bbb;
}


#countdown {
    color: #e63946; /* vermelho elegante */
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.campo-destaque {
   display: inline-block;
    background-color: #e6f0ff;
    color: #000000;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 10px;
}
