body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: #f9f9f9;
    color: #333;
}

/* Book Container */
.livro-container {
    max-width: 1140px;
    margin: 60px auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

/* Book Preview */
.livro-preview {
    flex: 1;
    min-width: 260px;
    text-align: center;
}

.livro-preview img {
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.btn-previa {
    margin-top: 25px;
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #4a6fa5, #3a5a80);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(74, 111, 165, 0.3);
    cursor: pointer;
}

.btn-previa:hover {
    background: linear-gradient(135deg, #3a5a80, #4a6fa5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 111, 165, 0.4);
}

/* Book Info */
.livro-info {
    flex: 2;
    min-width: 300px;
}

.livro-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    background: #ffe082;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    text-transform: uppercase;
}

.tag-featured {
    background: #ffb74d;
    color: #fff;
}

.livro-title {
    font-size: 32px;
    font-family: 'Roboto', sans-serif;
    margin: 0 0 10px;
    color: #2c3e50;
}

.livro-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.author {
    font-weight: normal;
    margin-bottom: -30px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sessão de distribuidores */
.sessao_distribuidoras {
    margin-top: 50px;
}

.sessao_distribuidoras hr {
    border: none;
    border-top: 1px solid #ccc; /* cinza claro */
    opacity: 0.6;               /* deixa mais suave */
    margin: 20px 0;
}

.sessao_distribuidoras h4 {
    font-size: 20px;                 /* tamanho do título */
    font-weight: 600;                /* mais encorpado */
    color: #4a6fa5;                  /* azul padrão do site */
    margin: 0 0 30px;                 /* espaço abaixo */
    display: flex;
    align-items: center;
    gap: 8px; 
    position: relative;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tab-btn {
    padding: 8px 18px;
    border: 2px solid #4a6fa5;
    background: white;
    color: #4a6fa5;
    cursor: pointer;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    background: #4a6fa5;
    color: white;
}

.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    margin-top: 10px;
}

.tab-content.show {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    align-items: flex-start;
    opacity: 1;
}

/* Bloco de cada loja */
.distributor-app {
    flex: 0 0 85px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    padding: 5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.distributor-app:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Ícone da loja */
.distributor-app-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 8px;
    width: 60px;
    height: 60px;
    overflow: hidden;
}

.distributor-app-icon img {
    max-width: 50px;
    max-height: 35px;
    object-fit: contain;
}

/* Nome da loja */
.distributor-app-name {
    margin-top: 6px;
    font-size: 0.85em;
    font-weight: 500;
}

/* Mensagem caso não tenha lojas */
.no-distributors-message {
    margin-top: 50px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #6c757d;
    color: #6c757d;
    font-style: italic;
}

.no-distributors-message i {
    color: #6c757d;
    margin-right: 8px;
}

/* Synopsis */
.livro-sinopse {
    margin-top: 20px;
    line-height: 1.7;
    text-align: justify;
}

.livro-sinopse h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #4a6fa5;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
    .livro-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .livro-info {
        width: 100%;
        text-align: center;
    }
    
    .livro-tags {
        justify-content: center;
    }
    
    .author {
        justify-content: center;
    }
    
    .livro-preview {
        width: 100%;
        max-width: 300px;
    }
    
    .livro-sinopse {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .distributor-app {
        flex: 0 0 60px;
    }
    
    .distributor-app-icon {
        width: 50px;
        height: 50px;
    }
    
    .distributor-app-name {
        font-size: 10px;
    }
    
    .livro-title {
        font-size: 28px;
    }
    
    .livro-subtitle {
        font-size: 16px;
    }
}
